Documentation ¶
Index ¶
- Variables
- func AlreadyExistsError(what string) *params.Error
- func AssertNotImplemented(c *gc.C, apiFacade interface{}, methodName string)
- func NotAssignedError(unitName string) *params.Error
- func NotFoundError(prefixMessage string) *params.Error
- func NotProvisionedError(machineId string) *params.Error
- func PrefixedError(prefix, message string) *params.Error
- func ServerError(message string) *params.Error
- type FakeAuthorizer
Constants ¶
This section is empty.
Variables ¶
View Source
params.CodeUnauthorized, }Message: "permission denied", Code:
Functions ¶
func AlreadyExistsError ¶
func AssertNotImplemented ¶
func NotAssignedError ¶
func NotFoundError ¶
func NotProvisionedError ¶
func PrefixedError ¶
func ServerError ¶
Types ¶
type FakeAuthorizer ¶
FakeAuthorizer implements the common.Authorizer interface.
func (FakeAuthorizer) AuthClient ¶
func (fa FakeAuthorizer) AuthClient() bool
AuthClient returns whether the authenticated entity is a client user.
func (FakeAuthorizer) AuthEnvironManager ¶
func (fa FakeAuthorizer) AuthEnvironManager() bool
func (FakeAuthorizer) AuthMachineAgent ¶
func (fa FakeAuthorizer) AuthMachineAgent() bool
AuthMachineAgent returns whether the current client is a machine agent.
func (FakeAuthorizer) AuthUnitAgent ¶
func (fa FakeAuthorizer) AuthUnitAgent() bool
AuthUnitAgent returns whether the current client is a unit agent.
func (FakeAuthorizer) GetAuthTag ¶
func (fa FakeAuthorizer) GetAuthTag() names.Tag
Click to show internal directories.
Click to hide internal directories.