Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateConfigAdd ¶
func MutateConfigAdd(args *skel.CmdArgs, network AzureNetwork) error
MutateConfigAdd mutates the provided configuration such that it will be accepted by the azure-vnet-ipam plugin. If the provided network contains a subnet, it will update the configuration to pass that subnet to the IPAM plugin.
func MutateConfigDel ¶
func MutateConfigDel(args *skel.CmdArgs, network AzureNetwork, endpoint AzureEndpoint) error
MutateConfigDel mutates the provided configuration such that it will be accepted by the azure-vnet-ipam plugin on a delete operation. It populates the config with the address and subnet information in the provided network and endpoint.
Types ¶
type AzureEndpoint ¶
AzureEndpoint represents a container networked using Calico in conjunction with the azure-vnet-ipam plugin. We need to store state about the containers we've networked so we can pass the correct information to the IPAM plugin on delete. This structure handles the manipulation of that state.
func (*AzureEndpoint) Delete ¶
func (ae *AzureEndpoint) Delete() error
func (*AzureEndpoint) Load ¶
func (ae *AzureEndpoint) Load() error
func (*AzureEndpoint) Write ¶
func (ae *AzureEndpoint) Write() error
type AzureNetwork ¶
AzureNetwork facilitates the manipulation of state associated with an Azure network. It can be stored and used across executions of the plugin.
func (*AzureNetwork) Load ¶
func (an *AzureNetwork) Load() error
func (*AzureNetwork) Write ¶
func (an *AzureNetwork) Write() error