base

package
v0.0.0-...-395ddcd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package base contains a simple engine to return a predefined (YAML) pod-spec in order not to invent the wheel over and over again

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct{}

Engine is a baseic implementation of the backupengine interface

func (Engine) CreateBackup

func (Engine) CreateBackup(io.Writer) error

CreateBackup is not supported by this engine

func (Engine) GetPodSpec

func (Engine) GetPodSpec() (out coreV1.PodSpec, err error)

GetPodSpec generates a pod-spec from the given backup specificiation containing required volume mounts from secrets or envFrom definitions (and possible other special cases). The PVC to store the backup is added later and must not be included in this spec

func (Engine) Init

func (Engine) Init(opts.InitOpts) error

Init not used by this engine

func (Engine) RestoreBackup

func (Engine) RestoreBackup(helper.ReaderAtCloser) error

RestoreBackup is not supported by this engine

Jump to

Keyboard shortcuts

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