credentialvalidator

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

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 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, options ...Option) *Facade

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

func (*Facade) InvalidateModelCredential

func (c *Facade) InvalidateModelCredential(ctx context.Context, reason string) error

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

func (*Facade) ModelCredential

func (c *Facade) ModelCredential(ctx context.Context) (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(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

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

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

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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