Documentation ¶
Overview ¶
Package asset define asset testing utility
Index ¶
- func Cleanup(manager storage.Manager, URL string) error
- func Create(manager storage.Manager, URL string, resources []*Resource) error
- func Load(manager storage.Manager, URL string) (map[string]*Resource, error)
- func Modify(manager storage.Manager, URL string, resources []*Resource) error
- type Resource
- func New(name string, mode os.FileMode, dir bool, link string, data []byte) *Resource
- func NewDir(name string, mode os.FileMode) *Resource
- func NewFile(name string, data []byte, mode os.FileMode) *Resource
- func NewGzFile(name string, data []byte, mode os.FileMode) *Resource
- func NewLink(name, link string, mode os.FileMode) *Resource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates supplied assets, links or folders in provided location (for testing purpose)
Types ¶
type Resource ¶
type Resource struct { Dir bool Link string Name string Mode os.FileMode ModTime *time.Time Data []byte FileInfo os.FileInfo }
Resource represents a test resource
Click to show internal directories.
Click to hide internal directories.