backup

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterBackup

type ClusterBackup []interface{}

func FetchClusterBackup

func FetchClusterBackup(ctx context.Context, opts ClusterBackupOptions) (*ClusterBackup, error)

func (*ClusterBackup) ToJSON

func (c *ClusterBackup) ToJSON() ([]byte, error)

func (*ClusterBackup) ToYAML

func (c *ClusterBackup) ToYAML() ([]byte, error)

type ClusterBackupOptions

type ClusterBackupOptions struct {
	RestConfig *rest.Config

	// FormatResources, if set, will remove certain fields from the resources
	FormatResources bool

	IncludeCertificates               bool
	IncludeIssuers                    bool
	IncludeCertificateRequestPolicies bool
}

ClusterBackupOptions wraps the options for fetching a cluster backup, sometimes not all resources are required, so these options allow for filtering and formatting.

Jump to

Keyboard shortcuts

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