Documentation

Overview

    Package extractor unzips artifacts.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type CreateDirectoryError

    type CreateDirectoryError struct {
    	Err error
    }

    func (CreateDirectoryError) Error

    func (e CreateDirectoryError) Error() string

    type ExtractFileError

    type ExtractFileError struct {
    	FileName string
    	Err      error
    }

    func (ExtractFileError) Error

    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 MakeDirectoryError

        type MakeDirectoryError struct {
        	Directory string
        	Err       error
        }

        func (MakeDirectoryError) Error

        func (e MakeDirectoryError) Error() string

        type OpenFileError

        type OpenFileError struct {
        	SavedLocation string
        	Err           error
        }

        func (OpenFileError) Error

        func (e OpenFileError) Error() string

        type OpenManifestError

        type OpenManifestError struct {
        	Err error
        }

        func (OpenManifestError) Error

        func (e OpenManifestError) Error() string

        type OpenZipError

        type OpenZipError struct {
        	Source string
        	Err    error
        }

        func (OpenZipError) Error

        func (e OpenZipError) Error() string

        type PrintToManifestError

        type PrintToManifestError struct {
        	Err error
        }

        func (PrintToManifestError) Error

        func (e PrintToManifestError) Error() string

        type WriteFileError

        type WriteFileError struct {
        	SavedLocation string
        	Err           error
        }

        func (WriteFileError) Error

        func (e WriteFileError) Error() string