Documentation
¶
Index ¶
- Constants
- Variables
- type Store
- func (store *Store) GetFileMetadata(ctx context.Context, path string) (files.StoredRegisteredMetaData, error)
- func (store *Store) GetFilesMetadata(ctx context.Context, collectionID string) ([]files.StoredRegisteredMetaData, error)
- func (store *Store) MarkCollectionPublished(ctx context.Context, collectionID string) error
- func (store *Store) MarkFileDecrypted(ctx context.Context, metaData files.FileEtagChange) error
- func (store *Store) MarkFilePublished(ctx context.Context, path string) error
- func (store *Store) MarkUploadComplete(ctx context.Context, metaData files.FileEtagChange) error
- func (store *Store) RegisterFileUpload(ctx context.Context, metaData files.StoredRegisteredMetaData) error
- func (store *Store) UpdateCollectionID(ctx context.Context, path, collectionID string) error
Constants ¶
View Source
const ( StateCreated = "CREATED" StateUploaded = "UPLOADED" StatePublished = "PUBLISHED" StateDecrypted = "DECRYPTED" )
Variables ¶
View Source
var ( ErrDuplicateFile = errors.New("duplicate file path") ErrFileNotRegistered = errors.New("file not registered") ErrFileNotInCreatedState = errors.New("file state is not in state created") ErrFileNotInUploadedState = errors.New("file state is not in state uploaded") ErrFileNotInPublishedState = errors.New("file state is not in state published") ErrFileIsNotPublishable = errors.New("file is not set as publishable") ErrNoFilesInCollection = errors.New("no files found in collection") ErrCollectionIDAlreadySet = errors.New("collection ID already set") ErrCollectionIDNotSet = errors.New("collection ID not set") )
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) GetFileMetadata ¶
func (*Store) GetFilesMetadata ¶
func (*Store) MarkCollectionPublished ¶
func (*Store) MarkFileDecrypted ¶
func (*Store) MarkFilePublished ¶
func (*Store) MarkUploadComplete ¶
func (*Store) RegisterFileUpload ¶
Click to show internal directories.
Click to hide internal directories.