juju: github.com/juju/juju/api/credentialvalidator Index | Files

package credentialvalidator

import "github.com/juju/juju/api/credentialvalidator"

Index

Package Files

credentialvalidator.go

type Facade Uses

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 Uses

func NewFacade(caller base.APICaller) *Facade

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

func (*Facade) InvalidateModelCredential Uses

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

InvalidateModelCredential invalidates cloud credential for the model that made a connection.

func (*Facade) ModelCredential Uses

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 Uses

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 Uses

func (c *Facade) WatchModelCredential() (watcher.NotifyWatcher, error)

WatchModelCredential provides a notify watcher that is responsive to changes to a given cloud credential.

Package credentialvalidator imports 7 packages (graph) and is imported by 6 packages. Updated 2019-08-25. Refresh now. Tools for package owners.