v1

package
v4.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: BSD-3-Clause Imports: 4 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 struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata"`
	Spec               DanmNetSpec `json:"spec"`
}

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

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

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

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"`
}

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

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"`
	CID         string      `json:"CID,omitempty"`
	Netns       string      `json:"netns,omitempty"`
	ApiType     string      `json:"apiType"`
}

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

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

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 Cidr from where dynamic IP address allocation happens
	Pool IP4Pool `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"`
	// 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"`
}

type DanmNetSpec

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

type IP4Pool

type IP4Pool struct {
	Start string `json:"start"`
	End   string `json:"end"`
}

type IfaceProfile

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

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

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

type TenantNetwork

type TenantNetwork 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

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

Jump to

Keyboard shortcuts

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