storage

package
v0.0.4-0...-38ee1f2 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object interface {
	Hash() uint64
	Names() []string
	Tags() []string
	Size() uint64
	CompressedSize() uint64
	AddName(name string)
	AddTag(tag string)
	WriteData(dest io.Writer, decompress bool) error
	RawData() []byte
}

Object is the basic interface for Repository objects

func NewObject

func NewObject(file string, root string) (Object, error)

NewObject builds an Object from a file, and uses the root to build tags out of leaf folders

type Repository

type Repository interface {
	AddFile(file string, root string) error
	AllNames() []string
	AllTags() []string
}

Repository is the overall storage unit

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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