Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the network v1alpha1 API group +kubebuilder:object:generate=true +groupName=cloud.spaceship.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "cloud.spaceship.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge struct { Name string `json:"name"` Mtu int `json:"mtu,omitempty"` Ports []Port `json:"ports,omitempty"` }
Linux bridge
func (*Bridge) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bridge.
func (*Bridge) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Masquerade ¶
type Masquerade struct { Enabled bool `json:"enabled"` Source string `json:"source"` Ignore []string `json:"ignore,omitempty"` Bridge string `json:"bridge"` EgressNetwork string `json:"egressnetwork,omitempty"` }
Masquerade virtual machine traffic
func (*Masquerade) DeepCopy ¶
func (in *Masquerade) DeepCopy() *Masquerade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Masquerade.
func (*Masquerade) DeepCopyInto ¶
func (in *Masquerade) DeepCopyInto(out *Masquerade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Network ¶
type Network struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkSpec `json:"spec,omitempty"` Status NetworkStatus `json:"status,omitempty"` }
Network is the Schema for the networks API
func (*Network) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Network.
func (*Network) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Network) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkAttachment ¶
type NetworkAttachment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkAttachmentSpec `json:"spec,omitempty"` Status NetworkAttachmentStatus `json:"status,omitempty"` }
Network is the Schema for the networks API
func (*NetworkAttachment) DeepCopy ¶
func (in *NetworkAttachment) DeepCopy() *NetworkAttachment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkAttachment.
func (*NetworkAttachment) DeepCopyInto ¶
func (in *NetworkAttachment) DeepCopyInto(out *NetworkAttachment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkAttachment) DeepCopyObject ¶
func (in *NetworkAttachment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkAttachmentList ¶
type NetworkAttachmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NetworkAttachment `json:"items"` }
NetworkList contains a list of Network
func (*NetworkAttachmentList) DeepCopy ¶
func (in *NetworkAttachmentList) DeepCopy() *NetworkAttachmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkAttachmentList.
func (*NetworkAttachmentList) DeepCopyInto ¶
func (in *NetworkAttachmentList) DeepCopyInto(out *NetworkAttachmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkAttachmentList) DeepCopyObject ¶
func (in *NetworkAttachmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkAttachmentSpec ¶
type NetworkAttachmentSpec struct { Bridge []Bridge `json:"bridge"` IpMasq Masquerade `json:"ipMasq,omitempty"` Routes []Route `json:"routes,omitempty"` NodeName string `json:"nodeName"` NodeSelectors []metav1.LabelSelector `json:"nodeSelectors,omitempty"` }
NetworkSpec defines the desired state of Network
func (*NetworkAttachmentSpec) DeepCopy ¶
func (in *NetworkAttachmentSpec) DeepCopy() *NetworkAttachmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkAttachmentSpec.
func (*NetworkAttachmentSpec) DeepCopyInto ¶
func (in *NetworkAttachmentSpec) DeepCopyInto(out *NetworkAttachmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkAttachmentStatus ¶
type NetworkAttachmentStatus struct { }
NetworkStatus defines the observed state of Network
func (*NetworkAttachmentStatus) DeepCopy ¶
func (in *NetworkAttachmentStatus) DeepCopy() *NetworkAttachmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkAttachmentStatus.
func (*NetworkAttachmentStatus) DeepCopyInto ¶
func (in *NetworkAttachmentStatus) DeepCopyInto(out *NetworkAttachmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkList ¶
type NetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Network `json:"items"` }
NetworkList contains a list of Network
func (*NetworkList) DeepCopy ¶
func (in *NetworkList) DeepCopy() *NetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkList.
func (*NetworkList) DeepCopyInto ¶
func (in *NetworkList) DeepCopyInto(out *NetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkList) DeepCopyObject ¶
func (in *NetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkSpec ¶
type NetworkSpec struct { Bridge []Bridge `json:"bridge"` IpMasq Masquerade `json:"ipMasq,omitempty"` Routes []Route `json:"routes,omitempty"` NodeSelectors []metav1.LabelSelector `json:"nodeSelectors,omitempty"` }
NetworkSpec defines the desired state of Network
func (*NetworkSpec) DeepCopy ¶
func (in *NetworkSpec) DeepCopy() *NetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkSpec.
func (*NetworkSpec) DeepCopyInto ¶
func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkStatus ¶
type NetworkStatus struct { }
NetworkStatus defines the observed state of Network
func (*NetworkStatus) DeepCopy ¶
func (in *NetworkStatus) DeepCopy() *NetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkStatus.
func (*NetworkStatus) DeepCopyInto ¶
func (in *NetworkStatus) DeepCopyInto(out *NetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Port ¶
type Port struct { Name string `json:"name"` Vlan int `json:"vlan,omitempty"` Mtu int `json:"mtu,omitempty"` }
func (*Port) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Port.
func (*Port) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
type Route struct { Via string `json:"via"` Destination string `json:"destination"` Source string `json:"source,omitempty"` }
Static routes The Via parameter could be ip address or device name.
func (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.