v1alpha1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

View Source
const (
	ImageStateValid    = "Valid"
	ImageStateInvalid  = "Invalid"
	RegionStateReady   = "Ready"
	RegionStatePending = "Pending"
	RegionStateError   = "Error"
)
View Source
const (
	PrivacyShared     = "shared"
	PrivacyHypervisor = "hypervisor"
	PrivacyCluster    = "cluster"
)
View Source
const (
	MachinePoolStateReady   = "Ready"
	MachinePoolStatePending = "Pending"
	MachinePoolStateError   = "Error"
	MachinePoolStateOffline = "Offline"
)

Variables

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

This section is empty.

Types

type AvailabilityZoneQuantity added in v0.0.4

type AvailabilityZoneQuantity struct {
	// AvailabilityZone is the name of the availability zone
	AvailabilityZone string `json:"availabilityZone"`
	// Classes defines a list of machine classes and their corresponding quantities
	Classes []MachineClassQuantity `json:"classes"`
}

AvailabilityZoneQuantity defines the quantity of available MachineClasses in a given AZ

func (*AvailabilityZoneQuantity) DeepCopy added in v0.0.4

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

func (*AvailabilityZoneQuantity) DeepCopyInto added in v0.0.4

func (in *AvailabilityZoneQuantity) DeepCopyInto(out *AvailabilityZoneQuantity)

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

type Capability added in v0.0.4

type Capability struct {
	// Name is the name of the capability
	Name string `json:"name"`
	// Type defines the type of the capability
	Type string `json:"type"`
	// Value is the effective value of the capability
	Value string `json:"value"`
}

Capability describes a single feature of a MachineClass

func (*Capability) DeepCopy added in v0.0.4

func (in *Capability) DeepCopy() *Capability

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

func (*Capability) DeepCopyInto added in v0.0.4

func (in *Capability) DeepCopyInto(out *Capability)

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

type Hash added in v0.0.4

type Hash struct {
	// Algorithm indicates the algorithm with which the hash should be computed
	Algorithm string `json:"algorithm"`
	// Value is the computed hash value
	Value string `json:"value"`
}

Hash describes a hash value and it's corresponding algorithm

func (*Hash) DeepCopy added in v0.0.4

func (in *Hash) DeepCopy() *Hash

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

func (*Hash) DeepCopyInto added in v0.0.4

func (in *Hash) DeepCopyInto(out *Hash)

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

type HashStatus added in v0.0.4

type HashStatus struct {
	Name string `json:"name"`
	Hash string `json:"hash"`
}

func (*HashStatus) DeepCopy added in v0.0.4

func (in *HashStatus) DeepCopy() *HashStatus

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

func (*HashStatus) DeepCopyInto added in v0.0.4

func (in *HashStatus) DeepCopyInto(out *HashStatus)

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

type Image

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

	Spec   ImageSpec   `json:"spec,omitempty"`
	Status ImageStatus `json:"status,omitempty"`
}

Image is the Schema for the images API

func (*Image) DeepCopy

func (in *Image) DeepCopy() *Image

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

func (*Image) DeepCopyInto

func (in *Image) DeepCopyInto(out *Image)

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

func (*Image) DeepCopyObject

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

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

type ImageList

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

ImageList contains a list of Image

func (*ImageList) DeepCopy

func (in *ImageList) DeepCopy() *ImageList

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

func (*ImageList) DeepCopyInto

func (in *ImageList) DeepCopyInto(out *ImageList)

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

func (*ImageList) DeepCopyObject

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

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

type ImageSpec

type ImageSpec struct {
	// Type specifies the type of the image
	Type string `json:"type,omitempty"`
	// Maturity defines the manutiry of an image. It indicates whether this image is e.g. a stable or preview version.
	Maturity string `json:"maturity"`
	// ExpirationTime defines when the support for this image will expire
	ExpirationTime metav1.Time `json:"expirationTime,omitempty"`
	// OS defines the operating system name of the image
	OS string `json:"os"`
	// Version defines the operating system version
	Version string `json:"version"`
	// Source defines the source artefacts and their corresponding location
	Source []SourceAttribute `json:"source"`
}

ImageSpec defines the desired state of Image

func (*ImageSpec) DeepCopy

func (in *ImageSpec) DeepCopy() *ImageSpec

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

func (*ImageSpec) DeepCopyInto

func (in *ImageSpec) DeepCopyInto(out *ImageSpec)

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

type ImageStatus

type ImageStatus struct {
	common.StateFields `json:",inline"`
	// Hashes lists all hashes for all included artefacts
	Hashes []HashStatus `json:"hashes,omitempty"`
	// Regions indicates the availability of the image in the corresponding regions
	Regions []RegionState `json:"regions,omitempty"`
}

ImageStatus defines the observed state of Image

func (*ImageStatus) DeepCopy

func (in *ImageStatus) DeepCopy() *ImageStatus

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

func (*ImageStatus) DeepCopyInto

func (in *ImageStatus) DeepCopyInto(out *ImageStatus)

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

type MachineClass added in v0.0.4

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

	Spec   MachineClassSpec   `json:"spec,omitempty"`
	Status MachineClassStatus `json:"status,omitempty"`
}

MachineClass is the Schema for the machineclasses API

func (*MachineClass) DeepCopy added in v0.0.4

func (in *MachineClass) DeepCopy() *MachineClass

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

func (*MachineClass) DeepCopyInto added in v0.0.4

func (in *MachineClass) DeepCopyInto(out *MachineClass)

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

func (*MachineClass) DeepCopyObject added in v0.0.4

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

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

type MachineClassList added in v0.0.4

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

MachineClassList contains a list of MachineClass

func (*MachineClassList) DeepCopy added in v0.0.4

func (in *MachineClassList) DeepCopy() *MachineClassList

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

func (*MachineClassList) DeepCopyInto added in v0.0.4

func (in *MachineClassList) DeepCopyInto(out *MachineClassList)

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

func (*MachineClassList) DeepCopyObject added in v0.0.4

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

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

type MachineClassQuantity added in v0.0.4

type MachineClassQuantity struct {
	// Name is the name of the machine class quantity
	Name string `json:"name"`
	// Quantity is an absolut number of the available machine class
	// +kubebuilder:validation:Minimum:=0
	Quantity int `json:"quantity"`
}

MachineClassQuantity defines the quantity of a given MachineClass

func (*MachineClassQuantity) DeepCopy added in v0.0.4

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

func (*MachineClassQuantity) DeepCopyInto added in v0.0.4

func (in *MachineClassQuantity) DeepCopyInto(out *MachineClassQuantity)

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

type MachineClassSpec added in v0.0.4

type MachineClassSpec struct {
	// Capabilities describes the features of the MachineClass
	Capabilities []Capability `json:"capabilities"`
}

MachineClassSpec defines the desired state of MachineClass

func (*MachineClassSpec) DeepCopy added in v0.0.4

func (in *MachineClassSpec) DeepCopy() *MachineClassSpec

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

func (*MachineClassSpec) DeepCopyInto added in v0.0.4

func (in *MachineClassSpec) DeepCopyInto(out *MachineClassSpec)

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

type MachineClassStatus added in v0.0.4

type MachineClassStatus struct {
	// Availability describes the regions and zones where this MachineClass is available
	Availability common.Availability `json:"availability,omitempty"`
}

MachineClassStatus defines the observed state of MachineClass

func (*MachineClassStatus) DeepCopy added in v0.0.4

func (in *MachineClassStatus) DeepCopy() *MachineClassStatus

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

func (*MachineClassStatus) DeepCopyInto added in v0.0.4

func (in *MachineClassStatus) DeepCopyInto(out *MachineClassStatus)

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

type MachinePool added in v0.0.4

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

	Spec   MachinePoolSpec   `json:"spec,omitempty"`
	Status MachinePoolStatus `json:"status,omitempty"`
}

MachinePool is the Schema for the machinepools API

func (*MachinePool) DeepCopy added in v0.0.4

func (in *MachinePool) DeepCopy() *MachinePool

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

func (*MachinePool) DeepCopyInto added in v0.0.4

func (in *MachinePool) DeepCopyInto(out *MachinePool)

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

func (*MachinePool) DeepCopyObject added in v0.0.4

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

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

type MachinePoolList added in v0.0.4

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

MachinePoolList contains a list of MachinePool

func (*MachinePoolList) DeepCopy added in v0.0.4

func (in *MachinePoolList) DeepCopy() *MachinePoolList

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

func (*MachinePoolList) DeepCopyInto added in v0.0.4

func (in *MachinePoolList) DeepCopyInto(out *MachinePoolList)

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

func (*MachinePoolList) DeepCopyObject added in v0.0.4

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

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

type MachinePoolSpec added in v0.0.4

type MachinePoolSpec struct {
	// Region defines the region where this machine pool is available
	Region string `json:"region,omitempty"`
	// Privacy indicates the privacy scope of the machine pool
	Privacy string `json:"privacy"`
	// Capacity defines the quantity of this machine pool per availability zone
	Capacity []AvailabilityZoneQuantity `json:"capacity"`
}

MachinePoolSpec defines the desired state of MachinePool

func (*MachinePoolSpec) DeepCopy added in v0.0.4

func (in *MachinePoolSpec) DeepCopy() *MachinePoolSpec

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

func (*MachinePoolSpec) DeepCopyInto added in v0.0.4

func (in *MachinePoolSpec) DeepCopyInto(out *MachinePoolSpec)

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

type MachinePoolStatus added in v0.0.4

type MachinePoolStatus struct {
	common.StateFields `json:",inline"`
	Used               AvailabilityZoneQuantity `json:"used"`
}

MachinePoolStatus defines the observed state of MachinePool

func (*MachinePoolStatus) DeepCopy added in v0.0.4

func (in *MachinePoolStatus) DeepCopy() *MachinePoolStatus

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

func (*MachinePoolStatus) DeepCopyInto added in v0.0.4

func (in *MachinePoolStatus) DeepCopyInto(out *MachinePoolStatus)

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

type RegionState added in v0.0.4

type RegionState struct {
	Name               string `json:"name"`
	common.StateFields `json:",inline"`
}

func (*RegionState) DeepCopy added in v0.0.4

func (in *RegionState) DeepCopy() *RegionState

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

func (*RegionState) DeepCopyInto added in v0.0.4

func (in *RegionState) DeepCopyInto(out *RegionState)

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

type SSHPublicKey added in v0.0.4

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

	Spec   SSHPublicKeySpec   `json:"spec,omitempty"`
	Status SSHPublicKeyStatus `json:"status,omitempty"`
}

SSHPublicKey is the Schema for the sshpublickeys API

func (*SSHPublicKey) DeepCopy added in v0.0.4

func (in *SSHPublicKey) DeepCopy() *SSHPublicKey

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

func (*SSHPublicKey) DeepCopyInto added in v0.0.4

func (in *SSHPublicKey) DeepCopyInto(out *SSHPublicKey)

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

func (*SSHPublicKey) DeepCopyObject added in v0.0.4

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

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

type SSHPublicKeyList added in v0.0.4

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

SSHPublicKeyList contains a list of SSHPublicKey

func (*SSHPublicKeyList) DeepCopy added in v0.0.4

func (in *SSHPublicKeyList) DeepCopy() *SSHPublicKeyList

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

func (*SSHPublicKeyList) DeepCopyInto added in v0.0.4

func (in *SSHPublicKeyList) DeepCopyInto(out *SSHPublicKeyList)

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

func (*SSHPublicKeyList) DeepCopyObject added in v0.0.4

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

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

type SSHPublicKeySpec added in v0.0.4

type SSHPublicKeySpec struct {
	// SSHPublicKey is the SSH public key string
	SSHPublicKey string `json:"sshPublicKey"`
	// Description describes the purpose of the ssh key
	Description string `json:"description,omitempty"`
	// ExpirationDate indicates until when this public key is valid
	ExpirationDate metav1.Time `json:"expirationDate,omitempty"`
}

SSHPublicKeySpec defines the desired state of SSHPublicKey

func (*SSHPublicKeySpec) DeepCopy added in v0.0.4

func (in *SSHPublicKeySpec) DeepCopy() *SSHPublicKeySpec

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

func (*SSHPublicKeySpec) DeepCopyInto added in v0.0.4

func (in *SSHPublicKeySpec) DeepCopyInto(out *SSHPublicKeySpec)

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

type SSHPublicKeyStatus added in v0.0.4

type SSHPublicKeyStatus struct {
	common.StateFields `json:",inline"`
	// FingerPrint is the finger print of the ssh public key
	FingerPrint string `json:"fingerPrint,omitempty"`
	// KeyLength is the byte length of the ssh key
	// +kubebuilder:validation:Minimum:=0
	KeyLength int `json:"keyLength,omitempty"`
	// Algorithm is the algorithm used to generate the ssh key
	Algorithm string `json:"algorithm,omitempty"`
	// PublicKey is the PEM encoded public key
	PublicKey string `json:"publicKey,omitempty"`
}

SSHPublicKeyStatus defines the observed state of SSHPublicKey

func (*SSHPublicKeyStatus) DeepCopy added in v0.0.4

func (in *SSHPublicKeyStatus) DeepCopy() *SSHPublicKeyStatus

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

func (*SSHPublicKeyStatus) DeepCopyInto added in v0.0.4

func (in *SSHPublicKeyStatus) DeepCopyInto(out *SSHPublicKeyStatus)

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

type SourceAttribute added in v0.0.4

type SourceAttribute struct {
	// Name defines the name of a source element
	Name string `json:"name"`
	// ImageName defines the name of a referred image
	ImageName string `json:"imageName,omitempty"`
	// URL defines the location of the image artefact
	URL string `json:"url,omitempty"`
	// CmdLine defines a Kernel boot command
	CmdLine string `json:"cmdLine,omitempty"`
	// Hash is the computed hash value of the artefacts content
	Hash *Hash `json:"hash,omitempty"`
}

SourceAttribute describes the source components of an Image

func (*SourceAttribute) DeepCopy added in v0.0.4

func (in *SourceAttribute) DeepCopy() *SourceAttribute

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

func (*SourceAttribute) DeepCopyInto added in v0.0.4

func (in *SourceAttribute) DeepCopyInto(out *SourceAttribute)

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