config

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config contains the users configuration settings for Curator.

func New

func New() *Config

New parses the users configuration and returns a Config.

func (*Config) CameraModelAbbreviation

func (config *Config) CameraModelAbbreviation(name string) string

CameraModelAbbreviation returns the users preferred short string for a given camera name.

func (*Config) MetadataBucket

func (config *Config) MetadataBucket() string

MetadataBucket is the GCS bucket where photo metadata is stored.

func (*Config) MetadataPath

func (config *Config) MetadataPath() string

MetadataPath is the filename prefix for the photo metadata.

func (*Config) PhotoQueueBucket

func (config *Config) PhotoQueueBucket() string

PhotoQueueBucket is the GCS bucket where new photos are stored.

func (*Config) PhotoStorageBucket

func (config *Config) PhotoStorageBucket() string

PhotoStorageBucket is the GCS bucket where photos are stored after they are processed.

func (*Config) ToString

func (config *Config) ToString() string

Print will print the current config (or a default config).

func (*Config) ValidLabels

func (config *Config) ValidLabels() []string

ValidLabels are the list of labels that a user can use to tag their photos.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL