hooks

package
v8.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2022 License: LGPL-3.0 Imports: 0 Imported by: 16

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"
	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"

	PebbleReady Kind = "pebble-ready"
)

func RelationHooks

func RelationHooks() []Kind

RelationHooks returns all known relation hook kinds.

func StorageHooks

func StorageHooks() []Kind

StorageHooks returns all known storage hook kinds.

func UnitHooks

func UnitHooks() []Kind

UnitHooks returns all known unit hook kinds.

func WorkloadHooks

func WorkloadHooks() []Kind

WorkloadHooks returns all known container hook kinds.

func (Kind) IsRelation

func (kind Kind) IsRelation() bool

IsRelation returns whether the Kind represents a relation hook.

func (Kind) IsSecret

func (kind Kind) IsSecret() bool

IsSecret returns whether the Kind represents a secret hook.

func (Kind) IsStorage

func (kind Kind) IsStorage() bool

IsStorage returns whether the Kind represents a storage hook.

func (Kind) IsWorkload

func (kind Kind) IsWorkload() bool

IsWorkload returns whether the Kind represents a workload hook.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL