v1alpha1

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const TriggerCsiFullSyncCRName = "csifullsync"

TriggerCsiFullSyncCRName is the name of the instance created to trigger full sync on demand.

Variables

This section is empty.

Functions

This section is empty.

Types

type TriggerCsiFullSync

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

	// Spec defines a specification of the TriggerCsiFullSync.
	Spec TriggerCsiFullSyncSpec `json:"spec,omitempty"`

	// Status represents the current information/status for the TriggerCsiFullSync request.
	Status TriggerCsiFullSyncStatus `json:"status,omitempty"`
}

TriggerCsiFullSync is the Schema for the TriggerCsiFullSync API +kubebuilder:subresource:status

func CreateTriggerCsiFullSyncInstance

func CreateTriggerCsiFullSyncInstance() *TriggerCsiFullSync

CreateTriggerCsiFullSyncInstance creates default CreateTriggerCsiFullSync CR instance

func (*TriggerCsiFullSync) DeepCopy

func (in *TriggerCsiFullSync) DeepCopy() *TriggerCsiFullSync

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

func (*TriggerCsiFullSync) DeepCopyInto

func (in *TriggerCsiFullSync) DeepCopyInto(out *TriggerCsiFullSync)

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

func (*TriggerCsiFullSync) DeepCopyObject

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

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

type TriggerCsiFullSyncList

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

TriggerCsiFullSyncList contains a list of TriggerCsiFullSync

func (*TriggerCsiFullSyncList) DeepCopy

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

func (*TriggerCsiFullSyncList) DeepCopyInto

func (in *TriggerCsiFullSyncList) DeepCopyInto(out *TriggerCsiFullSyncList)

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

func (*TriggerCsiFullSyncList) DeepCopyObject

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

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

type TriggerCsiFullSyncSpec

type TriggerCsiFullSyncSpec struct {
	// TriggerSyncID gives an option to trigger full sync on demand.
	// Initial value will be 0. In order to trigger a full sync, user
	// has to set a number that is 1 greater than the previous one.
	TriggerSyncID uint64 `json:"triggerSyncID"`
}

TriggerCsiFullSyncSpec is the spec for TriggerCsiFullSync

func (*TriggerCsiFullSyncSpec) DeepCopy

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

func (*TriggerCsiFullSyncSpec) DeepCopyInto

func (in *TriggerCsiFullSyncSpec) DeepCopyInto(out *TriggerCsiFullSyncSpec)

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

type TriggerCsiFullSyncStatus

type TriggerCsiFullSyncStatus struct {
	// InProgress indicates whether a CSI full sync is in progress.
	// If full sync is completed this field will be unset.
	InProgress bool `json:"inProgress"`

	// LastTriggerSyncID indicates the last trigger sync Id.
	LastTriggerSyncID uint64 `json:"lastTriggerSyncID"`

	// LastSuccessfulStartTimeStamp indicates last successful full sync start timestamp.
	LastSuccessfulStartTimeStamp *metav1.Time `json:"lastSuccessfulStartTimeStamp,omitempty"`

	// LastSuccessfulEndTimeStamp indicates last successful full sync end timestamp.
	LastSuccessfulEndTimeStamp *metav1.Time `json:"lastSuccessfulEndTimeStamp,omitempty"`

	// LastRunStartTimeStamp indicates last run full sync start timestamp.
	// This timestamp can be either the successful or failed full sync start timestamp.
	LastRunStartTimeStamp *metav1.Time `json:"lastRunStartTimeStamp,omitempty"`

	// LastRunEndTimeStamp indicates last run full sync end timestamp.
	// This timestamp can be either the successful or failed full sync end timestamp.
	LastRunEndTimeStamp *metav1.Time `json:"lastRunEndTimeStamp,omitempty"`

	// The last error encountered during CSI full sync operation, if any.
	// Previous error will be cleared when a new full sync is in progress.
	Error string `json:"error,omitempty"`
}

TriggerCsiFullSyncStatus contains the status for a TriggerCsiFullSync

func (*TriggerCsiFullSyncStatus) DeepCopy

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

func (*TriggerCsiFullSyncStatus) DeepCopyInto

func (in *TriggerCsiFullSyncStatus) DeepCopyInto(out *TriggerCsiFullSyncStatus)

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