Documentation
¶
Index ¶
- Constants
- Variables
- func CommandExport() *cli.Command
- func CommandFind() *cli.Command
- func CommandList() *cli.Command
- func CommandNew() *cli.Command
- func CommandPatch() *cli.Command
- func CommandRemove() *cli.Command
- func CommandSimilar() *cli.Command
- func CommandTitle() *cli.Command
- func CommandURLName() *cli.Command
- func CommandUpload() *cli.Command
- func CommandUser() *cli.Command
- func CommandVersion() *cli.Command
- func Metrics(c *cli.Context) error
- type Encoder
- type Grab
- type InvalidVersionError
- type Runtime
- type SmugmugFunc
Constants ¶
View Source
const RuntimeKey = "github.com/bzimmer/ma#RuntimeKey"
RuntimeKey in app metadata
Variables ¶
View Source
var ErrFileExists = errors.New("foo")
View Source
var ErrInvalidURLName = errors.New("node url name must start with a number or capital letter")
Functions ¶
func CommandExport ¶
func CommandFind ¶
func CommandList ¶
func CommandNew ¶
func CommandPatch ¶
func CommandRemove ¶ added in v0.5.3
func CommandSimilar ¶ added in v0.5.4
func CommandTitle ¶ added in v0.7.4
func CommandURLName ¶ added in v0.3.1
func CommandUpload ¶
func CommandUser ¶
func CommandVersion ¶
Types ¶
type InvalidVersionError ¶ added in v0.7.0
type InvalidVersionError struct {
ImageKey string
}
func (*InvalidVersionError) Error ¶ added in v0.7.0
func (x *InvalidVersionError) Error() string
type Runtime ¶
type Runtime struct {
// Encoder encodes a struct
Encoder Encoder
// Smugmug returns a smugmug client
Smugmug SmugmugFunc
// Sink for metrics
Sink *metrics.InmemSink
// Metrics for capturing metrics
Metrics *metrics.Metrics
// Fs for file access
Fs afero.Fs
// Grab for bulk querying images
Grab Grab
// Language for title case
Language language.Tag
// Start time of the execution
Start time.Time
}
Runtime for access to runtime components
type SmugmugFunc ¶ added in v0.7.12
SmugmugFunc returns a smugmug client panics if credentials are not provided
Source Files
¶
Click to show internal directories.
Click to hide internal directories.