Documentation
¶
Overview ¶
Package artifacts provides access to external object stores.
Index ¶
- type Store
- func (a *Store) DeleteObject(ctx context.Context, key string) error
- func (a *Store) GetObject(ctx context.Context, key string, maxBytes int64) ([]byte, string, string, error)
- func (a *Store) HeadObject(ctx context.Context, key string) (string, string, int64, error)
- func (a *Store) PutObject(ctx context.Context, key string, body []byte, contentType string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store provides access to artifact objects stored in S3.
func NewWithClient ¶
NewWithClient constructs a Store backed by an injected S3 client.
This is primarily intended for deterministic, offline tests.
func (*Store) DeleteObject ¶
DeleteObject deletes an object from the artifact bucket.
func (*Store) GetObject ¶
func (a *Store) GetObject(ctx context.Context, key string, maxBytes int64) ([]byte, string, string, error)
GetObject fetches and returns object bytes with basic metadata.
func (*Store) HeadObject ¶
HeadObject returns object metadata without downloading the object body.
Click to show internal directories.
Click to hide internal directories.