Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func NewExporter(source, dest, logsDir string, l loader.BundleLoader, c imagestore.Constructor) (*Exporter, error)
NewExporter returns an *Exporter given information about where a bundle lives, where the compressed bundle should be exported to. It also sets up a docker client to work with images.
func (*Exporter) Export ¶
Export prepares an artifacts directory containing all of the necessary images, packages the bundle along with the artifacts in a gzipped tar file, and saves that file to the file path specified as destination. If the any part of the destination path doesn't, it will be created. exist
type Importer ¶
type Importer struct { Source string Destination string Loader loader.BundleLoader }
Importer is responsible for importing a file
func NewImporter ¶
func NewImporter(source, destination string, load loader.BundleLoader) *Importer
NewImporter creates a new secure *Importer
source is the filesystem path to the archive. destination is the directory to unpack the contents. load is a loader.BundleLoader preconfigured for loading bundles.