zip

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 config

func NewZipBackend

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

NewZipBackend instantiate a new ZIP Archive Backend and configure it from config map

func (*Backend) Archive

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

Archive implementation for ZIP Archive Backend

func (*Backend) Comments

func (zb *Backend) Comments() string

Comments implementation for ZIP Archive Backend Left empty because ZIP can't accept piping to it's STDIN

func (*Backend) Configure

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

Configure implementation for ZIP Archive Backend

func (*Backend) GetConfiguration

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

GetConfiguration implementation for ZIP Archive Backend

func (*Backend) GetFileName

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

GetFileName returns the final archive file name

type BackendConfig

type BackendConfig struct {
	Zip     string
	Options string
}

BackendConfig object

func NewZipBackendConfig

func NewZipBackendConfig(config map[string]interface{}) (zb *BackendConfig)

NewZipBackendConfig 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