archive

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: 4 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 interface {
	Configure(arguments map[string]interface{}) (err error)
	Archive(files []string) (reader io.Reader, err error)
	Comments() (comments string)
	GetFileName(files []string) (name string)
	GetConfiguration() interface{}
}

Backend interface describe methods that the different types of archive backend must implement to work.

func NewArchiveBackend

func NewArchiveBackend(name string, config map[string]interface{}) (backend Backend, err error)

NewArchiveBackend instantiate the wanted archive backend with the name provided in configuration file We are passing its configuration found in .plikrc file or arguments

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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