Documentation
¶
Overview ¶
Package v1 contains the v1 group Sample resources of the anynines provider. +kubebuilder:object:generate=true +groupName=dataservices.anynines.com +versionName=v1
Index ¶
- Constants
- Variables
- type Backup
- func (in *Backup) DeepCopy() *Backup
- func (in *Backup) DeepCopyInto(out *Backup)
- func (in *Backup) DeepCopyObject() runtime.Object
- func (mg *Backup) GetCondition(ct xpv1.ConditionType) xpv1.Condition
- func (mg *Backup) GetDeletionPolicy() xpv1.DeletionPolicy
- func (mg *Backup) GetManagementPolicies() xpv1.ManagementPolicies
- func (mg *Backup) GetProviderConfigReference() *xpv1.Reference
- func (mg *Backup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
- func (mg *Backup) GetWriteConnectionSecretToReference() *xpv1.SecretReference
- func (mg *Backup) SetConditions(c ...xpv1.Condition)
- func (mg *Backup) SetDeletionPolicy(r xpv1.DeletionPolicy)
- func (mg *Backup) SetManagementPolicies(r xpv1.ManagementPolicies)
- func (mg *Backup) SetProviderConfigReference(r *xpv1.Reference)
- func (mg *Backup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
- func (mg *Backup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
- type BackupList
- type BackupObservation
- type BackupParameters
- type BackupSpec
- type BackupStatus
Constants ¶
const ( // StatusQueued is the status that the a9s Backup Manager returns when queried about a backup // that is queued for execution but hasn't begun yet. StatusQueued = "queued" // StatusRunning is the status that the a9s Backup Manager returns when queried about a backup // that is currently being executed. StatusRunning = "running" // StatusDone is the status that the a9s Backup Manager returns when queried about a backup that // has been successfully executed. StatusDone = "done" // StatusFailed is the status that the a9s Backup Manager returns when queried about a backup // whose execution was not successful. StatusFailed = "failed" // StatusDeleted is the status that the a9s Backup Manager returns when queried about a backup // whose backup file has been deleted. // This means the metadata of the backup is still intact on the a9s Backup Manager but the // contents of the backup have been removed from the cloud storage where it was hosted. StatusDeleted = "deleted" )
const ( Group = "dataservices.anynines.com" Version = "v1" )
Package type metadata.
Variables ¶
var ( BackupKind = reflect.TypeOf(Backup{}).Name() BackupGroupKind = schema.GroupKind{Group: Group, Kind: BackupKind}.String() BackupKindAPIVersion = BackupKind + "." + SchemeGroupVersion.String() BackupGroupVersionKind = SchemeGroupVersion.WithKind(BackupKind) )
Backup type metadata.
var ( // SchemeGroupVersion is group version used to register these objects SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BackupSpec `json:"spec"` Status BackupStatus `json:"status,omitempty"` }
A Backup is an example API type. +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:subresource:status +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,anynines}
func (*Backup) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.
func (*Backup) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backup) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Backup) GetCondition ¶
func (mg *Backup) GetCondition(ct xpv1.ConditionType) xpv1.Condition
GetCondition of this Backup.
func (*Backup) GetDeletionPolicy ¶
func (mg *Backup) GetDeletionPolicy() xpv1.DeletionPolicy
GetDeletionPolicy of this Backup.
func (*Backup) GetManagementPolicies ¶
func (mg *Backup) GetManagementPolicies() xpv1.ManagementPolicies
GetManagementPolicies of this Backup.
func (*Backup) GetProviderConfigReference ¶
GetProviderConfigReference of this Backup.
func (*Backup) GetPublishConnectionDetailsTo ¶
func (mg *Backup) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo
GetPublishConnectionDetailsTo of this Backup.
func (*Backup) GetWriteConnectionSecretToReference ¶
func (mg *Backup) GetWriteConnectionSecretToReference() *xpv1.SecretReference
GetWriteConnectionSecretToReference of this Backup.
func (*Backup) SetConditions ¶
SetConditions of this Backup.
func (*Backup) SetDeletionPolicy ¶
func (mg *Backup) SetDeletionPolicy(r xpv1.DeletionPolicy)
SetDeletionPolicy of this Backup.
func (*Backup) SetManagementPolicies ¶
func (mg *Backup) SetManagementPolicies(r xpv1.ManagementPolicies)
SetManagementPolicies of this Backup.
func (*Backup) SetProviderConfigReference ¶
SetProviderConfigReference of this Backup.
func (*Backup) SetPublishConnectionDetailsTo ¶
func (mg *Backup) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)
SetPublishConnectionDetailsTo of this Backup.
func (*Backup) SetWriteConnectionSecretToReference ¶
func (mg *Backup) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)
SetWriteConnectionSecretToReference of this Backup.
type BackupList ¶
type BackupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Backup `json:"items"` }
BackupList contains a list of Backup
func (*BackupList) DeepCopy ¶
func (in *BackupList) DeepCopy() *BackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupList.
func (*BackupList) DeepCopyInto ¶
func (in *BackupList) DeepCopyInto(out *BackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupList) DeepCopyObject ¶
func (in *BackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*BackupList) GetItems ¶
func (l *BackupList) GetItems() []resource.Managed
GetItems of this BackupList.
type BackupObservation ¶
type BackupObservation struct { // InstanceID is the ID of the data service instance to take a backup from. InstanceID string `json:"instanceId,omitempty"` // BackupID is the numeric identifier that the a9s Backup Manager assigned to this specific // backup, e.g. 123456. It is used when communicating with the a9s Backup Manager. BackupID *int `json:"id,omitempty"` // SizeInBytes is the size of the backup in bytes. It is passed without a unit identifier, e.g. // 1000 is passed for a backup that is one kilobyte big. SizeInBytes uint64 `json:"size,omitempty"` // Status is the status of the backup as returned by the a9s Backup Manager. Can be "queued", // "running", "done", "failed" or "deleted". Status string `json:"status,omitempty"` // TriggeredAt is the timestamp from when the backup was triggered in the format // "YYYY-MM-DDThh:mm:ss.sssZ", e.g. "2023-05-01T01:30:00.742Z" TriggeredAt string `json:"triggered_at,omitempty"` // FinishedAt is the timestamp from when the backup was finished in the format // "YYYY-MM-DDThh:mm:ss.sssZ", e.g. "2023-05-01T01:30:28.300Z" FinishedAt string `json:"finished_at,omitempty"` // Downloadable indicates whether the the files that constitute this backup can be downloaded // from the cloud storage provider where it is hosted or not. // This is only true if a user has updated the credentials of the data service instance from // which this backup was taken at least once and the backup this observation belongs to was // taken after the last credential change for the instance. Downloadable bool `json:"downloadable,omitempty"` }
BackupObservation are the observable fields of a Backup.
func (*BackupObservation) DeepCopy ¶
func (in *BackupObservation) DeepCopy() *BackupObservation
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupObservation.
func (*BackupObservation) DeepCopyInto ¶
func (in *BackupObservation) DeepCopyInto(out *BackupObservation)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupParameters ¶
type BackupParameters struct { // InstanceName is the name of the data service instance to take a backup from. InstanceName string `json:"instanceName"` // EncryptionKey is the key used to encrypt backups. EncryptionKey string `json:"encryption_key,omitempty"` // ExcludeFromAutoBackup indicates whether the data service instance will be // excluded from the backup schedule. // https://docs.anynines.com/docs/35.0.0/platform-operator/a9s-backup-service/a9s-po-backup-service-backup-process#regular-backup-cycle ExcludeFromAutoBackup *bool `json:"exclude_from_auto_backup,omitempty"` // CredentialsUpdatedByUser indicates whether credentials are updated by the user. CredentialsUpdatedByUser *bool `json:"credentials_updated_by_user,omitempty"` }
BackupParameters are the configurable fields of a Backup.
func (*BackupParameters) DeepCopy ¶
func (in *BackupParameters) DeepCopy() *BackupParameters
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupParameters.
func (*BackupParameters) DeepCopyInto ¶
func (in *BackupParameters) DeepCopyInto(out *BackupParameters)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupSpec ¶
type BackupSpec struct { xpv1.ResourceSpec `json:",inline"` ForProvider BackupParameters `json:"forProvider"` }
A BackupSpec defines the desired state of a Backup.
func (*BackupSpec) DeepCopy ¶
func (in *BackupSpec) DeepCopy() *BackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.
func (*BackupSpec) DeepCopyInto ¶
func (in *BackupSpec) DeepCopyInto(out *BackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStatus ¶
type BackupStatus struct { xpv1.ResourceStatus `json:",inline"` AtProvider BackupObservation `json:"atProvider,omitempty"` }
A BackupStatus represents the observed state of a Backup.
func (*BackupStatus) DeepCopy ¶
func (in *BackupStatus) DeepCopy() *BackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus.
func (*BackupStatus) DeepCopyInto ¶
func (in *BackupStatus) DeepCopyInto(out *BackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.