Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationProvider

type AuthenticationProvider interface {
	SetupAuthentication(machine TaggedPasswordChanger) (*mongo.MongoInfo, *api.Info, error)
}

    AuthenticationProvider defines the single method that the provisioner task needs to set up authentication for a machine.

    func NewAPIAuthenticator

    func NewAPIAuthenticator(st *apiprovisioner.State) (AuthenticationProvider, error)

      NewAPIAuthenticator gets the state and api info once from the provisioner API.

      func NewAuthenticator

      func NewAuthenticator(connectionInfo *mongo.MongoInfo, apiInfo *api.Info) AuthenticationProvider

        NewAuthenticator returns a simpleAuth populated with connectionInfo and apiInfo

        type TaggedPasswordChanger

        type TaggedPasswordChanger interface {
        	SetPassword(string) error
        	Tag() names.Tag
        }

          TaggedPasswordChanger defines an interface for a entity with a Tag() and SetPassword() methods.