Documentation ¶
Index ¶
- Variables
- func AlreadyExistsError(what string) *params.Error
- 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
- func (fa FakeAuthorizer) AuthClient() bool
- func (fa FakeAuthorizer) AuthEnvironManager() bool
- func (fa FakeAuthorizer) AuthMachineAgent() bool
- func (fa FakeAuthorizer) AuthOwner(tag string) bool
- func (fa FakeAuthorizer) AuthUnitAgent() bool
- func (fa FakeAuthorizer) GetAuthEntity() state.Entity
- func (fa FakeAuthorizer) GetAuthTag() string
Constants ¶
This section is empty.
Variables ¶
View Source
params.CodeUnauthorized, }Message: "permission denied", Code:
Functions ¶
func AlreadyExistsError ¶
func NotAssignedError ¶
func NotFoundError ¶
func NotProvisionedError ¶
func PrefixedError ¶
func ServerError ¶
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
Click to show internal directories.
Click to hide internal directories.