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