unpacker

package
v0.0.0-...-ebca4f8 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package unpacker would work more like a client library by helping one in unwrapping the assert packed by packer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnPackkerInput

type UnPackkerInput struct {
	// Name of the packed asset.
	Name string `json:"name" yaml:"name"`
	// StubPath refers to path where the client stub is placed.
	StubPath string `json:"stubpath" yaml:"stubpath"`
	// TargetPath refers to path where the asset has to be unpacked.
	TargetPath string `json:"assetpath" yaml:"assetpath"`
	// CleanStub make sure that the client stub is removed by Unpacker after successful unpacking of asset.
	CleanStub bool `json:"cleanstub" yaml:"cleanstub"`
	// Writer to be assigned so that Unpacker can logs its outputs and errors.
	// AssetBackend for the asset generated.
	AssetBackend *backend.Store
	Writer       io.Writer
	// contains filtered or unexported fields
}

UnPackkerInput holds the required fields to unpack the asset.

func NewConfig

func NewConfig() *UnPackkerInput

NewConfig retunrns new config of UnPackkerInput.

func (*UnPackkerInput) Unpacker

func (i *UnPackkerInput) Unpacker() error

Unpacker unpacks the asset onto specified path.

Jump to

Keyboard shortcuts

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