Documentation ¶
Index ¶
- Variables
- func AlreadyExistsError(what string) *params.Error
- func AssertNotImplemented(c *gc.C, apiFacade interface{}, methodName string)
- func AssertPrincipalServiceDeployed(c *gc.C, st *state.State, serviceName string, curl *charm.URL, forced bool, ...) *state.Service
- 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 CharmStoreSuite
- 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 CharmStoreSuite ¶
type CharmStoreSuite struct { gitjujutesting.CleanupSuite Session *mgo.Session // DischargeUser holds the identity of the user // that the 3rd party caveat discharger will issue // macaroons for. If it is empty, no caveats will be discharged. DischargeUser string Srv *charmstoretesting.Server // contains filtered or unexported fields }
func (*CharmStoreSuite) SetUpTest ¶
func (s *CharmStoreSuite) SetUpTest(c *gc.C)
func (*CharmStoreSuite) TearDownTest ¶
func (s *CharmStoreSuite) TearDownTest(c *gc.C)
func (*CharmStoreSuite) UploadCharm ¶
func (s *CharmStoreSuite) UploadCharm(c *gc.C, url, name string) (*charm.URL, charm.Charm)
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.