Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
Begin(context.Context, postgres.DBTX, filestream.Claim, int64, time.Time) error
Append(context.Context, postgres.DBTX, filestream.Claim, int32, int32, []byte) error
Seal(context.Context, postgres.DBTX, filestream.Claim, int64, string) error
Read(context.Context, postgres.DBTX, filestream.Claim, uuid.UUID) (filestream.Manifest, error)
ReadChunk(context.Context, postgres.DBTX, filestream.Claim, uuid.UUID, int32) ([]byte, error)
Discard(context.Context, postgres.DBTX, filestream.Claim) error
}
type RetainedStore ¶
type RetainedStore struct {
// contains filtered or unexported fields
}
RetainedStore binds every storage operation to an execution claim. It does not grant authority to caller-supplied artifact IDs outside that organization.
func NewRetainedStore ¶
func NewRetainedStore(txm postgres.TransactionManager, cipher crypto.AES256, repo Repository, claim filestream.Claim, expires time.Time) (*RetainedStore, error)
func (*RetainedStore) Open ¶
func (s *RetainedStore) Open(ctx context.Context, ref filepayload.Reference, maxBytes int64) (io.ReadCloser, error)
func (*RetainedStore) Retain ¶
func (s *RetainedStore) Retain(ctx context.Context, maxBytes int64, produce filestream.Producer) (_ *filepayload.Reference, _ *filestream.Metadata, retErr error)
Click to show internal directories.
Click to hide internal directories.