Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageVersion ¶
ImageVersion represents a specific size version of an image.
func GenerateImageVersions ¶
func GenerateImageVersions(data []byte) ([]*ImageVersion, error)
GenerateImageVersions generates multiple versions of different sizes for the image provided.
type Store ¶
type Store interface { // GetImage returns the image identified by the ID and version provided. GetImage(ctx context.Context, imageID, version string) (datd []byte, err error) // SaveImage stores an image returning the image ID. SaveImage(ctx context.Context, data []byte) (imageID string, err error) }
Store describes the methods an image.Store implementation must provide.
Click to show internal directories.
Click to hide internal directories.