tar

package
v0.0.0-...-e675dcb Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Config *BackendConfig
}

Backend object

func NewTarBackend

func NewTarBackend(config map[string]interface{}) (tb *Backend, err error)

NewTarBackend instantiate a new Tar Archive Backend and configure it from config map

func (*Backend) Archive

func (tb *Backend) Archive(files []string) (reader io.Reader, err error)

Archive implementation for TAR Archive Backend

func (*Backend) Comments

func (tb *Backend) Comments() string

Comments implementation for TAR Archive Backend

func (*Backend) Configure

func (tb *Backend) Configure(arguments map[string]interface{}) (err error)

Configure implementation for TAR Archive Backend

func (*Backend) GetConfiguration

func (tb *Backend) GetConfiguration() interface{}

GetConfiguration implementation for TAR Archive Backend

func (*Backend) GetFileName

func (tb *Backend) GetFileName(files []string) (name string)

GetFileName returns the final archive file name

type BackendConfig

type BackendConfig struct {
	Tar      string
	Compress string
	Options  string
}

BackendConfig object

func NewTarBackendConfig

func NewTarBackendConfig(config map[string]interface{}) (tb *BackendConfig)

NewTarBackendConfig instantiate a new Backend Configuration from config map passed as argument

Jump to

Keyboard shortcuts

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