Documentation
¶
Overview ¶
Package registry provides storage for CLIP image archives.
Index ¶
Constants ¶
View Source
const (
// FileExtension is the extension used for CLIP archive files
FileExtension = "clip"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Bucket string
Region string
Endpoint string
AccessKey string
SecretKey string
ForcePathStyle bool
}
Config holds the configuration for the image registry.
type ImageRegistry ¶
type ImageRegistry struct {
// contains filtered or unexported fields
}
ImageRegistry manages CLIP archive storage in S3.
func NewImageRegistry ¶
func NewImageRegistry(cfg Config) (*ImageRegistry, error)
NewImageRegistry creates a new image registry with S3 storage.
type ObjectStore ¶
type ObjectStore interface {
Put(ctx context.Context, localPath, key string) error
Get(ctx context.Context, key, localPath string) error
Exists(ctx context.Context, key string) (bool, error)
}
ObjectStore defines the interface for object storage backends.
type S3Store ¶
type S3Store struct {
// contains filtered or unexported fields
}
S3Store implements ObjectStore using AWS S3.
func NewS3Store ¶
NewS3Store creates a new S3-backed object store.
Click to show internal directories.
Click to hide internal directories.