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
- Variables
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaultsVolumeSnapshotDelta(in *VolumeSnapshotDelta)
- func SetDefaultsVolumeSnapshotDeltaList(in *VolumeSnapshotDeltaList)
- func SetDefaultsVolumeSnapshotDeltaSpec(spec *VolumeSnapshotDeltaSpec)
- type ChangedBlockDelta
- type DataToken
- type DriverDiscovery
- func (in *DriverDiscovery) DeepCopy() *DriverDiscovery
- func (in *DriverDiscovery) DeepCopyInto(out *DriverDiscovery)
- func (in *DriverDiscovery) DeepCopyObject() runtime.Object
- func (in *DriverDiscovery) GetGroupVersionResource() schema.GroupVersionResource
- func (in *DriverDiscovery) GetObjectMeta() *metav1.ObjectMeta
- func (in *DriverDiscovery) IsStorageVersion() bool
- func (in *DriverDiscovery) NamespaceScoped() bool
- func (in *DriverDiscovery) New() runtime.Object
- func (in *DriverDiscovery) NewList() runtime.Object
- func (in *DriverDiscovery) Validate(ctx context.Context) field.ErrorList
- type DriverDiscoveryList
- type DriverDiscoverySpec
- type Service
- type VolumeSnapshotDelta
- func (in *VolumeSnapshotDelta) DeepCopy() *VolumeSnapshotDelta
- func (in *VolumeSnapshotDelta) DeepCopyInto(out *VolumeSnapshotDelta)
- func (in *VolumeSnapshotDelta) DeepCopyObject() runtime.Object
- func (in *VolumeSnapshotDelta) GetGroupVersionResource() schema.GroupVersionResource
- func (in *VolumeSnapshotDelta) GetObjectMeta() *metav1.ObjectMeta
- func (in *VolumeSnapshotDelta) GetStatus() resource.StatusSubResource
- func (in *VolumeSnapshotDelta) IsStorageVersion() bool
- func (in *VolumeSnapshotDelta) NamespaceScoped() bool
- func (in *VolumeSnapshotDelta) New() runtime.Object
- func (in *VolumeSnapshotDelta) NewList() runtime.Object
- func (in *VolumeSnapshotDelta) Validate(ctx context.Context) field.ErrorList
- type VolumeSnapshotDeltaList
- type VolumeSnapshotDeltaOption
- func (v *VolumeSnapshotDeltaOption) ConvertFromUrlValues(values *url.Values) error
- func (in *VolumeSnapshotDeltaOption) DeepCopy() *VolumeSnapshotDeltaOption
- func (in *VolumeSnapshotDeltaOption) DeepCopyInto(out *VolumeSnapshotDeltaOption)
- func (in *VolumeSnapshotDeltaOption) DeepCopyObject() runtime.Object
- func (in *VolumeSnapshotDeltaOption) GetGroupVersionResource() schema.GroupVersionResource
- func (in *VolumeSnapshotDeltaOption) IsStorageVersion() bool
- func (in *VolumeSnapshotDeltaOption) NamespaceScoped() bool
- func (in *VolumeSnapshotDeltaOption) New() runtime.Object
- func (in *VolumeSnapshotDeltaOption) Validate(ctx context.Context) field.ErrorList
- type VolumeSnapshotDeltaSpec
- type VolumeSnapshotDeltaStatus
- func (in VolumeSnapshotDeltaStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
- func (in *VolumeSnapshotDeltaStatus) DeepCopy() *VolumeSnapshotDeltaStatus
- func (in *VolumeSnapshotDeltaStatus) DeepCopyInto(out *VolumeSnapshotDeltaStatus)
- func (in VolumeSnapshotDeltaStatus) SubResourceName() string
Constants ¶
const ModeBlock = "block"
Variables ¶
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 ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataToken.
func (*DataToken) DeepCopyInto ¶
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
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶
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 (in *VolumeSnapshotDelta) GetStatus() resource.StatusSubResource
func (*VolumeSnapshotDelta) IsStorageVersion ¶
func (in *VolumeSnapshotDelta) IsStorageVersion() bool
func (*VolumeSnapshotDelta) NamespaceScoped ¶
func (in *VolumeSnapshotDelta) NamespaceScoped() bool
func (*VolumeSnapshotDelta) New ¶
func (in *VolumeSnapshotDelta) New() runtime.Object
func (*VolumeSnapshotDelta) NewList ¶
func (in *VolumeSnapshotDelta) NewList() runtime.Object
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 ¶
func (in *VolumeSnapshotDeltaList) DeepCopy() *VolumeSnapshotDeltaList
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 ¶
func (in *VolumeSnapshotDeltaOption) DeepCopy() *VolumeSnapshotDeltaOption
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDeltaOption.
func (*VolumeSnapshotDeltaOption) DeepCopyInto ¶
func (in *VolumeSnapshotDeltaOption) DeepCopyInto(out *VolumeSnapshotDeltaOption)
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 (in *VolumeSnapshotDeltaOption) New() runtime.Object
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 ¶
func (in *VolumeSnapshotDeltaSpec) DeepCopy() *VolumeSnapshotDeltaSpec
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 (in VolumeSnapshotDeltaStatus) CopyTo(parent resource.ObjectWithStatusSubResource)
func (*VolumeSnapshotDeltaStatus) DeepCopy ¶
func (in *VolumeSnapshotDeltaStatus) DeepCopy() *VolumeSnapshotDeltaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSnapshotDeltaStatus.
func (*VolumeSnapshotDeltaStatus) DeepCopyInto ¶
func (in *VolumeSnapshotDeltaStatus) DeepCopyInto(out *VolumeSnapshotDeltaStatus)
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