net

package
v0.0.0-...-798ae07 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +groupName=net.morfic.io +groupGoName=net +genclient

Index

Constants

View Source
const GroupName = "net.morfic.io"

GroupName is the name of this API group.

Variables

View Source
var (
	// SchemeBuilder points to a list of functions added to Scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

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 a Group qualified GroupKind

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Address

type Address struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this address object.
	Spec AddressSpec `json:"spec" yaml:"spec"`

	// Status is the current state of this address on the host.
	//
	// Should not be filled out by the user, will be filled/managed
	// by the server. Can be read by user at runtime.
	Status AddressStatus `json:"status" yaml:"status"`
}

Address represents an address that is to be assigned to a link on a host.

func (*Address) DeepCopy

func (in *Address) DeepCopy() *Address

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

func (*Address) DeepCopyInto

func (in *Address) DeepCopyInto(out *Address)

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

func (*Address) DeepCopyObject

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

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

type AddressList

type AddressList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Items specifies the array of addresses.
	Items []Address `json:"items" yaml:"items"`
}

AddressList represents a list of Address objects.

func (*AddressList) DeepCopy

func (in *AddressList) DeepCopy() *AddressList

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

func (*AddressList) DeepCopyInto

func (in *AddressList) DeepCopyInto(out *AddressList)

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

func (*AddressList) DeepCopyObject

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

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

type AddressSpec

type AddressSpec struct {

	// Namespace specifies within which net namespace should vroute look for the link
	// to assign this address to. If this value is set to null or is undefined,
	// the control plane defaults to using the main host net namespace and looks
	// for the link to bind to in that namespace.
	Namespace string `json:"namespace" yaml:"namespace"`

	// Linkname specifies the host link that this address should be bound/assigned to.
	// If the link does not exist, then the status for this address will have
	// bound set to false.
	Linkname string `json:"linkName" yaml:"linkName"`

	// IP Specifies the IPSpec of the address for this object.
	IP IPSpec `json:"ip" yaml:"ip"`
}

AddressSpec represents the desired spec for an address.

func (*AddressSpec) DeepCopy

func (in *AddressSpec) DeepCopy() *AddressSpec

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

func (*AddressSpec) DeepCopyInto

func (in *AddressSpec) DeepCopyInto(out *AddressSpec)

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

type AddressStatus

type AddressStatus struct {

	// Bound notes if this address has been bound to a link on the host.
	Bound bool `json:"isBound" yaml:"isBound"`
}

AddressStatus specifies the status of an address.

func (*AddressStatus) DeepCopy

func (in *AddressStatus) DeepCopy() *AddressStatus

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

func (*AddressStatus) DeepCopyInto

func (in *AddressStatus) DeepCopyInto(out *AddressStatus)

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

type HardwareAddress

type HardwareAddress struct {
}

func (*HardwareAddress) DeepCopy

func (in *HardwareAddress) DeepCopy() *HardwareAddress

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

func (*HardwareAddress) DeepCopyInto

func (in *HardwareAddress) DeepCopyInto(out *HardwareAddress)

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

type IPSpec

type IPSpec struct {

	// Type specifies whether this address is IPv4 or IPv6. Can be set to either "IPv4"
	// or to "IPv6".
	Type string `json:"type" yaml:"type"`

	// Address specifies the actual IP address for the IPSpec. Should be in string
	// format and parseable by net.ParseIP().
	Address string `json:"address" yaml:"address"`
}

IPSpec represents an IP address that is either IPv4 or IPv6.

func (*IPSpec) DeepCopy

func (in *IPSpec) DeepCopy() *IPSpec

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

func (*IPSpec) DeepCopyInto

func (in *IPSpec) DeepCopyInto(out *IPSpec)

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

type Link struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this link object.
	Spec LinkSpec `json:"spec" yaml:"spec"`

	// Status is the current state of this link on the host.
	//
	// Should not be filled out by the user, will be filled/managed
	// by the server. Can be read by user at runtime.
	Status LinkStatus `json:"status" yaml:"status"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced Link represents a link that exists on the host.

func (*Link) DeepCopy

func (in *Link) DeepCopy() *Link

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

func (*Link) DeepCopyInto

func (in *Link) DeepCopyInto(out *Link)

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

func (*Link) DeepCopyObject

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

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

type LinkList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// +optional
	metav1.ListMeta

	// Items specifies the array of links.
	Items []Link `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced LinkList represents a list of Link objects.

func (*LinkList) DeepCopy

func (in *LinkList) DeepCopy() *LinkList

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

func (*LinkList) DeepCopyInto

func (in *LinkList) DeepCopyInto(out *LinkList)

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

func (*LinkList) DeepCopyObject

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

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

type LinkSpec

type LinkSpec struct {
	// Name specified the string name of this link.
	Name string `json:"name" yaml:"name"`

	// Type specifies the type that this link
	Type string `json:"type" yaml:"type"`

	// HWAddress specifies the hardware address for this link address.
	HWAddress HardwareAddress `json:"hardwareAddress" yaml:"hardwareAddress"`
}

LinkSpec represents the desired spec for a link.

func (*LinkSpec) DeepCopy

func (in *LinkSpec) DeepCopy() *LinkSpec

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

func (*LinkSpec) DeepCopyInto

func (in *LinkSpec) DeepCopyInto(out *LinkSpec)

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

type LinkStatus

type LinkStatus struct {
	// IsUp represents whether the link is up on the host or not.
	IsUp bool `json:"isUp" yaml:"isUp"`

	// Driver specifies what device driver created/maintains this link.
	Driver string `json:"driver" yaml:"driver"`
}

LinkStatus represents the status of the link.

func (*LinkStatus) DeepCopy

func (in *LinkStatus) DeepCopy() *LinkStatus

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

func (*LinkStatus) DeepCopyInto

func (in *LinkStatus) DeepCopyInto(out *LinkStatus)

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

type NATConfiguration

type NATConfiguration struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this node's NAT config.
	Spec NATConfigurationSpec `json:"spec" yaml:"spec"`

	Status NATConfigurationStatus `json:"status" yaml:"status"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced NATConfiguration describes a configuration for NAT masqurading on a system.

func (*NATConfiguration) DeepCopy

func (in *NATConfiguration) DeepCopy() *NATConfiguration

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

func (*NATConfiguration) DeepCopyInto

func (in *NATConfiguration) DeepCopyInto(out *NATConfiguration)

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

func (*NATConfiguration) DeepCopyObject

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

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

type NATConfigurationSpec

type NATConfigurationSpec struct {
}

func (*NATConfigurationSpec) DeepCopy

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

func (*NATConfigurationSpec) DeepCopyInto

func (in *NATConfigurationSpec) DeepCopyInto(out *NATConfigurationSpec)

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

type NATConfigurationStatus

type NATConfigurationStatus struct {
}

func (*NATConfigurationStatus) DeepCopy

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

func (*NATConfigurationStatus) DeepCopyInto

func (in *NATConfigurationStatus) DeepCopyInto(out *NATConfigurationStatus)

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

type Neighbor

type Neighbor struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this neighbor on the host ARP table.
	Spec NeighborSpec `json:"spec" yaml:"spec"`

	// Status is the current state of this neighbor on the host.
	//
	// Should not be filled out by the user, will be filled/managed
	// by the server. Can be read by user at runtime.
	Status NeighborStatus `json:"status" yaml:"status"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced Neighbor represents a neighbor in the local ARP table on the host.

func (*Neighbor) DeepCopy

func (in *Neighbor) DeepCopy() *Neighbor

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

func (*Neighbor) DeepCopyInto

func (in *Neighbor) DeepCopyInto(out *Neighbor)

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

func (*Neighbor) DeepCopyObject

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

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

type NeighborList

type NeighborList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// +optional
	metav1.ListMeta

	// Items represents the array of neighbors.
	Items []Neighbor `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced NeighborList represents a list of local neighbors.

func (*NeighborList) DeepCopy

func (in *NeighborList) DeepCopy() *NeighborList

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

func (*NeighborList) DeepCopyInto

func (in *NeighborList) DeepCopyInto(out *NeighborList)

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

func (*NeighborList) DeepCopyObject

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

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

type NeighborSpec

type NeighborSpec struct {
}

NeighborSpec represents the desired spec of a neighbor of the host.

func (*NeighborSpec) DeepCopy

func (in *NeighborSpec) DeepCopy() *NeighborSpec

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

func (*NeighborSpec) DeepCopyInto

func (in *NeighborSpec) DeepCopyInto(out *NeighborSpec)

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

type NeighborStatus

type NeighborStatus struct {
}

NeighborStatus specifies the status of this neighbor on the host.

func (*NeighborStatus) DeepCopy

func (in *NeighborStatus) DeepCopy() *NeighborStatus

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

func (*NeighborStatus) DeepCopyInto

func (in *NeighborStatus) DeepCopyInto(out *NeighborStatus)

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

type NetNamespaceSpec

type NetNamespaceSpec struct {
	// Id specifies the ID of the net namespace in the kernel.
	//
	// Defaults to being 'host', which specifies the host net namespace/
	//the namespace the control plane is running in.
	Id string `json:"id" yaml:"id"`
}

NetNamespaceSpec represents the desired/actual status for a net namespace on the host.

This object is usually generated by the server, should not be created by the user.

func (*NetNamespaceSpec) DeepCopy

func (in *NetNamespaceSpec) DeepCopy() *NetNamespaceSpec

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

func (*NetNamespaceSpec) DeepCopyInto

func (in *NetNamespaceSpec) DeepCopyInto(out *NetNamespaceSpec)

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

type Route

type Route struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this route.
	Spec RouteSpec `json:"spec" yaml:"spec"`

	// Status is the current state of this route on the host.
	//
	// Should not be filled out by the user, will be filled/managed
	// by the server. Can be read by user at runtime.
	Status RouteStatus `json:"status" yaml:"status"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced Route specifies a route on the host.

func (*Route) DeepCopy

func (in *Route) DeepCopy() *Route

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

func (*Route) DeepCopyInto

func (in *Route) DeepCopyInto(out *Route)

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

func (*Route) DeepCopyObject

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

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

type RouteSpec

type RouteSpec struct {
	Type string `json:"type" yaml:"type"`
}

func (*RouteSpec) DeepCopy

func (in *RouteSpec) DeepCopy() *RouteSpec

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

func (*RouteSpec) DeepCopyInto

func (in *RouteSpec) DeepCopyInto(out *RouteSpec)

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

type RouteStatus

type RouteStatus struct {
}

func (*RouteStatus) DeepCopy

func (in *RouteStatus) DeepCopy() *RouteStatus

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

func (*RouteStatus) DeepCopyInto

func (in *RouteStatus) DeepCopyInto(out *RouteStatus)

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

type RouteTable

type RouteTable struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// Standard object metadata.
	// Utilizes the Kubernetes metadata object spec for now.
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty"`

	// Spec is the desired spec of this route table.
	Spec RouteTableSpec `json:"spec" yaml:"spec"`

	// Status is the current state of this route table on the host.
	//
	// Should not be filled out by the user, will be filled/managed
	// by the server. Can be read by user at runtime.
	Status RouteTableStatus `json:"status" yaml:"status"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced RouteTable specifies a routing table located in the kernel.

func (*RouteTable) DeepCopy

func (in *RouteTable) DeepCopy() *RouteTable

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

func (*RouteTable) DeepCopyInto

func (in *RouteTable) DeepCopyInto(out *RouteTable)

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

func (*RouteTable) DeepCopyObject

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

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

type RouteTableList

type RouteTableList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`

	// +optional
	metav1.ListMeta

	// Items specifies the array of RouteTables.
	Items []RouteTable `json:"items" yaml:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true +k8s:deepcopy-gen=true +genclient +genclient:nonNamespaced RouteTableList specifies a list of RouteTables.

func (*RouteTableList) DeepCopy

func (in *RouteTableList) DeepCopy() *RouteTableList

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

func (*RouteTableList) DeepCopyInto

func (in *RouteTableList) DeepCopyInto(out *RouteTableList)

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

func (*RouteTableList) DeepCopyObject

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

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

type RouteTableSpec

type RouteTableSpec struct {
	// Name specifies the name of this routing table.
	Name string `json:"name" yaml:"name"`

	// Index specifies the index of this route table.
	Index uint8 `json:"index" yaml:"index"`
}

RouteTableSpec specifies the desired state of the route table.

func (*RouteTableSpec) DeepCopy

func (in *RouteTableSpec) DeepCopy() *RouteTableSpec

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

func (*RouteTableSpec) DeepCopyInto

func (in *RouteTableSpec) DeepCopyInto(out *RouteTableSpec)

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

type RouteTableStatus

type RouteTableStatus struct {
	// FoundOnBoot specifies if this route table was found at bootup.
	FoundOnBoot bool `json:"foundOnBoot" yaml:"foundOnBoot"`
}

RouteTableStatus specifies the current status of the routing table.

func (*RouteTableStatus) DeepCopy

func (in *RouteTableStatus) DeepCopy() *RouteTableStatus

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

func (*RouteTableStatus) DeepCopyInto

func (in *RouteTableStatus) DeepCopyInto(out *RouteTableStatus)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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