Documentation ¶
Index ¶
- Constants
- Variables
- func CommandCopy() *cli.Command
- func CommandExif() *cli.Command
- 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 Exif
- type Grab
- type InvalidVersionError
- type MetaData
- 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 CommandCopy ¶
func CommandCopy() *cli.Command
func CommandExif ¶ added in v0.3.5
func CommandExif() *cli.Command
func CommandExport ¶
func CommandExport() *cli.Command
func CommandFind ¶
func CommandFind() *cli.Command
func CommandList ¶
func CommandList() *cli.Command
func CommandNew ¶
func CommandNew() *cli.Command
func CommandPatch ¶
func CommandPatch() *cli.Command
func CommandRemove ¶ added in v0.5.3
func CommandRemove() *cli.Command
func CommandSimilar ¶ added in v0.5.4
func CommandSimilar() *cli.Command
func CommandTitle ¶ added in v0.7.4
func CommandTitle() *cli.Command
func CommandURLName ¶ added in v0.3.1
func CommandURLName() *cli.Command
func CommandUpload ¶
func CommandUpload() *cli.Command
func CommandUser ¶
func CommandUser() *cli.Command
func CommandVersion ¶
func CommandVersion() *cli.Command
Types ¶
type Exif ¶ added in v0.3.5
type Exif interface { // Extract returns metadata about a file Extract(afs afero.Fs, dirname string, infos ...fs.FileInfo) []MetaData }
Exif extracts EXIF metadata from files
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 MetaData ¶ added in v0.3.5
type MetaData struct { // Info is the analyzed file Info fs.FileInfo // Err is non-nil if an error occurred processing the file Err error // DateTime is the best effort `DateTimeOriginal` of the file DateTime time.Time }
MetaData represents the EXIF data about a file
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 // Exif for accessing EXIF metadata Exif Exif // 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.