Versions in this module Expand all Collapse all v1 v1.3.1 Mar 10, 2020 Changes in this version + 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 struct + func ForBackup(ns, name string) *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 struct + func ForBackupStorageLocation(ns, name string) *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 struct + func ForConfigMap(ns, name string) *ConfigMapBuilder + func (b *ConfigMapBuilder) Data(vals ...string) *ConfigMapBuilder + func (b *ConfigMapBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ConfigMapBuilder + func (b *ConfigMapBuilder) Result() *corev1api.ConfigMap + type ContainerBuilder struct + func ForContainer(name, image string) *ContainerBuilder + func ForPluginContainer(image string, pullPolicy corev1api.PullPolicy) *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 struct + func ForCustomResourceDefinition(name string) *CustomResourceDefinitionBuilder + func (b *CustomResourceDefinitionBuilder) ObjectMeta(opts ...ObjectMetaOpt) *CustomResourceDefinitionBuilder + func (b *CustomResourceDefinitionBuilder) Result() *apiextv1beta1.CustomResourceDefinition + func (c *CustomResourceDefinitionBuilder) Condition(cond apiextv1beta1.CustomResourceDefinitionCondition) *CustomResourceDefinitionBuilder + type CustomResourceDefinitionConditionBuilder struct + func ForCustomResourceDefinitionCondition() *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 struct + func ForDeployment(ns, name string) *DeploymentBuilder + func (b *DeploymentBuilder) ObjectMeta(opts ...ObjectMetaOpt) *DeploymentBuilder + func (b *DeploymentBuilder) Result() *appsv1api.Deployment + type JSONSchemaPropsBuilder struct + func ForJSONSchemaPropsBuilder() *JSONSchemaPropsBuilder + func (b *JSONSchemaPropsBuilder) Maximum(f float64) *JSONSchemaPropsBuilder + func (b *JSONSchemaPropsBuilder) Result() *apiextv1.JSONSchemaProps + type NamespaceBuilder struct + func ForNamespace(name string) *NamespaceBuilder + func (b *NamespaceBuilder) ObjectMeta(opts ...ObjectMetaOpt) *NamespaceBuilder + func (b *NamespaceBuilder) Phase(val corev1api.NamespacePhase) *NamespaceBuilder + func (b *NamespaceBuilder) Result() *corev1api.Namespace + type ObjectMetaOpt func(metav1.Object) + type PersistentVolumeBuilder struct + func ForPersistentVolume(name string) *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 struct + func ForPersistentVolumeClaim(ns, name string) *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 struct + func ForPod(ns, name string) *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 struct + func ForPodVolumeBackup(ns, 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) Result() *velerov1api.PodVolumeBackup + func (b *PodVolumeBackupBuilder) SnapshotID(snapshotID string) *PodVolumeBackupBuilder + func (b *PodVolumeBackupBuilder) Volume(volume string) *PodVolumeBackupBuilder + type RestoreBuilder struct + func ForRestore(ns, name string) *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 struct + func ForRole(ns, name string) *RoleBuilder + func (b *RoleBuilder) ObjectMeta(opts ...ObjectMetaOpt) *RoleBuilder + func (b *RoleBuilder) Result() *rbacv1api.Role + type ScheduleBuilder struct + func ForSchedule(ns, name string) *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 struct + func ForSecret(ns, name string) *SecretBuilder + func (b *SecretBuilder) ObjectMeta(opts ...ObjectMetaOpt) *SecretBuilder + func (b *SecretBuilder) Result() *corev1api.Secret + type ServerStatusRequestBuilder struct + func ForServerStatusRequest(ns, name string) *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 struct + func ForServiceAccount(ns, name string) *ServiceAccountBuilder + func (b *ServiceAccountBuilder) ObjectMeta(opts ...ObjectMetaOpt) *ServiceAccountBuilder + func (b *ServiceAccountBuilder) Result() *corev1api.ServiceAccount + type StorageClassBuilder struct + func ForStorageClass(name string) *StorageClassBuilder + func (b *StorageClassBuilder) ObjectMeta(opts ...ObjectMetaOpt) *StorageClassBuilder + func (b *StorageClassBuilder) Result() *storagev1api.StorageClass + type V1CustomResourceDefinitionBuilder struct + func ForV1CustomResourceDefinition(name string) *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 struct + func ForV1CustomResourceDefinitionCondition() *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 struct + func ForV1CustomResourceDefinitionVersion(name string) *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 struct + func ForVolume(name string) *VolumeBuilder + func (b *VolumeBuilder) CSISource(driver string) *VolumeBuilder + func (b *VolumeBuilder) PersistentVolumeClaimSource(claimName string) *VolumeBuilder + func (b *VolumeBuilder) Result() *corev1api.Volume + type VolumeMountBuilder struct + func ForVolumeMount(name, mountPath string) *VolumeMountBuilder + func (b *VolumeMountBuilder) Result() *corev1api.VolumeMount + type VolumeSnapshotLocationBuilder struct + func ForVolumeSnapshotLocation(ns, name string) *VolumeSnapshotLocationBuilder + func (b *VolumeSnapshotLocationBuilder) ObjectMeta(opts ...ObjectMetaOpt) *VolumeSnapshotLocationBuilder + func (b *VolumeSnapshotLocationBuilder) Provider(name string) *VolumeSnapshotLocationBuilder + func (b *VolumeSnapshotLocationBuilder) Result() *velerov1api.VolumeSnapshotLocation