Documentation ¶
Index ¶
- Variables
- type Client
- type Machine
- type Option
- type Unit
- func (u *Unit) Life() life.Value
- func (u *Unit) Name() string
- func (u *Unit) Refresh(ctx context.Context) error
- func (u *Unit) Remove(ctx context.Context) error
- func (u *Unit) SetPassword(ctx context.Context, password string) error
- func (u *Unit) SetStatus(ctx context.Context, unitStatus status.Status, info string, ...) error
- func (u *Unit) Tag() string
Constants ¶
This section is empty.
Variables ¶
View Source
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client provides access to the deployer worker's idea of the state.
func NewClient ¶
NewClient creates a new Client instance that makes API calls through the given caller.
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine represents a juju machine as seen by the deployer worker.
func (*Machine) WatchUnits ¶
WatchUnits starts a StringsWatcher to watch all units deployed to the machine, in order to track which ones should be deployed or recalled.
type Unit ¶
type Unit struct {
// contains filtered or unexported fields
}
Unit represents a juju unit as seen by the deployer worker.
func (*Unit) SetPassword ¶
SetPassword sets the unit's password.
Click to show internal directories.
Click to hide internal directories.