Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInteractor

func NewInteractor(username string, getPassword func(string) (string, error)) httpbakery.Interactor

    NewInteractor returns a new Interactor.

    Types

    type Interactor

    type Interactor struct {
    	// contains filtered or unexported fields
    }

      Visitor is a httpbakery.Visitor that will login directly to the Juju controller using password authentication. This only applies when logging in as a local user.

      func (Interactor) Interact

      func (i Interactor) Interact(ctx context.Context, client *httpbakery.Client, location string, interactionRequiredErr *httpbakery.Error) (*httpbakery.DischargeToken, error)

        Interact implements httpbakery.Interactor for the Interactor.

        func (Interactor) Kind

        func (i Interactor) Kind() string

          Kind implements httpbakery.Interactor.Kind.

          func (*Interactor) LegacyInteract

          func (i *Interactor) LegacyInteract(ctx context.Context, client *httpbakery.Client, location string, methodURL *url.URL) error

            LegacyInteract implements httpbakery.LegacyInteractor for the Interactor.

            Source Files