location

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clean added in v0.5.2

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

Clean contains the information about the cleaning.

func NewCLean added in v0.5.2

func NewCLean(storageCfg *config.StorageConfig) *Clean

New creates a new Clean

func (*Clean) Run added in v0.5.2

func (c *Clean) Run() error

Run removes the old generation of the file.

type File added in v0.5.2

type File struct {
	Info     os.FileInfo
	Path     string
	FullPath string
}

type FindFiles added in v0.5.2

type FindFiles []File

func (FindFiles) Len added in v0.5.2

func (fi FindFiles) Len() int

func (FindFiles) Less added in v0.5.2

func (fi FindFiles) Less(i, j int) bool

func (FindFiles) Swap added in v0.5.2

func (fi FindFiles) Swap(i, j int)

type Local

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

func NewLocal added in v0.4.0

func NewLocal(storageCfg *config.StorageConfig) *Local

func (*Local) Clean

func (l *Local) Clean() error

Clean cleans the old files.

func (*Local) Save

func (l *Local) Save(filename string) error

type Location

type Location interface {
	Save(filename string) error
	Clean() error
}

func New added in v0.4.8

func New(cfg *config.StorageConfig) Location

type S3

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

func NewS3 added in v0.1.0

func NewS3(storageCfg *config.StorageConfig) *S3

func (*S3) Clean

func (s *S3) Clean() error

func (*S3) Save

func (s *S3) Save(filename string) error

Jump to

Keyboard shortcuts

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