Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthorizationStrategy ¶
func NewAuthorizationStrategy(all bool, cloudServiceIDs ...string) service.AuthorizationStrategy
NewAuthorizationStrategy contains a mock for a service.AuthorizationStrategy that either allows all cloud services or the ones that are specified in the ID list.
Types ¶
type AuthorizationStrategyMock ¶
type AuthorizationStrategyMock struct {
// contains filtered or unexported fields
}
func (*AuthorizationStrategyMock) AllowedCloudServices ¶
func (a *AuthorizationStrategyMock) AllowedCloudServices(_ context.Context) (all bool, IDs []string)
func (*AuthorizationStrategyMock) CheckAccess ¶
func (a *AuthorizationStrategyMock) CheckAccess(ctx context.Context, _ service.RequestType, req api.CloudServiceRequest) bool
Click to show internal directories.
Click to hide internal directories.