Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶
func (c *Facade) ModelCredential() (base.StoredCredential, bool, error)
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(credentialID string) (watcher.NotifyWatcher, error)
WatchCredential provides a notify watcher that is responsive to changes to a given cloud credential.
func (*Facade) WatchModelCredential ¶
func (c *Facade) WatchModelCredential() (watcher.NotifyWatcher, error)
WatchModelCredential provides a notify watcher that is responsive to changes to a given cloud credential.