v1alpha1

package
v0.0.0-...-1562095 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: dao.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ConditionStatus

type ConditionStatus string

ConditionStatus is a typed value to represent various condition statuses

const (
	// "ConditionTrue" means the storage is in the StorageConditionType
	ConditionTrue ConditionStatus = "True"

	// "ConditionFalse" means a storage is not in the StorageConditionType
	ConditionFalse ConditionStatus = "False"

	// "ConditionUnknown" means controller can't decide if storage
	// is in the StorageConditionType or not.
	ConditionUnknown ConditionStatus = "Unknown"
)

These are valid condition statuses.

type Storage

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

	Spec   StorageSpec   `json:"spec"`
	Status StorageStatus `json:"status,omitempty"`
}

func (*Storage) DeepCopy

func (in *Storage) DeepCopy() *Storage

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

func (*Storage) DeepCopyInto

func (in *Storage) DeepCopyInto(out *Storage)

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

func (*Storage) DeepCopyObject

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

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

type StorageCondition

type StorageCondition struct {
	// Type is the type of the condition.
	Type StorageConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=StorageConditionType"`

	// Status is the status of the condition.
	// Can be True, False, Unknown.
	Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=ConditionStatus"`

	// Last time we probed the condition.
	// +optional
	LastObservedTime metav1.Time `json:"lastObservedTime,omitempty" protobuf:"bytes,3,opt,name=lastObservedTime"`

	// Last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`

	// Unique, one-word, CamelCase reason for the condition's last transition.
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`

	// Human-readable message indicating details about last transition.
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}

StorageCondition contains details for the current condition of this storage.

func (*StorageCondition) DeepCopy

func (in *StorageCondition) DeepCopy() *StorageCondition

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

func (*StorageCondition) DeepCopyInto

func (in *StorageCondition) DeepCopyInto(out *StorageCondition)

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

type StorageConditionType

type StorageConditionType string

StorageConditionType is a valid value for StorageCondition.Type

const (
	// ResourcesCreated indicates whether all resources of the storage
	// are created.
	ResourcesCreated StorageConditionType = "ResourcesCreated"

	// PVCBound means the PVC associated with this storage
	// is bound against its associated PV
	PVCBound StorageConditionType = "PVCBound"

	// NodeSelected represents status if any node was selected to attach
	// this storage
	NodeSelected StorageConditionType = "NodeSelected"

	// NodeAvailable represents the status if the selected node is available
	NodeAvailable StorageConditionType = "NodeAvailable"

	// VolumeResize represents the status when this storage is undergoing
	// a resize operation
	VolumeResize StorageConditionType = "VolumeResize"
)

These are valid conditions of storage.

type StorageList

type StorageList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Storage `json:"items"`
}

func (*StorageList) DeepCopy

func (in *StorageList) DeepCopy() *StorageList

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

func (*StorageList) DeepCopyInto

func (in *StorageList) DeepCopyInto(out *StorageList)

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

func (*StorageList) DeepCopyObject

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

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

type StoragePhase

type StoragePhase string

StoragePhase is a label for the condition of a storage at the current time.

const (
	// StoragePending means the storage has been accepted by the system,
	// but one or more of the required resources has not been created.
	StoragePending StoragePhase = "Pending"

	// StorageAttached means the storage has been attached to a node.
	StorageAttached StoragePhase = "Attached"

	// StorageFailed indicates some failures with the controller, or
	// resources that are required to have this storage attached.
	StorageFailed StoragePhase = "Failed"
)

These are the valid statuses of storage.

type StorageSpec

type StorageSpec struct {
	// Capacity of the storage
	Capacity resource.Quantity `json:"capacity"`

	// Name of the node that should attach the storage
	//
	// This is optional
	NodeName *string `json:"nodeName,omitempty"`
}

func (*StorageSpec) DeepCopy

func (in *StorageSpec) DeepCopy() *StorageSpec

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

func (*StorageSpec) DeepCopyInto

func (in *StorageSpec) DeepCopyInto(out *StorageSpec)

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

type StorageStatus

type StorageStatus struct {
	// The phase of a storage is a high-level summary of where the storage
	// is in its lifecycle.
	//
	// The conditions array, the reason and message fields, contain more
	// detail about the storage's status.
	Phase StoragePhase `json:"phase,omitempty" protobuf:"bytes,1,opt,name=phase,casttype=StoragePhase"`

	// Current service state of storage.
	//
	// +optional
	// +patchMergeKey=type
	// +patchStrategy=merge
	Conditions []StorageCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,2,rep,name=conditions"`

	// A human readable message indicating details about why the storage
	// is in this condition.
	//
	// +optional
	Message string `json:"message,omitempty" protobuf:"bytes,3,opt,name=message"`

	// A brief CamelCase message indicating details about why the storage
	// is in this state.
	//
	// e.g. 'Evicted'
	// +optional
	Reason string `json:"reason,omitempty" protobuf:"bytes,4,opt,name=reason"`

	// RFC 3339 date and time at which the object was acknowledged by its controller.
	StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,7,opt,name=startTime"`
}

StorageStatus represents information about the status of the storage.

func (*StorageStatus) DeepCopy

func (in *StorageStatus) DeepCopy() *StorageStatus

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

func (*StorageStatus) DeepCopyInto

func (in *StorageStatus) DeepCopyInto(out *StorageStatus)

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