v1

package
v4.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=danm.k8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: danm.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterNetwork

type ClusterNetwork DanmNet

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient

func (*ClusterNetwork) DeepCopy

func (in *ClusterNetwork) DeepCopy() *ClusterNetwork

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetwork.

func (*ClusterNetwork) DeepCopyInto

func (in *ClusterNetwork) DeepCopyInto(out *ClusterNetwork)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterNetwork) DeepCopyObject

func (in *ClusterNetwork) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterNetworkList

type ClusterNetworkList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []ClusterNetwork `json:"items"`
}

+genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ClusterNetworkList) DeepCopy

func (in *ClusterNetworkList) DeepCopy() *ClusterNetworkList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNetworkList.

func (*ClusterNetworkList) DeepCopyInto

func (in *ClusterNetworkList) DeepCopyInto(out *ClusterNetworkList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterNetworkList) DeepCopyObject

func (in *ClusterNetworkList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DanmEp

type DanmEp struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata"`
	Spec               DanmEpSpec `json:"spec"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DanmEp) DeepCopy

func (in *DanmEp) DeepCopy() *DanmEp

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmEp.

func (*DanmEp) DeepCopyInto

func (in *DanmEp) DeepCopyInto(out *DanmEp)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DanmEp) DeepCopyObject

func (in *DanmEp) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DanmEpIface

type DanmEpIface struct {
	Name        string            `json:"Name"`
	Address     string            `json:"Address"`
	AddressIPv6 string            `json:"AddressIPv6"`
	MacAddress  string            `json:"MacAddress"`
	Proutes     map[string]string `json:"proutes"`
	Proutes6    map[string]string `json:"proutes6"`
	DeviceID    string            `json:"DeviceID,omitempty"`
}

func (*DanmEpIface) DeepCopy

func (in *DanmEpIface) DeepCopy() *DanmEpIface

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmEpIface.

func (*DanmEpIface) DeepCopyInto

func (in *DanmEpIface) DeepCopyInto(out *DanmEpIface)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DanmEpList

type DanmEpList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []DanmEp `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DanmEpList) DeepCopy

func (in *DanmEpList) DeepCopy() *DanmEpList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmEpList.

func (*DanmEpList) DeepCopyInto

func (in *DanmEpList) DeepCopyInto(out *DanmEpList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DanmEpList) DeepCopyObject

func (in *DanmEpList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DanmEpSpec

type DanmEpSpec struct {
	NetworkName string      `json:"NetworkName"`
	NetworkType string      `json:"NetworkType"`
	EndpointID  string      `json:"EndpointID"`
	Iface       DanmEpIface `json:"Interface"`
	Host        string      `json:"Host,omitempty"`
	Pod         string      `json:"Pod"`
	PodUID      types.UID   `json:"PodUID,omitempty"`
	CID         string      `json:"CID,omitempty"`
	Netns       string      `json:"netns,omitempty"`
	ApiType     string      `json:"apiType"`
}

func (*DanmEpSpec) DeepCopy

func (in *DanmEpSpec) DeepCopy() *DanmEpSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmEpSpec.

func (*DanmEpSpec) DeepCopyInto

func (in *DanmEpSpec) DeepCopyInto(out *DanmEpSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DanmNet

type DanmNet struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata"`
	Spec               DanmNetSpec `json:"spec"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DanmNet) DeepCopy

func (in *DanmNet) DeepCopy() *DanmNet

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmNet.

func (*DanmNet) DeepCopyInto

func (in *DanmNet) DeepCopyInto(out *DanmNet)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DanmNet) DeepCopyObject

func (in *DanmNet) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DanmNetList

type DanmNetList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []DanmNet `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DanmNetList) DeepCopy

func (in *DanmNetList) DeepCopy() *DanmNetList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmNetList.

func (*DanmNetList) DeepCopyInto

func (in *DanmNetList) DeepCopyInto(out *DanmNetList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*DanmNetList) DeepCopyObject

func (in *DanmNetList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type DanmNetOption

type DanmNetOption struct {
	// The device to where the network is attached
	Device string `json:"host_device,omitempty"`
	// The resource_pool contains allocated device IDs
	DevicePool string `json:"device_pool,omitempty"`
	// the vxlan id on the host device (creation of vxlan interface)
	Vxlan int `json:"vxlan,omitempty"`
	// The name of the interface in the container
	Prefix string `json:"container_prefix,omitempty"`
	// IPv4 specific parameters
	// IPv4 network address
	Cidr string `json:"cidr,omitempty"`
	// IPv4 routes for this network
	Routes map[string]string `json:"routes,omitempty"`
	// bit array of tracking address allocation
	Alloc string `json:"alloc,omitempty"`
	// subset of the IPv4 subnet from which IPs can be allocated
	Pool IpPool `json:"allocation_pool,omitEmpty"`
	// IPv6 specific parameters
	// IPv6 unique global address prefix
	Net6 string `json:"net6,omitempty"`
	// IPv6 routes for this network
	Routes6 map[string]string `json:"routes6,omitempty"`
	// bit array tracking IPv6 allocations
	Alloc6 string `json:"alloc6,omitempty"`
	// subset of the IPv6 subnet from which IPs can be allocated
	Pool6 IpPoolV6 `json:"allocation_pool_v6,omitEmpty"`
	// Routing table number for policy routing
	RTables int `json:"rt_tables,omitempty"`
	// the VLAN id of the VLAN interface created on top of the host device
	Vlan int `json:"vlan,omitempty"`
}

func (*DanmNetOption) DeepCopy

func (in *DanmNetOption) DeepCopy() *DanmNetOption

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmNetOption.

func (*DanmNetOption) DeepCopyInto

func (in *DanmNetOption) DeepCopyInto(out *DanmNetOption)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DanmNetSpec

type DanmNetSpec struct {
	NetworkID      string        `json:"NetworkID"`
	NetworkType    string        `json:"NetworkType,omitempty"`
	AllowedTenants []string      `json:"AllowedTenants,omitempty"`
	Options        DanmNetOption `json:"Options,omitempty"`
}

func (*DanmNetSpec) DeepCopy

func (in *DanmNetSpec) DeepCopy() *DanmNetSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DanmNetSpec.

func (*DanmNetSpec) DeepCopyInto

func (in *DanmNetSpec) DeepCopyInto(out *DanmNetSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IfaceProfile

type IfaceProfile struct {
	Name     string `json:"name"`
	VniType  string `json:"vniType,omitempty"`
	VniRange string `json:"vniRange,omitempty"`
	Alloc    string `json:"alloc,omitempty"`
}

func (*IfaceProfile) DeepCopy

func (in *IfaceProfile) DeepCopy() *IfaceProfile

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IfaceProfile.

func (*IfaceProfile) DeepCopyInto

func (in *IfaceProfile) DeepCopyInto(out *IfaceProfile)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IpPool

type IpPool struct {
	Start  string `json:"start,omitEmpty"`
	End    string `json:"end,omitEmpty"`
	LastIp string `json:"lastIp,omitEmpty"`
}

func (*IpPool) DeepCopy

func (in *IpPool) DeepCopy() *IpPool

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpPool.

func (*IpPool) DeepCopyInto

func (in *IpPool) DeepCopyInto(out *IpPool)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IpPoolV6

type IpPoolV6 struct {
	IpPool
	Cidr string `json:"cidr"`
}

func (*IpPoolV6) DeepCopy

func (in *IpPoolV6) DeepCopy() *IpPoolV6

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IpPoolV6.

func (*IpPoolV6) DeepCopyInto

func (in *IpPoolV6) DeepCopyInto(out *IpPoolV6)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TenantConfig

type TenantConfig struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata"`
	HostDevices        []IfaceProfile    `json:"hostDevices,omitempty"`
	NetworkIds         map[string]string `json:"networkIds,omitempty"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +genclient

func (*TenantConfig) DeepCopy

func (in *TenantConfig) DeepCopy() *TenantConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantConfig.

func (*TenantConfig) DeepCopyInto

func (in *TenantConfig) DeepCopyInto(out *TenantConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TenantConfig) DeepCopyObject

func (in *TenantConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TenantConfigList

type TenantConfigList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []TenantConfig `json:"items"`
}

+genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TenantConfigList) DeepCopy

func (in *TenantConfigList) DeepCopy() *TenantConfigList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantConfigList.

func (*TenantConfigList) DeepCopyInto

func (in *TenantConfigList) DeepCopyInto(out *TenantConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TenantConfigList) DeepCopyObject

func (in *TenantConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TenantNetwork

type TenantNetwork DanmNet

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TenantNetwork) DeepCopy

func (in *TenantNetwork) DeepCopy() *TenantNetwork

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantNetwork.

func (*TenantNetwork) DeepCopyInto

func (in *TenantNetwork) DeepCopyInto(out *TenantNetwork)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TenantNetwork) DeepCopyObject

func (in *TenantNetwork) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type TenantNetworkList

type TenantNetworkList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []TenantNetwork `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TenantNetworkList) DeepCopy

func (in *TenantNetworkList) DeepCopy() *TenantNetworkList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantNetworkList.

func (*TenantNetworkList) DeepCopyInto

func (in *TenantNetworkList) DeepCopyInto(out *TenantNetworkList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*TenantNetworkList) DeepCopyObject

func (in *TenantNetworkList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

Jump to

Keyboard shortcuts

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