Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Engine ¶
type Engine interface { GetAllMACAddresses() ([]string, error) GetMACAddressOfENI(macAddresses []string, eniID string) (string, error) GetInterfaceDeviceName(macAddress string) (string, error) GetIPV4GatewayNetmask(macAddress string) (string, string, error) GetIPV6PrefixLength(macAddress string) (string, error) GetIPV6Gateway(deviceName string) (string, error) DoesMACAddressMapToIPV4Address(macAddress string, ipv4Address string) (bool, error) DoesMACAddressMapToIPV6Address(macAddress string, ipv4Address string) (bool, error) SetupContainerNamespace(args *skel.CmdArgs, deviceName string, macAddress string, ipv4Address string, ipv6Address string, ipv4Gateway string, ipv6Gateway string, blockIMDS bool) error TeardownContainerNamespace(netns string, macAddress string) error }
Engine represents the execution engine for the ENI plugin. It defines all the operations performed by the plugin
type IsUnmappedMACAddressError ¶
type IsUnmappedMACAddressError interface {
IsUnmappedMACAddressError() bool
}
IsUnmappedMACAddressError defines the interface representing the error UnmappedMACAddressError
type UnmappedMACAddressError ¶
type UnmappedMACAddressError struct {
// contains filtered or unexported fields
}
UnmappedMACAddressError is used to indicate that the MAC address of the ENI cannot be mapped to any of the network interfaces attached to the host as determined by the instance metadata
func (*UnmappedMACAddressError) Error ¶
func (macErr *UnmappedMACAddressError) Error() string
func (*UnmappedMACAddressError) IsUnmappedMACAddressError ¶
func (macErr *UnmappedMACAddressError) IsUnmappedMACAddressError() bool
IsUnmappedMACAddressError returns whether the error is UnmappedMACAddressError
Click to show internal directories.
Click to hide internal directories.