extractor

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 1, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package extractor unzips artifacts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExtractor

func NewExtractor(log I.Logger, fs *afero.Afero) I.Extractor

Types

type CreateDirectoryError added in v0.6.0

type CreateDirectoryError struct {
	Err error
}

func (CreateDirectoryError) Error added in v0.6.0

func (e CreateDirectoryError) Error() string

type ExtractFileError added in v0.6.0

type ExtractFileError struct {
	FileName string
	Err      error
}

func (ExtractFileError) Error added in v0.6.0

func (e ExtractFileError) Error() string

type Extractor

type Extractor struct {
	Log        I.Logger
	FileSystem *afero.Afero
}

Extractor has a file system from which files are extracted from.

func (*Extractor) Unzip

func (e *Extractor) Unzip(source, destination, manifest string) error

Unzip unzips from source into destination. If there is no manifest provided to this function, it will attempt to read a manifest file within the zip file.

type ExtractorConstructor

type ExtractorConstructor func(log I.Logger, fs *afero.Afero) I.Extractor

type MakeDirectoryError added in v0.6.0

type MakeDirectoryError struct {
	Directory string
	Err       error
}

func (MakeDirectoryError) Error added in v0.6.0

func (e MakeDirectoryError) Error() string

type OpenFileError added in v0.6.0

type OpenFileError struct {
	SavedLocation string
	Err           error
}

func (OpenFileError) Error added in v0.6.0

func (e OpenFileError) Error() string

type OpenManifestError added in v0.6.0

type OpenManifestError struct {
	Err error
}

func (OpenManifestError) Error added in v0.6.0

func (e OpenManifestError) Error() string

type OpenZipError added in v0.6.0

type OpenZipError struct {
	Source string
	Err    error
}

func (OpenZipError) Error added in v0.6.0

func (e OpenZipError) Error() string

type PrintToManifestError added in v0.6.0

type PrintToManifestError struct {
	Err error
}

func (PrintToManifestError) Error added in v0.6.0

func (e PrintToManifestError) Error() string

type WriteFileError added in v0.6.0

type WriteFileError struct {
	SavedLocation string
	Err           error
}

func (WriteFileError) Error added in v0.6.0

func (e WriteFileError) Error() string

Jump to

Keyboard shortcuts

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