v1

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

This package has the automatically generated clientset.

Index

Constants

View Source
const (
	BackendDeletionPolicyDelete string = "delete"
	BackendDeletionPolicyRetain string = "retain"
)
View Source
const (
	GroupName    = "trident.netapp.io"
	GroupVersion = "v1"
)
View Source
const (
	// SnapshotInfoInvalid implies the user supplied a non-feasible TSI spec
	SnapshotInfoInvalid      = "invalid"
	SnapshotInfoUpdateFailed = "updateFailed"
	SnapshotInfoUpdated      = "updated"
)
View Source
const (
	MirrorStateEstablished    = "established"
	MirrorStateEstablishing   = "establishing"
	MirrorStateReestablished  = "reestablished"
	MirrorStateReestablishing = "reestablishing"
	MirrorStatePromoted       = "promoted"
	MirrorStatePromoting      = "promoting"
	// MirrorStateFailed means we could not reach the desired state
	MirrorStateFailed = "failed"
	// MirrorStateInvalid means we can never reach the desired state with the current spec
	// Invalid implies the user supplied a non-feasible TMR spec
	MirrorStateInvalid  = "invalid"
	MirrorStateReleased = "released"
)
View Source
const PersistentStateVersionName = "trident"
View Source
const (
	TridentFinalizerName = "trident.netapp.io"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var ErrNamesDontMatch = errors.New("names do not match")
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion}

SchemeGroupVersion is group version used to register these objects

Functions

func GetTransitioningMirrorStatusStates

func GetTransitioningMirrorStatusStates() []string

func GetTridentFinalizers

func GetTridentFinalizers() []string

func GetValidMirrorSpecStates

func GetValidMirrorSpecStates() []string

func Kind

func Kind(kind string) schema.GroupKind

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

func NameFix

func NameFix(n string) string

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns back a Group qualified GroupResource

Types

type TridentBackend

type TridentBackend struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Config of the Trident backend
	Config runtime.RawExtension `json:"config"`
	// BackendName is the real name of the backend (metadata has restrictions)
	BackendName string `json:"backendName"`
	// BackendUUID is a unique identifier for this backend
	BackendUUID string `json:"backendUUID"`
	// Version is the version of the backend
	Version string `json:"version"`
	// Online defines if the backend is online
	Online bool `json:"online"`
	// State records the TridentBackend's state
	State string `json:"state"`
	// ConfigRef is a reference to the TridentBackendConfig object
	ConfigRef string `json:"configRef"`
}

TridentBackend defines a Trident backend. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentBackend

func NewTridentBackend(ctx context.Context, persistent *storage.BackendPersistent) (*TridentBackend, error)

NewTridentBackend creates a new backend CRD object from an internal storage.BackendPersistent object

func (*TridentBackend) Apply

func (in *TridentBackend) Apply(ctx context.Context, persistent *storage.BackendPersistent) error

Apply applies changes from an internal storage.BackendPersistent object to its Kubernetes CRD equivalent

func (*TridentBackend) CurrentState

func (in *TridentBackend) CurrentState() storage.BackendState

func (*TridentBackend) DeepCopy

func (in *TridentBackend) DeepCopy() *TridentBackend

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

func (*TridentBackend) DeepCopyInto

func (in *TridentBackend) DeepCopyInto(out *TridentBackend)

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

func (*TridentBackend) DeepCopyObject

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

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

func (*TridentBackend) GetFinalizers

func (in *TridentBackend) GetFinalizers() []string

func (*TridentBackend) GetObjectMeta

func (in *TridentBackend) GetObjectMeta() metav1.ObjectMeta

func (*TridentBackend) HasTridentFinalizers

func (in *TridentBackend) HasTridentFinalizers() bool

func (*TridentBackend) Persistent

func (in *TridentBackend) Persistent() (*storage.BackendPersistent, error)

Persistent converts a Kubernetes CRD object into its internal storage.BackendPersistent equivalent

func (*TridentBackend) RemoveTridentFinalizers

func (in *TridentBackend) RemoveTridentFinalizers()

type TridentBackendConfig

type TridentBackendConfig struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Input spec for the Trident Backend
	Spec   TridentBackendConfigSpec   `json:"spec"`
	Status TridentBackendConfigStatus `json:"status"`
}

TridentBackendConfig defines a Trident backend. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentBackendConfig) AddTridentFinalizers

func (in *TridentBackendConfig) AddTridentFinalizers()

func (*TridentBackendConfig) DeepCopy

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

func (*TridentBackendConfig) DeepCopyInto

func (in *TridentBackendConfig) DeepCopyInto(out *TridentBackendConfig)

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

func (*TridentBackendConfig) DeepCopyObject

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

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

func (*TridentBackendConfig) GetFinalizers

func (in *TridentBackendConfig) GetFinalizers() []string

func (*TridentBackendConfig) GetObjectMeta

func (in *TridentBackendConfig) GetObjectMeta() metav1.ObjectMeta

func (*TridentBackendConfig) HasTridentFinalizers

func (in *TridentBackendConfig) HasTridentFinalizers() bool

func (*TridentBackendConfig) IsSpecValid

func (in *TridentBackendConfig) IsSpecValid() bool

func (*TridentBackendConfig) RemoveTridentFinalizers

func (in *TridentBackendConfig) RemoveTridentFinalizers()

func (*TridentBackendConfig) Validate

func (in *TridentBackendConfig) Validate() error

Validate function validates the TridentBackendConfig

type TridentBackendConfigBackendInfo

type TridentBackendConfigBackendInfo struct {
	BackendName string `json:"backendName"`
	BackendUUID string `json:"backendUUID"`
}

func (*TridentBackendConfigBackendInfo) DeepCopy

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

func (*TridentBackendConfigBackendInfo) DeepCopyInto

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

type TridentBackendConfigList

type TridentBackendConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of TridentBackendConfig objects
	Items []*TridentBackendConfig `json:"items"`
}

TridentBackendConfigList is a list of TridentBackend objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentBackendConfigList) DeepCopy

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

func (*TridentBackendConfigList) DeepCopyInto

func (in *TridentBackendConfigList) DeepCopyInto(out *TridentBackendConfigList)

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

func (*TridentBackendConfigList) DeepCopyObject

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

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

type TridentBackendConfigPhase

type TridentBackendConfigPhase string
const (
	// used for TridentBackendConfigs that failed to bind
	PhaseUnbound TridentBackendConfigPhase = ""
	// used for TridentBackendConfigs that are bound
	PhaseBound TridentBackendConfigPhase = "Bound"
	// used for TridentBackendConfigs that were deleted using deletionPolicy `delete`,
	// but are still bound to a backend that went into a deleting state after a deletion attempt via tbc
	PhaseDeleting TridentBackendConfigPhase = "Deleting"
	// used for TridentBackendConfigs that are unknown after bound e.g. due to tbe CRD deletion etc.
	PhaseUnknown TridentBackendConfigPhase = "Unknown"
	// used for TridentBackendConfigs that lost their underlying
	// TridentBackend. The config was bound to a TridentBackendConfigs
	// and this TridentBackend does not exist any longer
	PhaseLost TridentBackendConfigPhase = "Lost"
)

type TridentBackendConfigSpec

type TridentBackendConfigSpec struct {
	runtime.RawExtension
}

TridentBackendConfigSpec defines the desired state of TridentBackendConfig

func (*TridentBackendConfigSpec) DeepCopy

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

func (*TridentBackendConfigSpec) DeepCopyInto

func (in *TridentBackendConfigSpec) DeepCopyInto(out *TridentBackendConfigSpec)

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

func (*TridentBackendConfigSpec) GetDeletionPolicy

func (s *TridentBackendConfigSpec) GetDeletionPolicy() (string, error)

func (*TridentBackendConfigSpec) GetSecretName

func (s *TridentBackendConfigSpec) GetSecretName() (string, error)

func (*TridentBackendConfigSpec) SetDefaultsAndValidate

func (s *TridentBackendConfigSpec) SetDefaultsAndValidate(backendName string) error

func (*TridentBackendConfigSpec) ToString

func (s *TridentBackendConfigSpec) ToString() string

func (*TridentBackendConfigSpec) ValidateDeletionPolicy

func (s *TridentBackendConfigSpec) ValidateDeletionPolicy(deletionPolicy string) error

type TridentBackendConfigStatus

type TridentBackendConfigStatus struct {
	Message             string                          `json:"message"`
	BackendInfo         TridentBackendConfigBackendInfo `json:"backendInfo"`
	DeletionPolicy      string                          `json:"deletionPolicy"`
	Phase               string                          `json:"phase"`
	LastOperationStatus string                          `json:"lastOperationStatus"`
}

TridentBackendConfigStatus defines the observed state of TridentBackendConfig

func (*TridentBackendConfigStatus) DeepCopy

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

func (*TridentBackendConfigStatus) DeepCopyInto

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

type TridentBackendList

type TridentBackendList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentBackend objects
	Items []*TridentBackend `json:"items"`
}

TridentBackendList is a list of TridentBackend objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentBackendList) DeepCopy

func (in *TridentBackendList) DeepCopy() *TridentBackendList

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

func (*TridentBackendList) DeepCopyInto

func (in *TridentBackendList) DeepCopyInto(out *TridentBackendList)

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

func (*TridentBackendList) DeepCopyObject

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

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

type TridentCRD

type TridentCRD interface {
	GetObjectMeta() metav1.ObjectMeta
	GetFinalizers() []string
	HasTridentFinalizers() bool
	RemoveTridentFinalizers()
}

TridentCRD should be implemented for our CRD objects

type TridentMirrorRelationship

type TridentMirrorRelationship struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Input spec for the Trident Backend
	Spec   TridentMirrorRelationshipSpec   `json:"spec"`
	Status TridentMirrorRelationshipStatus `json:"status"`
}

TridentMirrorRelationship defines a Trident Mirror relationship. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentMirrorRelationship) AddTridentFinalizers

func (in *TridentMirrorRelationship) AddTridentFinalizers()

func (*TridentMirrorRelationship) DeepCopy

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

func (*TridentMirrorRelationship) DeepCopyInto

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

func (*TridentMirrorRelationship) DeepCopyObject

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

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

func (*TridentMirrorRelationship) GetFinalizers

func (in *TridentMirrorRelationship) GetFinalizers() []string

func (*TridentMirrorRelationship) GetObjectMeta

func (in *TridentMirrorRelationship) GetObjectMeta() metav1.ObjectMeta

func (*TridentMirrorRelationship) HasTridentFinalizers

func (in *TridentMirrorRelationship) HasTridentFinalizers() bool

func (*TridentMirrorRelationship) IsValid

func (in *TridentMirrorRelationship) IsValid() (isValid bool, reason string)

isValid returns whether the TridentMirrorRelationship CR provided has its fields set to valid value combinations and any reason it is invalid as a string

func (*TridentMirrorRelationship) RemoveTridentFinalizers

func (in *TridentMirrorRelationship) RemoveTridentFinalizers()

type TridentMirrorRelationshipCondition

type TridentMirrorRelationshipCondition struct {
	MirrorState         string `json:"state"`
	Message             string `json:"message"`
	LastTransitionTime  string `json:"lastTransitionTime"`
	ObservedGeneration  int    `json:"observedGeneration"`
	LocalVolumeHandle   string `json:"localVolumeHandle"`
	LocalPVCName        string `json:"localPVCName"`
	RemoteVolumeHandle  string `json:"remoteVolumeHandle"`
	ReplicationPolicy   string `json:"replicationPolicy"`
	ReplicationSchedule string `json:"replicationSchedule"`
}

func (*TridentMirrorRelationshipCondition) DeepCopy

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

func (*TridentMirrorRelationshipCondition) DeepCopyInto

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

type TridentMirrorRelationshipList

type TridentMirrorRelationshipList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of TridentMirrorRelationship objects
	Items []*TridentMirrorRelationship `json:"items"`
}

TridentMirrorRelationshipList is a list of TridentBackend objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentMirrorRelationshipList) DeepCopy

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

func (*TridentMirrorRelationshipList) DeepCopyInto

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

func (*TridentMirrorRelationshipList) DeepCopyObject

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

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

type TridentMirrorRelationshipSpec

type TridentMirrorRelationshipSpec struct {
	MirrorState         string                                    `json:"state"`
	ReplicationPolicy   string                                    `json:"replicationPolicy"`
	ReplicationSchedule string                                    `json:"replicationSchedule"`
	VolumeMappings      []*TridentMirrorRelationshipVolumeMapping `json:"volumeMappings"`
}

TridentMirrorRelationshipSpec defines the desired state of TridentMirrorRelationship

func (*TridentMirrorRelationshipSpec) DeepCopy

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

func (*TridentMirrorRelationshipSpec) DeepCopyInto

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

type TridentMirrorRelationshipStatus

type TridentMirrorRelationshipStatus struct {
	Conditions []*TridentMirrorRelationshipCondition `json:"conditions"`
}

TridentMirrorRelationshipStatus defines the observed state of TridentMirrorRelationship

func (*TridentMirrorRelationshipStatus) DeepCopy

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

func (*TridentMirrorRelationshipStatus) DeepCopyInto

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

type TridentMirrorRelationshipVolumeMapping

type TridentMirrorRelationshipVolumeMapping struct {
	RemoteVolumeHandle     string `json:"remoteVolumeHandle"`
	LocalPVCName           string `json:"localPVCName"`
	PromotedSnapshotHandle string `json:"promotedSnapshotHandle"`
}

func (*TridentMirrorRelationshipVolumeMapping) DeepCopy

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

func (*TridentMirrorRelationshipVolumeMapping) DeepCopyInto

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

type TridentNode

type TridentNode struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Name is the name of the node
	NodeName string `json:"name"`
	// IQN is the iqn of the node
	IQN string `json:"iqn,omitempty"`
	// IPs is a list of IP addresses for the TridentNode
	IPs []string `json:"ips,omitempty"`
	// NodePrep is the current status of node preparation for this node
	NodePrep runtime.RawExtension `json:"nodePrep,omitempty"`
	// HostInfo contains information about the node's host machine
	HostInfo runtime.RawExtension `json:"hostInfo,omitempty"`
	// Deleted indicates that Trident received an event that the node has been removed
	Deleted bool `json:"deleted"`
}

TridentNode defines a Trident CSI node object. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentNode

func NewTridentNode(persistent *utils.Node) (*TridentNode, error)

NewTridentNode creates a new node CRD object from a internal utils.TridentNode object.

func (*TridentNode) Apply

func (in *TridentNode) Apply(persistent *utils.Node) error

Apply applies changes from an internal utils.TridentNode object to its Kubernetes CRD equivalent.

func (*TridentNode) DeepCopy

func (in *TridentNode) DeepCopy() *TridentNode

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

func (*TridentNode) DeepCopyInto

func (in *TridentNode) DeepCopyInto(out *TridentNode)

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

func (*TridentNode) DeepCopyObject

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

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

func (*TridentNode) GetFinalizers

func (in *TridentNode) GetFinalizers() []string

func (*TridentNode) GetObjectMeta

func (in *TridentNode) GetObjectMeta() metav1.ObjectMeta

func (*TridentNode) HasTridentFinalizers

func (in *TridentNode) HasTridentFinalizers() bool

func (*TridentNode) Persistent

func (in *TridentNode) Persistent() (*utils.Node, error)

Persistent converts a Kubernetes CRD object into its internal utils.TridentNode equivalent.

func (*TridentNode) RemoveTridentFinalizers

func (in *TridentNode) RemoveTridentFinalizers()

type TridentNodeList

type TridentNodeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentNode objects
	Items []*TridentNode `json:"items"`
}

TridentNodeList is a list of TridentNode objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentNodeList) DeepCopy

func (in *TridentNodeList) DeepCopy() *TridentNodeList

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

func (*TridentNodeList) DeepCopyInto

func (in *TridentNodeList) DeepCopyInto(out *TridentNodeList)

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

func (*TridentNodeList) DeepCopyObject

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

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

type TridentSnapshot

type TridentSnapshot struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Specification of the snapshot
	Spec runtime.RawExtension `json:"spec"`
	// The UTC time that the snapshot was created, in RFC3339 format
	Created string `json:"dateCreated"`
	// The size of the volume at the time the snapshot was created
	SizeBytes int64 `json:"size"`
	// State records the TridentVolume's state
	State string `json:"state"`
}

TridentSnapshot defines a Trident snapshot. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentSnapshot

func NewTridentSnapshot(persistent *storage.SnapshotPersistent) (*TridentSnapshot, error)

NewTridentSnapshot creates a new snapshot CRD object from an internal SnapshotPersistent object

func (*TridentSnapshot) Apply

func (in *TridentSnapshot) Apply(persistent *storage.SnapshotPersistent) error

Apply applies changes from an internal SnapshotPersistent object to its Kubernetes CRD equivalent

func (*TridentSnapshot) DeepCopy

func (in *TridentSnapshot) DeepCopy() *TridentSnapshot

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

func (*TridentSnapshot) DeepCopyInto

func (in *TridentSnapshot) DeepCopyInto(out *TridentSnapshot)

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

func (*TridentSnapshot) DeepCopyObject

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

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

func (*TridentSnapshot) GetFinalizers

func (in *TridentSnapshot) GetFinalizers() []string

func (*TridentSnapshot) GetObjectMeta

func (in *TridentSnapshot) GetObjectMeta() metav1.ObjectMeta

func (*TridentSnapshot) HasTridentFinalizers

func (in *TridentSnapshot) HasTridentFinalizers() bool

func (*TridentSnapshot) Persistent

func (in *TridentSnapshot) Persistent() (*storage.SnapshotPersistent, error)

Persistent converts a Kubernetes CRD object into its internal SnapshotPersistent equivalent

func (*TridentSnapshot) RemoveTridentFinalizers

func (in *TridentSnapshot) RemoveTridentFinalizers()

type TridentSnapshotInfo

type TridentSnapshotInfo struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Input spec for the Trident Backend
	Spec   TridentSnapshotInfoSpec   `json:"spec"`
	Status TridentSnapshotInfoStatus `json:"status"`
}

TridentSnapshotInfo maps a k8s snapshot to the Trident internal snapshot. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentSnapshotInfo) AddTridentFinalizers

func (in *TridentSnapshotInfo) AddTridentFinalizers()

func (*TridentSnapshotInfo) DeepCopy

func (in *TridentSnapshotInfo) DeepCopy() *TridentSnapshotInfo

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

func (*TridentSnapshotInfo) DeepCopyInto

func (in *TridentSnapshotInfo) DeepCopyInto(out *TridentSnapshotInfo)

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

func (*TridentSnapshotInfo) DeepCopyObject

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

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

func (*TridentSnapshotInfo) GetFinalizers

func (in *TridentSnapshotInfo) GetFinalizers() []string

func (*TridentSnapshotInfo) GetObjectMeta

func (in *TridentSnapshotInfo) GetObjectMeta() metav1.ObjectMeta

func (*TridentSnapshotInfo) HasTridentFinalizers

func (in *TridentSnapshotInfo) HasTridentFinalizers() bool

func (*TridentSnapshotInfo) IsValid

func (in *TridentSnapshotInfo) IsValid() (isValid bool, reason string)

isValid returns whether the TridentSnapshotInfo CR provided has it's fields set to valid value combinations and any reason it is invalid as a string

func (*TridentSnapshotInfo) RemoveTridentFinalizers

func (in *TridentSnapshotInfo) RemoveTridentFinalizers()

type TridentSnapshotInfoList

type TridentSnapshotInfoList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of TridentSnapshotInfo objects
	Items []*TridentSnapshotInfo `json:"items"`
}

TridentSnapshotInfoList is a list of TridentSnapshotInfo objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentSnapshotInfoList) DeepCopy

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

func (*TridentSnapshotInfoList) DeepCopyInto

func (in *TridentSnapshotInfoList) DeepCopyInto(out *TridentSnapshotInfoList)

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

func (*TridentSnapshotInfoList) DeepCopyObject

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

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

type TridentSnapshotInfoSpec

type TridentSnapshotInfoSpec struct {
	SnapshotName string `json:"snapshotName"`
}

TridentSnapshotInfoSpec defines the desired state of TridentSnapshotInfo

func (*TridentSnapshotInfoSpec) DeepCopy

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

func (*TridentSnapshotInfoSpec) DeepCopyInto

func (in *TridentSnapshotInfoSpec) DeepCopyInto(out *TridentSnapshotInfoSpec)

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

type TridentSnapshotInfoStatus

type TridentSnapshotInfoStatus struct {
	SnapshotHandle     string `json:"snapshotHandle"`
	LastTransitionTime string `json:"lastTransitionTime"`
	ObservedGeneration int    `json:"observedGeneration"`
}

TridentSnapshotInfoStatus defines the observed state of TridentSnapshotInfo

func (*TridentSnapshotInfoStatus) DeepCopy

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

func (*TridentSnapshotInfoStatus) DeepCopyInto

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

type TridentSnapshotList

type TridentSnapshotList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentSnapshot objects
	Items []*TridentSnapshot `json:"items"`
}

TridentSnapshotList is a list of TridentSnapshot objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentSnapshotList) DeepCopy

func (in *TridentSnapshotList) DeepCopy() *TridentSnapshotList

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

func (*TridentSnapshotList) DeepCopyInto

func (in *TridentSnapshotList) DeepCopyInto(out *TridentSnapshotList)

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

func (*TridentSnapshotList) DeepCopyObject

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

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

type TridentStorageClass

type TridentStorageClass struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Specification of the storage class
	Spec runtime.RawExtension `json:"spec"`
}

TridentStorageClass defines a Trident storage class. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentStorageClass

func NewTridentStorageClass(persistent *storageclass.Persistent) (*TridentStorageClass, error)

NewTridentStorageClass creates a new storage class CRD object from a internal storageclass.Persistent object

func (*TridentStorageClass) Apply

func (in *TridentStorageClass) Apply(persistent *storageclass.Persistent) error

Apply applies changes from an internal storageclass.Persistent object to its Kubernetes CRD equivalent

func (*TridentStorageClass) DeepCopy

func (in *TridentStorageClass) DeepCopy() *TridentStorageClass

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

func (*TridentStorageClass) DeepCopyInto

func (in *TridentStorageClass) DeepCopyInto(out *TridentStorageClass)

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

func (*TridentStorageClass) DeepCopyObject

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

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

func (*TridentStorageClass) GetFinalizers

func (in *TridentStorageClass) GetFinalizers() []string

func (*TridentStorageClass) GetObjectMeta

func (in *TridentStorageClass) GetObjectMeta() metav1.ObjectMeta

func (*TridentStorageClass) HasTridentFinalizers

func (in *TridentStorageClass) HasTridentFinalizers() bool

func (*TridentStorageClass) Persistent

func (in *TridentStorageClass) Persistent() (*storageclass.Persistent, error)

Persistent converts a Kubernetes CRD object into its internal storageclass.Persistent equivalent

func (*TridentStorageClass) RemoveTridentFinalizers

func (in *TridentStorageClass) RemoveTridentFinalizers()

type TridentStorageClassList

type TridentStorageClassList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentStorageClass objects
	Items []*TridentStorageClass `json:"items"`
}

TridentStorageClassList is a list of TridentStorageClass objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentStorageClassList) DeepCopy

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

func (*TridentStorageClassList) DeepCopyInto

func (in *TridentStorageClassList) DeepCopyInto(out *TridentStorageClassList)

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

func (*TridentStorageClassList) DeepCopyObject

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

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

type TridentTransaction

type TridentTransaction struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Transaction is the transaction struct
	Transaction runtime.RawExtension `json:"transaction"`
}

TridentTransaction defines a Trident transaction. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentTransaction

func NewTridentTransaction(txn *storage.VolumeTransaction) (*TridentTransaction, error)

NewTridentTransaction creates a new storage class CRD object from a VolumeTransaction object

func (*TridentTransaction) Apply

Apply applies changes from an operation and internal storage.VolumeConfig object to its Kubernetes CRD equivalent

func (*TridentTransaction) DeepCopy

func (in *TridentTransaction) DeepCopy() *TridentTransaction

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

func (*TridentTransaction) DeepCopyInto

func (in *TridentTransaction) DeepCopyInto(out *TridentTransaction)

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

func (*TridentTransaction) DeepCopyObject

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

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

func (*TridentTransaction) GetFinalizers

func (in *TridentTransaction) GetFinalizers() []string

func (*TridentTransaction) GetObjectMeta

func (in *TridentTransaction) GetObjectMeta() metav1.ObjectMeta

func (*TridentTransaction) HasTridentFinalizers

func (in *TridentTransaction) HasTridentFinalizers() bool

func (*TridentTransaction) Persistent

func (in *TridentTransaction) Persistent() (*storage.VolumeTransaction, error)

Persistent converts a Kubernetes CRD object into its operation and internal storage.VolumeConfig

func (*TridentTransaction) RemoveTridentFinalizers

func (in *TridentTransaction) RemoveTridentFinalizers()

type TridentTransactionList

type TridentTransactionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentTransaction objects
	Items []*TridentTransaction `json:"items"`
}

TridentTransactionList is a list of TridentTransaction objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentTransactionList) DeepCopy

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

func (*TridentTransactionList) DeepCopyInto

func (in *TridentTransactionList) DeepCopyInto(out *TridentTransactionList)

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

func (*TridentTransactionList) DeepCopyObject

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

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

type TridentVersion

type TridentVersion struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// TridentVersion is the currently installed release version of Trident
	TridentVersion string `json:"trident_version,omitempty"`
	// PersistentStoreVersion is the Trident persistent store schema version
	PersistentStoreVersion string `json:"trident_store_version,omitempty"`
	// OrchestratorAPIVersion is the Trident API version
	OrchestratorAPIVersion string `json:"trident_api_version,omitempty"`
	// PublicationsSynced indicates if Trident has done an initial syncing of the publication objects with the
	// container orchestrator
	PublicationsSynced bool `json:"publications_synced,omitempty"`
}

TridentVersion defines a Trident version object. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentVersion

func NewTridentVersion(persistent *config.PersistentStateVersion) (*TridentVersion, error)

NewTridentVersion creates a new persistent state version CRD object from an internal persistent_store.PersistentStateVersion object.

func (*TridentVersion) Apply

func (in *TridentVersion) Apply(persistent *config.PersistentStateVersion) error

Apply applies changes from an internal persistent_store.PersistentStateVersion object to its Kubernetes CRD equivalent.

func (*TridentVersion) DeepCopy

func (in *TridentVersion) DeepCopy() *TridentVersion

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

func (*TridentVersion) DeepCopyInto

func (in *TridentVersion) DeepCopyInto(out *TridentVersion)

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

func (*TridentVersion) DeepCopyObject

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

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

func (*TridentVersion) GetFinalizers

func (in *TridentVersion) GetFinalizers() []string

func (*TridentVersion) GetObjectMeta

func (in *TridentVersion) GetObjectMeta() metav1.ObjectMeta

func (*TridentVersion) HasTridentFinalizers

func (in *TridentVersion) HasTridentFinalizers() bool

func (*TridentVersion) Persistent

func (in *TridentVersion) Persistent() (*config.PersistentStateVersion, error)

Persistent converts a Kubernetes CRD object into its internal persistent_store.PersistentStateVersion equivalent.

func (*TridentVersion) RemoveTridentFinalizers

func (in *TridentVersion) RemoveTridentFinalizers()

type TridentVersionList

type TridentVersionList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentVersion objects
	Items []*TridentVersion `json:"items"`
}

TridentVersionList is a list of TridentVersion objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentVersionList) DeepCopy

func (in *TridentVersionList) DeepCopy() *TridentVersionList

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

func (*TridentVersionList) DeepCopyInto

func (in *TridentVersionList) DeepCopyInto(out *TridentVersionList)

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

func (*TridentVersionList) DeepCopyObject

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

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

type TridentVolume

type TridentVolume struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// Config is the Volumes Config
	Config runtime.RawExtension `json:"config"`
	// BackendUUID is the UUID of the TridentBackend object
	BackendUUID string `json:"backendUUID"`
	// Pool is the volumes pool
	Pool string `json:"pool"`
	// Orphaned defines if the backend is orphaned
	Orphaned bool `json:"orphaned"`
	// State records the TridentVolume's state
	State string `json:"state"`
}

TridentVolume defines a Trident volume. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentVolume

func NewTridentVolume(ctx context.Context, persistent *storage.VolumeExternal) (*TridentVolume, error)

NewTridentVolume creates a new storage class CRD object from a internal storage.VolumeExternal object

func (*TridentVolume) Apply

func (in *TridentVolume) Apply(ctx context.Context, persistent *storage.VolumeExternal) error

Apply applies changes from an internal storage.VolumeExternal object to its Kubernetes CRD equivalent

func (*TridentVolume) DeepCopy

func (in *TridentVolume) DeepCopy() *TridentVolume

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

func (*TridentVolume) DeepCopyInto

func (in *TridentVolume) DeepCopyInto(out *TridentVolume)

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

func (*TridentVolume) DeepCopyObject

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

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

func (*TridentVolume) GetFinalizers

func (in *TridentVolume) GetFinalizers() []string

func (*TridentVolume) GetObjectMeta

func (in *TridentVolume) GetObjectMeta() metav1.ObjectMeta

func (*TridentVolume) HasTridentFinalizers

func (in *TridentVolume) HasTridentFinalizers() bool

func (*TridentVolume) Persistent

func (in *TridentVolume) Persistent() (*storage.VolumeExternal, error)

Persistent converts a Kubernetes CRD object into its internal storage.VolumeExternal equivalent

func (*TridentVolume) RemoveTridentFinalizers

func (in *TridentVolume) RemoveTridentFinalizers()

type TridentVolumeList

type TridentVolumeList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentVolume objects
	Items []*TridentVolume `json:"items"`
}

TridentVolumeList is a list of TridentVolume objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentVolumeList) DeepCopy

func (in *TridentVolumeList) DeepCopy() *TridentVolumeList

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

func (*TridentVolumeList) DeepCopyInto

func (in *TridentVolumeList) DeepCopyInto(out *TridentVolumeList)

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

func (*TridentVolumeList) DeepCopyObject

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

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

type TridentVolumePublication

type TridentVolumePublication struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`
	// VolumeID is the ID of the volume as given by the CO
	VolumeID string `json:"volumeID"`
	// NodeID is the ID of the node as given by the CO
	NodeID string `json:"nodeID"`
	// ReadOnly indicates that the ControllerPublishVolume request had this flag value
	ReadOnly bool `json:"readOnly"`
	// AccessMode describes how the CO intends to use the volume
	AccessMode int32 `json:"accessMode,omitempty"`
	// NotSafeToAttach indicates that the volume is unsafe to attach and detach
	NotSafeToAttach bool `json:"notSafeToAttach,omitempty"`
	// Unpublished indicates that k8s has attempted to unpublish this publication
	Unpublished bool `json:"unpublished,omitempty"`
}

TridentVolumePublication tracks volumes the Trident controller has been asked to publish. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewTridentVolumePublication

func NewTridentVolumePublication(persistent *utils.VolumePublication) (*TridentVolumePublication, error)

NewTridentVolumePublication creates a new volume publication CRD object from an internal utils.VolumePublication object.

func (*TridentVolumePublication) AddTridentFinalizers

func (in *TridentVolumePublication) AddTridentFinalizers()

func (*TridentVolumePublication) Apply

func (in *TridentVolumePublication) Apply(persistent *utils.VolumePublication) error

Apply applies changes from an internal utils.VolumePublication object to its Kubernetes CRD equivalent.

func (*TridentVolumePublication) DeepCopy

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

func (*TridentVolumePublication) DeepCopyInto

func (in *TridentVolumePublication) DeepCopyInto(out *TridentVolumePublication)

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

func (*TridentVolumePublication) DeepCopyObject

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

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

func (*TridentVolumePublication) GetFinalizers

func (in *TridentVolumePublication) GetFinalizers() []string

func (*TridentVolumePublication) GetObjectMeta

func (in *TridentVolumePublication) GetObjectMeta() metav1.ObjectMeta

func (*TridentVolumePublication) HasTridentFinalizers

func (in *TridentVolumePublication) HasTridentFinalizers() bool

func (*TridentVolumePublication) Persistent

func (*TridentVolumePublication) RemoveTridentFinalizers

func (in *TridentVolumePublication) RemoveTridentFinalizers()

type TridentVolumePublicationList

type TridentVolumePublicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	// List of TridentVolumePublication objects
	Items []*TridentVolumePublication `json:"items"`
}

TridentVolumePublicationList is a list of TridentVolumePublication objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentVolumePublicationList) DeepCopy

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

func (*TridentVolumePublicationList) DeepCopyInto

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

func (*TridentVolumePublicationList) DeepCopyObject

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

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

type TridentVolumeReference

type TridentVolumeReference struct {
	metav1.TypeMeta `json:",inline"`
	// +k8s:openapi-gen=false
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Input spec for the Trident Volume Reference
	Spec TridentVolumeReferenceSpec `json:"spec"`
}

TridentVolumeReference defines a PVC whose backing volume Trident may share to other namespaces. +genclient +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentVolumeReference) AddTridentFinalizers

func (in *TridentVolumeReference) AddTridentFinalizers()

func (*TridentVolumeReference) CacheKey

func (in *TridentVolumeReference) CacheKey() string

func (*TridentVolumeReference) DeepCopy

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

func (*TridentVolumeReference) DeepCopyInto

func (in *TridentVolumeReference) DeepCopyInto(out *TridentVolumeReference)

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

func (*TridentVolumeReference) DeepCopyObject

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

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

func (*TridentVolumeReference) GetFinalizers

func (in *TridentVolumeReference) GetFinalizers() []string

func (*TridentVolumeReference) GetObjectMeta

func (in *TridentVolumeReference) GetObjectMeta() metav1.ObjectMeta

func (*TridentVolumeReference) HasTridentFinalizers

func (in *TridentVolumeReference) HasTridentFinalizers() bool

func (*TridentVolumeReference) RemoveTridentFinalizers

func (in *TridentVolumeReference) RemoveTridentFinalizers()

type TridentVolumeReferenceList

type TridentVolumeReferenceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	// List of TridentVolumeReference objects
	Items []*TridentVolumeReference `json:"items"`
}

TridentVolumeReferenceList is a list of TridentVolumeReference objects. +k8s:openapi-gen=true +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*TridentVolumeReferenceList) DeepCopy

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

func (*TridentVolumeReferenceList) DeepCopyInto

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

func (*TridentVolumeReferenceList) DeepCopyObject

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

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

type TridentVolumeReferenceSpec

type TridentVolumeReferenceSpec struct {
	// PVCName is the name of the referenced PVC
	PVCName string `json:"pvcName"`
	// PVCNamespace is the namespace containing the referenced PVC
	PVCNamespace string `json:"pvcNamespace"`
}

TridentVolumeReferenceSpec defines the desired state of TridentVolumeReference

func (*TridentVolumeReferenceSpec) DeepCopy

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

func (*TridentVolumeReferenceSpec) DeepCopyInto

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