Documentation ¶
Index ¶
- Constants
- Variables
- type Address
- type Client
- type GetInterfacesResult
- type GetNetworkContainerOpts
- type Interface
- type InterfaceInfo
- type Proxy
- func (p *Proxy) JoinNetwork(ctx context.Context, vnetID string) (*http.Response, error)
- func (p *Proxy) PublishNC(ctx context.Context, ncParams cns.NetworkContainerParameters, payload []byte) (*http.Response, error)
- func (p *Proxy) UnpublishNC(ctx context.Context, ncParams cns.NetworkContainerParameters, payload []byte) (*http.Response, error)
- type Subnet
Constants ¶
View Source
const (
WireserverIP = "168.63.129.16"
)
Variables ¶
View Source
var ( // ErrNoPrimaryInterface indicates the wireserver respnose does not have a primary interface indicated. ErrNoPrimaryInterface = errors.New("no primary interface found") // ErrInsufficientAddressSpace indicates that the CIDR space is too small to include a gateway IP; it is 1 IP. ErrInsufficientAddressSpace = errors.New("insufficient address space to generate gateway IP") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetInterfaces ¶
func (c *Client) GetInterfaces(ctx context.Context) (*GetInterfacesResult, error)
GetInterfaces queries interfaces from the wireserver.
type GetInterfacesResult ¶
type GetInterfacesResult struct {
Interface []Interface
}
GetInterfacesResult is the xml mapped response of the getInterfacesQuery
type GetNetworkContainerOpts ¶
type InterfaceInfo ¶
type InterfaceInfo struct { Subnet string Gateway string IsPrimary bool PrimaryIP string SecondaryIPs []string }
InterfaceInfo specifies the information about an interface as returned by Host Agent.
func GetPrimaryInterfaceFromResult ¶
func GetPrimaryInterfaceFromResult(res *GetInterfacesResult) (*InterfaceInfo, error)
Click to show internal directories.
Click to hide internal directories.