Documentation ¶
Overview ¶
Copyright 2020 the Velero contributors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func WithAnnotations(vals ...string) func(obj metav1.Object)
- func WithAnnotationsMap(annotations map[string]string) func(obj metav1.Object)
- func WithCreationTimestamp(t time.Time) func(obj metav1.Object)
- func WithDeletionTimestamp(val time.Time) func(obj metav1.Object)
- func WithFinalizers(vals ...string) func(obj metav1.Object)
- func WithGenerateName(val string) func(obj metav1.Object)
- func WithLabels(vals ...string) func(obj metav1.Object)
- func WithLabelsMap(labels map[string]string) func(obj metav1.Object)
- func WithManagedFields(val []metav1.ManagedFieldsEntry) func(obj metav1.Object)
- func WithName(val string) func(obj metav1.Object)
- func WithOwnerReference(val []metav1.OwnerReference) func(obj metav1.Object)
- func WithResourceVersion(val string) func(obj metav1.Object)
- func WithUID(val string) func(obj metav1.Object)
- type BackupBuilder
- func (b *BackupBuilder) CSISnapshotTimeout(timeout time.Duration) *BackupBuilder
- func (b *BackupBuilder) CompletionTimestamp(val time.Time) *BackupBuilder
- func (b *BackupBuilder) DataMover(name string) *BackupBuilder
- func (b *BackupBuilder) DefaultVolumesToFsBackup(val bool) *BackupBuilder
- func (b *BackupBuilder) DefaultVolumesToRestic(val bool) *BackupBuilder
- func (b *BackupBuilder) ExcludedClusterScopedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) ExcludedNamespaceScopedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) ExcludedNamespaces(namespaces ...string) *BackupBuilder
- func (b *BackupBuilder) ExcludedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) Expiration(val time.Time) *BackupBuilder
- func (b *BackupBuilder) FromSchedule(schedule *velerov1api.Schedule) *BackupBuilder
- func (b *BackupBuilder) Hooks(hooks velerov1api.BackupHooks) *BackupBuilder
- func (b *BackupBuilder) IncludeClusterResources(val bool) *BackupBuilder
- func (b *BackupBuilder) IncludedClusterScopedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) IncludedNamespaceScopedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) IncludedNamespaces(namespaces ...string) *BackupBuilder
- func (b *BackupBuilder) IncludedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) ItemOperationTimeout(timeout time.Duration) *BackupBuilder
- func (b *BackupBuilder) LabelSelector(selector *metav1.LabelSelector) *BackupBuilder
- func (b *BackupBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupBuilder
- func (b *BackupBuilder) OrLabelSelector(orSelectors []*metav1.LabelSelector) *BackupBuilder
- func (b *BackupBuilder) OrderedResources(orders map[string]string) *BackupBuilder
- func (b *BackupBuilder) ParallelFilesUpload(parallel int) *BackupBuilder
- func (b *BackupBuilder) Phase(phase velerov1api.BackupPhase) *BackupBuilder
- func (b *BackupBuilder) ResourcePolicies(name string) *BackupBuilder
- func (b *BackupBuilder) Result() *velerov1api.Backup
- func (b *BackupBuilder) SnapshotMoveData(val bool) *BackupBuilder
- func (b *BackupBuilder) SnapshotVolumes(val bool) *BackupBuilder
- func (b *BackupBuilder) StartTimestamp(val time.Time) *BackupBuilder
- func (b *BackupBuilder) StorageLocation(location string) *BackupBuilder
- func (b *BackupBuilder) TTL(ttl time.Duration) *BackupBuilder
- func (b *BackupBuilder) VolumeSnapshotLocations(locations ...string) *BackupBuilder
- func (b *BackupBuilder) WithStatus(status velerov1api.BackupStatus) *BackupBuilder
- type BackupOperationBuilder
- func (bb *BackupOperationBuilder) BackupItemAction(bia string) *BackupOperationBuilder
- func (bb *BackupOperationBuilder) BackupName(name string) *BackupOperationBuilder
- func (bb *BackupOperationBuilder) OperationID(id string) *BackupOperationBuilder
- func (bb *BackupOperationBuilder) PostOperationItem(group, resource, ns, name string) *BackupOperationBuilder
- func (bb *BackupOperationBuilder) ResourceIdentifier(group, resource, ns, name string) *BackupOperationBuilder
- func (bb *BackupOperationBuilder) Result() *itemoperation.BackupOperation
- func (bb *BackupOperationBuilder) Status(status itemoperation.OperationStatus) *BackupOperationBuilder
- type BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) AccessMode(accessMode velerov1api.BackupStorageLocationAccessMode) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Bucket(val string) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) CACert(val []byte) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Credential(selector *corev1api.SecretKeySelector) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Default(isDefault bool) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) LastValidationTime(lastValidated time.Time) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Phase(phase velerov1api.BackupStorageLocationPhase) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Prefix(val string) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Provider(name string) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Result() *velerov1api.BackupStorageLocation
- func (b *BackupStorageLocationBuilder) ValidationFrequency(frequency time.Duration) *BackupStorageLocationBuilder
- type ConfigMapBuilder
- type ContainerBuilder
- func (b *ContainerBuilder) Args(args ...string) *ContainerBuilder
- func (b *ContainerBuilder) Command(command []string) *ContainerBuilder
- func (b *ContainerBuilder) Env(vars ...*corev1api.EnvVar) *ContainerBuilder
- func (b *ContainerBuilder) PullPolicy(pullPolicy corev1api.PullPolicy) *ContainerBuilder
- func (b *ContainerBuilder) Resources(resources *corev1api.ResourceRequirements) *ContainerBuilder
- func (b *ContainerBuilder) Result() *corev1api.Container
- func (b *ContainerBuilder) ResultRawExtension() apimachineryRuntime.RawExtension
- func (b *ContainerBuilder) SecurityContext(securityContext *corev1api.SecurityContext) *ContainerBuilder
- func (b *ContainerBuilder) VolumeMounts(volumeMounts ...*corev1api.VolumeMount) *ContainerBuilder
- type CustomResourceDefinitionV1Beta1Builder
- func (c *CustomResourceDefinitionV1Beta1Builder) Condition(cond apiextv1beta1.CustomResourceDefinitionCondition) *CustomResourceDefinitionV1Beta1Builder
- func (c *CustomResourceDefinitionV1Beta1Builder) ObjectMeta(opts ...ObjectMetaOpt) *CustomResourceDefinitionV1Beta1Builder
- func (c *CustomResourceDefinitionV1Beta1Builder) Result() *apiextv1beta1.CustomResourceDefinition
- type CustomResourceDefinitionV1Beta1ConditionBuilder
- func (c *CustomResourceDefinitionV1Beta1ConditionBuilder) Result() apiextv1beta1.CustomResourceDefinitionCondition
- func (c *CustomResourceDefinitionV1Beta1ConditionBuilder) Status(cs apiextv1beta1.ConditionStatus) *CustomResourceDefinitionV1Beta1ConditionBuilder
- func (c *CustomResourceDefinitionV1Beta1ConditionBuilder) Type(t apiextv1beta1.CustomResourceDefinitionConditionType) *CustomResourceDefinitionV1Beta1ConditionBuilder
- type DataDownloadBuilder
- func (d *DataDownloadBuilder) BackupStorageLocation(name string) *DataDownloadBuilder
- func (d *DataDownloadBuilder) Cancel(cancel bool) *DataDownloadBuilder
- func (d *DataDownloadBuilder) DataMover(dataMover string) *DataDownloadBuilder
- func (d *DataDownloadBuilder) DataMoverConfig(config *map[string]string) *DataDownloadBuilder
- func (d *DataDownloadBuilder) ObjectMeta(opts ...ObjectMetaOpt) *DataDownloadBuilder
- func (d *DataDownloadBuilder) OperationTimeout(timeout metav1.Duration) *DataDownloadBuilder
- func (d *DataDownloadBuilder) Phase(phase velerov2alpha1api.DataDownloadPhase) *DataDownloadBuilder
- func (d *DataDownloadBuilder) Result() *velerov2alpha1api.DataDownload
- func (d *DataDownloadBuilder) SnapshotID(id string) *DataDownloadBuilder
- func (d *DataDownloadBuilder) SourceNamespace(sourceNamespace string) *DataDownloadBuilder
- func (d *DataDownloadBuilder) StartTimestamp(startTime *metav1.Time) *DataDownloadBuilder
- func (d *DataDownloadBuilder) TargetVolume(targetVolume velerov2alpha1api.TargetVolumeSpec) *DataDownloadBuilder
- type DataUploadBuilder
- func (d *DataUploadBuilder) BackupStorageLocation(name string) *DataUploadBuilder
- func (d *DataUploadBuilder) CSISnapshot(cSISnapshot *velerov2alpha1api.CSISnapshotSpec) *DataUploadBuilder
- func (d *DataUploadBuilder) Cancel(cancel bool) *DataUploadBuilder
- func (d *DataUploadBuilder) CompletionTimestamp(completionTimestamp *metav1.Time) *DataUploadBuilder
- func (d *DataUploadBuilder) DataMover(dataMover string) *DataUploadBuilder
- func (d *DataUploadBuilder) DataMoverConfig(config map[string]string) *DataUploadBuilder
- func (d *DataUploadBuilder) Labels(labels map[string]string) *DataUploadBuilder
- func (d *DataUploadBuilder) OperationTimeout(timeout metav1.Duration) *DataUploadBuilder
- func (d *DataUploadBuilder) Phase(phase velerov2alpha1api.DataUploadPhase) *DataUploadBuilder
- func (d *DataUploadBuilder) Progress(progress shared.DataMoveOperationProgress) *DataUploadBuilder
- func (d *DataUploadBuilder) Result() *velerov2alpha1api.DataUpload
- func (d *DataUploadBuilder) SnapshotID(id string) *DataUploadBuilder
- func (d *DataUploadBuilder) SnapshotType(SnapshotType velerov2alpha1api.SnapshotType) *DataUploadBuilder
- func (d *DataUploadBuilder) SourceNamespace(sourceNamespace string) *DataUploadBuilder
- func (d *DataUploadBuilder) SourcePVC(sourcePVC string) *DataUploadBuilder
- func (d *DataUploadBuilder) StartTimestamp(startTimestamp *metav1.Time) *DataUploadBuilder
- type DeleteBackupRequestBuilder
- func (b *DeleteBackupRequestBuilder) BackupName(name string) *DeleteBackupRequestBuilder
- func (b *DeleteBackupRequestBuilder) Errors(errors ...string) *DeleteBackupRequestBuilder
- func (b *DeleteBackupRequestBuilder) ObjectMeta(opts ...ObjectMetaOpt) *DeleteBackupRequestBuilder
- func (b *DeleteBackupRequestBuilder) Phase(phase velerov1api.DeleteBackupRequestPhase) *DeleteBackupRequestBuilder
- func (b *DeleteBackupRequestBuilder) Result() *velerov1api.DeleteBackupRequest
- type DeploymentBuilder
- type DownloadRequestBuilder
- type JSONSchemaPropsBuilder
- type NamespaceBuilder
- type NodeBuilder
- type NodeSelectorBuilder
- type NodeSelectorTermBuilder
- func (ntb *NodeSelectorTermBuilder) Result() *corev1api.NodeSelectorTerm
- func (ntb *NodeSelectorTermBuilder) WithMatchExpression(key string, op string, values ...string) *NodeSelectorTermBuilder
- func (ntb *NodeSelectorTermBuilder) WithMatchField(key string, op string, values ...string) *NodeSelectorTermBuilder
- type ObjectMetaOpt
- type OperationStatusBuilder
- func (osb *OperationStatusBuilder) Created(t time.Time) *OperationStatusBuilder
- func (osb *OperationStatusBuilder) Description(desc string) *OperationStatusBuilder
- func (osb *OperationStatusBuilder) Error(err string) *OperationStatusBuilder
- func (osb *OperationStatusBuilder) Phase(phase itemoperation.OperationPhase) *OperationStatusBuilder
- func (osb *OperationStatusBuilder) Progress(nComplete int64, nTotal int64, operationUnits string) *OperationStatusBuilder
- func (osb *OperationStatusBuilder) Result() *itemoperation.OperationStatus
- func (osb *OperationStatusBuilder) Started(t time.Time) *OperationStatusBuilder
- func (osb *OperationStatusBuilder) Updated(t time.Time) *OperationStatusBuilder
- type PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) AWSEBSVolumeID(volumeID string) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) CSI(driver, volumeHandle string) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) ClaimRef(ns, name string) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) NodeAffinityRequired(req *corev1api.NodeSelector) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) Phase(phase corev1api.PersistentVolumePhase) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) ReclaimPolicy(policy corev1api.PersistentVolumeReclaimPolicy) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) Result() *corev1api.PersistentVolume
- func (b *PersistentVolumeBuilder) StorageClass(name string) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) VolumeMode(volMode corev1api.PersistentVolumeMode) *PersistentVolumeBuilder
- type PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) DataSource(dataSource *corev1api.TypedLocalObjectReference) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) DataSourceRef(dataSourceRef *corev1api.TypedObjectReference) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) LimitResource(limits corev1api.ResourceList) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) Phase(phase corev1api.PersistentVolumeClaimPhase) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) RequestResource(requests corev1api.ResourceList) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) Result() *corev1api.PersistentVolumeClaim
- func (b *PersistentVolumeClaimBuilder) Selector(labelSelector *metav1.LabelSelector) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) StorageClass(name string) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) VolumeName(name string) *PersistentVolumeClaimBuilder
- type PodBuilder
- func (b *PodBuilder) ContainerStatuses(containerStatuses ...*corev1api.ContainerStatus) *PodBuilder
- func (b *PodBuilder) Containers(containers ...*corev1api.Container) *PodBuilder
- func (b *PodBuilder) InitContainers(containers ...*corev1api.Container) *PodBuilder
- func (b *PodBuilder) Labels(labels map[string]string) *PodBuilder
- func (b *PodBuilder) NodeName(val string) *PodBuilder
- func (b *PodBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodBuilder
- func (b *PodBuilder) Phase(phase corev1api.PodPhase) *PodBuilder
- func (b *PodBuilder) Result() *corev1api.Pod
- func (b *PodBuilder) ServiceAccount(sa string) *PodBuilder
- func (b *PodBuilder) Status(status corev1api.PodStatus) *PodBuilder
- func (b *PodBuilder) Volumes(volumes ...*corev1api.Volume) *PodBuilder
- type PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) BackupStorageLocation(name string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) CompletionTimestamp(completionTimestamp *metav1.Time) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) Node(name string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) Phase(phase velerov1api.PodVolumeBackupPhase) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) PodName(name string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) PodNamespace(ns string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) Result() *velerov1api.PodVolumeBackup
- func (b *PodVolumeBackupBuilder) SnapshotID(snapshotID string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) StartTimestamp(startTimestamp *metav1.Time) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) UploaderType(uploaderType string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) Volume(volume string) *PodVolumeBackupBuilder
- type PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) BackupStorageLocation(name string) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) Phase(phase velerov1api.PodVolumeRestorePhase) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) PodName(name string) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) PodNamespace(ns string) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) Result() *velerov1api.PodVolumeRestore
- func (b *PodVolumeRestoreBuilder) SnapshotID(snapshotID string) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) UploaderType(uploaderType string) *PodVolumeRestoreBuilder
- func (b *PodVolumeRestoreBuilder) Volume(volume string) *PodVolumeRestoreBuilder
- type RestoreBuilder
- func (b *RestoreBuilder) Backup(name string) *RestoreBuilder
- func (b *RestoreBuilder) CompletionTimestamp(val time.Time) *RestoreBuilder
- func (b *RestoreBuilder) ExcludedNamespaces(namespaces ...string) *RestoreBuilder
- func (b *RestoreBuilder) ExcludedResources(resources ...string) *RestoreBuilder
- func (b *RestoreBuilder) ExistingResourcePolicy(policy string) *RestoreBuilder
- func (b *RestoreBuilder) IncludeClusterResources(val bool) *RestoreBuilder
- func (b *RestoreBuilder) IncludedNamespaces(namespaces ...string) *RestoreBuilder
- func (b *RestoreBuilder) IncludedResources(resources ...string) *RestoreBuilder
- func (b *RestoreBuilder) ItemOperationTimeout(timeout time.Duration) *RestoreBuilder
- func (b *RestoreBuilder) LabelSelector(selector *metav1.LabelSelector) *RestoreBuilder
- func (b *RestoreBuilder) NamespaceMappings(mapping ...string) *RestoreBuilder
- func (b *RestoreBuilder) ObjectMeta(opts ...ObjectMetaOpt) *RestoreBuilder
- func (b *RestoreBuilder) OrLabelSelector(orSelectors []*metav1.LabelSelector) *RestoreBuilder
- func (b *RestoreBuilder) Phase(phase velerov1api.RestorePhase) *RestoreBuilder
- func (b *RestoreBuilder) PreserveNodePorts(val bool) *RestoreBuilder
- func (b *RestoreBuilder) RestorePVs(val bool) *RestoreBuilder
- func (b *RestoreBuilder) Result() *velerov1api.Restore
- func (b *RestoreBuilder) Schedule(name string) *RestoreBuilder
- func (b *RestoreBuilder) StartTimestamp(val time.Time) *RestoreBuilder
- type RestoreOperationBuilder
- func (rb *RestoreOperationBuilder) OperationID(id string) *RestoreOperationBuilder
- func (rb *RestoreOperationBuilder) ResourceIdentifier(group, resource, ns, name string) *RestoreOperationBuilder
- func (rb *RestoreOperationBuilder) RestoreItemAction(ria string) *RestoreOperationBuilder
- func (rb *RestoreOperationBuilder) RestoreName(name string) *RestoreOperationBuilder
- func (rb *RestoreOperationBuilder) Result() *itemoperation.RestoreOperation
- func (rb *RestoreOperationBuilder) Status(status itemoperation.OperationStatus) *RestoreOperationBuilder
- type RoleBuilder
- type ScheduleBuilder
- func (b *ScheduleBuilder) CronSchedule(expression string) *ScheduleBuilder
- func (b *ScheduleBuilder) LastBackupTime(val string) *ScheduleBuilder
- func (b *ScheduleBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ScheduleBuilder
- func (b *ScheduleBuilder) Phase(phase velerov1api.SchedulePhase) *ScheduleBuilder
- func (b *ScheduleBuilder) Result() *velerov1api.Schedule
- func (b *ScheduleBuilder) SkipImmediately(skip *bool) *ScheduleBuilder
- func (b *ScheduleBuilder) Template(spec velerov1api.BackupSpec) *ScheduleBuilder
- func (b *ScheduleBuilder) ValidationError(err string) *ScheduleBuilder
- type SecretBuilder
- type SecretKeySelectorBuilder
- type ServerStatusRequestBuilder
- func (b *ServerStatusRequestBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ServerStatusRequestBuilder
- func (b *ServerStatusRequestBuilder) Phase(phase velerov1api.ServerStatusRequestPhase) *ServerStatusRequestBuilder
- func (b *ServerStatusRequestBuilder) Plugins(plugins []velerov1api.PluginInfo) *ServerStatusRequestBuilder
- func (b *ServerStatusRequestBuilder) ProcessedTimestamp(time time.Time) *ServerStatusRequestBuilder
- func (b *ServerStatusRequestBuilder) Result() *velerov1api.ServerStatusRequest
- func (b *ServerStatusRequestBuilder) ServerVersion(version string) *ServerStatusRequestBuilder
- type ServiceAccountBuilder
- type ServiceBuilder
- type StatefulSetBuilder
- type StorageClassBuilder
- func (b *StorageClassBuilder) ObjectMeta(opts ...ObjectMetaOpt) *StorageClassBuilder
- func (b *StorageClassBuilder) Provisioner(provisioner string) *StorageClassBuilder
- func (b *StorageClassBuilder) Result() *storagev1api.StorageClass
- func (b *StorageClassBuilder) SliceResult() []*storagev1api.StorageClass
- type TestCR
- type TestCRBuilder
- type TestCRSpec
- type TestCRStatus
- type V1CustomResourceDefinitionBuilder
- func (b *V1CustomResourceDefinitionBuilder) Condition(cond apiextv1.CustomResourceDefinitionCondition) *V1CustomResourceDefinitionBuilder
- func (b *V1CustomResourceDefinitionBuilder) ObjectMeta(opts ...ObjectMetaOpt) *V1CustomResourceDefinitionBuilder
- func (b *V1CustomResourceDefinitionBuilder) PreserveUnknownFields(preserve bool) *V1CustomResourceDefinitionBuilder
- func (b *V1CustomResourceDefinitionBuilder) Result() *apiextv1.CustomResourceDefinition
- func (b *V1CustomResourceDefinitionBuilder) Version(ver apiextv1.CustomResourceDefinitionVersion) *V1CustomResourceDefinitionBuilder
- type V1CustomResourceDefinitionConditionBuilder
- func (c *V1CustomResourceDefinitionConditionBuilder) Result() apiextv1.CustomResourceDefinitionCondition
- func (c *V1CustomResourceDefinitionConditionBuilder) Status(cs apiextv1.ConditionStatus) *V1CustomResourceDefinitionConditionBuilder
- func (c *V1CustomResourceDefinitionConditionBuilder) Type(t apiextv1.CustomResourceDefinitionConditionType) *V1CustomResourceDefinitionConditionBuilder
- type V1CustomResourceDefinitionVersionBuilder
- func (c *V1CustomResourceDefinitionVersionBuilder) Result() apiextv1.CustomResourceDefinitionVersion
- func (c *V1CustomResourceDefinitionVersionBuilder) Schema(s *apiextv1.JSONSchemaProps) *V1CustomResourceDefinitionVersionBuilder
- func (c *V1CustomResourceDefinitionVersionBuilder) Served(s bool) *V1CustomResourceDefinitionVersionBuilder
- func (c *V1CustomResourceDefinitionVersionBuilder) Storage(s bool) *V1CustomResourceDefinitionVersionBuilder
- type VolumeBuilder
- type VolumeMountBuilder
- type VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) BoundVolumeSnapshotContentName(vscName string) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) ReadyToUse(readyToUse bool) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) RestoreSize(size string) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) Result() *snapshotv1api.VolumeSnapshot
- func (v *VolumeSnapshotBuilder) SourcePVC(name string) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) SourceVolumeSnapshotContentName(name string) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) Status() *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) StatusError(snapshotError snapshotv1api.VolumeSnapshotError) *VolumeSnapshotBuilder
- func (v *VolumeSnapshotBuilder) VolumeSnapshotClass(name string) *VolumeSnapshotBuilder
- type VolumeSnapshotClassBuilder
- type VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) DeletionPolicy(policy snapshotv1api.DeletionPolicy) *VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) Driver(driver string) *VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) Result() *snapshotv1api.VolumeSnapshotContent
- func (v *VolumeSnapshotContentBuilder) Source(source snapshotv1api.VolumeSnapshotContentSource) *VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) Status(status *snapshotv1api.VolumeSnapshotContentStatus) *VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) VolumeSnapshotClassName(name string) *VolumeSnapshotContentBuilder
- func (v *VolumeSnapshotContentBuilder) VolumeSnapshotRef(namespace, name string) *VolumeSnapshotContentBuilder
- type VolumeSnapshotLocationBuilder
- func (b *VolumeSnapshotLocationBuilder) Credential(selector *corev1api.SecretKeySelector) *VolumeSnapshotLocationBuilder
- func (b *VolumeSnapshotLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotLocationBuilder
- func (b *VolumeSnapshotLocationBuilder) Provider(name string) *VolumeSnapshotLocationBuilder
- func (b *VolumeSnapshotLocationBuilder) Result() *velerov1api.VolumeSnapshotLocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAnnotations ¶
WithAnnotations is a functional option that applies the specified annotation keys/values to an object.
func WithAnnotationsMap ¶ added in v1.6.0
WithAnnotationsMap is a functional option that applies the specified annotations map to an object.
func WithCreationTimestamp ¶ added in v1.12.0
WithCreationTimestamp is a functional option that applies the specified creationTimestamp
func WithDeletionTimestamp ¶
WithDeletionTimestamp is a functional option that applies the specified deletion timestamp to an object.
func WithFinalizers ¶
WithFinalizers is a functional option that applies the specified finalizers to an object.
func WithGenerateName ¶
WithGenerateName is a functional option that applies the specified generate name to an object.
func WithLabels ¶
WithLabels is a functional option that applies the specified label keys/values to an object.
func WithLabelsMap ¶ added in v1.2.0
WithLabelsMap is a functional option that applies the specified labels map to an object.
func WithManagedFields ¶ added in v1.10.2
func WithManagedFields(val []metav1.ManagedFieldsEntry) func(obj metav1.Object)
WithManagedFields is a functional option that applies the specified managed fields to an object.
func WithOwnerReference ¶ added in v1.12.0
func WithOwnerReference(val []metav1.OwnerReference) func(obj metav1.Object)
WithOwnerReference is a functional option that applies the specified OwnerReference to an object.
func WithResourceVersion ¶ added in v1.5.1
WithResourceVersion is a functional option that applies the specified resourceVersion to an object
Types ¶
type BackupBuilder ¶
type BackupBuilder struct {
// contains filtered or unexported fields
}
BackupBuilder builds Backup objects.
func ForBackup ¶
func ForBackup(ns, name string) *BackupBuilder
ForBackup is the constructor for a BackupBuilder.
func (*BackupBuilder) CSISnapshotTimeout ¶ added in v1.9.1
func (b *BackupBuilder) CSISnapshotTimeout(timeout time.Duration) *BackupBuilder
CSISnapshotTimeout sets the Backup's CSISnapshotTimeout
func (*BackupBuilder) CompletionTimestamp ¶ added in v1.3.0
func (b *BackupBuilder) CompletionTimestamp(val time.Time) *BackupBuilder
CompletionTimestamp sets the Backup's completion timestamp.
func (*BackupBuilder) DataMover ¶ added in v1.12.0
func (b *BackupBuilder) DataMover(name string) *BackupBuilder
DataMover sets the Backup's data mover
func (*BackupBuilder) DefaultVolumesToFsBackup ¶ added in v1.10.0
func (b *BackupBuilder) DefaultVolumesToFsBackup(val bool) *BackupBuilder
DefaultVolumesToFsBackup sets the Backup's "DefaultVolumesToFsBackup" flag.
func (*BackupBuilder) DefaultVolumesToRestic ¶ added in v1.5.0
func (b *BackupBuilder) DefaultVolumesToRestic(val bool) *BackupBuilder
DefaultVolumesToRestic sets the Backup's "DefaultVolumesToRestic" flag.
func (*BackupBuilder) ExcludedClusterScopedResources ¶ added in v1.11.0
func (b *BackupBuilder) ExcludedClusterScopedResources(resources ...string) *BackupBuilder
ExcludedClusterScopedResources sets the Backup's excluded cluster resources.
func (*BackupBuilder) ExcludedNamespaceScopedResources ¶ added in v1.11.0
func (b *BackupBuilder) ExcludedNamespaceScopedResources(resources ...string) *BackupBuilder
ExcludedNamespaceScopedResources sets the Backup's excluded namespaced resources.
func (*BackupBuilder) ExcludedNamespaces ¶
func (b *BackupBuilder) ExcludedNamespaces(namespaces ...string) *BackupBuilder
ExcludedNamespaces sets the Backup's excluded namespaces.
func (*BackupBuilder) ExcludedResources ¶
func (b *BackupBuilder) ExcludedResources(resources ...string) *BackupBuilder
ExcludedResources sets the Backup's excluded resources.
func (*BackupBuilder) Expiration ¶
func (b *BackupBuilder) Expiration(val time.Time) *BackupBuilder
Expiration sets the Backup's expiration.
func (*BackupBuilder) FromSchedule ¶ added in v1.2.0
func (b *BackupBuilder) FromSchedule(schedule *velerov1api.Schedule) *BackupBuilder
FromSchedule sets the Backup's spec and labels from the Schedule template
func (*BackupBuilder) Hooks ¶
func (b *BackupBuilder) Hooks(hooks velerov1api.BackupHooks) *BackupBuilder
Hooks sets the Backup's hooks.
func (*BackupBuilder) IncludeClusterResources ¶
func (b *BackupBuilder) IncludeClusterResources(val bool) *BackupBuilder
IncludeClusterResources sets the Backup's "include cluster resources" flag.
func (*BackupBuilder) IncludedClusterScopedResources ¶ added in v1.11.0
func (b *BackupBuilder) IncludedClusterScopedResources(resources ...string) *BackupBuilder
IncludedClusterScopedResources sets the Backup's included cluster resources.
func (*BackupBuilder) IncludedNamespaceScopedResources ¶ added in v1.11.0
func (b *BackupBuilder) IncludedNamespaceScopedResources(resources ...string) *BackupBuilder
IncludedNamespaceScopedResources sets the Backup's included namespaced resources.
func (*BackupBuilder) IncludedNamespaces ¶
func (b *BackupBuilder) IncludedNamespaces(namespaces ...string) *BackupBuilder
IncludedNamespaces sets the Backup's included namespaces.
func (*BackupBuilder) IncludedResources ¶
func (b *BackupBuilder) IncludedResources(resources ...string) *BackupBuilder
IncludedResources sets the Backup's included resources.
func (*BackupBuilder) ItemOperationTimeout ¶ added in v1.11.0
func (b *BackupBuilder) ItemOperationTimeout(timeout time.Duration) *BackupBuilder
ItemOperationTimeout sets the Backup's ItemOperationTimeout
func (*BackupBuilder) LabelSelector ¶
func (b *BackupBuilder) LabelSelector(selector *metav1.LabelSelector) *BackupBuilder
LabelSelector sets the Backup's label selector.
func (*BackupBuilder) ObjectMeta ¶
func (b *BackupBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupBuilder
ObjectMeta applies functional options to the Backup's ObjectMeta.
func (*BackupBuilder) OrLabelSelector ¶ added in v1.9.0
func (b *BackupBuilder) OrLabelSelector(orSelectors []*metav1.LabelSelector) *BackupBuilder
OrLabelSelector sets the Backup's orLabelSelector set.
func (*BackupBuilder) OrderedResources ¶ added in v1.5.0
func (b *BackupBuilder) OrderedResources(orders map[string]string) *BackupBuilder
OrderedResources sets the Backup's OrderedResources
func (*BackupBuilder) ParallelFilesUpload ¶ added in v1.13.0
func (b *BackupBuilder) ParallelFilesUpload(parallel int) *BackupBuilder
ParallelFilesUpload sets the Backup's uploader parallel uploads
func (*BackupBuilder) Phase ¶
func (b *BackupBuilder) Phase(phase velerov1api.BackupPhase) *BackupBuilder
Phase sets the Backup's phase.
func (*BackupBuilder) ResourcePolicies ¶ added in v1.11.0
func (b *BackupBuilder) ResourcePolicies(name string) *BackupBuilder
ResourcePolicies sets the Backup's resource polices.
func (*BackupBuilder) Result ¶
func (b *BackupBuilder) Result() *velerov1api.Backup
Result returns the built Backup.
func (*BackupBuilder) SnapshotMoveData ¶ added in v1.12.0
func (b *BackupBuilder) SnapshotMoveData(val bool) *BackupBuilder
SnapshotMoveData sets the Backup's "snapshot move data" flag.
func (*BackupBuilder) SnapshotVolumes ¶
func (b *BackupBuilder) SnapshotVolumes(val bool) *BackupBuilder
SnapshotVolumes sets the Backup's "snapshot volumes" flag.
func (*BackupBuilder) StartTimestamp ¶
func (b *BackupBuilder) StartTimestamp(val time.Time) *BackupBuilder
StartTimestamp sets the Backup's start timestamp.
func (*BackupBuilder) StorageLocation ¶
func (b *BackupBuilder) StorageLocation(location string) *BackupBuilder
StorageLocation sets the Backup's storage location.
func (*BackupBuilder) TTL ¶
func (b *BackupBuilder) TTL(ttl time.Duration) *BackupBuilder
TTL sets the Backup's TTL.
func (*BackupBuilder) VolumeSnapshotLocations ¶
func (b *BackupBuilder) VolumeSnapshotLocations(locations ...string) *BackupBuilder
VolumeSnapshotLocations sets the Backup's volume snapshot locations.
func (*BackupBuilder) WithStatus ¶ added in v1.12.2
func (b *BackupBuilder) WithStatus(status velerov1api.BackupStatus) *BackupBuilder
WithStatus sets the Backup's status.
type BackupOperationBuilder ¶ added in v1.12.0
type BackupOperationBuilder struct {
// contains filtered or unexported fields
}
BackupOperationBuilder builds BackupOperation objects
func ForBackupOperation ¶ added in v1.12.0
func ForBackupOperation() *BackupOperationBuilder
ForBackupOperation is the constructor for a BackupOperationBuilder.
func (*BackupOperationBuilder) BackupItemAction ¶ added in v1.12.0
func (bb *BackupOperationBuilder) BackupItemAction(bia string) *BackupOperationBuilder
BackupItemAction sets the BackupOperation's backup item action.
func (*BackupOperationBuilder) BackupName ¶ added in v1.12.0
func (bb *BackupOperationBuilder) BackupName(name string) *BackupOperationBuilder
BackupName sets the BackupOperation's backup name.
func (*BackupOperationBuilder) OperationID ¶ added in v1.12.0
func (bb *BackupOperationBuilder) OperationID(id string) *BackupOperationBuilder
OperationID sets the BackupOperation's operation ID.
func (*BackupOperationBuilder) PostOperationItem ¶ added in v1.12.0
func (bb *BackupOperationBuilder) PostOperationItem(group, resource, ns, name string) *BackupOperationBuilder
PostOperationItem adds a post-operation item to the BackupOperation's list of post-operation items.
func (*BackupOperationBuilder) ResourceIdentifier ¶ added in v1.12.0
func (bb *BackupOperationBuilder) ResourceIdentifier(group, resource, ns, name string) *BackupOperationBuilder
ResourceIdentifier sets the BackupOperation's resource identifier.
func (*BackupOperationBuilder) Result ¶ added in v1.12.0
func (bb *BackupOperationBuilder) Result() *itemoperation.BackupOperation
Result returns the built BackupOperation.
func (*BackupOperationBuilder) Status ¶ added in v1.12.0
func (bb *BackupOperationBuilder) Status(status itemoperation.OperationStatus) *BackupOperationBuilder
Status sets the BackupOperation's status.
type BackupStorageLocationBuilder ¶
type BackupStorageLocationBuilder struct {
// contains filtered or unexported fields
}
BackupStorageLocationBuilder builds BackupStorageLocation objects.
func ForBackupStorageLocation ¶
func ForBackupStorageLocation(ns, name string) *BackupStorageLocationBuilder
ForBackupStorageLocation is the constructor for a BackupStorageLocationBuilder.
func (*BackupStorageLocationBuilder) AccessMode ¶
func (b *BackupStorageLocationBuilder) AccessMode(accessMode velerov1api.BackupStorageLocationAccessMode) *BackupStorageLocationBuilder
AccessMode sets the BackupStorageLocation's access mode.
func (*BackupStorageLocationBuilder) Bucket ¶
func (b *BackupStorageLocationBuilder) Bucket(val string) *BackupStorageLocationBuilder
Bucket sets the BackupStorageLocation's object storage bucket.
func (*BackupStorageLocationBuilder) CACert ¶ added in v1.6.0
func (b *BackupStorageLocationBuilder) CACert(val []byte) *BackupStorageLocationBuilder
CACert sets the BackupStorageLocation's object storage CACert.
func (*BackupStorageLocationBuilder) Credential ¶ added in v1.6.0
func (b *BackupStorageLocationBuilder) Credential(selector *corev1api.SecretKeySelector) *BackupStorageLocationBuilder
Credential sets the BackupStorageLocation's credential selector.
func (*BackupStorageLocationBuilder) Default ¶ added in v1.6.0
func (b *BackupStorageLocationBuilder) Default(isDefault bool) *BackupStorageLocationBuilder
Default sets the BackupStorageLocation's is default or not
func (*BackupStorageLocationBuilder) LastValidationTime ¶ added in v1.5.0
func (b *BackupStorageLocationBuilder) LastValidationTime(lastValidated time.Time) *BackupStorageLocationBuilder
LastValidationTime sets the BackupStorageLocation's last validated time.
func (*BackupStorageLocationBuilder) ObjectMeta ¶
func (b *BackupStorageLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupStorageLocationBuilder
ObjectMeta applies functional options to the BackupStorageLocation's ObjectMeta.
func (*BackupStorageLocationBuilder) Phase ¶ added in v1.5.0
func (b *BackupStorageLocationBuilder) Phase(phase velerov1api.BackupStorageLocationPhase) *BackupStorageLocationBuilder
Phase sets the BackupStorageLocation's status phase.
func (*BackupStorageLocationBuilder) Prefix ¶
func (b *BackupStorageLocationBuilder) Prefix(val string) *BackupStorageLocationBuilder
Prefix sets the BackupStorageLocation's object storage prefix.
func (*BackupStorageLocationBuilder) Provider ¶
func (b *BackupStorageLocationBuilder) Provider(name string) *BackupStorageLocationBuilder
Provider sets the BackupStorageLocation's provider.
func (*BackupStorageLocationBuilder) Result ¶
func (b *BackupStorageLocationBuilder) Result() *velerov1api.BackupStorageLocation
Result returns the built BackupStorageLocation.
func (*BackupStorageLocationBuilder) ValidationFrequency ¶ added in v1.5.0
func (b *BackupStorageLocationBuilder) ValidationFrequency(frequency time.Duration) *BackupStorageLocationBuilder
ValidationFrequency sets the BackupStorageLocation's validation frequency.
type ConfigMapBuilder ¶
type ConfigMapBuilder struct {
// contains filtered or unexported fields
}
ConfigMapBuilder builds ConfigMap objects.
func ForConfigMap ¶
func ForConfigMap(ns, name string) *ConfigMapBuilder
ForConfigMap is the constructor for a ConfigMapBuilder.
func (*ConfigMapBuilder) Data ¶
func (b *ConfigMapBuilder) Data(vals ...string) *ConfigMapBuilder
Data set's the ConfigMap's data.
func (*ConfigMapBuilder) ObjectMeta ¶
func (b *ConfigMapBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ConfigMapBuilder
ObjectMeta applies functional options to the ConfigMap's ObjectMeta.
func (*ConfigMapBuilder) Result ¶
func (b *ConfigMapBuilder) Result() *corev1api.ConfigMap
Result returns the built ConfigMap.
type ContainerBuilder ¶
type ContainerBuilder struct {
// contains filtered or unexported fields
}
ContainerBuilder builds Container objects
func ForContainer ¶
func ForContainer(name, image string) *ContainerBuilder
ForContainer is the constructor for ContainerBuilder.
func ForPluginContainer ¶ added in v1.2.0
func ForPluginContainer(image string, pullPolicy corev1api.PullPolicy) *ContainerBuilder
ForPluginContainer is a helper builder specifically for plugin init containers
func (*ContainerBuilder) Args ¶
func (b *ContainerBuilder) Args(args ...string) *ContainerBuilder
Args sets the container's Args.
func (*ContainerBuilder) Command ¶ added in v1.5.0
func (b *ContainerBuilder) Command(command []string) *ContainerBuilder
func (*ContainerBuilder) Env ¶
func (b *ContainerBuilder) Env(vars ...*corev1api.EnvVar) *ContainerBuilder
func (*ContainerBuilder) PullPolicy ¶ added in v1.2.0
func (b *ContainerBuilder) PullPolicy(pullPolicy corev1api.PullPolicy) *ContainerBuilder
func (*ContainerBuilder) Resources ¶
func (b *ContainerBuilder) Resources(resources *corev1api.ResourceRequirements) *ContainerBuilder
Resources sets the container's Resources.
func (*ContainerBuilder) Result ¶
func (b *ContainerBuilder) Result() *corev1api.Container
Result returns the built Container.
func (*ContainerBuilder) ResultRawExtension ¶ added in v1.10.0
func (b *ContainerBuilder) ResultRawExtension() apimachineryRuntime.RawExtension
ResultRawExtension returns the Container as runtime.RawExtension.
func (*ContainerBuilder) SecurityContext ¶ added in v1.5.0
func (b *ContainerBuilder) SecurityContext(securityContext *corev1api.SecurityContext) *ContainerBuilder
SecurityContext sets the container's SecurityContext.
func (*ContainerBuilder) VolumeMounts ¶
func (b *ContainerBuilder) VolumeMounts(volumeMounts ...*corev1api.VolumeMount) *ContainerBuilder
VolumeMounts sets the container's VolumeMounts.
type CustomResourceDefinitionV1Beta1Builder ¶ added in v1.6.3
type CustomResourceDefinitionV1Beta1Builder struct {
// contains filtered or unexported fields
}
CustomResourceDefinitionV1Beta1Builder builds v1beta1 CustomResourceDefinition objects.
func ForCustomResourceDefinitionV1Beta1 ¶ added in v1.6.3
func ForCustomResourceDefinitionV1Beta1(name string) *CustomResourceDefinitionV1Beta1Builder
ForCustomResourceDefinitionV1Beta1 is the constructor for a CustomResourceDefinitionV1Beta1Builder.
func (*CustomResourceDefinitionV1Beta1Builder) Condition ¶ added in v1.6.3
func (c *CustomResourceDefinitionV1Beta1Builder) Condition(cond apiextv1beta1.CustomResourceDefinitionCondition) *CustomResourceDefinitionV1Beta1Builder
Condition adds a CustomResourceDefinitionCondition objects to a CustomResourceDefinitionV1Beta1Builder.
func (*CustomResourceDefinitionV1Beta1Builder) ObjectMeta ¶ added in v1.6.3
func (c *CustomResourceDefinitionV1Beta1Builder) ObjectMeta(opts ...ObjectMetaOpt) *CustomResourceDefinitionV1Beta1Builder
ObjectMeta applies functional options to the CustomResourceDefinition's ObjectMeta.
func (*CustomResourceDefinitionV1Beta1Builder) Result ¶ added in v1.6.3
func (c *CustomResourceDefinitionV1Beta1Builder) Result() *apiextv1beta1.CustomResourceDefinition
Result returns the built CustomResourceDefinition.
type CustomResourceDefinitionV1Beta1ConditionBuilder ¶ added in v1.6.3
type CustomResourceDefinitionV1Beta1ConditionBuilder struct {
// contains filtered or unexported fields
}
CustomResourceDefinitionV1Beta1ConditionBuilder builds CustomResourceDefinitionV1Beta1Condition objects.
func ForCustomResourceDefinitionV1Beta1Condition ¶ added in v1.6.3
func ForCustomResourceDefinitionV1Beta1Condition() *CustomResourceDefinitionV1Beta1ConditionBuilder
ForCustomResourceDefinitionV1Beta1Condition is the construction for a CustomResourceDefinitionV1Beta1ConditionBuilder.
func (*CustomResourceDefinitionV1Beta1ConditionBuilder) Result ¶ added in v1.6.3
func (c *CustomResourceDefinitionV1Beta1ConditionBuilder) Result() apiextv1beta1.CustomResourceDefinitionCondition
Result returns the built v1beta1 CustomResourceDefinitionCondition.
func (*CustomResourceDefinitionV1Beta1ConditionBuilder) Status ¶ added in v1.6.3
func (c *CustomResourceDefinitionV1Beta1ConditionBuilder) Status(cs apiextv1beta1.ConditionStatus) *CustomResourceDefinitionV1Beta1ConditionBuilder
Status sets the Condition's status.
func (*CustomResourceDefinitionV1Beta1ConditionBuilder) Type ¶ added in v1.6.3
func (c *CustomResourceDefinitionV1Beta1ConditionBuilder) Type(t apiextv1beta1.CustomResourceDefinitionConditionType) *CustomResourceDefinitionV1Beta1ConditionBuilder
Type sets the Condition's type.
type DataDownloadBuilder ¶ added in v1.12.0
type DataDownloadBuilder struct {
// contains filtered or unexported fields
}
DataDownloadBuilder builds DataDownload objects.
func ForDataDownload ¶ added in v1.12.0
func ForDataDownload(namespace, name string) *DataDownloadBuilder
ForDataDownload is the constructor of DataDownloadBuilder
func (*DataDownloadBuilder) BackupStorageLocation ¶ added in v1.12.0
func (d *DataDownloadBuilder) BackupStorageLocation(name string) *DataDownloadBuilder
BackupStorageLocation sets the DataDownload's backup storage location.
func (*DataDownloadBuilder) Cancel ¶ added in v1.12.0
func (d *DataDownloadBuilder) Cancel(cancel bool) *DataDownloadBuilder
Cancel sets the DataDownload's Cancel.
func (*DataDownloadBuilder) DataMover ¶ added in v1.12.0
func (d *DataDownloadBuilder) DataMover(dataMover string) *DataDownloadBuilder
DataMover sets the DataDownload's DataMover.
func (*DataDownloadBuilder) DataMoverConfig ¶ added in v1.12.0
func (d *DataDownloadBuilder) DataMoverConfig(config *map[string]string) *DataDownloadBuilder
DataMoverConfig sets the DataDownload's DataMoverConfig.
func (*DataDownloadBuilder) ObjectMeta ¶ added in v1.12.0
func (d *DataDownloadBuilder) ObjectMeta(opts ...ObjectMetaOpt) *DataDownloadBuilder
ObjectMeta applies functional options to the DataDownload's ObjectMeta.
func (*DataDownloadBuilder) OperationTimeout ¶ added in v1.12.0
func (d *DataDownloadBuilder) OperationTimeout(timeout metav1.Duration) *DataDownloadBuilder
OperationTimeout sets the DataDownload's OperationTimeout.
func (*DataDownloadBuilder) Phase ¶ added in v1.12.0
func (d *DataDownloadBuilder) Phase(phase velerov2alpha1api.DataDownloadPhase) *DataDownloadBuilder
Phase sets the DataDownload's phase.
func (*DataDownloadBuilder) Result ¶ added in v1.12.0
func (d *DataDownloadBuilder) Result() *velerov2alpha1api.DataDownload
Result returns the built DataDownload.
func (*DataDownloadBuilder) SnapshotID ¶ added in v1.12.0
func (d *DataDownloadBuilder) SnapshotID(id string) *DataDownloadBuilder
SnapshotID sets the DataDownload's SnapshotID.
func (*DataDownloadBuilder) SourceNamespace ¶ added in v1.12.0
func (d *DataDownloadBuilder) SourceNamespace(sourceNamespace string) *DataDownloadBuilder
SourceNamespace sets the DataDownload's SourceNamespace.
func (*DataDownloadBuilder) StartTimestamp ¶ added in v1.12.0
func (d *DataDownloadBuilder) StartTimestamp(startTime *metav1.Time) *DataDownloadBuilder
StartTimestamp sets the DataDownload's StartTimestamp.
func (*DataDownloadBuilder) TargetVolume ¶ added in v1.12.0
func (d *DataDownloadBuilder) TargetVolume(targetVolume velerov2alpha1api.TargetVolumeSpec) *DataDownloadBuilder
TargetVolume sets the DataDownload's TargetVolume.
type DataUploadBuilder ¶ added in v1.12.0
type DataUploadBuilder struct {
// contains filtered or unexported fields
}
DataUploadBuilder builds DataUpload objects
func ForDataUpload ¶ added in v1.12.0
func ForDataUpload(ns, name string) *DataUploadBuilder
ForDataUpload is the constructor for a DataUploadBuilder.
func (*DataUploadBuilder) BackupStorageLocation ¶ added in v1.12.0
func (d *DataUploadBuilder) BackupStorageLocation(name string) *DataUploadBuilder
BackupStorageLocation sets the DataUpload's backup storage location.
func (*DataUploadBuilder) CSISnapshot ¶ added in v1.12.0
func (d *DataUploadBuilder) CSISnapshot(cSISnapshot *velerov2alpha1api.CSISnapshotSpec) *DataUploadBuilder
CSISnapshot sets the DataUpload's CSISnapshot.
func (*DataUploadBuilder) Cancel ¶ added in v1.12.0
func (d *DataUploadBuilder) Cancel(cancel bool) *DataUploadBuilder
Cancel sets the DataUpload's Cancel.
func (*DataUploadBuilder) CompletionTimestamp ¶ added in v1.14.0
func (d *DataUploadBuilder) CompletionTimestamp(completionTimestamp *metav1.Time) *DataUploadBuilder
CompletionTimestamp sets the DataUpload's StartTimestamp.
func (*DataUploadBuilder) DataMover ¶ added in v1.12.0
func (d *DataUploadBuilder) DataMover(dataMover string) *DataUploadBuilder
DataMover sets the DataUpload's DataMover.
func (*DataUploadBuilder) DataMoverConfig ¶ added in v1.12.0
func (d *DataUploadBuilder) DataMoverConfig(config map[string]string) *DataUploadBuilder
DataMoverConfig sets the DataUpload's DataMoverConfig.
func (*DataUploadBuilder) Labels ¶ added in v1.12.0
func (d *DataUploadBuilder) Labels(labels map[string]string) *DataUploadBuilder
Labels sets the DataUpload's Labels.
func (*DataUploadBuilder) OperationTimeout ¶ added in v1.12.0
func (d *DataUploadBuilder) OperationTimeout(timeout metav1.Duration) *DataUploadBuilder
OperationTimeout sets the DataUpload's OperationTimeout.
func (*DataUploadBuilder) Phase ¶ added in v1.12.0
func (d *DataUploadBuilder) Phase(phase velerov2alpha1api.DataUploadPhase) *DataUploadBuilder
Phase sets the DataUpload's phase.
func (*DataUploadBuilder) Progress ¶ added in v1.14.0
func (d *DataUploadBuilder) Progress(progress shared.DataMoveOperationProgress) *DataUploadBuilder
func (*DataUploadBuilder) Result ¶ added in v1.12.0
func (d *DataUploadBuilder) Result() *velerov2alpha1api.DataUpload
Result returns the built DataUpload.
func (*DataUploadBuilder) SnapshotID ¶ added in v1.12.0
func (d *DataUploadBuilder) SnapshotID(id string) *DataUploadBuilder
SnapshotID sets the DataUpload's SnapshotID.
func (*DataUploadBuilder) SnapshotType ¶ added in v1.12.0
func (d *DataUploadBuilder) SnapshotType(SnapshotType velerov2alpha1api.SnapshotType) *DataUploadBuilder
SnapshotType sets the DataUpload's SnapshotType.
func (*DataUploadBuilder) SourceNamespace ¶ added in v1.12.0
func (d *DataUploadBuilder) SourceNamespace(sourceNamespace string) *DataUploadBuilder
SourceNamespace sets the DataUpload's SourceNamespace.
func (*DataUploadBuilder) SourcePVC ¶ added in v1.12.0
func (d *DataUploadBuilder) SourcePVC(sourcePVC string) *DataUploadBuilder
SourcePVC sets the DataUpload's SourcePVC.
func (*DataUploadBuilder) StartTimestamp ¶ added in v1.12.0
func (d *DataUploadBuilder) StartTimestamp(startTimestamp *metav1.Time) *DataUploadBuilder
StartTimestamp sets the DataUpload's StartTimestamp.
type DeleteBackupRequestBuilder ¶ added in v1.12.0
type DeleteBackupRequestBuilder struct {
// contains filtered or unexported fields
}
DeleteBackupRequestBuilder builds DeleteBackupRequest objects
func ForDeleteBackupRequest ¶ added in v1.12.0
func ForDeleteBackupRequest(ns, name string) *DeleteBackupRequestBuilder
ForDeleteBackupRequest is the constructor for a DeleteBackupRequestBuilder.
func (*DeleteBackupRequestBuilder) BackupName ¶ added in v1.12.0
func (b *DeleteBackupRequestBuilder) BackupName(name string) *DeleteBackupRequestBuilder
BackupName sets the DeleteBackupRequest's backup name.
func (*DeleteBackupRequestBuilder) Errors ¶ added in v1.12.0
func (b *DeleteBackupRequestBuilder) Errors(errors ...string) *DeleteBackupRequestBuilder
Errors sets the DeleteBackupRequest's errors.
func (*DeleteBackupRequestBuilder) ObjectMeta ¶ added in v1.12.0
func (b *DeleteBackupRequestBuilder) ObjectMeta(opts ...ObjectMetaOpt) *DeleteBackupRequestBuilder
ObjectMeta applies functional options to the DeleteBackupRequest's ObjectMeta.
func (*DeleteBackupRequestBuilder) Phase ¶ added in v1.12.0
func (b *DeleteBackupRequestBuilder) Phase(phase velerov1api.DeleteBackupRequestPhase) *DeleteBackupRequestBuilder
Phase sets the DeleteBackupRequest's phase.
func (*DeleteBackupRequestBuilder) Result ¶ added in v1.12.0
func (b *DeleteBackupRequestBuilder) Result() *velerov1api.DeleteBackupRequest
Result returns the built DeleteBackupRequest.
type DeploymentBuilder ¶
type DeploymentBuilder struct {
// contains filtered or unexported fields
}
DeploymentBuilder builds Deployment objects.
func ForDeployment ¶
func ForDeployment(ns, name string) *DeploymentBuilder
ForDeployment is the constructor for a DeploymentBuilder.
func (*DeploymentBuilder) ObjectMeta ¶
func (b *DeploymentBuilder) ObjectMeta(opts ...ObjectMetaOpt) *DeploymentBuilder
ObjectMeta applies functional options to the Deployment's ObjectMeta.
func (*DeploymentBuilder) Result ¶
func (b *DeploymentBuilder) Result() *appsv1api.Deployment
Result returns the built Deployment.
type DownloadRequestBuilder ¶ added in v1.6.0
type DownloadRequestBuilder struct {
// contains filtered or unexported fields
}
DownloadRequestBuilder builds DownloadRequest objects.
func ForDownloadRequest ¶ added in v1.6.0
func ForDownloadRequest(ns, name string) *DownloadRequestBuilder
ForDownloadRequest is the constructor for a DownloadRequestBuilder.
func (*DownloadRequestBuilder) Phase ¶ added in v1.6.0
func (b *DownloadRequestBuilder) Phase(phase velerov1api.DownloadRequestPhase) *DownloadRequestBuilder
Phase sets the DownloadRequest's status phase.
func (*DownloadRequestBuilder) Result ¶ added in v1.6.0
func (b *DownloadRequestBuilder) Result() *velerov1api.DownloadRequest
Result returns the built DownloadRequest.
func (*DownloadRequestBuilder) Target ¶ added in v1.6.0
func (b *DownloadRequestBuilder) Target(targetKind velerov1api.DownloadTargetKind, targetName string) *DownloadRequestBuilder
Target sets the DownloadRequest's target kind and target name.
type JSONSchemaPropsBuilder ¶ added in v1.3.1
type JSONSchemaPropsBuilder struct {
// contains filtered or unexported fields
}
JSONSchemaPropsBuilder builds JSONSchemaProps objects.
func ForJSONSchemaPropsBuilder ¶ added in v1.3.1
func ForJSONSchemaPropsBuilder() *JSONSchemaPropsBuilder
ForJSONSchemaPropsBuilder is the constructor for a JSONSchemaPropsBuilder.
func (*JSONSchemaPropsBuilder) Maximum ¶ added in v1.3.1
func (b *JSONSchemaPropsBuilder) Maximum(f float64) *JSONSchemaPropsBuilder
Maximum sets the Maximum field on a JSONSchemaPropsBuilder object.
func (*JSONSchemaPropsBuilder) Result ¶ added in v1.3.1
func (b *JSONSchemaPropsBuilder) Result() *apiextv1.JSONSchemaProps
Result returns the built object.
type NamespaceBuilder ¶
type NamespaceBuilder struct {
// contains filtered or unexported fields
}
NamespaceBuilder builds Namespace objects.
func ForNamespace ¶
func ForNamespace(name string) *NamespaceBuilder
ForNamespace is the constructor for a NamespaceBuilder.
func (*NamespaceBuilder) ObjectMeta ¶
func (b *NamespaceBuilder) ObjectMeta(opts ...ObjectMetaOpt) *NamespaceBuilder
ObjectMeta applies functional options to the Namespace's ObjectMeta.
func (*NamespaceBuilder) Phase ¶
func (b *NamespaceBuilder) Phase(val corev1api.NamespacePhase) *NamespaceBuilder
Phase sets the namespace's phase
func (*NamespaceBuilder) Result ¶
func (b *NamespaceBuilder) Result() *corev1api.Namespace
Result returns the built Namespace.
type NodeBuilder ¶ added in v1.4.0
type NodeBuilder struct {
// contains filtered or unexported fields
}
NodeBuilder builds Node objects.
func ForNode ¶ added in v1.4.0
func ForNode(name string) *NodeBuilder
ForNode is the constructor for a NodeBuilder.
func (*NodeBuilder) Labels ¶ added in v1.13.0
func (b *NodeBuilder) Labels(labels map[string]string) *NodeBuilder
func (*NodeBuilder) Result ¶ added in v1.4.0
func (b *NodeBuilder) Result() *corev1api.Node
Result returns the built Node.
type NodeSelectorBuilder ¶ added in v1.8.0
type NodeSelectorBuilder struct {
// contains filtered or unexported fields
}
NodeSelectorBuilder builds NodeSelector objects
func ForNodeSelector ¶ added in v1.8.0
func ForNodeSelector(term ...corev1api.NodeSelectorTerm) *NodeSelectorBuilder
ForNodeSelector returns the NodeSelectorBuilder instance with given terms
func (*NodeSelectorBuilder) Result ¶ added in v1.8.0
func (b *NodeSelectorBuilder) Result() *corev1api.NodeSelector
Result returns the built NodeSelector
type NodeSelectorTermBuilder ¶ added in v1.8.0
type NodeSelectorTermBuilder struct {
// contains filtered or unexported fields
}
NodeSelectorTermBuilder builds NodeSelectorTerm objects.
func NewNodeSelectorTermBuilder ¶ added in v1.8.0
func NewNodeSelectorTermBuilder() *NodeSelectorTermBuilder
NewNodeSelectorTermBuilder initializes an instance of NodeSelectorTermBuilder
func (*NodeSelectorTermBuilder) Result ¶ added in v1.8.0
func (ntb *NodeSelectorTermBuilder) Result() *corev1api.NodeSelectorTerm
Result returns the built NodeSelectorTerm
func (*NodeSelectorTermBuilder) WithMatchExpression ¶ added in v1.8.0
func (ntb *NodeSelectorTermBuilder) WithMatchExpression(key string, op string, values ...string) *NodeSelectorTermBuilder
WithMatchExpression appends the MatchExpression to the NodeSelectorTerm
func (*NodeSelectorTermBuilder) WithMatchField ¶ added in v1.8.0
func (ntb *NodeSelectorTermBuilder) WithMatchField(key string, op string, values ...string) *NodeSelectorTermBuilder
WithMatchField appends the MatchField to the NodeSelectorTerm
type ObjectMetaOpt ¶
ObjectMetaOpt is a functional option for ObjectMeta.
type OperationStatusBuilder ¶ added in v1.12.0
type OperationStatusBuilder struct {
// contains filtered or unexported fields
}
OperationStatusBuilder builds OperationStatus objects
func ForOperationStatus ¶ added in v1.12.0
func ForOperationStatus() *OperationStatusBuilder
ForOperationStatus is the constructor for a OperationStatusBuilder.
func (*OperationStatusBuilder) Created ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Created(t time.Time) *OperationStatusBuilder
Created sets the OperationStatus's creation timestamp.
func (*OperationStatusBuilder) Description ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Description(desc string) *OperationStatusBuilder
Description sets the OperationStatus's description.
func (*OperationStatusBuilder) Error ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Error(err string) *OperationStatusBuilder
Error sets the OperationStatus's error.
func (*OperationStatusBuilder) Phase ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Phase(phase itemoperation.OperationPhase) *OperationStatusBuilder
Phase sets the OperationStatus's phase.
func (*OperationStatusBuilder) Progress ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Progress(nComplete int64, nTotal int64, operationUnits string) *OperationStatusBuilder
Progress sets the OperationStatus's progress.
func (*OperationStatusBuilder) Result ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Result() *itemoperation.OperationStatus
Result returns the built OperationStatus.
func (*OperationStatusBuilder) Started ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Started(t time.Time) *OperationStatusBuilder
Started sets the OperationStatus's start timestamp.
func (*OperationStatusBuilder) Updated ¶ added in v1.12.0
func (osb *OperationStatusBuilder) Updated(t time.Time) *OperationStatusBuilder
Updated sets the OperationStatus's last update timestamp.
type PersistentVolumeBuilder ¶
type PersistentVolumeBuilder struct {
// contains filtered or unexported fields
}
PersistentVolumeBuilder builds PersistentVolume objects.
func ForPersistentVolume ¶
func ForPersistentVolume(name string) *PersistentVolumeBuilder
ForPersistentVolume is the constructor for a PersistentVolumeBuilder.
func (*PersistentVolumeBuilder) AWSEBSVolumeID ¶
func (b *PersistentVolumeBuilder) AWSEBSVolumeID(volumeID string) *PersistentVolumeBuilder
AWSEBSVolumeID sets the PersistentVolume's AWSElasticBlockStore volume ID.
func (*PersistentVolumeBuilder) CSI ¶
func (b *PersistentVolumeBuilder) CSI(driver, volumeHandle string) *PersistentVolumeBuilder
CSI sets the PersistentVolume's CSI.
func (*PersistentVolumeBuilder) ClaimRef ¶
func (b *PersistentVolumeBuilder) ClaimRef(ns, name string) *PersistentVolumeBuilder
ClaimRef sets the PersistentVolume's claim ref.
func (*PersistentVolumeBuilder) NodeAffinityRequired ¶ added in v1.8.0
func (b *PersistentVolumeBuilder) NodeAffinityRequired(req *corev1api.NodeSelector) *PersistentVolumeBuilder
NodeAffinityRequired sets the PersistentVolume's NodeAffinity Requirement.
func (*PersistentVolumeBuilder) ObjectMeta ¶
func (b *PersistentVolumeBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeBuilder
ObjectMeta applies functional options to the PersistentVolume's ObjectMeta.
func (*PersistentVolumeBuilder) Phase ¶ added in v1.14.0
func (b *PersistentVolumeBuilder) Phase(phase corev1api.PersistentVolumePhase) *PersistentVolumeBuilder
Phase sets the PersistentVolume's phase.
func (*PersistentVolumeBuilder) ReclaimPolicy ¶
func (b *PersistentVolumeBuilder) ReclaimPolicy(policy corev1api.PersistentVolumeReclaimPolicy) *PersistentVolumeBuilder
ReclaimPolicy sets the PersistentVolume's reclaim policy.
func (*PersistentVolumeBuilder) Result ¶
func (b *PersistentVolumeBuilder) Result() *corev1api.PersistentVolume
Result returns the built PersistentVolume.
func (*PersistentVolumeBuilder) StorageClass ¶
func (b *PersistentVolumeBuilder) StorageClass(name string) *PersistentVolumeBuilder
StorageClass sets the PersistentVolume's storage class name.
func (*PersistentVolumeBuilder) VolumeMode ¶ added in v1.12.1
func (b *PersistentVolumeBuilder) VolumeMode(volMode corev1api.PersistentVolumeMode) *PersistentVolumeBuilder
VolumeMode sets the PersistentVolume's volume mode.
type PersistentVolumeClaimBuilder ¶
type PersistentVolumeClaimBuilder struct {
// contains filtered or unexported fields
}
PersistentVolumeClaimBuilder builds PersistentVolumeClaim objects.
func ForPersistentVolumeClaim ¶
func ForPersistentVolumeClaim(ns, name string) *PersistentVolumeClaimBuilder
ForPersistentVolumeClaim is the constructor for a PersistentVolumeClaimBuilder.
func (*PersistentVolumeClaimBuilder) DataSource ¶ added in v1.12.0
func (b *PersistentVolumeClaimBuilder) DataSource(dataSource *corev1api.TypedLocalObjectReference) *PersistentVolumeClaimBuilder
DataSource sets the PersistentVolumeClaim's spec.DataSource.
func (*PersistentVolumeClaimBuilder) DataSourceRef ¶ added in v1.12.0
func (b *PersistentVolumeClaimBuilder) DataSourceRef(dataSourceRef *corev1api.TypedObjectReference) *PersistentVolumeClaimBuilder
DataSourceRef sets the PersistentVolumeClaim's spec.DataSourceRef.
func (*PersistentVolumeClaimBuilder) LimitResource ¶ added in v1.12.0
func (b *PersistentVolumeClaimBuilder) LimitResource(limits corev1api.ResourceList) *PersistentVolumeClaimBuilder
LimitResource sets the PersistentVolumeClaim's spec.Resources.Limits.
func (*PersistentVolumeClaimBuilder) ObjectMeta ¶
func (b *PersistentVolumeClaimBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeClaimBuilder
ObjectMeta applies functional options to the PersistentVolumeClaim's ObjectMeta.
func (*PersistentVolumeClaimBuilder) Phase ¶ added in v1.12.0
func (b *PersistentVolumeClaimBuilder) Phase(phase corev1api.PersistentVolumeClaimPhase) *PersistentVolumeClaimBuilder
Phase sets the PersistentVolumeClaim's status Phase.
func (*PersistentVolumeClaimBuilder) RequestResource ¶ added in v1.12.0
func (b *PersistentVolumeClaimBuilder) RequestResource(requests corev1api.ResourceList) *PersistentVolumeClaimBuilder
RequestResource sets the PersistentVolumeClaim's spec.Resources.Requests.
func (*PersistentVolumeClaimBuilder) Result ¶
func (b *PersistentVolumeClaimBuilder) Result() *corev1api.PersistentVolumeClaim
Result returns the built PersistentVolumeClaim.
func (*PersistentVolumeClaimBuilder) Selector ¶ added in v1.12.0
func (b *PersistentVolumeClaimBuilder) Selector(labelSelector *metav1.LabelSelector) *PersistentVolumeClaimBuilder
Selector sets the PersistentVolumeClaim's spec.Selector.
func (*PersistentVolumeClaimBuilder) StorageClass ¶
func (b *PersistentVolumeClaimBuilder) StorageClass(name string) *PersistentVolumeClaimBuilder
StorageClass sets the PersistentVolumeClaim's storage class name.
func (*PersistentVolumeClaimBuilder) VolumeName ¶
func (b *PersistentVolumeClaimBuilder) VolumeName(name string) *PersistentVolumeClaimBuilder
VolumeName sets the PersistentVolumeClaim's volume name.
type PodBuilder ¶
type PodBuilder struct {
// contains filtered or unexported fields
}
PodBuilder builds Pod objects.
func (*PodBuilder) ContainerStatuses ¶ added in v1.5.1
func (b *PodBuilder) ContainerStatuses(containerStatuses ...*corev1api.ContainerStatus) *PodBuilder
func (*PodBuilder) Containers ¶ added in v1.5.1
func (b *PodBuilder) Containers(containers ...*corev1api.Container) *PodBuilder
func (*PodBuilder) InitContainers ¶
func (b *PodBuilder) InitContainers(containers ...*corev1api.Container) *PodBuilder
func (*PodBuilder) Labels ¶ added in v1.12.0
func (b *PodBuilder) Labels(labels map[string]string) *PodBuilder
func (*PodBuilder) NodeName ¶
func (b *PodBuilder) NodeName(val string) *PodBuilder
NodeName sets the pod's node name
func (*PodBuilder) ObjectMeta ¶
func (b *PodBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodBuilder
ObjectMeta applies functional options to the Pod's ObjectMeta.
func (*PodBuilder) Phase ¶ added in v1.13.0
func (b *PodBuilder) Phase(phase corev1api.PodPhase) *PodBuilder
func (*PodBuilder) Result ¶
func (b *PodBuilder) Result() *corev1api.Pod
Result returns the built Pod.
func (*PodBuilder) ServiceAccount ¶ added in v1.5.0
func (b *PodBuilder) ServiceAccount(sa string) *PodBuilder
ServiceAccount sets serviceAccounts on pod.
func (*PodBuilder) Status ¶ added in v1.13.0
func (b *PodBuilder) Status(status corev1api.PodStatus) *PodBuilder
func (*PodBuilder) Volumes ¶
func (b *PodBuilder) Volumes(volumes ...*corev1api.Volume) *PodBuilder
Volumes appends to the pod's volumes
type PodVolumeBackupBuilder ¶
type PodVolumeBackupBuilder struct {
// contains filtered or unexported fields
}
PodVolumeBackupBuilder builds PodVolumeBackup objects
func ForPodVolumeBackup ¶
func ForPodVolumeBackup(ns, name string) *PodVolumeBackupBuilder
ForPodVolumeBackup is the constructor for a PodVolumeBackupBuilder.
func (*PodVolumeBackupBuilder) BackupStorageLocation ¶ added in v1.9.0
func (b *PodVolumeBackupBuilder) BackupStorageLocation(name string) *PodVolumeBackupBuilder
BackupStorageLocation sets the PodVolumeBackup's backup storage location.
func (*PodVolumeBackupBuilder) CompletionTimestamp ¶ added in v1.14.0
func (b *PodVolumeBackupBuilder) CompletionTimestamp(completionTimestamp *metav1.Time) *PodVolumeBackupBuilder
func (*PodVolumeBackupBuilder) Node ¶ added in v1.9.0
func (b *PodVolumeBackupBuilder) Node(name string) *PodVolumeBackupBuilder
Node sets the PodVolumeBackup's node name.
func (*PodVolumeBackupBuilder) ObjectMeta ¶
func (b *PodVolumeBackupBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodVolumeBackupBuilder
ObjectMeta applies functional options to the PodVolumeBackup's ObjectMeta.
func (*PodVolumeBackupBuilder) Phase ¶
func (b *PodVolumeBackupBuilder) Phase(phase velerov1api.PodVolumeBackupPhase) *PodVolumeBackupBuilder
Phase sets the PodVolumeBackup's phase.
func (*PodVolumeBackupBuilder) PodName ¶ added in v1.2.0
func (b *PodVolumeBackupBuilder) PodName(name string) *PodVolumeBackupBuilder
PodName sets the name of the pod associated with this PodVolumeBackup.
func (*PodVolumeBackupBuilder) PodNamespace ¶ added in v1.5.3
func (b *PodVolumeBackupBuilder) PodNamespace(ns string) *PodVolumeBackupBuilder
PodNamespace sets the name of the pod associated with this PodVolumeBackup.
func (*PodVolumeBackupBuilder) Result ¶
func (b *PodVolumeBackupBuilder) Result() *velerov1api.PodVolumeBackup
Result returns the built PodVolumeBackup.
func (*PodVolumeBackupBuilder) SnapshotID ¶ added in v1.2.0
func (b *PodVolumeBackupBuilder) SnapshotID(snapshotID string) *PodVolumeBackupBuilder
SnapshotID sets the PodVolumeBackup's snapshot ID.
func (*PodVolumeBackupBuilder) StartTimestamp ¶ added in v1.14.0
func (b *PodVolumeBackupBuilder) StartTimestamp(startTimestamp *metav1.Time) *PodVolumeBackupBuilder
func (*PodVolumeBackupBuilder) UploaderType ¶ added in v1.12.0
func (b *PodVolumeBackupBuilder) UploaderType(uploaderType string) *PodVolumeBackupBuilder
UploaderType sets the type of uploader to use for this PodVolumeBackup.
func (*PodVolumeBackupBuilder) Volume ¶ added in v1.2.0
func (b *PodVolumeBackupBuilder) Volume(volume string) *PodVolumeBackupBuilder
Volume sets the name of the volume associated with this PodVolumeBackup.
type PodVolumeRestoreBuilder ¶ added in v1.12.0
type PodVolumeRestoreBuilder struct {
// contains filtered or unexported fields
}
PodVolumeRestoreBuilder builds PodVolumeRestore objects.
func ForPodVolumeRestore ¶ added in v1.12.0
func ForPodVolumeRestore(ns, name string) *PodVolumeRestoreBuilder
ForPodVolumeRestore is the constructor for a PodVolumeRestoreBuilder.
func (*PodVolumeRestoreBuilder) BackupStorageLocation ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) BackupStorageLocation(name string) *PodVolumeRestoreBuilder
BackupStorageLocation sets the PodVolumeRestore's backup storage location.
func (*PodVolumeRestoreBuilder) ObjectMeta ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodVolumeRestoreBuilder
ObjectMeta applies functional options to the PodVolumeRestore's ObjectMeta.
func (*PodVolumeRestoreBuilder) Phase ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) Phase(phase velerov1api.PodVolumeRestorePhase) *PodVolumeRestoreBuilder
Phase sets the PodVolumeRestore's phase.
func (*PodVolumeRestoreBuilder) PodName ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) PodName(name string) *PodVolumeRestoreBuilder
PodName sets the name of the pod associated with this PodVolumeRestore.
func (*PodVolumeRestoreBuilder) PodNamespace ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) PodNamespace(ns string) *PodVolumeRestoreBuilder
PodNamespace sets the name of the pod associated with this PodVolumeRestore.
func (*PodVolumeRestoreBuilder) Result ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) Result() *velerov1api.PodVolumeRestore
Result returns the built PodVolumeRestore.
func (*PodVolumeRestoreBuilder) SnapshotID ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) SnapshotID(snapshotID string) *PodVolumeRestoreBuilder
SnapshotID sets the PodVolumeRestore's snapshot ID.
func (*PodVolumeRestoreBuilder) UploaderType ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) UploaderType(uploaderType string) *PodVolumeRestoreBuilder
UploaderType sets the type of uploader to use for this PodVolumeRestore.
func (*PodVolumeRestoreBuilder) Volume ¶ added in v1.12.0
func (b *PodVolumeRestoreBuilder) Volume(volume string) *PodVolumeRestoreBuilder
Volume sets the name of the volume associated with this PodVolumeRestore.
type RestoreBuilder ¶
type RestoreBuilder struct {
// contains filtered or unexported fields
}
RestoreBuilder builds Restore objects.
func ForRestore ¶
func ForRestore(ns, name string) *RestoreBuilder
ForRestore is the constructor for a RestoreBuilder.
func (*RestoreBuilder) Backup ¶
func (b *RestoreBuilder) Backup(name string) *RestoreBuilder
Backup sets the Restore's backup name.
func (*RestoreBuilder) CompletionTimestamp ¶ added in v1.5.0
func (b *RestoreBuilder) CompletionTimestamp(val time.Time) *RestoreBuilder
CompletionTimestamp sets the Restore's completion timestamp.
func (*RestoreBuilder) ExcludedNamespaces ¶
func (b *RestoreBuilder) ExcludedNamespaces(namespaces ...string) *RestoreBuilder
ExcludedNamespaces appends to the Restore's excluded namespaces.
func (*RestoreBuilder) ExcludedResources ¶
func (b *RestoreBuilder) ExcludedResources(resources ...string) *RestoreBuilder
ExcludedResources appends to the Restore's excluded resources.
func (*RestoreBuilder) ExistingResourcePolicy ¶ added in v1.9.0
func (b *RestoreBuilder) ExistingResourcePolicy(policy string) *RestoreBuilder
ExistingResourcePolicy sets the Restore's resource policy.
func (*RestoreBuilder) IncludeClusterResources ¶
func (b *RestoreBuilder) IncludeClusterResources(val bool) *RestoreBuilder
IncludeClusterResources sets the Restore's "include cluster resources" flag.
func (*RestoreBuilder) IncludedNamespaces ¶
func (b *RestoreBuilder) IncludedNamespaces(namespaces ...string) *RestoreBuilder
IncludedNamespaces appends to the Restore's included namespaces.
func (*RestoreBuilder) IncludedResources ¶
func (b *RestoreBuilder) IncludedResources(resources ...string) *RestoreBuilder
IncludedResources appends to the Restore's included resources.
func (*RestoreBuilder) ItemOperationTimeout ¶ added in v1.11.0
func (b *RestoreBuilder) ItemOperationTimeout(timeout time.Duration) *RestoreBuilder
ItemOperationTimeout sets the Restore's ItemOperationTimeout
func (*RestoreBuilder) LabelSelector ¶
func (b *RestoreBuilder) LabelSelector(selector *metav1.LabelSelector) *RestoreBuilder
LabelSelector sets the Restore's label selector.
func (*RestoreBuilder) NamespaceMappings ¶
func (b *RestoreBuilder) NamespaceMappings(mapping ...string) *RestoreBuilder
NamespaceMappings sets the Restore's namespace mappings.
func (*RestoreBuilder) ObjectMeta ¶
func (b *RestoreBuilder) ObjectMeta(opts ...ObjectMetaOpt) *RestoreBuilder
ObjectMeta applies functional options to the Restore's ObjectMeta.
func (*RestoreBuilder) OrLabelSelector ¶ added in v1.9.0
func (b *RestoreBuilder) OrLabelSelector(orSelectors []*metav1.LabelSelector) *RestoreBuilder
OrLabelSelector sets the Restore's orLabelSelector set.
func (*RestoreBuilder) Phase ¶
func (b *RestoreBuilder) Phase(phase velerov1api.RestorePhase) *RestoreBuilder
Phase sets the Restore's phase.
func (*RestoreBuilder) PreserveNodePorts ¶ added in v1.6.0
func (b *RestoreBuilder) PreserveNodePorts(val bool) *RestoreBuilder
PreserveNodePorts sets the Restore's preserved NodePorts.
func (*RestoreBuilder) RestorePVs ¶
func (b *RestoreBuilder) RestorePVs(val bool) *RestoreBuilder
RestorePVs sets the Restore's restore PVs.
func (*RestoreBuilder) Result ¶
func (b *RestoreBuilder) Result() *velerov1api.Restore
Result returns the built Restore.
func (*RestoreBuilder) Schedule ¶
func (b *RestoreBuilder) Schedule(name string) *RestoreBuilder
Schedule sets the Restore's schedule name.
func (*RestoreBuilder) StartTimestamp ¶ added in v1.5.0
func (b *RestoreBuilder) StartTimestamp(val time.Time) *RestoreBuilder
StartTimestamp sets the Restore's start timestamp.
type RestoreOperationBuilder ¶ added in v1.12.0
type RestoreOperationBuilder struct {
// contains filtered or unexported fields
}
RestoreOperationBuilder builds RestoreOperation objects
func ForRestoreOperation ¶ added in v1.12.0
func ForRestoreOperation() *RestoreOperationBuilder
ForRestoreOperation is the constructor for a RestoreOperationBuilder.
func (*RestoreOperationBuilder) OperationID ¶ added in v1.12.0
func (rb *RestoreOperationBuilder) OperationID(id string) *RestoreOperationBuilder
OperationID sets the RestoreOperation's operation ID.
func (*RestoreOperationBuilder) ResourceIdentifier ¶ added in v1.12.0
func (rb *RestoreOperationBuilder) ResourceIdentifier(group, resource, ns, name string) *RestoreOperationBuilder
ResourceIdentifier sets the RestoreOperation's resource identifier.
func (*RestoreOperationBuilder) RestoreItemAction ¶ added in v1.12.0
func (rb *RestoreOperationBuilder) RestoreItemAction(ria string) *RestoreOperationBuilder
RestoreItemAction sets the RestoreOperation's restore item action.
func (*RestoreOperationBuilder) RestoreName ¶ added in v1.12.0
func (rb *RestoreOperationBuilder) RestoreName(name string) *RestoreOperationBuilder
RestoreName sets the RestoreOperation's restore name.
func (*RestoreOperationBuilder) Result ¶ added in v1.12.0
func (rb *RestoreOperationBuilder) Result() *itemoperation.RestoreOperation
Result returns the built RestoreOperation.
func (*RestoreOperationBuilder) Status ¶ added in v1.12.0
func (rb *RestoreOperationBuilder) Status(status itemoperation.OperationStatus) *RestoreOperationBuilder
Status sets the RestoreOperation's status.
type RoleBuilder ¶
type RoleBuilder struct {
// contains filtered or unexported fields
}
RoleBuilder builds Role objects.
func ForRole ¶
func ForRole(ns, name string) *RoleBuilder
ForRole is the constructor for a RoleBuilder.
func (*RoleBuilder) ObjectMeta ¶
func (b *RoleBuilder) ObjectMeta(opts ...ObjectMetaOpt) *RoleBuilder
ObjectMeta applies functional options to the Role's ObjectMeta.
func (*RoleBuilder) Result ¶
func (b *RoleBuilder) Result() *rbacv1api.Role
Result returns the built Role.
type ScheduleBuilder ¶
type ScheduleBuilder struct {
// contains filtered or unexported fields
}
ScheduleBuilder builds Schedule objects.
func ForSchedule ¶
func ForSchedule(ns, name string) *ScheduleBuilder
ForSchedule is the constructor for a ScheduleBuilder.
func (*ScheduleBuilder) CronSchedule ¶
func (b *ScheduleBuilder) CronSchedule(expression string) *ScheduleBuilder
CronSchedule sets the Schedule's cron schedule.
func (*ScheduleBuilder) LastBackupTime ¶
func (b *ScheduleBuilder) LastBackupTime(val string) *ScheduleBuilder
LastBackupTime sets the Schedule's last backup time.
func (*ScheduleBuilder) ObjectMeta ¶
func (b *ScheduleBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ScheduleBuilder
ObjectMeta applies functional options to the Schedule's ObjectMeta.
func (*ScheduleBuilder) Phase ¶
func (b *ScheduleBuilder) Phase(phase velerov1api.SchedulePhase) *ScheduleBuilder
Phase sets the Schedule's phase.
func (*ScheduleBuilder) Result ¶
func (b *ScheduleBuilder) Result() *velerov1api.Schedule
Result returns the built Schedule.
func (*ScheduleBuilder) SkipImmediately ¶ added in v1.13.0
func (b *ScheduleBuilder) SkipImmediately(skip *bool) *ScheduleBuilder
SkipImmediately sets the Schedule's SkipImmediately.
func (*ScheduleBuilder) Template ¶
func (b *ScheduleBuilder) Template(spec velerov1api.BackupSpec) *ScheduleBuilder
Template sets the Schedule's template.
func (*ScheduleBuilder) ValidationError ¶
func (b *ScheduleBuilder) ValidationError(err string) *ScheduleBuilder
ValidationError appends to the Schedule's validation errors.
type SecretBuilder ¶
type SecretBuilder struct {
// contains filtered or unexported fields
}
SecretBuilder builds Secret objects.
func ForSecret ¶
func ForSecret(ns, name string) *SecretBuilder
ForSecret is the constructor for a SecretBuilder.
func (*SecretBuilder) Data ¶ added in v1.6.0
func (b *SecretBuilder) Data(data map[string][]byte) *SecretBuilder
Data sets the Secret data.
func (*SecretBuilder) ObjectMeta ¶
func (b *SecretBuilder) ObjectMeta(opts ...ObjectMetaOpt) *SecretBuilder
ObjectMeta applies functional options to the Secret's ObjectMeta.
func (*SecretBuilder) Result ¶
func (b *SecretBuilder) Result() *corev1api.Secret
Result returns the built Secret.
type SecretKeySelectorBuilder ¶ added in v1.6.0
type SecretKeySelectorBuilder struct {
// contains filtered or unexported fields
}
SecretKeySelectorBuilder builds SecretKeySelector objects.
func ForSecretKeySelector ¶ added in v1.6.0
func ForSecretKeySelector(name string, key string) *SecretKeySelectorBuilder
ForSecretKeySelector is the constructor for a SecretKeySelectorBuilder.
func (*SecretKeySelectorBuilder) Result ¶ added in v1.6.0
func (b *SecretKeySelectorBuilder) Result() *corev1api.SecretKeySelector
Result returns the built SecretKeySelector.
type ServerStatusRequestBuilder ¶
type ServerStatusRequestBuilder struct {
// contains filtered or unexported fields
}
ServerStatusRequestBuilder builds ServerStatusRequest objects.
func ForServerStatusRequest ¶
func ForServerStatusRequest(ns, name, resourceVersion string) *ServerStatusRequestBuilder
ForServerStatusRequest is the constructor for a ServerStatusRequestBuilder.
func (*ServerStatusRequestBuilder) ObjectMeta ¶
func (b *ServerStatusRequestBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ServerStatusRequestBuilder
ObjectMeta applies functional options to the ServerStatusRequest's ObjectMeta.
func (*ServerStatusRequestBuilder) Phase ¶
func (b *ServerStatusRequestBuilder) Phase(phase velerov1api.ServerStatusRequestPhase) *ServerStatusRequestBuilder
Phase sets the ServerStatusRequest's phase.
func (*ServerStatusRequestBuilder) Plugins ¶
func (b *ServerStatusRequestBuilder) Plugins(plugins []velerov1api.PluginInfo) *ServerStatusRequestBuilder
Plugins sets the ServerStatusRequest's plugins.
func (*ServerStatusRequestBuilder) ProcessedTimestamp ¶
func (b *ServerStatusRequestBuilder) ProcessedTimestamp(time time.Time) *ServerStatusRequestBuilder
ProcessedTimestamp sets the ServerStatusRequest's processed timestamp.
func (*ServerStatusRequestBuilder) Result ¶
func (b *ServerStatusRequestBuilder) Result() *velerov1api.ServerStatusRequest
Result returns the built ServerStatusRequest.
func (*ServerStatusRequestBuilder) ServerVersion ¶
func (b *ServerStatusRequestBuilder) ServerVersion(version string) *ServerStatusRequestBuilder
ServerVersion sets the ServerStatusRequest's server version.
type ServiceAccountBuilder ¶
type ServiceAccountBuilder struct {
// contains filtered or unexported fields
}
ServiceAccountBuilder builds ServiceAccount objects.
func ForServiceAccount ¶
func ForServiceAccount(ns, name string) *ServiceAccountBuilder
ForServiceAccount is the constructor for a ServiceAccountBuilder.
func (*ServiceAccountBuilder) ObjectMeta ¶
func (b *ServiceAccountBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ServiceAccountBuilder
ObjectMeta applies functional options to the ServiceAccount's ObjectMeta.
func (*ServiceAccountBuilder) Result ¶
func (b *ServiceAccountBuilder) Result() *corev1api.ServiceAccount
Result returns the built ServiceAccount.
type ServiceBuilder ¶ added in v1.8.0
type ServiceBuilder struct {
// contains filtered or unexported fields
}
ServiceBuilder builds Service objects.
func ForService ¶ added in v1.8.0
func ForService(ns, name string) *ServiceBuilder
ForService is the constructor for a ServiceBuilder.
func (*ServiceBuilder) ObjectMeta ¶ added in v1.8.0
func (s *ServiceBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ServiceBuilder
ObjectMeta applies functional options to the Service's ObjectMeta.
func (*ServiceBuilder) Result ¶ added in v1.8.0
func (s *ServiceBuilder) Result() *corev1api.Service
Result returns the built Service.
type StatefulSetBuilder ¶ added in v1.8.0
type StatefulSetBuilder struct {
// contains filtered or unexported fields
}
StatefulSetBuilder builds StatefulSet objects.
func ForStatefulSet ¶ added in v1.8.0
func ForStatefulSet(ns, name string) *StatefulSetBuilder
ForStatefulSet is the constructor for a StatefulSetBuilder.
func (*StatefulSetBuilder) Result ¶ added in v1.8.0
func (b *StatefulSetBuilder) Result() *appsv1.StatefulSet
Result returns the built StatefulSet.
func (*StatefulSetBuilder) StorageClass ¶ added in v1.8.0
func (b *StatefulSetBuilder) StorageClass(names ...string) *StatefulSetBuilder
StorageClass sets the StatefulSet's VolumeClaimTemplates storage class name.
type StorageClassBuilder ¶
type StorageClassBuilder struct {
// contains filtered or unexported fields
}
StorageClassBuilder builds StorageClass objects.
func ForStorageClass ¶
func ForStorageClass(name string) *StorageClassBuilder
ForStorageClass is the constructor for a StorageClassBuilder.
func ForStorageClassSlice ¶ added in v1.8.0
func ForStorageClassSlice(names ...string) *StorageClassBuilder
ForStorageClassSlice is the constructor for a storageClassSlice in StorageClassBuilder.
func (*StorageClassBuilder) ObjectMeta ¶
func (b *StorageClassBuilder) ObjectMeta(opts ...ObjectMetaOpt) *StorageClassBuilder
ObjectMeta applies functional options to the StorageClass's ObjectMeta.
func (*StorageClassBuilder) Provisioner ¶ added in v1.12.0
func (b *StorageClassBuilder) Provisioner(provisioner string) *StorageClassBuilder
Provisioner sets StorageClass's provisioner.
func (*StorageClassBuilder) Result ¶
func (b *StorageClassBuilder) Result() *storagev1api.StorageClass
Result returns the built StorageClass.
func (*StorageClassBuilder) SliceResult ¶ added in v1.8.0
func (b *StorageClassBuilder) SliceResult() []*storagev1api.StorageClass
SliceResult returns the built StorageClass slice.
type TestCR ¶ added in v1.8.0
type TestCR struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec TestCRSpec `json:"spec,omitempty"` // +optional Status TestCRStatus `json:"status,omitempty"` }
type TestCRBuilder ¶ added in v1.8.0
type TestCRBuilder struct {
// contains filtered or unexported fields
}
CustomResourceBuilder builds objects based on velero APIVersion CRDs.
func ForTestCR ¶ added in v1.8.0
func ForTestCR(crdKind, ns, name string) *TestCRBuilder
ForTestCR is the constructor for a TestCRBuilder.
func (*TestCRBuilder) ObjectMeta ¶ added in v1.8.0
func (b *TestCRBuilder) ObjectMeta(opts ...ObjectMetaOpt) *TestCRBuilder
ObjectMeta applies functional options to the TestCR's ObjectMeta.
func (*TestCRBuilder) Result ¶ added in v1.8.0
func (b *TestCRBuilder) Result() *TestCR
Result returns the built TestCR.
type TestCRSpec ¶ added in v1.8.0
type TestCRSpec struct { }
type TestCRStatus ¶ added in v1.8.0
type TestCRStatus struct { }
type V1CustomResourceDefinitionBuilder ¶ added in v1.3.0
type V1CustomResourceDefinitionBuilder struct {
// contains filtered or unexported fields
}
V1CustomResourceDefinitionBuilder builds CustomResourceDefinition objects.
func ForV1CustomResourceDefinition ¶ added in v1.3.0
func ForV1CustomResourceDefinition(name string) *V1CustomResourceDefinitionBuilder
ForV1CustomResourceDefinition is the constructor for a V1CustomResourceDefinitionBuilder.
func (*V1CustomResourceDefinitionBuilder) Condition ¶ added in v1.3.0
func (b *V1CustomResourceDefinitionBuilder) Condition(cond apiextv1.CustomResourceDefinitionCondition) *V1CustomResourceDefinitionBuilder
Condition adds a CustomResourceDefinitionCondition objects to a V1CustomResourceDefinitionBuilder.
func (*V1CustomResourceDefinitionBuilder) ObjectMeta ¶ added in v1.3.0
func (b *V1CustomResourceDefinitionBuilder) ObjectMeta(opts ...ObjectMetaOpt) *V1CustomResourceDefinitionBuilder
ObjectMeta applies functional options to the CustomResourceDefinition's ObjectMeta.
func (*V1CustomResourceDefinitionBuilder) PreserveUnknownFields ¶ added in v1.3.0
func (b *V1CustomResourceDefinitionBuilder) PreserveUnknownFields(preserve bool) *V1CustomResourceDefinitionBuilder
PreserveUnknownFields sets PreserveUnknownFields on a CustomResourceDefinition.
func (*V1CustomResourceDefinitionBuilder) Result ¶ added in v1.3.0
func (b *V1CustomResourceDefinitionBuilder) Result() *apiextv1.CustomResourceDefinition
Result returns the built CustomResourceDefinition.
func (*V1CustomResourceDefinitionBuilder) Version ¶ added in v1.3.0
func (b *V1CustomResourceDefinitionBuilder) Version(ver apiextv1.CustomResourceDefinitionVersion) *V1CustomResourceDefinitionBuilder
Version adds a CustomResourceDefinitionVersion object to a V1CustomResourceDefinitionBuilder.
type V1CustomResourceDefinitionConditionBuilder ¶ added in v1.3.0
type V1CustomResourceDefinitionConditionBuilder struct {
// contains filtered or unexported fields
}
V1CustomResourceDefinitionConditionBuilder builds CustomResourceDefinitionCondition objects.
func ForV1CustomResourceDefinitionCondition ¶ added in v1.3.0
func ForV1CustomResourceDefinitionCondition() *V1CustomResourceDefinitionConditionBuilder
ForV1CustomResourceDefinitionCondition is the constructor for a V1CustomResourceDefinitionConditionBuilder.
func (*V1CustomResourceDefinitionConditionBuilder) Result ¶ added in v1.3.0
func (c *V1CustomResourceDefinitionConditionBuilder) Result() apiextv1.CustomResourceDefinitionCondition
Result returns the built CustomResourceDefinitionCondition.
func (*V1CustomResourceDefinitionConditionBuilder) Status ¶ added in v1.3.0
func (c *V1CustomResourceDefinitionConditionBuilder) Status(cs apiextv1.ConditionStatus) *V1CustomResourceDefinitionConditionBuilder
Status sets the Condition's status.
func (*V1CustomResourceDefinitionConditionBuilder) Type ¶ added in v1.3.0
func (c *V1CustomResourceDefinitionConditionBuilder) Type(t apiextv1.CustomResourceDefinitionConditionType) *V1CustomResourceDefinitionConditionBuilder
Type sets the Condition's type.
type V1CustomResourceDefinitionVersionBuilder ¶ added in v1.3.0
type V1CustomResourceDefinitionVersionBuilder struct {
// contains filtered or unexported fields
}
V1CustomResourceDefinitionVersionBuilder builds CustomResourceDefinitionVersion objects.
func ForV1CustomResourceDefinitionVersion ¶ added in v1.3.0
func ForV1CustomResourceDefinitionVersion(name string) *V1CustomResourceDefinitionVersionBuilder
ForV1CustomResourceDefinitionVersion is the constructor for a V1CustomResourceDefinitionVersionBuilder.
func (*V1CustomResourceDefinitionVersionBuilder) Result ¶ added in v1.3.0
func (c *V1CustomResourceDefinitionVersionBuilder) Result() apiextv1.CustomResourceDefinitionVersion
Result returns the built CustomResourceDefinitionVersion.
func (*V1CustomResourceDefinitionVersionBuilder) Served ¶ added in v1.3.0
func (c *V1CustomResourceDefinitionVersionBuilder) Served(s bool) *V1CustomResourceDefinitionVersionBuilder
Served sets the Served field on a CustomResourceDefinitionVersion.
func (*V1CustomResourceDefinitionVersionBuilder) Storage ¶ added in v1.3.0
func (c *V1CustomResourceDefinitionVersionBuilder) Storage(s bool) *V1CustomResourceDefinitionVersionBuilder
Storage sets the Storage field on a CustomResourceDefinitionVersion.
type VolumeBuilder ¶
type VolumeBuilder struct {
// contains filtered or unexported fields
}
VolumeBuilder builds Volume objects.
func ForVolume ¶
func ForVolume(name string) *VolumeBuilder
ForVolume is the constructor for a VolumeBuilder.
func (*VolumeBuilder) CSISource ¶
func (b *VolumeBuilder) CSISource(driver string) *VolumeBuilder
CSISource sets the Volume's CSI source.
func (*VolumeBuilder) PersistentVolumeClaimSource ¶
func (b *VolumeBuilder) PersistentVolumeClaimSource(claimName string) *VolumeBuilder
PersistentVolumeClaimSource sets the Volume's persistent volume claim source.
func (*VolumeBuilder) Result ¶
func (b *VolumeBuilder) Result() *corev1api.Volume
Result returns the built Volume.
type VolumeMountBuilder ¶
type VolumeMountBuilder struct {
// contains filtered or unexported fields
}
VolumeMountBuilder builds VolumeMount objects.
func ForVolumeMount ¶
func ForVolumeMount(name, mountPath string) *VolumeMountBuilder
ForVolumeMount is the constructor for a VolumeMountBuilder.
func (*VolumeMountBuilder) Result ¶
func (b *VolumeMountBuilder) Result() *corev1api.VolumeMount
Result returns the built VolumeMount.
type VolumeSnapshotBuilder ¶ added in v1.9.3
type VolumeSnapshotBuilder struct {
// contains filtered or unexported fields
}
VolumeSnapshotBuilder builds VolumeSnapshot objects.
func ForVolumeSnapshot ¶ added in v1.9.3
func ForVolumeSnapshot(ns, name string) *VolumeSnapshotBuilder
ForVolumeSnapshot is the constructor for VolumeSnapshotBuilder.
func (*VolumeSnapshotBuilder) BoundVolumeSnapshotContentName ¶ added in v1.9.3
func (v *VolumeSnapshotBuilder) BoundVolumeSnapshotContentName(vscName string) *VolumeSnapshotBuilder
BoundVolumeSnapshotContentName set built VolumeSnapshot's status BoundVolumeSnapshotContentName field.
func (*VolumeSnapshotBuilder) ObjectMeta ¶ added in v1.9.3
func (v *VolumeSnapshotBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotBuilder
ObjectMeta applies functional options to the VolumeSnapshot's ObjectMeta.
func (*VolumeSnapshotBuilder) ReadyToUse ¶ added in v1.14.0
func (v *VolumeSnapshotBuilder) ReadyToUse(readyToUse bool) *VolumeSnapshotBuilder
ReadyToUse set the built VolumeSnapshot's status.ReadyToUse value.
func (*VolumeSnapshotBuilder) RestoreSize ¶ added in v1.13.0
func (v *VolumeSnapshotBuilder) RestoreSize(size string) *VolumeSnapshotBuilder
RestoreSize set the built VolumeSnapshot's status.RestoreSize.
func (*VolumeSnapshotBuilder) Result ¶ added in v1.9.3
func (v *VolumeSnapshotBuilder) Result() *snapshotv1api.VolumeSnapshot
Result return the built VolumeSnapshot.
func (*VolumeSnapshotBuilder) SourcePVC ¶ added in v1.12.2
func (v *VolumeSnapshotBuilder) SourcePVC(name string) *VolumeSnapshotBuilder
SourcePVC set the built VolumeSnapshot's spec.Source.PersistentVolumeClaimName.
func (*VolumeSnapshotBuilder) SourceVolumeSnapshotContentName ¶ added in v1.14.0
func (v *VolumeSnapshotBuilder) SourceVolumeSnapshotContentName(name string) *VolumeSnapshotBuilder
SourceVolumeSnapshotContentName set the built VolumeSnapshot's spec.Source.VolumeSnapshotContentName
func (*VolumeSnapshotBuilder) Status ¶ added in v1.9.3
func (v *VolumeSnapshotBuilder) Status() *VolumeSnapshotBuilder
Status init the built VolumeSnapshot's status.
func (*VolumeSnapshotBuilder) StatusError ¶ added in v1.14.0
func (v *VolumeSnapshotBuilder) StatusError(snapshotError snapshotv1api.VolumeSnapshotError) *VolumeSnapshotBuilder
StatusError set the built VolumeSnapshot's status.Error value.
func (*VolumeSnapshotBuilder) VolumeSnapshotClass ¶ added in v1.13.0
func (v *VolumeSnapshotBuilder) VolumeSnapshotClass(name string) *VolumeSnapshotBuilder
VolumeSnapshotClass set the built VolumeSnapshot's spec.VolumeSnapshotClassName value.
type VolumeSnapshotClassBuilder ¶ added in v1.12.0
type VolumeSnapshotClassBuilder struct {
// contains filtered or unexported fields
}
VolumeSnapshotClassBuilder builds VolumeSnapshotClass objects.
func ForVolumeSnapshotClass ¶ added in v1.12.0
func ForVolumeSnapshotClass(name string) *VolumeSnapshotClassBuilder
ForVolumeSnapshotClass is the constructor of VolumeSnapshotClassBuilder.
func (*VolumeSnapshotClassBuilder) Driver ¶ added in v1.12.0
func (b *VolumeSnapshotClassBuilder) Driver(driver string) *VolumeSnapshotClassBuilder
Driver sets the driver of built VolumeSnapshotClass.
func (*VolumeSnapshotClassBuilder) ObjectMeta ¶ added in v1.12.0
func (b *VolumeSnapshotClassBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotClassBuilder
ObjectMeta applies functional options to the VolumeSnapshotClass's ObjectMeta.
func (*VolumeSnapshotClassBuilder) Result ¶ added in v1.12.0
func (b *VolumeSnapshotClassBuilder) Result() *snapshotv1api.VolumeSnapshotClass
Result returns the built VolumeSnapshotClass.
type VolumeSnapshotContentBuilder ¶ added in v1.9.3
type VolumeSnapshotContentBuilder struct {
// contains filtered or unexported fields
}
VolumeSnapshotContentBuilder builds VolumeSnapshotContent object.
func ForVolumeSnapshotContent ¶ added in v1.9.3
func ForVolumeSnapshotContent(name string) *VolumeSnapshotContentBuilder
ForVolumeSnapshotContent is the constructor of VolumeSnapshotContentBuilder.
func (*VolumeSnapshotContentBuilder) DeletionPolicy ¶ added in v1.9.3
func (v *VolumeSnapshotContentBuilder) DeletionPolicy(policy snapshotv1api.DeletionPolicy) *VolumeSnapshotContentBuilder
DeletionPolicy sets built VolumeSnapshotContent's spec.DeletionPolicy value.
func (*VolumeSnapshotContentBuilder) Driver ¶ added in v1.14.0
func (v *VolumeSnapshotContentBuilder) Driver(driver string) *VolumeSnapshotContentBuilder
func (*VolumeSnapshotContentBuilder) ObjectMeta ¶ added in v1.13.0
func (v *VolumeSnapshotContentBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotContentBuilder
ObjectMeta applies functional options to the VolumeSnapshotContent's ObjectMeta.
func (*VolumeSnapshotContentBuilder) Result ¶ added in v1.9.3
func (v *VolumeSnapshotContentBuilder) Result() *snapshotv1api.VolumeSnapshotContent
Result returns the built VolumeSnapshotContent.
func (*VolumeSnapshotContentBuilder) Source ¶ added in v1.14.0
func (v *VolumeSnapshotContentBuilder) Source(source snapshotv1api.VolumeSnapshotContentSource) *VolumeSnapshotContentBuilder
func (*VolumeSnapshotContentBuilder) Status ¶ added in v1.9.3
func (v *VolumeSnapshotContentBuilder) Status(status *snapshotv1api.VolumeSnapshotContentStatus) *VolumeSnapshotContentBuilder
Status initiates VolumeSnapshotContent's status.
func (*VolumeSnapshotContentBuilder) VolumeSnapshotClassName ¶ added in v1.13.0
func (v *VolumeSnapshotContentBuilder) VolumeSnapshotClassName(name string) *VolumeSnapshotContentBuilder
VolumeSnapshotClassName sets the built VolumeSnapshotContent's spec.VolumeSnapshotClassName value.
func (*VolumeSnapshotContentBuilder) VolumeSnapshotRef ¶ added in v1.9.3
func (v *VolumeSnapshotContentBuilder) VolumeSnapshotRef(namespace, name string) *VolumeSnapshotContentBuilder
VolumeSnapshotRef sets the built VolumeSnapshotContent's spec.VolumeSnapshotRef value.
type VolumeSnapshotLocationBuilder ¶
type VolumeSnapshotLocationBuilder struct {
// contains filtered or unexported fields
}
VolumeSnapshotLocationBuilder builds VolumeSnapshotLocation objects.
func ForVolumeSnapshotLocation ¶
func ForVolumeSnapshotLocation(ns, name string) *VolumeSnapshotLocationBuilder
ForVolumeSnapshotLocation is the constructor for a VolumeSnapshotLocationBuilder.
func (*VolumeSnapshotLocationBuilder) Credential ¶ added in v1.10.0
func (b *VolumeSnapshotLocationBuilder) Credential(selector *corev1api.SecretKeySelector) *VolumeSnapshotLocationBuilder
Credential sets the VolumeSnapshotLocation's credential selector.
func (*VolumeSnapshotLocationBuilder) ObjectMeta ¶
func (b *VolumeSnapshotLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotLocationBuilder
ObjectMeta applies functional options to the VolumeSnapshotLocation's ObjectMeta.
func (*VolumeSnapshotLocationBuilder) Provider ¶
func (b *VolumeSnapshotLocationBuilder) Provider(name string) *VolumeSnapshotLocationBuilder
Provider sets the VolumeSnapshotLocation's provider.
func (*VolumeSnapshotLocationBuilder) Result ¶
func (b *VolumeSnapshotLocationBuilder) Result() *velerov1api.VolumeSnapshotLocation
Result returns the built VolumeSnapshotLocation.
Source Files ¶
- backup_builder.go
- backup_storage_location_builder.go
- config_map_builder.go
- container_builder.go
- customresourcedefinition_v1beta1_builder.go
- data_download_builder.go
- data_upload_builder.go
- delete_backup_request_builder.go
- deployment_builder.go
- download_request_builder.go
- item_operation_builder.go
- json_schema_props_builder.go
- namespace_builder.go
- node_builder.go
- node_selector_builder.go
- object_meta.go
- persistent_volume_builder.go
- persistent_volume_claim_builder.go
- pod_builder.go
- pod_volume_backup_builder.go
- pod_volume_restore_builder.go
- restore_builder.go
- role_builder.go
- schedule_builder.go
- secret_builder.go
- secret_key_selector_builder.go
- server_status_request_builder.go
- service_account_builder.go
- service_builder.go
- statefulset_builder.go
- storage_class_builder.go
- testcr_builder.go
- v1_customresourcedefinition_builder.go
- volume_builder.go
- volume_mount_builder.go
- volume_snapshot_builder.go
- volume_snapshot_class_builder.go
- volume_snapshot_content_builder.go
- volume_snapshot_location_builder.go