testing

package
v0.0.0-...-a7271ac Latest Latest
Warning

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

Go to latest
Published: May 4, 2014 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnauthorized = &params.Error{
	Message: "permission denied",
	Code:    params.CodeUnauthorized,
}

Functions

func NotAssignedError

func NotAssignedError(unitName string) *params.Error

func NotFoundError

func NotFoundError(prefixMessage string) *params.Error

func NotProvisionedError

func NotProvisionedError(machineId string) *params.Error

func ServerError

func ServerError(message string) *params.Error

Types

type FakeAuthorizer

type FakeAuthorizer struct {
	Tag            string
	LoggedIn       bool
	EnvironManager bool
	MachineAgent   bool
	UnitAgent      bool
	Client         bool
	Entity         state.Entity
}

FakeAuthorizer implements the common.Authorizer interface.

func (FakeAuthorizer) AuthClient

func (fa FakeAuthorizer) AuthClient() bool

func (FakeAuthorizer) AuthEnvironManager

func (fa FakeAuthorizer) AuthEnvironManager() bool

func (FakeAuthorizer) AuthMachineAgent

func (fa FakeAuthorizer) AuthMachineAgent() bool

func (FakeAuthorizer) AuthOwner

func (fa FakeAuthorizer) AuthOwner(tag string) bool

func (FakeAuthorizer) AuthUnitAgent

func (fa FakeAuthorizer) AuthUnitAgent() bool

func (FakeAuthorizer) GetAuthEntity

func (fa FakeAuthorizer) GetAuthEntity() state.Entity

func (FakeAuthorizer) GetAuthTag

func (fa FakeAuthorizer) GetAuthTag() string

Jump to

Keyboard shortcuts

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