Documentation ¶
Overview ¶
Package hooks provides types and constants that define the hooks known to Juju.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kind ¶
type Kind string
Kind enumerates the different kinds of hooks that exist.
const ( Install Kind = "install" Start Kind = "start" ConfigChanged Kind = "config-changed" UpgradeCharm Kind = "upgrade-charm" Stop Kind = "stop" Remove Kind = "remove" Action Kind = "action" CollectMetrics Kind = "collect-metrics" MeterStatusChanged Kind = "meter-status-changed" LeaderElected Kind = "leader-elected" LeaderDeposed Kind = "leader-deposed" LeaderSettingsChanged Kind = "leader-settings-changed" UpdateStatus Kind = "update-status" PreSeriesUpgrade Kind = "pre-series-upgrade" PostSeriesUpgrade Kind = "post-series-upgrade" SecretChanged Kind = "secret-changed" SecretExpired Kind = "secret-expired" SecretRemove Kind = "secret-remove" SecretRotate Kind = "secret-rotate" RelationCreated Kind = "relation-created" RelationJoined Kind = "relation-joined" RelationChanged Kind = "relation-changed" RelationDeparted Kind = "relation-departed" RelationBroken Kind = "relation-broken" StorageAttached Kind = "storage-attached" StorageDetaching Kind = "storage-detaching" PebbleChangeUpdated Kind = "pebble-change-updated" PebbleCustomNotice Kind = "pebble-custom-notice" PebbleReady Kind = "pebble-ready" )
func RelationHooks ¶
func RelationHooks() []Kind
RelationHooks returns all known relation hook kinds.
func WorkloadHooks ¶
func WorkloadHooks() []Kind
WorkloadHooks returns all known container hook kinds.
func (Kind) IsRelation ¶
IsRelation returns whether the Kind represents a relation hook.
func (Kind) IsWorkload ¶
IsWorkload returns whether the Kind represents a workload hook.
Click to show internal directories.
Click to hide internal directories.