datasources

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datasource

type Datasource interface {
	Load() (map[string]any, error)
}

type EnvDatasource

type EnvDatasource struct {
	// contains filtered or unexported fields
}

func NewEnvDatasource

func NewEnvDatasource(variable string) *EnvDatasource

func (*EnvDatasource) Load

func (ds *EnvDatasource) Load() (map[string]any, error)

type EnvFileDatasource

type EnvFileDatasource struct {
	// contains filtered or unexported fields
}

func NewEnvFileDatasource

func NewEnvFileDatasource(r io.Reader) *EnvFileDatasource

func (*EnvFileDatasource) Load

func (ds *EnvFileDatasource) Load() (map[string]any, error)

type JsonDatasource

type JsonDatasource struct {
	// contains filtered or unexported fields
}

func NewJsonDatasource

func NewJsonDatasource(r io.Reader) *JsonDatasource

func (*JsonDatasource) Load

func (ds *JsonDatasource) Load() (map[string]any, error)

type TomlDatasource

type TomlDatasource struct {
	// contains filtered or unexported fields
}

func NewTomlDatasource

func NewTomlDatasource(r io.Reader) *TomlDatasource

func (*TomlDatasource) Load

func (ds *TomlDatasource) Load() (map[string]any, error)

type YamlDatasource

type YamlDatasource struct {
	// contains filtered or unexported fields
}

func NewYamlDatasource

func NewYamlDatasource(r io.Reader) *YamlDatasource

func (*YamlDatasource) Load

func (ds *YamlDatasource) Load() (map[string]any, error)

Jump to

Keyboard shortcuts

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