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.
func NewNotSupportedInteractor ¶
func NewNotSupportedInteractor() httpbakery.Interactor
NewNotSupportedInteractor returns an interactor that does not support any discharge workflow.
Types ¶
type Interactor ¶
type Interactor struct {
// contains filtered or unexported fields
}
Interactor is a httpbakery.Interactor 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.
Click to show internal directories.
Click to hide internal directories.