func (s *StorageTypes) Get(name string) Storage {
	return (*s)[name]
}
Get basic method for getting storage by name
package config
import "regexp"
type Preset struct {
	Quality int    `yaml:"quality"`
	Format  string `yaml:"format"`
	Filters struct {
		Thumbnail *struct {
			Width               int    `yaml:"width"`
			Height              int    `yaml:"height"`
			Mode                string `yaml:"mode"`
			PreserveAspectRatio bool   `yaml:"preserveAspectRatio"`
			Fill                bool   `yaml:"fill"`
		} `yaml:"thumbnail,omitempty"`
		Interlace bool `yaml:"interlace"`
		Crop      *struct {
			Width   int    `yaml:"width"`
			Height  int    `yaml:"height"`
			Gravity string `yaml:"gravity"`
			Mode    string `yaml:"mode"`
			Embed   bool   `yaml:"embed"`
		} `yaml:"crop,omitempty"`
		Extract *struct {
			Width  int `yaml:"width"`
			Height int `yaml:"height"`
			Top    int `yaml:"top"`
			Left   int `yaml:"left"`
		} `yaml:"extract,omitempty"`
		ResizeCropAuto *struct {
			Width  int `yaml:"width"`
			Height int `yaml:"height"`
		} `yaml:"resizeCropAuto,omitempty"`
		AutoRotate bool `yaml:"auto_rotate"`
		Grayscale  bool `yaml:"grayscale"`
		Strip      bool `yaml:"strip"`
		Blur       *struct {
			Sigma   float64 `yaml:"sigma"`
			MinAmpl float64 `yaml:"minAmpl"`
		} `yaml:"blur,omitempty"`
		Watermark *struct {
			Image    string  `yaml:"image"`
			Position string  `yaml:"position"`
			Opacity  float32 `yaml:"opacity"`
		} `yaml:"watermark,omitempty"`
		Rotate *struct {
			Angle int `yaml:"angle"`
		} `yaml:"rotate,omitempty"`
	} `yaml:"filters"`
}
type Transform struct {
	Path          string `yaml:"path"`
	ParentStorage string `yaml:"parentStorage"`
	ParentBucket  string `yaml:"parentBucket"`
	PathRegexp    *regexp.Regexp
	Kind          string            `yaml:"kind"`
	Presets       map[string]Preset `yaml:"presets"`
	CheckParent   bool              `yaml:"checkParent"`
	ResultKey     string            `yaml:"resultKey"`
}
type Storage struct {
	RootPath        string            `yaml:"rootPath,omitempty"`         
	Kind            string            `yaml:"kind"`                       
	Url             string            `yaml:"url,omitempty"`              
	Headers         map[string]string `yaml:"headers,omitempty"`          
	AccessKey       string            `yaml:"accessKey,omitempty"`        
	SecretAccessKey string            `yaml:"secretAccessKey,omitempty"`  
	Region          string            `yaml:"region,omitempty"`           
	Endpoint        string            `yaml:"endpoint,omitempty"`         
	PathPrefix      string            `yaml:"pathPrefix,omitempty"`       
	Bucket          string            `yaml:"bucket"`
	Account         string            `yaml:"account"`  
	Key             string            `yaml:"key"`      
	Hash            string             
}
type StorageTypes map[string]Storage
func (s *StorageTypes) Basic() Storage {
	return s.Get("basic")
}
func (s *StorageTypes) Transform() Storage {
	return s.Get("transform")
}
func (s *StorageTypes) Noop() Storage {
	return Storage{Kind: "noop"}
}