v1

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

Package v1 contains API Schema definitions for the storage v1 API group +kubebuilder:object:generate=true +groupName=storage.metal-stack.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "storage.metal-stack.io", Version: "v1"}

	// 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 Duros

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

	Spec   DurosSpec   `json:"spec,omitempty"`
	Status DurosStatus `json:"status,omitempty"`
}

Duros is the Schema for the Duros API +kubebuilder:object:root=true +kubebuilder:printcolumn:name="ProjectID",type=string,JSONPath=`.spec.metalProjectID` +kubebuilder:printcolumn:name="StorageClasses",type=string,JSONPath=`.spec.storageClasses`

func (*Duros) DeepCopy

func (in *Duros) DeepCopy() *Duros

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

func (*Duros) DeepCopyInto

func (in *Duros) DeepCopyInto(out *Duros)

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

func (*Duros) DeepCopyObject

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

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

type DurosList

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

DurosList contains a list of Duros

func (*DurosList) DeepCopy

func (in *DurosList) DeepCopy() *DurosList

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

func (*DurosList) DeepCopyInto

func (in *DurosList) DeepCopyInto(out *DurosList)

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

func (*DurosList) DeepCopyObject

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

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

type DurosSpec

type DurosSpec struct {
	// MetalProjectID is the projectID of this deployment
	MetalProjectID string `json:"metalProjectID,omitempty"`
	// StorageClasses defines what storageclasses should be deployed
	StorageClasses []StorageClass `json:"storageClasses,omitempty"`
}

DurosSpec defines the desired state of Duros

func (*DurosSpec) DeepCopy

func (in *DurosSpec) DeepCopy() *DurosSpec

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

func (*DurosSpec) DeepCopyInto

func (in *DurosSpec) DeepCopyInto(out *DurosSpec)

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

type DurosStatus

type DurosStatus struct {
	// SecretRef to the create JWT Token
	// TODO, this can be used to detect required key rotation
	SecretRef string `json:"secret,omitempty" description:"Reference to JWT Token generated on the duros storage side for this project"`
}

DurosStatus defines the observed state of Duros

func (*DurosStatus) DeepCopy

func (in *DurosStatus) DeepCopy() *DurosStatus

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

func (*DurosStatus) DeepCopyInto

func (in *DurosStatus) DeepCopyInto(out *DurosStatus)

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

type StorageClass

type StorageClass struct {
	Name         string `json:"name"`
	ReplicaCount int    `json:"replicas"`
	Compression  bool   `json:"compression"`
}

StorageClass defines the storageClass parameters

func (*StorageClass) DeepCopy

func (in *StorageClass) DeepCopy() *StorageClass

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

func (*StorageClass) DeepCopyInto

func (in *StorageClass) DeepCopyInto(out *StorageClass)

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