Documentation ¶
Index ¶
Constants ¶
const ( // ControllerApplicationName is the name of the controller application. // This should be used when referring to the controller application and // we should prevent the use of "controller" as a name for applications in // the controller model, that isn't the controller application. ControllerApplicationName = "controller" )
const TrustConfigOptionName = "trust"
TrustConfigOptionName is the option name used to set trust level in application configuration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoalState ¶
type GoalState struct { Units UnitsGoalState Relations map[string]UnitsGoalState }
GoalState is responsible to organize the Units and Relations with a specific unit, and transmit this information from the api to the worker.
type GoalStateStatus ¶
GoalStateStatus keeps the status and timestamp of a unit.
type ID ¶
type ID string
ID represents a charm unique identifier.
func ParseID ¶
ParseID returns a new ID from the given string. If the string is not a valid uuid an error satisfying errors.NotValid will be returned.
func (ID) Validate ¶
Validate ensures the consistency of the ID. If the uuid is invalid an error satisfying errors.NotValid will be returned.
type UnitsGoalState ¶
type UnitsGoalState map[string]GoalStateStatus
UnitsGoalState keeps the collection of units and their GoalStateStatus