authentication

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Visitor

type Visitor 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 NewVisitor

func NewVisitor(username string, getPassword func(string) (string, error)) *Visitor

NewVisitor returns a new Visitor.

func (*Visitor) VisitWebPage

func (v *Visitor) VisitWebPage(client *httpbakery.Client, methodURLs map[string]*url.URL) error

VisitWebPage is part of the httpbakery.Visitor interface.

Jump to

Keyboard shortcuts

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