Documentation ¶
Index ¶
- func CreateHandler(location string, mode os.FileMode, data []byte, isDir bool) func(resources []*asset.Resource) ([]*asset.Resource, error)
- func DeleteHandler(location string) func(resources []*asset.Resource) ([]*asset.Resource, error)
- func Rewrite(ctx context.Context, walker storage.Walker, URL string, upload storage.Upload, ...) error
- func UpdateDestination(destination string, resources []*asset.Resource) []*asset.Resource
- func UploadHandler(toUpload []*asset.Resource) func(resources []*asset.Resource) ([]*asset.Resource, error)
- type Modifier
- type RewriteUploader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandler ¶
func CreateHandler(location string, mode os.FileMode, data []byte, isDir bool) func(resources []*asset.Resource) ([]*asset.Resource, error)
CreateHandler represents on rewrite upload create handler
func DeleteHandler ¶
DeleteHandler represents on rewrite upload delete handler
func Rewrite ¶
func Rewrite(ctx context.Context, walker storage.Walker, URL string, upload storage.Upload, handler Modifier) error
Rewrite rewrites content
func UpdateDestination ¶
UpdateDestination updates resource with specified destination
Types ¶
type RewriteUploader ¶
type RewriteUploader struct {
// contains filtered or unexported fields
}
RewriteUploader represents rewrite uploaderMe
func NewRewriteUploader ¶
func NewRewriteUploader(listener func(resources []*asset.Resource) error) *RewriteUploader
NewRewriteUploader returns new rewrite uploader
func (*RewriteUploader) Close ¶
func (r *RewriteUploader) Close() error
Close notifies specified listener
Click to show internal directories.
Click to hide internal directories.