backup

package
v0.0.0-...-d44934f Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupTmpDir

func CleanupTmpDir(tmpDir string) error

func CompressBackup

func CompressBackup(srcDir string) (string, error)

CompressBackup creates a tarball of the source directory and compresses it using gzip.

func GetClusterObjects

func GetClusterObjects(dynamicClient dynamic.Interface, resource schema.GroupVersionResource) ([]*unstructured.Unstructured, error)

func ProcessClusterScopedResources

func ProcessClusterScopedResources(dynamicClient dynamic.Interface, resources []schema.GroupVersionResource, baseDir string) error

func ProcessNamespaces

func ProcessNamespaces(dynamicClient dynamic.Interface, namespaces []string, namespacedResources []schema.GroupVersionResource, baseDir string) error

func StartBackup

func StartBackup(clientset *kubernetes.Clientset, dynamicClient dynamic.Interface, cfg *config.AppConfig) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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