Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=danm.k8s.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type ClusterNetwork
- type ClusterNetworkList
- type DanmEp
- type DanmEpIface
- type DanmEpList
- type DanmEpSpec
- type DanmNet
- type DanmNetList
- type DanmNetOption
- type DanmNetSpec
- type IP4Pool
- type IfaceProfile
- type TenantConfig
- type TenantConfigList
- type TenantNetwork
- type TenantNetworkList
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: danm.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 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 IfaceProfile ¶
type TenantConfig ¶
type TenantConfig struct { meta_v1.TypeMeta `json:",inline"` meta_v1.ObjectMeta `json:"metadata"` HostDevices []IfaceProfile `json:"hostDevices"` 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