archive

package
v0.1.1-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package archive contains tools are archiving and extracting imagesets.\.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPackager

func NewPackager(manifests []v1alpha1.Manifest, blobs []v1alpha1.Blob) *packager

NewPackager create a new packager for build ImageSets

func Unarchive

func Unarchive(a Archiver, source, destination string, excludePaths []string) error

Unarchive will extract files unless excluded to destination directory

Types

type Archiver

type Archiver interface {
	String() string
	Archive([]string, string) error
	Extract(string, string, string) error
	Unarchive(string, string) error
	Write(archiver.File) error
	Create(io.Writer) error
	Close() error
	Walk(string, archiver.WalkFunc) error
	Open(io.Reader, int64) error
	Read() (archiver.File, error)
	CheckPath(string, string) error
}

func NewArchiver

func NewArchiver() Archiver

NewArchiver creates a new archiver for tar archive manipultation

Jump to

Keyboard shortcuts

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