storage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive interface {
	Extract(string) ([]string, error)
	Close() error
}

type Command

type Command func(name string, arg ...string) Starter

type NewArchive

type NewArchive func(string) (Archive, error)

type Starter

type Starter interface {
	Start() error
}

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(newArchive NewArchive, command Command, storageDir string) *Storage

func (*Storage) CleanupReleases

func (s *Storage) CleanupReleases(keepRelease string) error

func (*Storage) ExtractRelease

func (s *Storage) ExtractRelease(filename string) error

func (*Storage) HasRelease

func (s *Storage) HasRelease(release string) bool

func (*Storage) Run

func (s *Storage) Run(release string) error

Jump to

Keyboard shortcuts

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