Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
State implements persistence for unit state.
func NewState ¶
func NewState(factory database.TxnRunnerFactory) *State
NewState returns a new state reference.
func (*State) GetUnitState ¶
func (st *State) GetUnitState(ctx context.Context, name coreunit.Name) (unitstate.RetrievedUnitState, error)
GetUnitState returns the full unit state. The state may be empty. If no unit with the namw exists, a errors.UnitNotFound error is returned.
Click to show internal directories.
Click to hide internal directories.