azure

package
v1.11.0-cni-plu...-aa3fb74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: Apache-2.0, Apache-2.0 Imports: 8 Imported by: 0

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

type AzureEndpoint struct {
	Network     string
	ContainerID string
	Interface   string
	Addresses   []string
}

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

type AzureNetwork struct {
	Name    string
	Subnets []string
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL