Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InProgress ¶
InProgress is an implementation of Storage which is intended to decorate the S3 implementation.
The decorator will check if a diff is in progress, and if so, will return domain.ErrInProgress. On a successful Store operation, the decorator will remove the diff's "in progress" status.
func (*InProgress) Exists ¶
Exists returns true if the diff exists, but does not download the diff body.
If the diff is in the process of being created, an error will be returned of type domain.ErrInProgress
func (*InProgress) Get ¶
func (s *InProgress) Get(ctx context.Context, key string) (io.ReadCloser, error)
Get returns the diff for the given key.
If the diff is in the process of being created, an error will be returned of type domain.ErrInProgress
type S3 ¶
S3 implements the Storage interface and uses S3 as the backing store for diffs