types

package
v1.10.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Mesos Mesos `json:"org.apache.mesos,omitempty"`
}

Args contains arbitrary information a scheduler can pass to the cni plugin

type ArgsSpec

type ArgsSpec struct {
	cniTypes.CommonArgs
	IP                         net.IP
	K8S_POD_NAME               cniTypes.UnmarshallableString
	K8S_POD_NAMESPACE          cniTypes.UnmarshallableString
	K8S_POD_INFRA_CONTAINER_ID cniTypes.UnmarshallableString
}

ArgsSpec is the specification of additional arguments of the CNI ADD call

type Mesos added in v1.6.0

type Mesos struct {
	NetworkInfo NetworkInfo `json:"network_info"`
}

Mesos contains network-specific information from the scheduler to the cni plugin

type NetConf

type NetConf struct {
	cniTypes.NetConf
	MTU          int                    `json:"mtu"`
	Args         Args                   `json:"args"`
	ENI          eniTypes.ENISpec       `json:"eni,omitempty"`
	Azure        azureTypes.AzureSpec   `json:"azure,omitempty"`
	IPAM         ipamTypes.IPAMSpec     `json:"ipam,omitempty"`
	AlibabaCloud alibabaCloudTypes.Spec `json:"alibaba-cloud,omitempty"`
	EnableDebug  bool                   `json:"enable-debug"`
	LogFormat    string                 `json:"log-format"`
}

NetConf is the Cilium specific CNI network configuration

func LoadNetConf

func LoadNetConf(bytes []byte) (*NetConf, error)

LoadNetConf unmarshals a Cilium network configuration from JSON and returns a NetConf together with the CNI version

func ReadNetConf

func ReadNetConf(path string) (*NetConf, error)

ReadNetConf reads a CNI configuration file and returns the corresponding NetConf structure

type NetConfList

type NetConfList struct {
	Plugins []*NetConf `json:"plugins,omitempty"`
}

NetConfList is a CNI chaining configuration

type NetworkInfo added in v1.6.0

type NetworkInfo struct {
	Name   string `json:"name"`
	Labels struct {
		Labels []struct {
			Key   string `json:"key"`
			Value string `json:"value"`
		} `json:"labels,omitempty"`
	} `json:"labels,omitempty"`
}

NetworkInfo supports passing only labels from mesos

Jump to

Keyboard shortcuts

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