Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the vpc v1alpha1 API group +kubebuilder:object:generate=true +groupName=vpc.scaleway.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "vpc.scaleway.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 IPAMType ¶
type IPAMType string
+kubebuilder:validation:Enum=DHCP;Static IPAMType represents a type of IPAM
type NetworkInterface ¶
type NetworkInterface struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec NetworkInterfaceSpec `json:"spec,omitempty"` Status NetworkInterfaceStatus `json:"status,omitempty"` }
NetworkInterface is the Schema for the networkinterfaces API
func (*NetworkInterface) DeepCopy ¶
func (in *NetworkInterface) DeepCopy() *NetworkInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterface.
func (*NetworkInterface) DeepCopyInto ¶
func (in *NetworkInterface) DeepCopyInto(out *NetworkInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkInterface) DeepCopyObject ¶
func (in *NetworkInterface) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkInterfaceList ¶
type NetworkInterfaceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NetworkInterface `json:"items"` }
NetworkInterfaceList contains a list of NetworkInterface
func (*NetworkInterfaceList) DeepCopy ¶
func (in *NetworkInterfaceList) DeepCopy() *NetworkInterfaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceList.
func (*NetworkInterfaceList) DeepCopyInto ¶
func (in *NetworkInterfaceList) DeepCopyInto(out *NetworkInterfaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NetworkInterfaceList) DeepCopyObject ¶
func (in *NetworkInterfaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NetworkInterfaceSpec ¶
type NetworkInterfaceSpec struct { // ID is the ID of the NIC ID string `json:"id"` // NodeName is the name of the node the interface is attached to NodeName string `json:"nodeName"` // Address is the address of the interface // deprecated Address string `json:"address,omitempty"` }
NetworkInterfaceSpec defines the desired state of NetworkInterface
func (*NetworkInterfaceSpec) DeepCopy ¶
func (in *NetworkInterfaceSpec) DeepCopy() *NetworkInterfaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceSpec.
func (*NetworkInterfaceSpec) DeepCopyInto ¶
func (in *NetworkInterfaceSpec) DeepCopyInto(out *NetworkInterfaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NetworkInterfaceStatus ¶
type NetworkInterfaceStatus struct { // LinkName is the name of the Interface LinkName string `json:"linkName"` // MacAddress is the mac address of the interface MacAddress string `json:"macAddress"` // Address is the address of the interface Address string `json:"address,omitempty"` // ParentCIDR is the parent cidr of the Address ParentCIDR string `json:"parentCidr,omitempty"` }
NetworkInterfaceStatus defines the observed state of NetworkInterface
func (*NetworkInterfaceStatus) DeepCopy ¶
func (in *NetworkInterfaceStatus) DeepCopy() *NetworkInterfaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NetworkInterfaceStatus.
func (*NetworkInterfaceStatus) DeepCopyInto ¶
func (in *NetworkInterfaceStatus) DeepCopyInto(out *NetworkInterfaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateNetwork ¶
type PrivateNetwork struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PrivateNetworkSpec `json:"spec,omitempty"` Status PrivateNetworkStatus `json:"status,omitempty"` }
PrivateNetwork is the Schema for the privatenetworks API
func (*PrivateNetwork) DeepCopy ¶
func (in *PrivateNetwork) DeepCopy() *PrivateNetwork
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetwork.
func (*PrivateNetwork) DeepCopyInto ¶
func (in *PrivateNetwork) DeepCopyInto(out *PrivateNetwork)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrivateNetwork) DeepCopyObject ¶
func (in *PrivateNetwork) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PrivateNetworkIPAM ¶
type PrivateNetworkIPAM struct { Type IPAMType `json:"type"` Static *PrivateNetworkIPAMStatic `json:"static,omitempty"` }
PrivateNetworkIPAM defines the IPAM for the PrivateNetwork
func (*PrivateNetworkIPAM) DeepCopy ¶
func (in *PrivateNetworkIPAM) DeepCopy() *PrivateNetworkIPAM
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkIPAM.
func (*PrivateNetworkIPAM) DeepCopyInto ¶
func (in *PrivateNetworkIPAM) DeepCopyInto(out *PrivateNetworkIPAM)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateNetworkIPAMStatic ¶
type PrivateNetworkIPAMStatic struct { // CIDR represents the CIDR associated to this private network CIDR string `json:"cidr"` // AvailableRanges allows to restrict which ranges of addresses should be used when choosing an IP address // Defaults to the whole CIDR AvailableRanges []string `json:"availableRanges,omitempty"` }
func (*PrivateNetworkIPAMStatic) DeepCopy ¶
func (in *PrivateNetworkIPAMStatic) DeepCopy() *PrivateNetworkIPAMStatic
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkIPAMStatic.
func (*PrivateNetworkIPAMStatic) DeepCopyInto ¶
func (in *PrivateNetworkIPAMStatic) DeepCopyInto(out *PrivateNetworkIPAMStatic)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateNetworkList ¶
type PrivateNetworkList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []PrivateNetwork `json:"items"` }
PrivateNetworkList contains a list of PrivateNetwork
func (*PrivateNetworkList) DeepCopy ¶
func (in *PrivateNetworkList) DeepCopy() *PrivateNetworkList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkList.
func (*PrivateNetworkList) DeepCopyInto ¶
func (in *PrivateNetworkList) DeepCopyInto(out *PrivateNetworkList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PrivateNetworkList) DeepCopyObject ¶
func (in *PrivateNetworkList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PrivateNetworkRoute ¶
PrivateNetworkRoute defines a route from the PrivateNetwork
func (*PrivateNetworkRoute) DeepCopy ¶
func (in *PrivateNetworkRoute) DeepCopy() *PrivateNetworkRoute
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkRoute.
func (*PrivateNetworkRoute) DeepCopyInto ¶
func (in *PrivateNetworkRoute) DeepCopyInto(out *PrivateNetworkRoute)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateNetworkSpec ¶
type PrivateNetworkSpec struct { // ID is the ID of the PrivateNetwork ID string `json:"id"` // Zone is the Zone of the PrivateNetwork // Will default to the SCW_DEFAULT_ZONE env variable // +optional Zone string `json:"zone,omitempty"` IPAM *PrivateNetworkIPAM `json:"ipam,omitempty"` // Routes are the routes injected in the cluster to this PrivateNetwork // +optional Routes []PrivateNetworkRoute `json:"routes,omitempty"` // Masquerade represents whether the private network needs to be masqueraded // +optional // +kubebuilder:default:=true Masquerade bool `json:"masquerade,omitempty"` // CIDR is the CIDR of the PrivateNetwork // deprecated CIDR string `json:"cidr,omitempty"` }
PrivateNetworkSpec defines the desired state of PrivateNetwork
func (*PrivateNetworkSpec) DeepCopy ¶
func (in *PrivateNetworkSpec) DeepCopy() *PrivateNetworkSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkSpec.
func (*PrivateNetworkSpec) DeepCopyInto ¶
func (in *PrivateNetworkSpec) DeepCopyInto(out *PrivateNetworkSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrivateNetworkStatus ¶
type PrivateNetworkStatus struct { }
PrivateNetworkStatus defines the observed state of PrivateNetwork
func (*PrivateNetworkStatus) DeepCopy ¶
func (in *PrivateNetworkStatus) DeepCopy() *PrivateNetworkStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrivateNetworkStatus.
func (*PrivateNetworkStatus) DeepCopyInto ¶
func (in *PrivateNetworkStatus) DeepCopyInto(out *PrivateNetworkStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.