Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base.ClientFacade // contains filtered or unexported fields }
Client allows access to the CAAS operator API endpoint.
func NewClient ¶
func NewClient(caller base.APICallCloser) *Client
NewClient returns a client used to access the CAAS Operator API.
func (*Client) UnitIntroduction ¶
func (c *Client) UnitIntroduction(podName string, podUUID string) (*UnitConfig, error)
UnitIntroduction introduces the unit and returns an agent config.
func (*Client) UnitTerminating ¶
func (c *Client) UnitTerminating(unit names.UnitTag) (UnitTermination, error)
UnitTerminating is to be called by the CAASUnitTerminationWorker when the uniter is shutting down.
type UnitConfig ¶
type UnitConfig struct { UnitTag names.UnitTag AgentConf []byte }
type UnitTermination ¶
type UnitTermination struct { // WillRestart is true when the unit agent should restart. // It will be false when the unit is dying and should shutdown normally. WillRestart bool }
UnitTermination holds the result from calling UnitTerminating.
Click to show internal directories.
Click to hide internal directories.