Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFileNotFound . ErrFileNotFound = errors.New("file is not found") // ErrFileUnmarshalError . ErrFileUnmarshalError = errors.New("file cannot be unmarshalled") )
Functions ¶
This section is empty.
Types ¶
type AWSProvider ¶
type AWSProvider struct { Base string // contains filtered or unexported fields }
AWSProvider .
func NewAWSProvider ¶
func NewAWSProvider(l tool.ILogger, creds awslib.Storage, passphrase *validate.Passphrase) AWSProvider
NewAWSProvider .
func (AWSProvider) Filename ¶
func (p AWSProvider) Filename(params ...string) string
Filename returns the path to the file in the S3 bucket.
func (AWSProvider) Key ¶
func (p AWSProvider) Key(params ...string) string
Key returns the app configuration file path. The strings are typically: prefix then app.
func (AWSProvider) Load ¶
func (p AWSProvider) Load(v interface{}, params ...string) error
Load will load the configuration file for the app.
type FilesystemProvider ¶
type FilesystemProvider struct { Base string // contains filtered or unexported fields }
FilesystemProvider .
func NewFilesystemProvider ¶
func NewFilesystemProvider(l tool.ILogger) FilesystemProvider
NewFilesystemProvider .
func (FilesystemProvider) Delete ¶
func (p FilesystemProvider) Delete(params ...string) error
Delete .
func (FilesystemProvider) Filename ¶
func (p FilesystemProvider) Filename(params ...string) string
Filename returns the app configuration file. The strings are typically: prefix then app.
func (FilesystemProvider) Load ¶
func (p FilesystemProvider) Load(v interface{}, params ...string) error
Load will load the configuration file for the app.
func (FilesystemProvider) Save ¶
func (p FilesystemProvider) Save(v interface{}, params ...string) error
Save .
Click to show internal directories.
Click to hide internal directories.