restore

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestorePVCMountPath           = "/backup"
	SystemFileStoragePVCMountPath = "/system-filestorage-pvc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type APIManagerRestore

type APIManagerRestore struct {
	// contains filtered or unexported fields
}

func NewAPIManagerRestore

func NewAPIManagerRestore(options *APIManagerRestoreOptions) *APIManagerRestore

func (*APIManagerRestore) CreateAPIManagerSharedSecretJob

func (b *APIManagerRestore) CreateAPIManagerSharedSecretJob() *batchv1.Job

func (*APIManagerRestore) RestoreSecretsAndConfigMapsFromPVCJob

func (b *APIManagerRestore) RestoreSecretsAndConfigMapsFromPVCJob() *batchv1.Job

func (*APIManagerRestore) RestoreSystemFileStoragePVCFromPVCJob

func (b *APIManagerRestore) RestoreSystemFileStoragePVCFromPVCJob() *batchv1.Job

func (*APIManagerRestore) SecretToShareName

func (b *APIManagerRestore) SecretToShareName() string

func (*APIManagerRestore) SystemStoragePVC

func (b *APIManagerRestore) SystemStoragePVC(restoreInfo *RuntimeAPIManagerRestoreInfo) *v1.PersistentVolumeClaim

func (*APIManagerRestore) ZyncResyncDomainsJob

func (b *APIManagerRestore) ZyncResyncDomainsJob() *batchv1.Job

type APIManagerRestoreOptions

type APIManagerRestoreOptions struct {
	Namespace             string    `validate:"required"` // Namespace where the K8s related objects to the restore will be created/looked
	APIManagerRestoreName string    `validate:"required"` // Name of the APIManagerRestore CR. NOT the backup or APIManager name
	APIManagerRestoreUID  types.UID `validate:"required"` // UID of the APIManagerRestore CR

	APIManagerRestorePVCOptions *APIManagerRestorePVCOptions `validate:"required"`
	OCCLIImageURL               string                       `validate:"required"`
}

func NewAPIManagerRestoreOptions

func NewAPIManagerRestoreOptions() *APIManagerRestoreOptions

func (*APIManagerRestoreOptions) Validate

func (a *APIManagerRestoreOptions) Validate() error

type APIManagerRestoreOptionsProvider

type APIManagerRestoreOptionsProvider struct {
	APIManagerRestoreCR *appsv1alpha1.APIManagerRestore
	Client              client.Client
}

func (*APIManagerRestoreOptionsProvider) Options

type APIManagerRestorePVCOptions

type APIManagerRestorePVCOptions struct {
	PersistentVolumeClaimVolumeSource v1.PersistentVolumeClaimVolumeSource `validate:"required"`
}

func NewAPIManagerRestorePVCOptions

func NewAPIManagerRestorePVCOptions() *APIManagerRestorePVCOptions

func (*APIManagerRestorePVCOptions) Validate

func (a *APIManagerRestorePVCOptions) Validate() error

type RuntimeAPIManagerRestoreInfo

type RuntimeAPIManagerRestoreInfo struct {
	PVCStorageClass *string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL