Documentation ¶
Index ¶
- Variables
- type Facade
- func (c *Facade) InvalidateModelCredential(ctx context.Context, reason string) error
- func (c *Facade) ModelCredential(ctx context.Context) (base.StoredCredential, bool, error)
- func (c *Facade) WatchCredential(ctx context.Context, credentialID string) (watcher.NotifyWatcher, error)
- func (c *Facade) WatchModelCredential(ctx context.Context) (watcher.NotifyWatcher, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
Functions ¶
This section is empty.
Types ¶
type Facade ¶
type Facade struct {
// contains filtered or unexported fields
}
Facade provides methods that the Juju client command uses to interact with the Juju backend.
func NewFacade ¶
NewFacade creates a new `Facade` based on an existing authenticated API connection.
func (*Facade) InvalidateModelCredential ¶
InvalidateModelCredential invalidates cloud credential for the model that made a connection.
func (*Facade) ModelCredential ¶
ModelCredential gets the cloud credential that a given model uses, including useful data such as "is this credential valid"... Some clouds do not require a credential and support the "empty" authentication type. Models on these clouds will have no credentials set, and thus, will return a false as 2nd argument.
func (*Facade) WatchCredential ¶
func (c *Facade) WatchCredential(ctx context.Context, credentialID string) (watcher.NotifyWatcher, error)
WatchCredential provides a notify watcher that is responsive to changes to a given cloud credential.
func (*Facade) WatchModelCredential ¶
WatchModelCredential provides a notify watcher that is responsive to changes to a given cloud credential.