unitstate

package
v0.0.0-...-1f8c1e5 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetrievedUnitState

type RetrievedUnitState struct {
	// Name is the unit name.
	Name string

	// CharmState is key/value pairs for charm attributes.
	CharmState map[string]string

	// UniterState is the uniter's state as a YAML string.
	UniterState string

	// RelationState is key/value pairs for relation attributes.
	RelationState map[int]string

	// StorageState is a YAML string.
	StorageState string

	// SecretState is a YAML string.
	SecretState string
}

RetrievedUnitState represents a unit state persisted and then retrieved from the database.

type UnitState

type UnitState struct {
	// Name is the unit name.
	Name string

	// CharmState is key/value pairs for charm attributes.
	CharmState *map[string]string

	// UniterState is the uniter's state as a YAML string.
	UniterState *string

	// RelationState is key/value pairs for relation attributes.
	RelationState *map[int]string

	// StorageState is a YAML string.
	StorageState *string

	// SecretState is a YAML string.
	SecretState *string
}

UnitState represents the state of the world according to a unit agent at hook commit time.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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