provider

package
v0.0.0-...-8dc1d63 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2019 License: MIT Imports: 13 Imported by: 0

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) Delete

func (p AWSProvider) Delete(params ...string) error

Delete .

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.

func (AWSProvider) Save

func (p AWSProvider) Save(v interface{}, params ...string) error

Save .

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 .

Jump to

Keyboard shortcuts

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