Documentation ¶
Index ¶
- Constants
- Variables
- func CompareK8sVer(firstVer *version.Info, secondVer *version.Info) int
- func NewAddressPoolId(asId string, subnet string, childSubnet string) *addressPoolId
- func NewAddressPoolIdFromString(s string) (*addressPoolId, error)
- type AddressManager
- type AddressPoolInfo
- type IPAddress
- type IPSubnet
- type Interface
- type NetworkInterfaces
Constants ¶
View Source
const ( // Default address space IDs. LocalDefaultAddressSpaceId = "local" GlobalDefaultAddressSpaceId = "global" )
View Source
const ( // Address space scopes. LocalScope = iota GlobalScope )
Variables ¶
View Source
var ( // Options used by AddressManager. OptInterfaceName = "azure.interface.name" OptAddressID = "azure.address.id" OptAddressType = "azure.address.type" OptAddressTypeGateway = "gateway" )
Functions ¶
func CompareK8sVer ¶
CompareK8sVer compares two k8s versions. returns -1, 0, 1 if firstVer smaller, equals, bigger than secondVer respectively. returns -2 for error.
func NewAddressPoolId ¶
Creates a new address pool ID object.
func NewAddressPoolIdFromString ¶
Creates a new pool ID from a string representation.
Types ¶
type AddressManager ¶
type AddressManager interface { Initialize(config *common.PluginConfig, options map[string]interface{}) error Uninitialize() StartSource(options map[string]interface{}) error StopSource() GetDefaultAddressSpaces() (string, string) RequestPool(asId, poolId, subPoolId string, options map[string]string, v6 bool) (string, string, error) ReleasePool(asId, poolId string) error GetPoolInfo(asId, poolId string) (*AddressPoolInfo, error) RequestAddress(asId, poolId, address string, options map[string]string) (string, error) ReleaseAddress(asId, poolId, address string, options map[string]string) error }
AddressManager API.
func NewAddressManager ¶
func NewAddressManager() (AddressManager, error)
Creates a new address manager.
type AddressPoolInfo ¶
type AddressPoolInfo struct { Subnet net.IPNet Gateway net.IP DnsServers []net.IP UnhealthyAddrs []net.IP IsIPv6 bool Available int Capacity int }
AddressPoolInfo contains information about an address pool.
type NetworkInterfaces ¶
type NetworkInterfaces struct {
Interfaces []Interface
}
MAS host agent JSON object format.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.