Documentation ¶
Overview ¶
hook provides types that define the hooks known to the Uniter
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { Kind hooks.Kind `yaml:"kind"` // RelationId identifies the relation associated with the hook. It is // only set when Kind indicates a relation hook. RelationId int `yaml:"relation-id,omitempty"` // RemoteUnit is the name of the unit that triggered the hook. It is only // set when Kind inicates a relation hook other than relation-broken. RemoteUnit string `yaml:"remote-unit,omitempty"` // ChangeVersion identifies the most recent unit settings change // associated with RemoteUnit. It is only set when RemoteUnit is set. ChangeVersion int64 `yaml:"change-version,omitempty"` // ActionId is the state State.actions ID of the Action document to // be retrieved by RunHook. ActionId string `yaml:"action-id,omitempty"` // StorageId is the id of the storage instance relevant to the hook. StorageId string `yaml:"storage-id,omitempty"` }
Info holds details required to execute a hook. Not all fields are relevant to all Kind values.
Click to show internal directories.
Click to hide internal directories.