Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
func NewState ¶
func NewState(factory database.TxnRunnerFactory) *State
NewState returns a new State object.
func (*State) CheckMachineExists ¶
CheckMachineExists check to see if the given machine exists in the model. If the machine does not exist an error satisfying machineerrors.MachineNotFound is returned.
func (*State) CheckUnitExists ¶
CheckUnitExists checks to see if the given unit exists in the model. If the unit does not exist an error satisfying applicationerrors.UnitNotFound is returned.
func (*State) GetTargetAgentVersion ¶
GetTargetAgentVersion returns the agent version for the model. If the agent_version table has no data, modelerrors.AgentVersionNotFound is returned.
Click to show internal directories.
Click to hide internal directories.