Help us shape the future of Go! Take the 2026 Go Developer Survey

v1alpha1

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the ocs v1alpha1 API group +kubebuilder:object:generate=true +groupName=ocs.openshift.io

Index

Constants

View Source
const (
	StorageClassRequestFinalizer  = "StorageClassRequest.ocs.openshift.io"
	StorageClassRequestAnnotation = "ocs.openshift.io.storageclassrequest"
	CephFileSystemDataPoolLabel   = "cephfilesystem.datapool.name"
)

Variables

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

type CephResourcesSpec struct {
	// Kind describes the kind of created ceph resource
	Kind string `json:"kind,omitempty"`
	// Name describes the name of created ceph resource
	Name string `json:"name,omitempty"`
	// Phase describes the phase of created ceph resource
	Phase string `json:"status,omitempty"`
	// CephClients holds the name of CephClients mapped to the created ceph resource
	CephClients map[string]string `json:"cephClients,omitempty"`
}

CephResourcesSpec hold details of created ceph resources required for external storage

func (*CephResourcesSpec) DeepCopy

func (in *CephResourcesSpec) DeepCopy() *CephResourcesSpec

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

func (*CephResourcesSpec) DeepCopyInto

func (in *CephResourcesSpec) DeepCopyInto(out *CephResourcesSpec)

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

type StorageClassRequest added in v0.4.13

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

	Spec   StorageClassRequestSpec   `json:"spec"`
	Status StorageClassRequestStatus `json:"status,omitempty"`
}

StorageClassRequest is the Schema for the StorageClassRequests API

func (*StorageClassRequest) DeepCopy added in v0.4.13

func (in *StorageClassRequest) DeepCopy() *StorageClassRequest

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

func (*StorageClassRequest) DeepCopyInto added in v0.4.13

func (in *StorageClassRequest) DeepCopyInto(out *StorageClassRequest)

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

func (*StorageClassRequest) DeepCopyObject added in v0.4.13

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

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

type StorageClassRequestList added in v0.4.13

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

StorageClassRequestList contains a list of StorageClassRequest

func (*StorageClassRequestList) DeepCopy added in v0.4.13

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

func (*StorageClassRequestList) DeepCopyInto added in v0.4.13

func (in *StorageClassRequestList) DeepCopyInto(out *StorageClassRequestList)

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

func (*StorageClassRequestList) DeepCopyObject added in v0.4.13

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

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

type StorageClassRequestSpec added in v0.4.13

type StorageClassRequestSpec struct {
	//+kubebuilder:validation:Enum=blockpool;sharedfilesystem
	Type             string `json:"type"`
	EncryptionMethod string `json:"encryptionMethod,omitempty"`
	StorageProfile   string `json:"storageProfile,omitempty"`
}

StorageClassRequestSpec defines the desired state of StorageClassRequest

func (*StorageClassRequestSpec) DeepCopy added in v0.4.13

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

func (*StorageClassRequestSpec) DeepCopyInto added in v0.4.13

func (in *StorageClassRequestSpec) DeepCopyInto(out *StorageClassRequestSpec)

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

type StorageClassRequestState added in v0.4.13

type StorageClassRequestState string
const (
	// StorageClassRequestInitializing represents Initializing state of StorageClassRequest
	StorageClassRequestInitializing StorageClassRequestState = "Initializing"
	// StorageClassRequestValidating represents Validating state of StorageClassRequest
	StorageClassRequestValidating StorageClassRequestState = "Validating"
	// StorageClassRequestFailed represents Failed state of StorageClassRequest
	StorageClassRequestFailed StorageClassRequestState = "Failed"
	// StorageClassRequestCreating represents Configuring state of StorageClassRequest
	StorageClassRequestCreating StorageClassRequestState = "Creating"
	// StorageClassRequestConfiguring represents Configuring state of StorageClassRequest
	StorageClassRequestConfiguring StorageClassRequestState = "Configuring"
	// StorageClassRequestReady represents Ready state of StorageClassRequest
	StorageClassRequestReady StorageClassRequestState = "Ready"
	// StorageClassRequestDeleting represents Deleting state of StorageClassRequest
	StorageClassRequestDeleting StorageClassRequestState = "Deleting"
)

type StorageClassRequestStatus added in v0.4.13

type StorageClassRequestStatus struct {
	Phase StorageClassRequestState `json:"phase,omitempty"`
	// CephResources provide details of created ceph resources required for external storage
	CephResources []*CephResourcesSpec `json:"cephResources,omitempty"`
}

StorageClassRequestStatus defines the observed state of StorageClassRequest

func (*StorageClassRequestStatus) DeepCopy added in v0.4.13

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

func (*StorageClassRequestStatus) DeepCopyInto added in v0.4.13

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

type StorageConsumer

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

	Spec   StorageConsumerSpec   `json:"spec,omitempty"`
	Status StorageConsumerStatus `json:"status,omitempty"`
}

StorageConsumer is the Schema for the storageconsumers API

func (*StorageConsumer) DeepCopy

func (in *StorageConsumer) DeepCopy() *StorageConsumer

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

func (*StorageConsumer) DeepCopyInto

func (in *StorageConsumer) DeepCopyInto(out *StorageConsumer)

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

func (*StorageConsumer) DeepCopyObject

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

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

type StorageConsumerList

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

StorageConsumerList contains a list of StorageConsumer

func (*StorageConsumerList) DeepCopy

func (in *StorageConsumerList) DeepCopy() *StorageConsumerList

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

func (*StorageConsumerList) DeepCopyInto

func (in *StorageConsumerList) DeepCopyInto(out *StorageConsumerList)

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

func (*StorageConsumerList) DeepCopyObject

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

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

type StorageConsumerSpec

type StorageConsumerSpec struct {
	// Capacity is the total quota size allocated to a consumer.
	Capacity resource.Quantity `json:"capacity"`

	// Enable flag ignores a reconcile if set to false
	Enable bool `json:"enable,omitempty"`
}

StorageConsumerSpec defines the desired state of StorageConsumer

func (*StorageConsumerSpec) DeepCopy

func (in *StorageConsumerSpec) DeepCopy() *StorageConsumerSpec

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

func (*StorageConsumerSpec) DeepCopyInto

func (in *StorageConsumerSpec) DeepCopyInto(out *StorageConsumerSpec)

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

type StorageConsumerState

type StorageConsumerState string

StorageConsumerState represent a StorageConsumer's state

const (
	// StorageConsumerStateReady represents Ready state of StorageConsumer
	StorageConsumerStateReady StorageConsumerState = "Ready"
	// StorageConsumerStateConfiguring represents Configuring state of StorageConsumer
	StorageConsumerStateConfiguring StorageConsumerState = "Configuring"
	// StorageConsumerStateDeleting represents Deleting state of StorageConsumer
	StorageConsumerStateDeleting StorageConsumerState = "Deleting"
	// StorageConsumerStateFailed represents Failed state of StorageConsumer
	StorageConsumerStateFailed StorageConsumerState = "Failed"
	// StorageConsumerStateDisabled represents Disabled state of StorageConsumer
	StorageConsumerStateDisabled StorageConsumerState = "Disabled"
)

type StorageConsumerStatus

type StorageConsumerStatus struct {
	// State describes the state of StorageConsumer
	State StorageConsumerState `json:"state,omitempty"`
	// GrantedCapacity holds granted capacity value for the consumer
	GrantedCapacity resource.Quantity `json:"grantedCapacity,omitempty"`
	// CephResources provide details of created ceph resources required for external storage
	CephResources []*CephResourcesSpec `json:"cephResources,omitempty"`
	// Timestamp of last heartbeat received from consumer
	LastHeartbeat metav1.Time `json:"lastHeartbeat,omitempty"`
}

StorageConsumerStatus defines the observed state of StorageConsumer

func (*StorageConsumerStatus) DeepCopy

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

func (*StorageConsumerStatus) DeepCopyInto

func (in *StorageConsumerStatus) DeepCopyInto(out *StorageConsumerStatus)

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