testplugins

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "TEST"

Variables

View Source
var (
	EnabledKeyStatus         = "ENABLED"
	DisabledKeyStatus        = "DISABLED"
	CreatedKeyStatus         = "CREATED"
	PendingImportKeyStatus   = "PENDING_IMPORT"
	PendingDeletionKeyStatus = "PENDING_DELETION"
	UnknownKeyStatus         = "UNKNOWN"

	ErrRequestIsNil       = errors.New("request is nil")
	ErrParameterIsNil     = errors.New("parameter is nil")
	ErrKeyIDIsNil         = errors.New("keyId is nil")
	ErrUnmarshalJSON      = errors.New("failed to unmarshal JSON access data")
	ErrUnmarshalProtoJSON = errors.New("failed to unmarshal protoJSON access data")
	ErrMarshalProto       = errors.New("failed to marshal proto access data")
)
View Source
var IdentityManagementGroupMembership = map[string][]IdentityManagementUserRef{
	"SCIM-Group-ID-001": {
		{"00000000-0000-0000-0000-100000000001", "user1@example.com"},
		{"00000000-0000-0000-0000-100000000002", "user2@example.com"},
	},
	"SCIM-Group-ID-002": {
		{"00000000-0000-0000-0000-100000000003", "user3@example.com"},
		{"00000000-0000-0000-0000-100000000004", "user4@example.com"},
	},
}
View Source
var IdentityManagementGroups = map[string]string{
	"KMS_001": "SCIM-Group-ID-001",
	"KMS_002": "SCIM-Group-ID-002",
}
View Source
var InitialKeys = map[string]KeyRecord{
	"mock-key/11111111": {Status: EnabledKeyStatus},
	"mock-key/22222222": {Status: EnabledKeyStatus},
	"mock-key/33333333": {Status: EnabledKeyStatus},
}

Functions

func NewCertificateIssuer

func NewCertificateIssuer() catalog.BuiltInPlugin

func NewIdentityManagement

func NewIdentityManagement() catalog.BuiltInPlugin

func NewKeystoreManagement

func NewKeystoreManagement() catalog.BuiltInPlugin

func NewKeystoreOperator

func NewKeystoreOperator() catalog.BuiltInPlugin

func NewNotification

func NewNotification() catalog.BuiltInPlugin

func NewSystemInformation

func NewSystemInformation() catalog.BuiltInPlugin

Types

type IdentityManagement

func (*IdentityManagement) Configure

func (*IdentityManagement) GetAllGroups

func (*IdentityManagement) GetGroup

func (*IdentityManagement) GetGroupsForUser

func (*IdentityManagement) GetUsersForGroup

type IdentityManagementUserRef

type IdentityManagementUserRef struct {
	ID    string
	Email string
}

type KeyRecord

type KeyRecord struct {
	KeyID  string `gorm:"primaryKey;column:key_id"`
	Status string
}

type KeystoreManagement

type KeystoreManagement struct {
	keymanv1.UnsafeKeystoreProviderServer
	configv1.UnsafeConfigServer
	// contains filtered or unexported fields
}

func (*KeystoreManagement) Configure

func (*KeystoreManagement) CreateKeystore

func (*KeystoreManagement) DeleteKeystore

func (*KeystoreManagement) SetLogger

func (p *KeystoreManagement) SetLogger(logger hclog.Logger)

type KeystoreOperator

type KeystoreOperator struct {
	keyopv1.UnsafeKeystoreInstanceKeyOperationServer
	configv1.UnsafeConfigServer

	KeyStore map[string]*KeyRecord
	// contains filtered or unexported fields
}

func (*KeystoreOperator) Configure

func (*KeystoreOperator) CreateKey

func (*KeystoreOperator) DeleteKey

func (*KeystoreOperator) DisableKey

func (*KeystoreOperator) EnableKey

func (*KeystoreOperator) ExtractKeyRegion

func (*KeystoreOperator) GetImportParameters

func (*KeystoreOperator) GetKey

func (*KeystoreOperator) HandleKeyRecord

func (p *KeystoreOperator) HandleKeyRecord(keyID, status string)

func (*KeystoreOperator) ImportKeyMaterial

func (*KeystoreOperator) SetLogger

func (p *KeystoreOperator) SetLogger(logger hclog.Logger)

func (*KeystoreOperator) ValidateKey

Jump to

Keyboard shortcuts

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