backrest

package
v0.0.0-...-3f85c9d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Backrest

func Backrest(namespace string, clientset *kubernetes.Clientset, task *crv1.Pgtask)

Backrest ...

func CreateRepoDeployment

func CreateRepoDeployment(clientset *kubernetes.Clientset, namespace string, cluster *crv1.Pgcluster) error

func CreateRestoredDeployment

func CreateRestoredDeployment(restclient *rest.RESTClient, cluster *crv1.Pgcluster, clientset *kubernetes.Clientset,
	namespace, restoreToName, workflowID string, affinity *v1.Affinity) error

func Restore

func Restore(restclient *rest.RESTClient, namespace string, clientset *kubernetes.Clientset, task *crv1.Pgtask)

Restore ...

func StanzaCreate

func StanzaCreate(namespace, clusterName string, clientset *kubernetes.Clientset, RESTClient *rest.RESTClient)

func UpdateDBPath

func UpdateDBPath(clientset *kubernetes.Clientset, cluster *crv1.Pgcluster, target, namespace string) error

update the PGBACKREST_DB_PATH env var of the backrest-repo deployment for a given cluster, the deployment is bounced as part of this process

func UpdateRestoreWorkflow

func UpdateRestoreWorkflow(restclient *rest.RESTClient, clientset *kubernetes.Clientset, clusterName, status, namespace,
	workflowID, restoreToName string, affinity *v1.Affinity)

Types

type RepoDeploymentTemplateFields

type RepoDeploymentTemplateFields struct {
	SecurityContext       string
	PGOImagePrefix        string
	PGOImageTag           string
	ContainerResources    string
	BackrestRepoClaimName string
	SshdSecretsName       string
	PGbackrestDBHost      string
	PgbackrestRepoPath    string
	PgbackrestDBPath      string
	PgbackrestPGPort      string
	SshdPort              int
	PgbackrestStanza      string
	PgbackrestRepoType    string
	PgbackrestS3EnvVars   string
	Name                  string
	ClusterName           string
}

type RepoServiceTemplateFields

type RepoServiceTemplateFields struct {
	Name        string
	ClusterName string
	Port        string
}

Jump to

Keyboard shortcuts

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