Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveDependencies ¶
ResolveDependencies returns a list of dependencies by parsing the opaque Properties blob.
Types ¶
type AllocationMethod ¶
AllocationMethod defines the type of allocation and supervision needed by a flavor's Group.
type FlavorPlugin ¶
type FlavorPlugin struct {
Plugin plugin.Name
Properties *types.Any // this will be the Spec of the plugin
}
FlavorPlugin describes the flavor configuration
type Index ¶
type Index struct {
// Group is the name of the group
Group group.ID
// Sequence is a sequence number that's per instance.
Sequence uint
}
Index is the index of the instance's creation. It provides a context for knowing what is being created.
type InstancePlugin ¶
type InstancePlugin struct {
Plugin plugin.Name
Properties *types.Any // 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
Allocation AllocationMethod
}
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.