v1alpha1

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the tgtd v1alpha1 API group +kubebuilder:object:generate=true +groupName=tgtd.unstable.cloud +kubebuilder:validation:Optional

Index

Constants

View Source
const (
	NodeNameInitiatorNameStrategy = "NodeName"

	AnnotationInitiatorNameStrategy = "Annotation"
)

Variables

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

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

	Spec   InitiatorGroupSpec   `json:"spec,omitempty"`
	Status InitiatorGroupStatus `json:"status,omitempty"`
}

InitiatorGroup is the Schema for the initiatorgroups API +kubebuilder:resource:shortName=ig,scope=Cluster +kubebuilder:subresource:status

func (*InitiatorGroup) DeepCopy

func (in *InitiatorGroup) DeepCopy() *InitiatorGroup

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

func (*InitiatorGroup) DeepCopyInto

func (in *InitiatorGroup) DeepCopyInto(out *InitiatorGroup)

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

func (*InitiatorGroup) DeepCopyObject

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

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

type InitiatorGroupBinding

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

	Spec   InitiatorGroupBindingSpec   `json:"spec,omitempty"`
	Status InitiatorGroupBindingStatus `json:"status,omitempty"`
}

InitiatorGroupBinding is the Schema for the initiatorgroupbindings API +kubebuilder:resource:shortName=igb,scope=Cluster +kubebuilder:subresource:status

func (*InitiatorGroupBinding) DeepCopy

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

func (*InitiatorGroupBinding) DeepCopyInto

func (in *InitiatorGroupBinding) DeepCopyInto(out *InitiatorGroupBinding)

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

func (*InitiatorGroupBinding) DeepCopyObject

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

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

type InitiatorGroupBindingList

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

InitiatorGroupBindingList contains a list of InitiatorGroupBinding

func (*InitiatorGroupBindingList) DeepCopy

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

func (*InitiatorGroupBindingList) DeepCopyInto

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

func (*InitiatorGroupBindingList) DeepCopyObject

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

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

type InitiatorGroupBindingSpec

type InitiatorGroupBindingSpec struct {
	// TargetRef is a reference to target resource
	// +kubebuilder:validation:Required
	TargetRef TargetReference `json:"targetRef,omitempty"`

	// InitiatorGroupRef is a reference to initiator group resource
	// +kubebuilder:validation:Required
	InitiatorGroupRef InitiatorGroupReference `json:"initiatorGroupRef,omitempty"`
}

InitiatorGroupBindingSpec defines the desired state of InitiatorGroupBinding

func (*InitiatorGroupBindingSpec) DeepCopy

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

func (*InitiatorGroupBindingSpec) DeepCopyInto

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

type InitiatorGroupBindingStatus

type InitiatorGroupBindingStatus struct {
}

InitiatorGroupBindingStatus defines the observed state of InitiatorGroupBinding

func (*InitiatorGroupBindingStatus) DeepCopy

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

func (*InitiatorGroupBindingStatus) DeepCopyInto

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

type InitiatorGroupInitiatorNameStrategy

type InitiatorGroupInitiatorNameStrategy struct {
	// Type is a strategy type. Can be "NodeName" or "AnnotationKey". Default is NodeName
	// +kubebuilder:default:NodeName
	// +kubebuilder:validation:Enum=NodeName;Annotation
	Type InitiatorGroupInitiatorNameStrategyType `json:"type,omitempty"`

	// InitiatorNamePrefix is used for generating initiator name from node name
	InitiatorNamePrefix *string `json:"initiatorNamePrefix,omitempty"`

	// AnnotationKey is used for retrieving initiator name from annotation
	AnnotationKey *string `json:"annotationKey,omitempty"`
}

func (*InitiatorGroupInitiatorNameStrategy) DeepCopy

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

func (*InitiatorGroupInitiatorNameStrategy) DeepCopyInto

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

type InitiatorGroupInitiatorNameStrategyType

type InitiatorGroupInitiatorNameStrategyType string

type InitiatorGroupList

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

InitiatorGroupList contains a list of InitiatorGroup

func (*InitiatorGroupList) DeepCopy

func (in *InitiatorGroupList) DeepCopy() *InitiatorGroupList

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

func (*InitiatorGroupList) DeepCopyInto

func (in *InitiatorGroupList) DeepCopyInto(out *InitiatorGroupList)

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

func (*InitiatorGroupList) DeepCopyObject

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

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

type InitiatorGroupReference

type InitiatorGroupReference struct {
	// Name is unique to reference a initiator group resource.
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`
}

func (*InitiatorGroupReference) DeepCopy

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

func (*InitiatorGroupReference) DeepCopyInto

func (in *InitiatorGroupReference) DeepCopyInto(out *InitiatorGroupReference)

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

type InitiatorGroupSpec

type InitiatorGroupSpec struct {
	// Addresses are used for initiator address
	Addresses []string `json:"addresses,omitempty"`

	// NodeSelector is a selector to select initiator nodes
	NodeSelector map[string]string `json:"nodeSelector,omitempty"`

	// InitiatorNameStrategy is a strategy how to decide initiator name from node object
	InitiatorNameStrategy InitiatorGroupInitiatorNameStrategy `json:"initiatorNameStrategy,omitempty"`
}

InitiatorGroupSpec defines the desired state of InitiatorGroup

func (*InitiatorGroupSpec) DeepCopy

func (in *InitiatorGroupSpec) DeepCopy() *InitiatorGroupSpec

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

func (*InitiatorGroupSpec) DeepCopyInto

func (in *InitiatorGroupSpec) DeepCopyInto(out *InitiatorGroupSpec)

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

type InitiatorGroupStatus

type InitiatorGroupStatus struct {
	// Addresses are addresses of initiators
	Addresses []string `json:"addresses,omitempty"`

	// Initiators are names of initiators
	Initiators []string `json:"initiators,omitempty"`
}

InitiatorGroupStatus defines the observed state of InitiatorGroup

func (*InitiatorGroupStatus) DeepCopy

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

func (*InitiatorGroupStatus) DeepCopyInto

func (in *InitiatorGroupStatus) DeepCopyInto(out *InitiatorGroupStatus)

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

type Target

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

	Spec   TargetSpec   `json:"spec,omitempty"`
	Status TargetStatus `json:"status,omitempty"`
}

Target is the Schema for the targets API +kubebuilder:resource:shortName=tgt,scope=Cluster +kubebuilder:subresource:status

func (*Target) DeepCopy

func (in *Target) DeepCopy() *Target

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

func (*Target) DeepCopyInto

func (in *Target) DeepCopyInto(out *Target)

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

func (*Target) DeepCopyObject

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

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

func (*Target) GetCondition

func (target *Target) GetCondition(condType TargetConditionType) *TargetCondition

GetCondition returns condition of type condType if it exists. Otherwise returns nil.

func (*Target) Ready

func (target *Target) Ready() bool

func (*Target) SetCondition

func (target *Target) SetCondition(condType TargetConditionType, status corev1.ConditionStatus, t metav1.Time)

SetCondition sets condition of type condType with empty reason and message.

func (*Target) SetConditionReason

func (target *Target) SetConditionReason(condType TargetConditionType, status corev1.ConditionStatus, reason, msg string, t metav1.Time)

SetConditionReason is similar to setCondition, but it takes reason and message.

type TargetActual

type TargetActual struct {
	// TID is the observed tid
	TID int32 `json:"tid,omitempty"`

	// IQN is the observed IQN
	IQN string `json:"iqn,omitempty"`

	// LUNs is the observed LUNs
	LUNs []TargetLUN `json:"luns,omitempty"`

	// Accounts is the observed Accounts
	Accounts []string `json:"accounts,omitempty"`

	// ACLs is the observed ACLs
	ACLs []string `json:"acls,omitempty"`
}

TargetActual is the observed information of Target

func (*TargetActual) DeepCopy

func (in *TargetActual) DeepCopy() *TargetActual

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

func (*TargetActual) DeepCopyInto

func (in *TargetActual) DeepCopyInto(out *TargetActual)

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

type TargetCondition

type TargetCondition struct {
	// Type is the type of this condition.
	Type TargetConditionType `json:"type,omitempty"`
	// Status is the status of this condition.
	Status corev1.ConditionStatus `json:"status,omitempty"`
	// LastTransitionTime is the last time the condition transitioned from one status to another.
	LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"`
	// Reason is the one-word, CamelCase reason about the last transition.
	Reason string `json:"reason,omitempty"`
	// Message is human readable message about the last transition.
	Message string `json:"message,omitempty"`
}

func (*TargetCondition) DeepCopy

func (in *TargetCondition) DeepCopy() *TargetCondition

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

func (*TargetCondition) DeepCopyInto

func (in *TargetCondition) DeepCopyInto(out *TargetCondition)

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

type TargetConditionType

type TargetConditionType string

TargetConditionType is a valid value for TargetCondition.Type

const (
	// TargetConditionTypeReady means that API server on the Target is ready for service.
	TargetConditionReady TargetConditionType = "Ready"

	// TargetTargetFailed means that reconciling target is failed on node.
	TargetTargetFailed TargetConditionType = "TargetFailed"

	// TargetLUNFailed means that reconcilation of LUNs is failed on node.
	TargetLUNFailed TargetConditionType = "LUNFailed"
)

type TargetLUN

type TargetLUN struct {
	// LUN is an id of the LUN
	LUN int32 `json:"lun,omitempty"`

	// BackingStore is a path of the backing store
	// +kubebuilder:validation:Required
	BackingStore string `json:"backingStore,omitempty"`

	// BSType is a backing store type
	BSType *string `json:"bsType,omitempty"`

	// BSOpts is a options for backing store
	BSOpts *string `json:"bsOpts,omitempty"`
}

TargetLun is the specification of LUN

func (*TargetLUN) DeepCopy

func (in *TargetLUN) DeepCopy() *TargetLUN

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

func (*TargetLUN) DeepCopyInto

func (in *TargetLUN) DeepCopyInto(out *TargetLUN)

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

type TargetList

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

TargetList contains a list of Target

func (*TargetList) DeepCopy

func (in *TargetList) DeepCopy() *TargetList

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

func (*TargetList) DeepCopyInto

func (in *TargetList) DeepCopyInto(out *TargetList)

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

func (*TargetList) DeepCopyObject

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

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

type TargetReference

type TargetReference struct {
	// Name is unique to reference a target resource.
	// +kubebuilder:validation:Required
	Name string `json:"name,omitempty"`
}

func (*TargetReference) DeepCopy

func (in *TargetReference) DeepCopy() *TargetReference

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

func (*TargetReference) DeepCopyInto

func (in *TargetReference) DeepCopyInto(out *TargetReference)

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

type TargetSpec

type TargetSpec struct {
	// NodeName is a node name where the target will be placed.
	// +kubebuilder:validation:Required
	NodeName string `json:"nodeName,omitempty"`

	// IQN is an iqn of the target
	// +kubebuilder:validation:Required
	IQN string `json:"iqn,omitempty"`

	// LUNs is a list of LUNs
	LUNs []TargetLUN `json:"luns,omitempty"`
}

TargetSpec defines the desired state of Target

func (*TargetSpec) DeepCopy

func (in *TargetSpec) DeepCopy() *TargetSpec

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

func (*TargetSpec) DeepCopyInto

func (in *TargetSpec) DeepCopyInto(out *TargetSpec)

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

type TargetStatus

type TargetStatus struct {
	// Conditions are the current state of Target
	Conditions []TargetCondition `json:"conditions,omitempty"`
	// ObservedGeneration is the last generation observed by the controller.
	ObservedGeneration int64 `json:"observedGeneration,omitempty"`
	// ObservedState is the actual target information
	ObservedState *TargetActual `json:"observedState,omitempty"`
}

TargetStatus defines the observed state of Target

func (*TargetStatus) DeepCopy

func (in *TargetStatus) DeepCopy() *TargetStatus

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

func (*TargetStatus) DeepCopyInto

func (in *TargetStatus) DeepCopyInto(out *TargetStatus)

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