Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Archive ¶
Archive is an interface to converting an output store to a portable format, such as a gzipped tar file.
type DirectoryStore ¶
type DirectoryStore struct {
// contains filtered or unexported fields
}
DirectoryStore is an output store implementation that stores outputs as files in a given directory.
func NewDirectoryStore ¶
func NewDirectoryStore(directory string) *DirectoryStore
NewDirectoryStore instantiates a new DirectoryStore struct
func (*DirectoryStore) Cleanup ¶
func (dirStore *DirectoryStore) Cleanup() error
Cleanup removes the directory and files used for this output store
func (*DirectoryStore) Items ¶
func (dirStore *DirectoryStore) Items() ([]StoreItem, error)
Items returns the collection of outputs store in this directory
type DirectoryStoreItem ¶
type DirectoryStoreItem struct {
// contains filtered or unexported fields
}
DirectoryStoreItem is a reference to a file stored in a DirectoryStore
type Store ¶
type Store interface { Save(name string, reader io.Reader) error Items() ([]StoreItem, error) Cleanup() error }
Store represent an object that can save raw outputs, referencing them by name.
type StoreItem ¶
type StoreItem interface { Info() (fs.FileInfo, error) Open() (reader io.Reader, cleanup func() error, err error) }
StoreItem represents a particular raw output that has been saved to a Store.
type TarGzipArchive ¶
type TarGzipArchive struct {
OutputDir string
}
TarGzipArchive archives an output store as a Gzipped Tar archive.