Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkip = errors.New("skip")
ErrSkip is used to skip an Uploadable
Functions ¶
func NewFsUploadables ¶
func NewFsUploadables(afs afero.Fs, filenames []string, uploadable FsUploadable) smugmug.Uploadables
NewFsUploadables returns a new instance of an Uploadables which creates Uploadable instances from files on the filesystem
Types ¶
type FsUploadable ¶
type FsUploadable interface { // Uploadable creates an Uploadable from a filesystem Uploadable(afero.Fs, string) (*smugmug.Uploadable, error) // Pre registers a PreFunc Pre(...PreFunc) // Use registers a UseFunc Use(...UseFunc) }
FsUploadable creates Uploadable instances
func NewFsUploadable ¶
func NewFsUploadable(albumKey string) (FsUploadable, error)
NewFsUploadable returns a newly instantiated FsUploadable instance
type PreFunc ¶
PreFunc is called before the file is opened
func Extensions ¶
Extensions represents the valid list of extensions to upload
Click to show internal directories.
Click to hide internal directories.