Documentation
¶
Index ¶
Constants ¶
View Source
const ConfigFile = `config.yaml`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct {
DefaultFolder string `yaml:"defaultFolder"`
ClientName string `yaml:"clientName"`
Folders []FolderConfig `yaml:"folders"`
}
func LoadFromUser ¶
func (*AppConfig) GetDefault ¶
func (c *AppConfig) GetDefault() FolderConfig
func (*AppConfig) GetFolder ¶
func (c *AppConfig) GetFolder(name string) FolderConfig
type EfsProviderConfig ¶
Encrypted File System Provider Used as 'remote' but accessible through some file interface
type FolderConfig ¶
type FolderConfig struct {
Name string `yaml:"name"`
Local ProviderConfig `yaml:"local"`
Remote ProviderConfig `yaml:"remote"`
}
type FsProviderConfig ¶
type FsProviderConfig struct {
Path string `yaml:"path"`
}
File System provider Local storage, used as 'local'
type ProviderConfig ¶
type ProviderConfig struct {
Type string `yaml:"type"`
FsConfig *FsProviderConfig `yaml:"fsConfig,omitempty"`
EfsConfig *EfsProviderConfig `yaml:"efsConfig,omitempty"`
S3Config *S3ProviderConfig `yaml:"s3Config,omitempty"`
ClientName string `yaml:"-"`
}
func (ProviderConfig) GetFolderPath ¶
func (c ProviderConfig) GetFolderPath() string
type S3ProviderConfig ¶
type S3ProviderConfig struct {
Passphrase string `yaml:"passphrase"`
AccessKey string `yaml:"accessKey"`
SecretKey string `yaml:"secretKey"`
BasePath string `yaml:"basePath"`
Bucket string `yaml:"bucket"`
Endpoint string `yaml:"endpoint"`
ForcePathStyle bool `yaml:"forcePathStyle"`
Region string `yaml:"region"`
}
S3 File System Provider
Click to show internal directories.
Click to hide internal directories.