Documentation
¶
Index ¶
- Constants
- func GenerateProvidersMetaJSON(version string, providersMetaList []core.MetaInfo) (string, error)
- func GetAllProvidersMeta() []core.MetaInfo
- func NewDotenv(logger logging.Logger) (core.Provider, error)
- func NewFileSystem(logger logging.Logger) (core.Provider, error)
- func NewProcessEnv(logger logging.Logger) (core.Provider, error)
- func RegisterProvider(metaInfo core.MetaInfo, ...)
- func ResolveProvider(providerName string) (core.Provider, error)
- func ResolveProviderMeta(providerName string) (core.MetaInfo, error)
- type DotEnvClient
- type DotEnvReader
- type Dotenv
- func (a *Dotenv) Delete(kp core.KeyPath) error
- func (a *Dotenv) DeleteMapping(kp core.KeyPath) error
- func (a *Dotenv) Get(p core.KeyPath) (*core.EnvEntry, error)
- func (a *Dotenv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)
- func (a *Dotenv) Put(p core.KeyPath, val string) error
- func (a *Dotenv) PutMapping(kp core.KeyPath, m map[string]string) error
- type FileSystem
- func (f *FileSystem) Delete(kp core.KeyPath) error
- func (f *FileSystem) DeleteMapping(kp core.KeyPath) error
- func (f *FileSystem) Get(p core.KeyPath) (*core.EnvEntry, error)
- func (f *FileSystem) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)
- func (f *FileSystem) IsText(s []byte) bool
- func (f *FileSystem) Put(p core.KeyPath, val string) error
- func (f *FileSystem) PutMapping(p core.KeyPath, m map[string]string) error
- type ProcessEnv
- func (a *ProcessEnv) Delete(kp core.KeyPath) error
- func (a *ProcessEnv) DeleteMapping(kp core.KeyPath) error
- func (a *ProcessEnv) Get(p core.KeyPath) (*core.EnvEntry, error)
- func (a *ProcessEnv) GetMapping(p core.KeyPath) ([]core.EnvEntry, error)
- func (a *ProcessEnv) Name() string
- func (a *ProcessEnv) Put(p core.KeyPath, val string) error
- func (a *ProcessEnv) PutMapping(p core.KeyPath, m map[string]string) error
- type TellerExport
Constants ¶
View Source
const FileSystemName = "FileSystem"
Variables ¶
This section is empty.
Functions ¶
func GetAllProvidersMeta ¶
func NewFileSystem ¶
NewFileSystem creates new provider instance
func NewProcessEnv ¶
NewProcessEnv creates new provider instance
func RegisterProvider ¶
Types ¶
type DotEnvClient ¶
type DotEnvReader ¶
type DotEnvReader struct{}
func (*DotEnvReader) Delete ¶
func (d *DotEnvReader) Delete(p string) error
type FileSystem ¶
type FileSystem struct {
// contains filtered or unexported fields
}
func (*FileSystem) Delete ¶
func (f *FileSystem) Delete(kp core.KeyPath) error
Delete will delete entry
func (*FileSystem) DeleteMapping ¶
func (f *FileSystem) DeleteMapping(kp core.KeyPath) error
DeleteMapping will delete the given path
func (*FileSystem) GetMapping ¶
GetMapping returns a multiple entries
func (*FileSystem) IsText ¶
func (f *FileSystem) IsText(s []byte) bool
func (*FileSystem) Put ¶
func (f *FileSystem) Put(p core.KeyPath, val string) error
Put will create a new single entry
func (*FileSystem) PutMapping ¶
PutMapping will create a multiple entries
type ProcessEnv ¶
type ProcessEnv struct {
// contains filtered or unexported fields
}
func (*ProcessEnv) Delete ¶
func (a *ProcessEnv) Delete(kp core.KeyPath) error
Delete will delete entry
func (*ProcessEnv) DeleteMapping ¶
func (a *ProcessEnv) DeleteMapping(kp core.KeyPath) error
DeleteMapping will delete the given path recessively
func (*ProcessEnv) GetMapping ¶
GetMapping returns a multiple entries
func (*ProcessEnv) Put ¶
func (a *ProcessEnv) Put(p core.KeyPath, val string) error
Put will create a new single entry
func (*ProcessEnv) PutMapping ¶
PutMapping will create a multiple entries
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_providers is a generated GoMock package.
|
Package mock_providers is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.