application

package
v0.0.0-...-4308112 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: AGPL-3.0 Imports: 4 Imported by: 15

Documentation

Index

Constants

View Source
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"
)
View Source
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

type GoalStateStatus struct {
	Status string
	Since  *time.Time
}

GoalStateStatus keeps the status and timestamp of a unit.

type ID

type ID string

ID represents a charm unique identifier.

func NewID

func NewID() (ID, error)

NewID is a convince function for generating a new charm uuid.

func ParseID

func ParseID(value string) (ID, error)

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) String

func (u ID) String() string

String implements the stringer interface for ID.

func (ID) Validate

func (u ID) Validate() error

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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