Documentation
¶
Index ¶
Constants ¶
View Source
const ( VariantOriginal = "original" VariantContent = "content" VariantThumb = "thumb" )
Variables ¶
View Source
var ErrInvalidImage = errors.New("invalid image")
View Source
var ErrTooLarge = errors.New("upload too large")
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles filesystem operations for assets.
func NewManager ¶
func NewManager(root string, variants VariantConfig) *Manager
func (*Manager) IsWritable ¶
func (*Manager) PathForVariant ¶
type SaveResult ¶
SaveResult describes a validated, persisted upload.
type VariantConfig ¶ added in v0.2.0
VariantConfig controls the dimensions of generated media variants.
Click to show internal directories.
Click to hide internal directories.