Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalYAML ¶
MarshalYAML marshals a config set to yaml.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
Config implements the JSON unmarshaling and marshaling logic for a configset Config.
func NewConfigWithJSON ¶ added in v0.8.7
NewConfigWithJSON returns a Config object for JSON parsing.
func (*Config) MarshalJSON ¶
MarshalJSON marshals a controller config JSON blob.
func (*Config) UnmarshalJSON ¶
UnmarshalJSON unmarshals a controller config JSON blob pushing the data into the pending parse buffer.
type ConfigSet ¶
type ConfigSet map[string]*ControllerConfig
ConfigSet implements the JSON unmarshaling logic for a configset.
func NewConfigSet ¶
NewConfigSet constructs a new ConfigSet.
type ControllerConfig ¶
type ControllerConfig struct { // Revision is the revision number. Revision uint64 `json:"revision,omitempty"` // Id is the configuration ID. Id string `json:"id"` // Config is the configuration object. Config *Config `json:"config"` }
ControllerConfig implements the JSON unmarshaling logic for a configset ControllerConfig.
func NewControllerConfig ¶
func NewControllerConfig(c configset.ControllerConfig) *ControllerConfig
NewControllerConfig builds a new controller config.
func (*ControllerConfig) GetRevision ¶
func (c *ControllerConfig) GetRevision() uint64
GetRevision returns the revision.
func (*ControllerConfig) Resolve ¶
func (c *ControllerConfig) Resolve(ctx context.Context, b bus.Bus) (configset.ControllerConfig, error)
Resolve resolves the config into a configset.ControllerConfig