Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(cfg storage.LocalConfig) (storage.ImageStorage, error)
New creates a new local filesystem storage
Types ¶
type Option ¶
type Option func(*Storage)
Option represents an option for configuring local storage
func WithBaseURL ¶
WithBaseURL sets the base URL for accessing images
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage implements ImageStorage for local filesystem
func NewWithOptions ¶
NewWithOptions creates a new local storage with functional options
func (*Storage) Store ¶
func (s *Storage) Store(ctx context.Context, image *interfaces.GeneratedImage, metadata storage.StorageMetadata) (string, error)
Store saves an image to the local filesystem
Click to show internal directories.
Click to hide internal directories.