package networking

import "github.com/vmware/govmomi/vapi/appliance/networking"

Index

Types

type Manager

type Manager struct {
	*rest.Client
}

Manager provides convenience methods to configure appliance proxy.

func NewManager

func NewManager(client *rest.Client) *Manager

NewManager creates a new Manager with the given client

func (*Manager) NoProxy

func (m *Manager) NoProxy(ctx context.Context) ([]string, error)

NoProxy returns all excluded servers for proxying.

func (*Manager) ProxyList

func (m *Manager) ProxyList(ctx context.Context) (*ProxyList, error)

ProxyList returns all Proxy configuration.

type Proxy

type Proxy struct {
	Server   string `json:"server,omitempty"`
	Port     int    `json:"port,omitempty"`
	Username string `json:"username,omitempty"`
	Password string `json:"password,omitempty"`
	Enabled  bool   `json:"enabled,omitempty"`
}

Proxy represents configuration for specific proxy - ftp, http, https.

type ProxyList

type ProxyList struct {
	Ftp   Proxy `json:"ftp,omitempty"`
	Http  Proxy `json:"http,omitempty"`
	Https Proxy `json:"https,omitempty"`
}

ProxyList represents configuration for vcenter proxy.

Source Files

proxy.go

Version
v0.48.1 (latest)
Published
Feb 11, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
3 months ago

Tools for package owners.