Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RawMessage ¶
func RawMessage(r *json.RawMessage) (raw json.RawMessage)
RawMessage converts a pointer to a raw message to a copy of the value. If the pointer is nil, it returns an empty raw message. This is useful for structs where fields are json.RawMessage pointers for bi-directional marshal and unmarshal (value receivers will encode base64 instead of raw json when marshaled), so bi-directional structs should use pointer fields.
Types ¶
type FlavorPlugin ¶
type FlavorPlugin struct { Plugin string Properties *json.RawMessage // this will be the Spec of the plugin }
FlavorPlugin describes the flavor configuration
type InstancePlugin ¶
type InstancePlugin struct { Plugin string Properties *json.RawMessage // this will be the Spec of the plugin }
InstancePlugin is the structure that describes an instance plugin.
type Spec ¶
type Spec struct { Instance InstancePlugin Flavor FlavorPlugin }
Spec is the configuration schema for the plugin, provided in group.Spec.Properties
func ParseProperties ¶
ParseProperties parses the group plugin properties JSON document in a group configuration.
func (Spec) InstanceHash ¶
InstanceHash computes a stable hash of the document in InstancePluginProperties.