v1alpha1

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the apinet v1alpha1 API group +kubebuilder:object:generate=true +groupName=apinet.api.onmetal.de

Index

Constants

View Source
const (
	ReconcileRequestAnnotation = "reconcile.apinet.api.onmetal.de/requestedAt"

	// APINetletsGroup is the system rbac group all apinetlets are in.
	APINetletsGroup = "apinet.api.onmetal.de:system:apinetlets"

	// APINetletUserNamePrefix is the prefix all apinetlet users should have.
	APINetletUserNamePrefix = "apinet.api.onmetal.de:system:apinetlet:"
)

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "apinet.api.onmetal.de", 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

func APINetletCommonName

func APINetletCommonName(name string) string

APINetletCommonName constructs the common name for a certificate of an apinetlet user.

func NetworkConditionIndex

func NetworkConditionIndex(conditions []NetworkCondition, conditionType NetworkConditionType) int

func PublicIPConditionIndex

func PublicIPConditionIndex(conditions []PublicIPCondition, conditionType PublicIPConditionType) int

func SetNetworkCondition

func SetNetworkCondition(conditions *[]NetworkCondition, condition NetworkCondition)

func SetPublicIPCondition

func SetPublicIPCondition(conditions *[]PublicIPCondition, condition PublicIPCondition)

Types

type IP

type IP struct {
	netip.Addr `json:"-"`
}

IP is an IP address. +kubebuilder:validation:Type=string

func MustParseIP

func MustParseIP(s string) IP

func MustParseNewIP

func MustParseNewIP(s string) *IP

func NewIP

func NewIP(ip netip.Addr) IP

func NewIPPtr

func NewIPPtr(ip netip.Addr) *IP

func ParseIP

func ParseIP(s string) (IP, error)

func ParseNewIP

func ParseNewIP(s string) (*IP, error)

func PtrToIP

func PtrToIP(addr IP) *IP

func (*IP) DeepCopy

func (in *IP) DeepCopy() *IP

func (*IP) DeepCopyInto

func (in *IP) DeepCopyInto(out *IP)

func (IP) Family

func (i IP) Family() corev1.IPFamily

func (IP) GomegaString

func (i IP) GomegaString() string

func (*IP) IsValid

func (i *IP) IsValid() bool

func (*IP) IsZero

func (i *IP) IsZero() bool

func (IP) MarshalJSON

func (i IP) MarshalJSON() ([]byte, error)

func (IP) OpenAPISchemaFormat

func (_ IP) OpenAPISchemaFormat() string

func (IP) OpenAPISchemaType

func (_ IP) OpenAPISchemaType() []string

func (IP) ToUnstructured

func (i IP) ToUnstructured() interface{}

func (*IP) UnmarshalJSON

func (i *IP) UnmarshalJSON(b []byte) error

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 publicips API.

func (*Network) DeepCopy

func (in *Network) DeepCopy() *Network

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

func (*Network) DeepCopyInto

func (in *Network) DeepCopyInto(out *Network)

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

func (*Network) DeepCopyObject

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

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

type NetworkCondition

type NetworkCondition struct {
	Type    NetworkConditionType   `json:"type"`
	Status  corev1.ConditionStatus `json:"status"`
	Reason  string                 `json:"reason,omitempty"`
	Message string                 `json:"message,omitempty"`
}

func (*NetworkCondition) DeepCopy

func (in *NetworkCondition) DeepCopy() *NetworkCondition

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

func (*NetworkCondition) DeepCopyInto

func (in *NetworkCondition) DeepCopyInto(out *NetworkCondition)

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

type NetworkConditionType

type NetworkConditionType string
const (
	NetworkAllocated NetworkConditionType = "Allocated"
)

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 {
	// +kubebuilder:validation:Maximum=16777215
	// +kubebuilder:validation:Minimum=0
	// VNI is the requested network vni.
	// Pointer to distinguish between explicitly set and unset.
	VNI *int32 `json:"vni,omitempty"`
	// PeerVNIs are VNIs to peer with.
	PeerVNIs []int32 `json:"peerVNIs,omitempty"`
}

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 {
	// Conditions are the conditions of a network.
	Conditions []NetworkCondition `json:"conditions,omitempty"`
}

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 PublicIP

type PublicIP struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PublicIPSpec   `json:"spec,omitempty"`
	Status PublicIPStatus `json:"status,omitempty"`
}

PublicIP is the schema for the publicips API.

func (*PublicIP) DeepCopy

func (in *PublicIP) DeepCopy() *PublicIP

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

func (*PublicIP) DeepCopyInto

func (in *PublicIP) DeepCopyInto(out *PublicIP)

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

func (*PublicIP) DeepCopyObject

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

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

func (*PublicIP) IsAllocated

func (ip *PublicIP) IsAllocated() bool

type PublicIPCondition

type PublicIPCondition struct {
	Type    PublicIPConditionType  `json:"type"`
	Status  corev1.ConditionStatus `json:"status"`
	Reason  string                 `json:"reason,omitempty"`
	Message string                 `json:"message,omitempty"`
}

func (*PublicIPCondition) DeepCopy

func (in *PublicIPCondition) DeepCopy() *PublicIPCondition

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

func (*PublicIPCondition) DeepCopyInto

func (in *PublicIPCondition) DeepCopyInto(out *PublicIPCondition)

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

type PublicIPConditionType

type PublicIPConditionType string
const (
	PublicIPAllocated PublicIPConditionType = "Allocated"
)

type PublicIPList

type PublicIPList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []PublicIP `json:"items"`
}

PublicIPList contains a list of PublicIP.

func (*PublicIPList) DeepCopy

func (in *PublicIPList) DeepCopy() *PublicIPList

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

func (*PublicIPList) DeepCopyInto

func (in *PublicIPList) DeepCopyInto(out *PublicIPList)

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

func (*PublicIPList) DeepCopyObject

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

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

type PublicIPSpec

type PublicIPSpec struct {
	// IPFamily is the ip family of the public ip.
	IPFamily corev1.IPFamily `json:"ipFamily"`
	// IP is the ip of the public IP.
	// Pointer to distinguish between unset and explicit zero.
	IP *IP `json:"ip,omitempty"`
}

func (*PublicIPSpec) DeepCopy

func (in *PublicIPSpec) DeepCopy() *PublicIPSpec

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

func (*PublicIPSpec) DeepCopyInto

func (in *PublicIPSpec) DeepCopyInto(out *PublicIPSpec)

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

type PublicIPStatus

type PublicIPStatus struct {
	// Conditions are the conditions of a PublicIP.
	Conditions []PublicIPCondition `json:"conditions,omitempty"`
}

func (*PublicIPStatus) DeepCopy

func (in *PublicIPStatus) DeepCopy() *PublicIPStatus

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

func (*PublicIPStatus) DeepCopyInto

func (in *PublicIPStatus) DeepCopyInto(out *PublicIPStatus)

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

Jump to

Keyboard shortcuts

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