servicetest

package
v2.0.0-ccit-pre2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL