networking

package
v0.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL