Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentStore ¶
type ContentStore struct {
// contains filtered or unexported fields
}
ContentStore provides a simple file system based storage.
func NewContentStore ¶
func NewContentStore(base string) (*ContentStore, error)
NewContentStore creates a ContentStore at the base directory.
func (*ContentStore) Exists ¶
func (s *ContentStore) Exists(m *meta.Object) bool
Exists returns true if the object exists in the content store.
func (*ContentStore) Get ¶
func (s *ContentStore) Get(m *meta.Object) (io.ReadCloser, error)
Get takes a Meta object and retreives the content from the store, returning it as an io.Reader.
Click to show internal directories.
Click to hide internal directories.