Documentation ¶
Index ¶
- Constants
- func AddPhase(phase *Phase)
- func AddSource(source SourceHandler)
- func Collect(jsonPath, key string) string
- func Config() map[string]interface{}
- func DeepCollectChildren(inputs []interface{}) (interface{}, error)
- func Execute()
- func FlattenConfig(inputs []interface{}) (interface{}, error)
- func FromProcess(source interface{}, path string, phase *Phase) (result interface{}, processed, mergeToParent, removeParentKey bool, ...)
- func GetJSON() (yamlString string)
- func GetYAML() (yamlString string)
- func InterpolateProcess(source interface{}, path string, phase *Phase) (result interface{}, processed, mergeToParent, removeParentKey bool, ...)
- func InterpolateString(input string, config map[string]interface{}) string
- func Load(inputs []interface{}) (interface{}, error)
- func PrintConfig(inputs []interface{}) (interface{}, error)
- func ProcessContext(inputs []interface{}) (interface{}, error)
- func ProcessKeys(inputs []interface{}) (interface{}, error)
- func SetContext(inputs []interface{}) (interface{}, error)
- func SetRootSource(sourceName string)
- type Callback
- type ConfigEntity
- type Phase
- type Processor
- type Source
- func (s *Source) Autoload() string
- func (s *Source) ConfigEntity(id string) (*ConfigEntity, bool)
- func (s *Source) GetIncludeConfigEntityIds(scenarioID string) ([]string, error)
- func (s *Source) IsLoaded() bool
- func (s *Source) LoadConfigEntity(configMap map[string]interface{}) (*ConfigEntity, error)
- func (s *Source) LoadSource() error
- func (s *Source) Name() string
- func (s *Source) Path() string
- type SourceConfigMap
- type SourceEnv
- type SourceFile
- type SourceGoGetter
- type SourceHandler
- type SourceRepo
- type Uniconf
Constants ¶
View Source
const (
IncludeListElementName = "from"
)
Variables ¶
This section is empty.
Functions ¶
func AddSource ¶
func AddSource(source SourceHandler)
func DeepCollectChildren ¶
func DeepCollectChildren(inputs []interface{}) (interface{}, error)
func FlattenConfig ¶
func FlattenConfig(inputs []interface{}) (interface{}, error)
func FromProcess ¶
func InterpolateProcess ¶
func InterpolateString ¶
func PrintConfig ¶
func PrintConfig(inputs []interface{}) (interface{}, error)
func ProcessContext ¶
func ProcessContext(inputs []interface{}) (interface{}, error)
func ProcessKeys ¶
func ProcessKeys(inputs []interface{}) (interface{}, error)
ProcessKeys processes configuration.
func SetContext ¶
func SetContext(inputs []interface{}) (interface{}, error)
func SetRootSource ¶
func SetRootSource(sourceName string)
Types ¶
type Callback ¶
type Callback struct { Args []interface{} Method func([]interface{}) (interface{}, error) }
type ConfigEntity ¶
type ConfigEntity struct {
// contains filtered or unexported fields
}
func NewConfigEntity ¶
func NewConfigEntity(s *Source, configMap map[string]interface{}) (*ConfigEntity, error)
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) ConfigEntity ¶
func (s *Source) ConfigEntity(id string) (*ConfigEntity, bool)
func (*Source) GetIncludeConfigEntityIds ¶
func (*Source) LoadConfigEntity ¶
func (s *Source) LoadConfigEntity(configMap map[string]interface{}) (*ConfigEntity, error)
func (*Source) LoadSource ¶
type SourceConfigMap ¶
type SourceConfigMap struct { Source // contains filtered or unexported fields }
func NewSourceConfigMap ¶
func NewSourceConfigMap(sourceName string, sourceMap map[string]interface{}) *SourceConfigMap
func (*SourceConfigMap) GetIncludeConfigEntityIds ¶
func (s *SourceConfigMap) GetIncludeConfigEntityIds(scenarioID string) ([]string, error)
func (*SourceConfigMap) LoadConfigEntity ¶
func (s *SourceConfigMap) LoadConfigEntity(configMap map[string]interface{}) (*ConfigEntity, error)
type SourceEnv ¶
type SourceEnv struct {
Source
}
func NewSourceEnv ¶
func (*SourceEnv) GetIncludeConfigEntityIds ¶
func (*SourceEnv) LoadConfigEntity ¶
func (s *SourceEnv) LoadConfigEntity(configMap map[string]interface{}) (*ConfigEntity, error)
type SourceFile ¶
type SourceFile struct { Source // contains filtered or unexported fields }
func NewSourceFile ¶
func NewSourceFile(sourceName string, sourceMap map[string]interface{}) *SourceFile
func (*SourceFile) GetIncludeConfigEntityIds ¶
func (s *SourceFile) GetIncludeConfigEntityIds(id string) ([]string, error)
func (*SourceFile) LoadConfigEntity ¶
func (s *SourceFile) LoadConfigEntity(configMap map[string]interface{}) (*ConfigEntity, error)
func (*SourceFile) Path ¶
func (s *SourceFile) Path() string
type SourceGoGetter ¶ added in v0.1.7
type SourceGoGetter struct { SourceFile // contains filtered or unexported fields }
func NewSourceGoGetter ¶ added in v0.1.7
func NewSourceGoGetter(sourceName string, url string) *SourceGoGetter
func (*SourceGoGetter) LoadSource ¶ added in v0.1.7
func (s *SourceGoGetter) LoadSource() error
type SourceHandler ¶
type SourceRepo ¶
type SourceRepo struct { SourceFile // contains filtered or unexported fields }
func NewSourceRepo ¶
func NewSourceRepo(sourceName string, sourceMap map[string]interface{}) *SourceRepo
func (*SourceRepo) LoadSource ¶
func (s *SourceRepo) LoadSource() error
Click to show internal directories.
Click to hide internal directories.