credentialvalidator

package
v0.0.0-...-8ff1004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

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

func NewFacade(caller base.APICaller) *Facade

NewFacade creates a new `Facade` based on an existing authenticated API connection.

func (*Facade) InvalidateModelCredential

func (c *Facade) InvalidateModelCredential(reason string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL