Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceStorage ¶
type SourceStorage struct {
// contains filtered or unexported fields
}
func NewVariableStorage ¶
func NewVariableStorage() *SourceStorage
func (*SourceStorage) AddSource ¶
func (s *SourceStorage) AddSource(name string, variables any)
func (*SourceStorage) Variables ¶
func (s *SourceStorage) Variables() map[string]any
type VariableSource ¶
func NewVSCSV ¶
func NewVSCSV(cfg VariableSourceCsv, fs afero.Fs) (VariableSource, error)
func NewVSJson ¶
func NewVSJson(cfg VariableSourceJSON, fs afero.Fs) (VariableSource, error)
type VariableSourceCsv ¶
type VariableSourceCsv struct { Name string File string Fields []string IgnoreFirstLine bool `config:"ignore_first_line"` Delimiter string // contains filtered or unexported fields }
func (*VariableSourceCsv) GetName ¶
func (v *VariableSourceCsv) GetName() string
func (*VariableSourceCsv) GetVariables ¶
func (v *VariableSourceCsv) GetVariables() any
func (*VariableSourceCsv) Init ¶
func (v *VariableSourceCsv) Init() (err error)
type VariableSourceJSON ¶
type VariableSourceJSON struct { Name string File string // contains filtered or unexported fields }
func (*VariableSourceJSON) GetName ¶
func (v *VariableSourceJSON) GetName() string
func (*VariableSourceJSON) GetVariables ¶
func (v *VariableSourceJSON) GetVariables() any
func (*VariableSourceJSON) Init ¶
func (v *VariableSourceJSON) Init() (err error)
type VariableSourceVariables ¶
func (*VariableSourceVariables) GetName ¶
func (v *VariableSourceVariables) GetName() string
func (*VariableSourceVariables) GetVariables ¶
func (v *VariableSourceVariables) GetVariables() any
func (*VariableSourceVariables) Init ¶
func (v *VariableSourceVariables) Init() error
Click to show internal directories.
Click to hide internal directories.