Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor unzips/extracts a backup tarball to a local temp directory.
func NewExtractor ¶
func NewExtractor(log logrus.FieldLogger, fs filesystem.Interface) *Extractor
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser traverses an extracted archive on disk to validate it and provide a helpful representation of it to consumers.
func NewParser ¶
func NewParser(log logrus.FieldLogger, fs filesystem.Interface) *Parser
NewParser constructs a Parser.
type ResourceItems ¶
type ResourceItems struct { // GroupResource is API group and resource name, // formatted as "resource.group". For the "core" // API group, the ".group" suffix is omitted. GroupResource string // ItemsByNamespace is a map from namespace (or empty string // for cluster-scoped resources) to a list of individual item // names contained in the archive. Item names **do not** include // the file extension. ItemsByNamespace map[string][]string }
ResourceItems contains the collection of items of a given resource type within a backup, grouped by namespace (or empty string for cluster-scoped resources).
Click to show internal directories.
Click to hide internal directories.