Documentation ¶
Index ¶
- func InitDirectory() error
- func Initialize() error
- func MoveImages() error
- func ReadConfiguration() error
- func SetBaseDirectory(basedir string)
- func SetDefaultConfiguration(config *Configuration, basedir string)
- func SortImages(imageList []Image)
- func WriteConfiguration(configFile string) error
- type Category
- type Configuration
- type Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitDirectory ¶
func InitDirectory() error
Check, if the specified directory exists, if the user has appropriate access rights, and create the the specified subfolders if necessary.
func Initialize ¶
func Initialize() error
func MoveImages ¶
func MoveImages() error
func ReadConfiguration ¶
func ReadConfiguration() error
func SetBaseDirectory ¶
func SetBaseDirectory(basedir string)
func SetDefaultConfiguration ¶
func SetDefaultConfiguration(config *Configuration, basedir string)
func SortImages ¶
func SortImages(imageList []Image)
func WriteConfiguration ¶
Types ¶
type Category ¶
type Category struct { Name string `mapstructure:"name"` Heights []int `mapstructure:"heights"` Widths []int `mapstructure:"widths"` Height int `mapstructure:"height"` Width int `mapstructure:"width"` MinHeight int `mapstructure:"min_height"` MinWidth int `mapstructure:"min_width"` MaxHeight int `mapstructure:"max_height"` MaxWidth int `mapstructure:"max_width"` MinPixels int `mapstructure:"min_pixels"` MaxPixels int `mapstructure:"max_pixels"` // The filenames in the base directory, which belong into this category. Filenames []string }
type Configuration ¶
type Configuration struct { Directory string `mapstructure:"directory"` Categories []Category `mapstructure:"category"` }
var Config Configuration
Click to show internal directories.
Click to hide internal directories.