Documentation ¶
Index ¶
- type ContainerVersion
- type ImdsClient
- func (imdsClient *ImdsClient) GetNetworkContainerInfoFromHost(networkContainerID string, primaryAddress string, authToken string, ...) (*ContainerVersion, error)
- func (imdsClient *ImdsClient) GetPrimaryInterfaceInfoFromHost() (*InterfaceInfo, error)
- func (imdsClient *ImdsClient) GetPrimaryInterfaceInfoFromMemory() (*InterfaceInfo, error)
- type InterfaceInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerVersion ¶ added in v1.0.4
InterfaceInfo specifies the information about an interface as returned by Host Agent.
type ImdsClient ¶
type ImdsClient struct {
// contains filtered or unexported fields
}
ImdsClient can be used to connect to VM Host agent in Azure.
func (*ImdsClient) GetNetworkContainerInfoFromHost ¶ added in v1.0.4
func (imdsClient *ImdsClient) GetNetworkContainerInfoFromHost(networkContainerID string, primaryAddress string, authToken string, apiVersion string) (*ContainerVersion, error)
GetNetworkContainerInfoFromHost retrieves the programmed version of network container from Host.
func (*ImdsClient) GetPrimaryInterfaceInfoFromHost ¶
func (imdsClient *ImdsClient) GetPrimaryInterfaceInfoFromHost() (*InterfaceInfo, error)
GetPrimaryInterfaceInfoFromHost retrieves subnet and gateway of primary NIC from Host.
func (*ImdsClient) GetPrimaryInterfaceInfoFromMemory ¶
func (imdsClient *ImdsClient) GetPrimaryInterfaceInfoFromMemory() (*InterfaceInfo, error)
GetPrimaryInterfaceInfoFromMemory retrieves subnet and gateway of primary NIC that is saved in memory.
Click to show internal directories.
Click to hide internal directories.