Documentation
¶
Overview ¶
Package objectstore provides provider-neutral immutable object publication.
Index ¶
- type Evidence
- type S3Config
- type S3Store
- func (store *S3Store) Delete(ctx context.Context, key string) error
- func (store *S3Store) GetVerified(ctx context.Context, key string, expected Evidence) (_ io.ReadCloser, evidence Evidence, resultErr error)
- func (store *S3Store) HeadVerified(ctx context.Context, key string, expected Evidence) (Evidence, error)
- func (store *S3Store) PutImmutable(ctx context.Context, key string, reader io.Reader, sizeBytes int64, ...) (evidence Evidence, resultErr error)
- type Store
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3Config ¶
type S3Config struct {
Endpoint string
Region string
Bucket string
AccessKeyID string
SecretAccessKey string
UsePathStyle bool
RetryMaxAttempts int
HTTPTimeout time.Duration
TempDirectory string
MaxObjectBytes int64
}
S3Config contains explicit S3-compatible authority.
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
S3Store publishes immutable objects to one S3-compatible bucket.
func NewS3Store ¶
NewS3Store constructs an S3-compatible immutable object store.
func (*S3Store) GetVerified ¶
func (store *S3Store) GetVerified( ctx context.Context, key string, expected Evidence, ) (_ io.ReadCloser, evidence Evidence, resultErr error)
GetVerified buffers and verifies immutable bytes before exposing them to restore.
type Store ¶
type Store interface {
PutImmutable(context.Context, string, io.Reader, int64, string) (Evidence, error)
HeadVerified(context.Context, string, Evidence) (Evidence, error)
GetVerified(context.Context, string, Evidence) (io.ReadCloser, Evidence, error)
Delete(context.Context, string) error
}
Store is the small provider-neutral durable object boundary.
Click to show internal directories.
Click to hide internal directories.