v1alpha1

package
v0.0.0-...-7631d13 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/ihcsim/cbt-aggapi/pkg/apis/cbt +k8s:defaulter-gen=TypeMeta +groupName=cbt.storage.k8s.io

Index

Constants

View Source
const ModeBlock = "block"

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{
		Group:   "cbt.storage.k8s.io",
		Version: "v1alpha1",
	}

	SchemeGroupResource = schema.GroupResource{
		Group:    "cbt.storage.k8s.io",
		Resource: "volumesnapshotdeltas",
	}

	AddToScheme = func(scheme *runtime.Scheme) error {
		metav1.AddToGroupVersion(scheme, SchemeGroupVersion)

		scheme.AddKnownTypes(
			SchemeGroupVersion,
			&DriverDiscovery{},
			&DriverDiscoveryList{},
			&VolumeSnapshotDelta{},
			&VolumeSnapshotDeltaList{},
			&VolumeSnapshotDeltaOption{})
		return nil
	}
)

Functions

func RegisterConversions

func RegisterConversions(s *runtime.Scheme) error

RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.

func RegisterDefaults

func RegisterDefaults(scheme *runtime.Scheme) error

RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a qualified GroupResource.

func SetDefaultsVolumeSnapshotDelta

func SetDefaultsVolumeSnapshotDelta(in *VolumeSnapshotDelta)

func SetDefaultsVolumeSnapshotDeltaList

func SetDefaultsVolumeSnapshotDeltaList(in *VolumeSnapshotDeltaList)

func SetDefaultsVolumeSnapshotDeltaSpec

func SetDefaultsVolumeSnapshotDeltaSpec(spec *VolumeSnapshotDeltaSpec)

Types

type ChangedBlockDelta

type ChangedBlockDelta struct {
	// The block logical offset on the volume.
	Offset uint64 `json:"offset"`

	// The size of the block in bytes.
	BlockSizeBytes uint64 `json:"blockSizeBytes"`

	// The token and other information needed to retrieve the actual data block
	// at the given offset.
	DataToken DataToken `json:"dataToken"`
}

func (*ChangedBlockDelta) DeepCopy

func (in *ChangedBlockDelta) DeepCopy() *ChangedBlockDelta

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

func (*ChangedBlockDelta) DeepCopyInto

func (in *ChangedBlockDelta) DeepCopyInto(out *ChangedBlockDelta)

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

type DataToken

type DataToken struct {
	// The token to use to retrieve the actual data block at the given offset.
	Token string `json:"token"`

	// Timestamp when the token is issued.
	IssuanceTime metav1.Time `json:"issuanceTime"`

	// The TTL of the token in seconds. The expiry time is calculated by adding
	// the time of issuance with this value.
	TTL metav1.Duration `json:"ttl"`
}

func (*DataToken) DeepCopy

func (in *DataToken) DeepCopy() *DataToken

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

func (*DataToken) DeepCopyInto

func (in *DataToken) DeepCopyInto(out *DataToken)

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

type DriverDiscovery

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

	Spec DriverDiscoverySpec `json:"spec,omitempty"`
}

DriverDiscovery +k8s:openapi-gen=true

func (*DriverDiscovery) DeepCopy

func (in *DriverDiscovery) DeepCopy() *DriverDiscovery

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

func (*DriverDiscovery) DeepCopyInto

func (in *DriverDiscovery) DeepCopyInto(out *DriverDiscovery)

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

func (*DriverDiscovery) DeepCopyObject

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

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

func (*DriverDiscovery) GetGroupVersionResource

func (in *DriverDiscovery) GetGroupVersionResource() schema.GroupVersionResource

func (*DriverDiscovery) GetObjectMeta

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

func (*DriverDiscovery) IsStorageVersion

func (in *DriverDiscovery) IsStorageVersion() bool

func (*DriverDiscovery) NamespaceScoped

func (in *DriverDiscovery) NamespaceScoped() bool

func (*DriverDiscovery) New

func (in *DriverDiscovery) New() runtime.Object

func (*DriverDiscovery) NewList

func (in *DriverDiscovery) NewList() runtime.Object

func (*DriverDiscovery) Validate

func (in *DriverDiscovery) Validate(ctx context.Context) field.ErrorList

type DriverDiscoveryList

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

	Items []DriverDiscovery `json:"items"`
}

DriverDiscoveryList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*DriverDiscoveryList) DeepCopy

func (in *DriverDiscoveryList) DeepCopy() *DriverDiscoveryList

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

func (*DriverDiscoveryList) DeepCopyInto

func (in *DriverDiscoveryList) DeepCopyInto(out *DriverDiscoveryList)

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

func (*DriverDiscoveryList) DeepCopyObject

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

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

func (*DriverDiscoveryList) GetListMeta

func (in *DriverDiscoveryList) GetListMeta() *metav1.ListMeta

type DriverDiscoverySpec

type DriverDiscoverySpec struct {
	Driver   string  `json:"driverName"`
	CABundle string  `json:"caBundle"`
	Service  Service `json:"service"`
}

DriverDiscoverySpec defines the desired state of DriverDiscovery

func (*DriverDiscoverySpec) DeepCopy

func (in *DriverDiscoverySpec) DeepCopy() *DriverDiscoverySpec

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

func (*DriverDiscoverySpec) DeepCopyInto

func (in *DriverDiscoverySpec) DeepCopyInto(out *DriverDiscoverySpec)

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

type Service

type Service struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace"`
	Path      string `json:"path"`
	Port      int64  `json:"port"`
}

func (*Service) DeepCopy

func (in *Service) DeepCopy() *Service

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

func (*Service) DeepCopyInto

func (in *Service) DeepCopyInto(out *Service)

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

type VolumeSnapshotDelta

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

	Spec   VolumeSnapshotDeltaSpec   `json:"spec,omitempty"`
	Status VolumeSnapshotDeltaStatus `json:"status,omitempty"`
}

VolumeSnapshotDelta +k8s:openapi-gen=true

func (*VolumeSnapshotDelta) DeepCopy

func (in *VolumeSnapshotDelta) DeepCopy() *VolumeSnapshotDelta

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

func (*VolumeSnapshotDelta) DeepCopyInto

func (in *VolumeSnapshotDelta) DeepCopyInto(out *VolumeSnapshotDelta)

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

func (*VolumeSnapshotDelta) DeepCopyObject

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

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

func (*VolumeSnapshotDelta) GetGroupVersionResource

func (in *VolumeSnapshotDelta) GetGroupVersionResource() schema.GroupVersionResource

func (*VolumeSnapshotDelta) GetObjectMeta

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

func (*VolumeSnapshotDelta) GetStatus

func (*VolumeSnapshotDelta) IsStorageVersion

func (in *VolumeSnapshotDelta) IsStorageVersion() bool

func (*VolumeSnapshotDelta) NamespaceScoped

func (in *VolumeSnapshotDelta) NamespaceScoped() bool

func (*VolumeSnapshotDelta) New

func (*VolumeSnapshotDelta) NewList

func (in *VolumeSnapshotDelta) NewList() runtime.Object

func (*VolumeSnapshotDelta) Validate

type VolumeSnapshotDeltaList

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

	Items []VolumeSnapshotDelta `json:"items"`
}

VolumeSnapshotDeltaList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*VolumeSnapshotDeltaList) DeepCopy

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

func (*VolumeSnapshotDeltaList) DeepCopyInto

func (in *VolumeSnapshotDeltaList) DeepCopyInto(out *VolumeSnapshotDeltaList)

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

func (*VolumeSnapshotDeltaList) DeepCopyObject

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

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

func (*VolumeSnapshotDeltaList) GetListMeta

func (in *VolumeSnapshotDeltaList) GetListMeta() *metav1.ListMeta

type VolumeSnapshotDeltaOption

type VolumeSnapshotDeltaOption struct {
	metav1.TypeMeta `json:",inline"`

	// Set to true to fetch all the changed block entries.
	FetchCBD bool `json:"fetchCBD"`

	// Define the maximum number of entries to return in the response.
	Limit uint64 `json:"limit"`

	// Offset defines the start of the block index in the response.
	Offset uint64 `json:"offset"`
}

VolumeSnapshotDeltaOption +k8s:openapi-gen=true

func (*VolumeSnapshotDeltaOption) ConvertFromUrlValues

func (v *VolumeSnapshotDeltaOption) ConvertFromUrlValues(values *url.Values) error

func (*VolumeSnapshotDeltaOption) DeepCopy

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

func (*VolumeSnapshotDeltaOption) DeepCopyInto

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

func (*VolumeSnapshotDeltaOption) DeepCopyObject

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

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

func (*VolumeSnapshotDeltaOption) GetGroupVersionResource

func (in *VolumeSnapshotDeltaOption) GetGroupVersionResource() schema.GroupVersionResource

func (*VolumeSnapshotDeltaOption) IsStorageVersion

func (in *VolumeSnapshotDeltaOption) IsStorageVersion() bool

func (*VolumeSnapshotDeltaOption) NamespaceScoped

func (in *VolumeSnapshotDeltaOption) NamespaceScoped() bool

func (*VolumeSnapshotDeltaOption) New

func (*VolumeSnapshotDeltaOption) Validate

type VolumeSnapshotDeltaSpec

type VolumeSnapshotDeltaSpec struct {
	// The name of the base CSI volume snapshot to use for comparison.
	// If not specified, return all changed blocks.
	// +optional
	BaseVolumeSnapshotName string `json:"baseVolumeSnapshotName,omitempty"`

	// The name of the target CSI volume snapshot to use for comparison.
	// Required.
	TargetVolumeSnapshotName string `json:"targetVolumeSnapshotName"`

	// Defines the type of volume. Default to "block".
	// Required.
	Mode string `json:"mode,omitempty"`
}

VolumeSnapshotDeltaSpec defines the desired state of VolumeSnapshotDelta

func (*VolumeSnapshotDeltaSpec) DeepCopy

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

func (*VolumeSnapshotDeltaSpec) DeepCopyInto

func (in *VolumeSnapshotDeltaSpec) DeepCopyInto(out *VolumeSnapshotDeltaSpec)

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

type VolumeSnapshotDeltaStatus

type VolumeSnapshotDeltaStatus struct {
	// Captures any error encountered.
	Error string `json:"error,omitempty"`

	// The list of changed block data.
	ChangedBlockDeltas []*ChangedBlockDelta `json:"changedBlockDeltas,omitempty"`
}

VolumeSnapshotDeltaStatus defines the observed state of VolumeSnapshotDelta

func (VolumeSnapshotDeltaStatus) CopyTo

func (*VolumeSnapshotDeltaStatus) DeepCopy

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

func (*VolumeSnapshotDeltaStatus) DeepCopyInto

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

func (VolumeSnapshotDeltaStatus) SubResourceName

func (in VolumeSnapshotDeltaStatus) SubResourceName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL