Documentation
¶
Index ¶
- Constants
- Variables
- type CommandType
- type ConfigFormat
- type ConfigFormats
- type Intent
- func (i *Intent) Export() *output.IntentOutput
- func (i *Intent) GetBasePath() string
- func (i *Intent) GetData() []byte
- func (i *Intent) GetFlag() *dsTypes.UpdateInsertFlags
- func (i *Intent) GetFormat() ConfigFormat
- func (i *Intent) GetName() string
- func (i *Intent) GetPrio() int32
- func (i *Intent) SetBasePath(p string) *Intent
- func (i *Intent) SetData(format ConfigFormat, data []byte) *Intent
- func (i *Intent) SetPrio(p int32) *Intent
- func (i *Intent) String() string
- type Intents
- type Target
- type TargetConfig
- type Targets
Constants ¶
View Source
const ( CommandTypeUnknown = "unknown" CommandTypeConfigDiff = "config-diff" CommandTypeConfigShow = "config-show" CommandTypeConfigLoad = "config-load" CommandTypeConfigBlame = "config-blame" CommandTypeConfigValidate = "config-validate" CommandTypeSchemaLoad = "schema-load" CommandTypePipelineStop = "pipeline-stop" )
Variables ¶
View Source
var ConfigFormatsList = ConfigFormats{ConfigFormatJson, ConfigFormatJsonIetf, ConfigFormatXml, ConfigFormatSdc, ConfigFormatYaml, ConfigFormatXPath}
ConfigFormatsList List of all the known config formats
Functions ¶
This section is empty.
Types ¶
type CommandType ¶
type CommandType string
func ParseCommandType ¶
func ParseCommandType(s string) CommandType
func (CommandType) String ¶
func (c CommandType) String() string
type ConfigFormat ¶
type ConfigFormat string
const ( ConfigFormatUnknown ConfigFormat = "unknown" ConfigFormatJson ConfigFormat = "json" ConfigFormatJsonIetf ConfigFormat = "json_ietf" ConfigFormatXml ConfigFormat = "xml" ConfigFormatYaml ConfigFormat = "yaml" ConfigFormatSdc ConfigFormat = "sdc" ConfigFormatXPath ConfigFormat = "xpath" )
func ParseConfigFormat ¶
func ParseConfigFormat(s string) (ConfigFormat, error)
func (ConfigFormat) String ¶
func (c ConfigFormat) String() string
type ConfigFormats ¶
type ConfigFormats []ConfigFormat
func (ConfigFormats) StringSlice ¶
func (c ConfigFormats) StringSlice() []string
type Intent ¶
type Intent struct {
Name string
Prio int32
Flag *dsTypes.UpdateInsertFlags
BasePath string // basepath for the config data (no filepath)
Format ConfigFormat
Data []byte
}
func (*Intent) Export ¶
func (i *Intent) Export() *output.IntentOutput
func (*Intent) GetBasePath ¶
func (*Intent) GetFlag ¶
func (i *Intent) GetFlag() *dsTypes.UpdateInsertFlags
func (*Intent) GetFormat ¶
func (i *Intent) GetFormat() ConfigFormat
func (*Intent) SetBasePath ¶
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
func NewTarget ¶
func NewTarget(w TargetConfig) *Target
func (*Target) DeleteIntent ¶
func (*Target) Export ¶
func (t *Target) Export() *output.TargetOutput
func (*Target) GetIntents ¶
type TargetConfig ¶
Click to show internal directories.
Click to hide internal directories.