Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalStore ¶
type LocalStore struct {
// contains filtered or unexported fields
}
LocalStore persists artifacts on the local filesystem under baseDir. Keys that are absolute paths are used as-is (backward compatibility with records created before this storage abstraction was introduced).
func NewLocalStore ¶
func NewLocalStore(baseDir string) *LocalStore
func (*LocalStore) Get ¶
func (s *LocalStore) Get(_ context.Context, key string) (io.ReadCloser, error)
type S3Config ¶
type S3Config struct {
Bucket string
Region string
Prefix string // optional key prefix, e.g. "artifacts/" — appended before each key
Endpoint string // custom endpoint for MinIO or other S3-compatible stores
AccessKeyID string
SecretAccessKey string
ForcePathStyle bool // required for MinIO and most S3-compatible stores
}
S3Config holds the parameters for creating an S3Store.
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
S3Store persists artifacts in an Amazon S3 or S3-compatible (e.g. MinIO) bucket.
func NewS3Store ¶
NewS3Store creates an S3Store. cfg.Bucket must be non-empty.
type Store ¶
type Store interface {
Put(ctx context.Context, key string, r io.Reader, size int64, contentType string) error
Get(ctx context.Context, key string) (io.ReadCloser, error)
Delete(ctx context.Context, key string) error
}
Store handles persistence and retrieval of artifact blobs. Keys are opaque strings (typically UUID strings or legacy absolute paths).
Click to show internal directories.
Click to hide internal directories.