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 WithClusterName(val string) 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 WithName(val string) func(obj metav1.Object)
- func WithUID(val string) func(obj metav1.Object)
- type BackupBuilder
- func (b *BackupBuilder) CompletionTimestamp(val time.Time) *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) IncludedNamespaces(namespaces ...string) *BackupBuilder
- func (b *BackupBuilder) IncludedResources(resources ...string) *BackupBuilder
- func (b *BackupBuilder) LabelSelector(selector *metav1.LabelSelector) *BackupBuilder
- func (b *BackupBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupBuilder
- func (b *BackupBuilder) Phase(phase velerov1api.BackupPhase) *BackupBuilder
- func (b *BackupBuilder) Result() *velerov1api.Backup
- 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
- type BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) AccessMode(accessMode velerov1api.BackupStorageLocationAccessMode) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Bucket(val string) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Prefix(val string) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Provider(name string) *BackupStorageLocationBuilder
- func (b *BackupStorageLocationBuilder) Result() *velerov1api.BackupStorageLocation
- type ConfigMapBuilder
- type ContainerBuilder
- func (b *ContainerBuilder) Args(args ...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) VolumeMounts(volumeMounts ...*corev1api.VolumeMount) *ContainerBuilder
- type CustomResourceDefinitionBuilder
- func (c *CustomResourceDefinitionBuilder) Condition(cond apiextv1beta1.CustomResourceDefinitionCondition) *CustomResourceDefinitionBuilder
- func (b *CustomResourceDefinitionBuilder) ObjectMeta(opts ...ObjectMetaOpt) *CustomResourceDefinitionBuilder
- func (b *CustomResourceDefinitionBuilder) Result() *apiextv1beta1.CustomResourceDefinition
- type CustomResourceDefinitionConditionBuilder
- func (b *CustomResourceDefinitionConditionBuilder) Result() apiextv1beta1.CustomResourceDefinitionCondition
- func (c *CustomResourceDefinitionConditionBuilder) Status(cs apiextv1beta1.ConditionStatus) *CustomResourceDefinitionConditionBuilder
- func (c *CustomResourceDefinitionConditionBuilder) Type(t apiextv1beta1.CustomResourceDefinitionConditionType) *CustomResourceDefinitionConditionBuilder
- type DeploymentBuilder
- type JSONSchemaPropsBuilder
- type NamespaceBuilder
- type ObjectMetaOpt
- 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) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) ReclaimPolicy(policy corev1api.PersistentVolumeReclaimPolicy) *PersistentVolumeBuilder
- func (b *PersistentVolumeBuilder) Result() *corev1api.PersistentVolume
- func (b *PersistentVolumeBuilder) StorageClass(name string) *PersistentVolumeBuilder
- type PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) Result() *corev1api.PersistentVolumeClaim
- func (b *PersistentVolumeClaimBuilder) StorageClass(name string) *PersistentVolumeClaimBuilder
- func (b *PersistentVolumeClaimBuilder) VolumeName(name string) *PersistentVolumeClaimBuilder
- type PodBuilder
- func (b *PodBuilder) InitContainers(containers ...*corev1api.Container) *PodBuilder
- func (b *PodBuilder) NodeName(val string) *PodBuilder
- func (b *PodBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PodBuilder
- func (b *PodBuilder) Result() *corev1api.Pod
- func (b *PodBuilder) Volumes(volumes ...*corev1api.Volume) *PodBuilder
- type 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) Result() *velerov1api.PodVolumeBackup
- func (b *PodVolumeBackupBuilder) SnapshotID(snapshotID string) *PodVolumeBackupBuilder
- func (b *PodVolumeBackupBuilder) Volume(volume string) *PodVolumeBackupBuilder
- type RestoreBuilder
- func (b *RestoreBuilder) Backup(name string) *RestoreBuilder
- func (b *RestoreBuilder) ExcludedNamespaces(namespaces ...string) *RestoreBuilder
- func (b *RestoreBuilder) ExcludedResources(resources ...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) LabelSelector(selector *metav1.LabelSelector) *RestoreBuilder
- func (b *RestoreBuilder) NamespaceMappings(mapping ...string) *RestoreBuilder
- func (b *RestoreBuilder) ObjectMeta(opts ...ObjectMetaOpt) *RestoreBuilder
- func (b *RestoreBuilder) Phase(phase velerov1api.RestorePhase) *RestoreBuilder
- func (b *RestoreBuilder) RestorePVs(val bool) *RestoreBuilder
- func (b *RestoreBuilder) Result() *velerov1api.Restore
- func (b *RestoreBuilder) Schedule(name string) *RestoreBuilder
- 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) Template(spec velerov1api.BackupSpec) *ScheduleBuilder
- func (b *ScheduleBuilder) ValidationError(err string) *ScheduleBuilder
- type SecretBuilder
- 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 StorageClassBuilder
- 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 (b *V1CustomResourceDefinitionConditionBuilder) Result() apiextv1.CustomResourceDefinitionCondition
- func (c *V1CustomResourceDefinitionConditionBuilder) Status(cs apiextv1.ConditionStatus) *V1CustomResourceDefinitionConditionBuilder
- func (c *V1CustomResourceDefinitionConditionBuilder) Type(t apiextv1.CustomResourceDefinitionConditionType) *V1CustomResourceDefinitionConditionBuilder
- type V1CustomResourceDefinitionVersionBuilder
- func (b *V1CustomResourceDefinitionVersionBuilder) Result() apiextv1.CustomResourceDefinitionVersion
- func (b *V1CustomResourceDefinitionVersionBuilder) Schema(s *apiextv1.JSONSchemaProps) *V1CustomResourceDefinitionVersionBuilder
- func (b *V1CustomResourceDefinitionVersionBuilder) Served(s bool) *V1CustomResourceDefinitionVersionBuilder
- func (b *V1CustomResourceDefinitionVersionBuilder) Storage(s bool) *V1CustomResourceDefinitionVersionBuilder
- type VolumeBuilder
- type VolumeMountBuilder
- type VolumeSnapshotLocationBuilder
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 WithClusterName ¶
WithClusterName is a functional option that applies the specified cluster name to an object.
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 ¶
WithLabelsMap is a functional option that applies the specified labels map 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) CompletionTimestamp ¶
func (b *BackupBuilder) CompletionTimestamp(val time.Time) *BackupBuilder
CompletionTimestamp sets the Backup's completion timestamp.
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 ¶
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) 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) 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) Phase ¶
func (b *BackupBuilder) Phase(phase velerov1api.BackupPhase) *BackupBuilder
Phase sets the Backup's phase.
func (*BackupBuilder) Result ¶
func (b *BackupBuilder) Result() *velerov1api.Backup
Result returns the built Backup.
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.
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) ObjectMeta ¶
func (b *BackupStorageLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *BackupStorageLocationBuilder
ObjectMeta applies functional options to the BackupStorageLocation's ObjectMeta.
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.
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 ¶
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) Env ¶
func (b *ContainerBuilder) Env(vars ...*corev1api.EnvVar) *ContainerBuilder
func (*ContainerBuilder) PullPolicy ¶
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) VolumeMounts ¶
func (b *ContainerBuilder) VolumeMounts(volumeMounts ...*corev1api.VolumeMount) *ContainerBuilder
VolumeMounts sets the container's VolumeMounts.
type CustomResourceDefinitionBuilder ¶
type CustomResourceDefinitionBuilder struct {
// contains filtered or unexported fields
}
CustomResourceDefinitionBuilder builds CustomResourceDefinition objects.
func ForCustomResourceDefinition ¶
func ForCustomResourceDefinition(name string) *CustomResourceDefinitionBuilder
ForCustomResourceDefinition is the constructor for a CustomResourceDefinitionBuilder.
func (*CustomResourceDefinitionBuilder) Condition ¶
func (c *CustomResourceDefinitionBuilder) Condition(cond apiextv1beta1.CustomResourceDefinitionCondition) *CustomResourceDefinitionBuilder
Condition adds a CustomResourceDefinitionCondition objects to a CustomResourceDefinitionBuilder.
func (*CustomResourceDefinitionBuilder) ObjectMeta ¶
func (b *CustomResourceDefinitionBuilder) ObjectMeta(opts ...ObjectMetaOpt) *CustomResourceDefinitionBuilder
ObjectMeta applies functional options to the CustomResourceDefinition's ObjectMeta.
func (*CustomResourceDefinitionBuilder) Result ¶
func (b *CustomResourceDefinitionBuilder) Result() *apiextv1beta1.CustomResourceDefinition
Result returns the built CustomResourceDefinition.
type CustomResourceDefinitionConditionBuilder ¶
type CustomResourceDefinitionConditionBuilder struct {
// contains filtered or unexported fields
}
CustomResourceDefinitionConditionBuilder builds CustomResourceDefinitionCondition objects.
func ForCustomResourceDefinitionCondition ¶
func ForCustomResourceDefinitionCondition() *CustomResourceDefinitionConditionBuilder
ForCustomResourceDefinitionConditionBuilder is the construction for a CustomResourceDefinitionConditionBuilder.
func (*CustomResourceDefinitionConditionBuilder) Result ¶
func (b *CustomResourceDefinitionConditionBuilder) Result() apiextv1beta1.CustomResourceDefinitionCondition
Results returns the built CustomResourceDefinitionCondition.
func (*CustomResourceDefinitionConditionBuilder) Status ¶
func (c *CustomResourceDefinitionConditionBuilder) Status(cs apiextv1beta1.ConditionStatus) *CustomResourceDefinitionConditionBuilder
Status sets the Condition's status.
func (*CustomResourceDefinitionConditionBuilder) Type ¶
func (c *CustomResourceDefinitionConditionBuilder) Type(t apiextv1beta1.CustomResourceDefinitionConditionType) *CustomResourceDefinitionConditionBuilder
Type sets the Condition's type.
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 JSONSchemaPropsBuilder ¶
type JSONSchemaPropsBuilder struct {
// contains filtered or unexported fields
}
JSONSchemaPropsBuilder builds JSONSchemaProps objects.
func ForJSONSchemaPropsBuilder ¶
func ForJSONSchemaPropsBuilder() *JSONSchemaPropsBuilder
ForJSONSchemaPropsBuilder is the constructor for a JSONSchemaPropsBuilder.
func (*JSONSchemaPropsBuilder) Maximum ¶
func (b *JSONSchemaPropsBuilder) Maximum(f float64) *JSONSchemaPropsBuilder
Maximum sets the Maximum field on a JSONSchemaPropsBuilder object.
func (*JSONSchemaPropsBuilder) Result ¶
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 ObjectMetaOpt ¶
ObjectMetaOpt is a functional option for ObjectMeta.
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) ObjectMeta ¶
func (b *PersistentVolumeBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeBuilder
ObjectMeta applies functional options to the PersistentVolume's ObjectMeta.
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.
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) ObjectMeta ¶
func (b *PersistentVolumeClaimBuilder) ObjectMeta(opts ...ObjectMetaOpt) *PersistentVolumeClaimBuilder
ObjectMeta applies functional options to the PersistentVolumeClaim's ObjectMeta.
func (*PersistentVolumeClaimBuilder) Result ¶
func (b *PersistentVolumeClaimBuilder) Result() *corev1api.PersistentVolumeClaim
Result returns the built PersistentVolumeClaim.
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) InitContainers ¶
func (b *PodBuilder) InitContainers(containers ...*corev1api.Container) *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) Result ¶
func (b *PodBuilder) Result() *corev1api.Pod
Result returns the built Pod.
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) 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 ¶
func (b *PodVolumeBackupBuilder) PodName(name string) *PodVolumeBackupBuilder
PodName 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 ¶
func (b *PodVolumeBackupBuilder) SnapshotID(snapshotID string) *PodVolumeBackupBuilder
SnapshotID sets the PodVolumeBackup's snapshot ID.
func (*PodVolumeBackupBuilder) Volume ¶
func (b *PodVolumeBackupBuilder) Volume(volume string) *PodVolumeBackupBuilder
Volume sets the name of the volume associated with this PodVolumeBackup.
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) 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) 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) 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) Phase ¶
func (b *RestoreBuilder) Phase(phase velerov1api.RestorePhase) *RestoreBuilder
Phase sets the Restore's phase.
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.
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) 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) 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 ServerStatusRequestBuilder ¶
type ServerStatusRequestBuilder struct {
// contains filtered or unexported fields
}
ServerStatusRequestBuilder builds ServerStatusRequest objects.
func ForServerStatusRequest ¶
func ForServerStatusRequest(ns, name string) *ServerStatusRequestBuilder
ForServerStatusRequest is the constructor for 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 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 (*StorageClassBuilder) ObjectMeta ¶
func (b *StorageClassBuilder) ObjectMeta(opts ...ObjectMetaOpt) *StorageClassBuilder
ObjectMeta applies functional options to the StorageClass's ObjectMeta.
func (*StorageClassBuilder) Result ¶
func (b *StorageClassBuilder) Result() *storagev1api.StorageClass
Result returns the built StorageClass.
type V1CustomResourceDefinitionBuilder ¶
type V1CustomResourceDefinitionBuilder struct {
// contains filtered or unexported fields
}
V1CustomResourceDefinitionBuilder builds CustomResourceDefinition objects.
func ForV1CustomResourceDefinition ¶
func ForV1CustomResourceDefinition(name string) *V1CustomResourceDefinitionBuilder
ForV1CustomResourceDefinition is the constructor for a V1CustomResourceDefinitionBuilder.
func (*V1CustomResourceDefinitionBuilder) Condition ¶
func (b *V1CustomResourceDefinitionBuilder) Condition(cond apiextv1.CustomResourceDefinitionCondition) *V1CustomResourceDefinitionBuilder
Condition adds a CustomResourceDefinitionCondition objects to a V1CustomResourceDefinitionBuilder.
func (*V1CustomResourceDefinitionBuilder) ObjectMeta ¶
func (b *V1CustomResourceDefinitionBuilder) ObjectMeta(opts ...ObjectMetaOpt) *V1CustomResourceDefinitionBuilder
ObjectMeta applies functional options to the CustomResourceDefinition's ObjectMeta.
func (*V1CustomResourceDefinitionBuilder) PreserveUnknownFields ¶
func (b *V1CustomResourceDefinitionBuilder) PreserveUnknownFields(preserve bool) *V1CustomResourceDefinitionBuilder
PreserveUnknownFields sets PreserveUnknownFields on a CustomResourceDefinition.
func (*V1CustomResourceDefinitionBuilder) Result ¶
func (b *V1CustomResourceDefinitionBuilder) Result() *apiextv1.CustomResourceDefinition
Result returns the built CustomResourceDefinition.
func (*V1CustomResourceDefinitionBuilder) Version ¶
func (b *V1CustomResourceDefinitionBuilder) Version(ver apiextv1.CustomResourceDefinitionVersion) *V1CustomResourceDefinitionBuilder
Version adds a CustomResourceDefinitionVersion object to a V1CustomResourceDefinitionBuilder.
type V1CustomResourceDefinitionConditionBuilder ¶
type V1CustomResourceDefinitionConditionBuilder struct {
// contains filtered or unexported fields
}
V1CustomResourceDefinitionConditionBuilder builds CustomResourceDefinitionCondition objects.
func ForV1CustomResourceDefinitionCondition ¶
func ForV1CustomResourceDefinitionCondition() *V1CustomResourceDefinitionConditionBuilder
ForV1V1CustomResourceDefinitionConditionBuilder is the constructor for a V1CustomResourceDefinitionConditionBuilder.
func (*V1CustomResourceDefinitionConditionBuilder) Result ¶
func (b *V1CustomResourceDefinitionConditionBuilder) Result() apiextv1.CustomResourceDefinitionCondition
Result returns the built CustomResourceDefinitionCondition.
func (*V1CustomResourceDefinitionConditionBuilder) Status ¶
func (c *V1CustomResourceDefinitionConditionBuilder) Status(cs apiextv1.ConditionStatus) *V1CustomResourceDefinitionConditionBuilder
Status sets the Condition's status.
func (*V1CustomResourceDefinitionConditionBuilder) Type ¶
func (c *V1CustomResourceDefinitionConditionBuilder) Type(t apiextv1.CustomResourceDefinitionConditionType) *V1CustomResourceDefinitionConditionBuilder
Type sets the Condition's type.
type V1CustomResourceDefinitionVersionBuilder ¶
type V1CustomResourceDefinitionVersionBuilder struct {
// contains filtered or unexported fields
}
V1CustomResourceDefinitionVersionBuilder builds CustomResourceDefinitionVersion objects.
func ForV1CustomResourceDefinitionVersion ¶
func ForV1CustomResourceDefinitionVersion(name string) *V1CustomResourceDefinitionVersionBuilder
ForV1CustomResourceDefinitionVersion is the constructor for a V1CustomResourceDefinitionVersionBuilder.
func (*V1CustomResourceDefinitionVersionBuilder) Result ¶
func (b *V1CustomResourceDefinitionVersionBuilder) Result() apiextv1.CustomResourceDefinitionVersion
Result returns the built CustomResourceDefinitionVersion.
func (*V1CustomResourceDefinitionVersionBuilder) Served ¶
func (b *V1CustomResourceDefinitionVersionBuilder) Served(s bool) *V1CustomResourceDefinitionVersionBuilder
Served sets the Served field on a CustomResourceDefinitionVersion.
func (*V1CustomResourceDefinitionVersionBuilder) Storage ¶
func (b *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 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) 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_builder.go
- deployment_builder.go
- json_schema_props_builder.go
- namespace_builder.go
- object_meta.go
- persistent_volume_builder.go
- persistent_volume_claim_builder.go
- pod_builder.go
- pod_volume_backup_builder.go
- restore_builder.go
- role_builder.go
- schedule_builder.go
- secret_builder.go
- server_status_request_builder.go
- service_account_builder.go
- storage_class_builder.go
- v1_customresourcedefinition_builder.go
- volume_builder.go
- volume_mount_builder.go
- volume_snapshot_location_builder.go