Documentation
¶
Index ¶
- Constants
- Variables
- func NewCertificateIssuer() catalog.BuiltInPlugin
- func NewIdentityManagement() catalog.BuiltInPlugin
- func NewKeystoreManagement() catalog.BuiltInPlugin
- func NewKeystoreOperator() catalog.BuiltInPlugin
- func NewKeystoreOperatorFromInstance(p *KeystoreOperator) catalog.BuiltInPlugin
- func NewNotification() catalog.BuiltInPlugin
- func NewSystemInformation() catalog.BuiltInPlugin
- type CertificateIssuer
- type IdentityManagement
- func (p *IdentityManagement) Configure(_ context.Context, _ *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *IdentityManagement) GetAllGroups(_ context.Context, _ *idmangv1.GetAllGroupsRequest) (*idmangv1.GetAllGroupsResponse, error)
- func (p *IdentityManagement) GetGroup(_ context.Context, req *idmangv1.GetGroupRequest) (*idmangv1.GetGroupResponse, error)
- func (p *IdentityManagement) GetGroupsForUser(_ context.Context, _ *idmangv1.GetGroupsForUserRequest) (*idmangv1.GetGroupsForUserResponse, error)
- func (p *IdentityManagement) GetUsersForGroup(_ context.Context, req *idmangv1.GetUsersForGroupRequest) (*idmangv1.GetUsersForGroupResponse, error)
- type IdentityManagementUserRef
- type KeyRecord
- type KeystoreManagement
- func (p *KeystoreManagement) Configure(_ context.Context, _ *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *KeystoreManagement) CreateKeystore(_ context.Context, _ *keymanv1.CreateKeystoreRequest) (*keymanv1.CreateKeystoreResponse, error)
- func (p *KeystoreManagement) DeleteKeystore(_ context.Context, _ *keymanv1.DeleteKeystoreRequest) (*keymanv1.DeleteKeystoreResponse, error)
- func (p *KeystoreManagement) SetLogger(logger hclog.Logger)
- type KeystoreOperator
- func (p *KeystoreOperator) Configure(_ context.Context, _ *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
- func (p *KeystoreOperator) CreateKey(_ context.Context, request *keyopv1.CreateKeyRequest) (*keyopv1.CreateKeyResponse, error)
- func (p *KeystoreOperator) DeleteKey(_ context.Context, request *keyopv1.DeleteKeyRequest) (*keyopv1.DeleteKeyResponse, error)
- func (p *KeystoreOperator) DisableKey(_ context.Context, request *keyopv1.DisableKeyRequest) (*keyopv1.DisableKeyResponse, error)
- func (p *KeystoreOperator) EnableKey(_ context.Context, request *keyopv1.EnableKeyRequest) (*keyopv1.EnableKeyResponse, error)
- func (p *KeystoreOperator) ExtractKeyRegion(_ context.Context, _ *keyopv1.ExtractKeyRegionRequest) (*keyopv1.ExtractKeyRegionResponse, error)
- func (p *KeystoreOperator) GetImportParameters(_ context.Context, request *keyopv1.GetImportParametersRequest) (*keyopv1.GetImportParametersResponse, error)
- func (p *KeystoreOperator) GetKey(_ context.Context, request *keyopv1.GetKeyRequest) (*keyopv1.GetKeyResponse, error)
- func (p *KeystoreOperator) HandleKeyRecord(keyID, status string)
- func (p *KeystoreOperator) ImportKeyMaterial(_ context.Context, request *keyopv1.ImportKeyMaterialRequest) (*keyopv1.ImportKeyMaterialResponse, error)
- func (p *KeystoreOperator) SetKeyVersionInfo(keyID, versionID string)
- func (p *KeystoreOperator) SetLogger(logger hclog.Logger)
- func (p *KeystoreOperator) TransformCryptoAccessData(_ context.Context, request *keyopv1.TransformCryptoAccessDataRequest) (*keyopv1.TransformCryptoAccessDataResponse, error)
- func (p *KeystoreOperator) ValidateKey(_ context.Context, _ *keyopv1.ValidateKeyRequest) (*keyopv1.ValidateKeyResponse, error)
- func (p *KeystoreOperator) ValidateKeyAccessData(_ context.Context, req *keyopv1.ValidateKeyAccessDataRequest) (*keyopv1.ValidateKeyAccessDataResponse, error)
- type Notification
- type SystemInformation
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 NewKeystoreOperatorFromInstance ¶ added in v0.7.0
func NewKeystoreOperatorFromInstance(p *KeystoreOperator) catalog.BuiltInPlugin
func NewNotification ¶
func NewNotification() catalog.BuiltInPlugin
func NewSystemInformation ¶
func NewSystemInformation() catalog.BuiltInPlugin
Types ¶
type CertificateIssuer ¶
type CertificateIssuer struct {
certificateissuerv1.UnsafeCertificateIssuerServiceServer
configv1.UnsafeConfigServer
}
func (*CertificateIssuer) Configure ¶
func (p *CertificateIssuer) Configure( _ context.Context, req *configv1.ConfigureRequest, ) (*configv1.ConfigureResponse, error)
func (*CertificateIssuer) GetCertificate ¶
func (p *CertificateIssuer) GetCertificate( _ context.Context, _ *certificateissuerv1.GetCertificateRequest, ) (*certificateissuerv1.GetCertificateResponse, error)
type IdentityManagement ¶
type IdentityManagement struct {
configv1.UnsafeConfigServer
idmangv1.UnsafeIdentityManagementServiceServer
}
func (*IdentityManagement) Configure ¶
func (p *IdentityManagement) Configure( _ context.Context, _ *configv1.ConfigureRequest, ) (*configv1.ConfigureResponse, error)
func (*IdentityManagement) GetAllGroups ¶
func (p *IdentityManagement) GetAllGroups( _ context.Context, _ *idmangv1.GetAllGroupsRequest, ) (*idmangv1.GetAllGroupsResponse, error)
func (*IdentityManagement) GetGroup ¶
func (p *IdentityManagement) GetGroup( _ context.Context, req *idmangv1.GetGroupRequest, ) (*idmangv1.GetGroupResponse, error)
func (*IdentityManagement) GetGroupsForUser ¶
func (p *IdentityManagement) GetGroupsForUser( _ context.Context, _ *idmangv1.GetGroupsForUserRequest, ) (*idmangv1.GetGroupsForUserResponse, error)
func (*IdentityManagement) GetUsersForGroup ¶
func (p *IdentityManagement) GetUsersForGroup( _ context.Context, req *idmangv1.GetUsersForGroupRequest, ) (*idmangv1.GetUsersForGroupResponse, error)
type KeystoreManagement ¶
type KeystoreManagement struct {
keymanv1.UnsafeKeystoreProviderServer
configv1.UnsafeConfigServer
// contains filtered or unexported fields
}
func (*KeystoreManagement) Configure ¶
func (p *KeystoreManagement) Configure( _ context.Context, _ *configv1.ConfigureRequest, ) (*configv1.ConfigureResponse, error)
func (*KeystoreManagement) CreateKeystore ¶
func (p *KeystoreManagement) CreateKeystore( _ context.Context, _ *keymanv1.CreateKeystoreRequest, ) (*keymanv1.CreateKeystoreResponse, error)
func (*KeystoreManagement) DeleteKeystore ¶
func (p *KeystoreManagement) DeleteKeystore( _ context.Context, _ *keymanv1.DeleteKeystoreRequest, ) (*keymanv1.DeleteKeystoreResponse, error)
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 NewKeystoreOperatorInstance ¶ added in v0.7.0
func NewKeystoreOperatorInstance() *KeystoreOperator
func (*KeystoreOperator) Configure ¶
func (p *KeystoreOperator) Configure( _ context.Context, _ *configv1.ConfigureRequest, ) (*configv1.ConfigureResponse, error)
func (*KeystoreOperator) CreateKey ¶
func (p *KeystoreOperator) CreateKey( _ context.Context, request *keyopv1.CreateKeyRequest, ) (*keyopv1.CreateKeyResponse, error)
func (*KeystoreOperator) DeleteKey ¶
func (p *KeystoreOperator) DeleteKey( _ context.Context, request *keyopv1.DeleteKeyRequest, ) (*keyopv1.DeleteKeyResponse, error)
func (*KeystoreOperator) DisableKey ¶
func (p *KeystoreOperator) DisableKey( _ context.Context, request *keyopv1.DisableKeyRequest, ) (*keyopv1.DisableKeyResponse, error)
func (*KeystoreOperator) EnableKey ¶
func (p *KeystoreOperator) EnableKey( _ context.Context, request *keyopv1.EnableKeyRequest, ) (*keyopv1.EnableKeyResponse, error)
func (*KeystoreOperator) ExtractKeyRegion ¶
func (p *KeystoreOperator) ExtractKeyRegion( _ context.Context, _ *keyopv1.ExtractKeyRegionRequest, ) (*keyopv1.ExtractKeyRegionResponse, error)
func (*KeystoreOperator) GetImportParameters ¶
func (p *KeystoreOperator) GetImportParameters( _ context.Context, request *keyopv1.GetImportParametersRequest, ) (*keyopv1.GetImportParametersResponse, error)
func (*KeystoreOperator) GetKey ¶
func (p *KeystoreOperator) GetKey( _ context.Context, request *keyopv1.GetKeyRequest, ) (*keyopv1.GetKeyResponse, error)
func (*KeystoreOperator) HandleKeyRecord ¶
func (p *KeystoreOperator) HandleKeyRecord(keyID, status string)
func (*KeystoreOperator) ImportKeyMaterial ¶
func (p *KeystoreOperator) ImportKeyMaterial( _ context.Context, request *keyopv1.ImportKeyMaterialRequest, ) (*keyopv1.ImportKeyMaterialResponse, error)
func (*KeystoreOperator) SetKeyVersionInfo ¶ added in v0.7.0
func (p *KeystoreOperator) SetKeyVersionInfo(keyID, versionID string)
func (*KeystoreOperator) SetLogger ¶
func (p *KeystoreOperator) SetLogger(logger hclog.Logger)
func (*KeystoreOperator) TransformCryptoAccessData ¶
func (p *KeystoreOperator) TransformCryptoAccessData( _ context.Context, request *keyopv1.TransformCryptoAccessDataRequest, ) (*keyopv1.TransformCryptoAccessDataResponse, error)
func (*KeystoreOperator) ValidateKey ¶
func (p *KeystoreOperator) ValidateKey( _ context.Context, _ *keyopv1.ValidateKeyRequest, ) (*keyopv1.ValidateKeyResponse, error)
func (*KeystoreOperator) ValidateKeyAccessData ¶
func (p *KeystoreOperator) ValidateKeyAccessData( _ context.Context, req *keyopv1.ValidateKeyAccessDataRequest, ) (*keyopv1.ValidateKeyAccessDataResponse, error)
type Notification ¶
type Notification struct {
notificationv1.UnimplementedNotificationServiceServer
configv1.UnsafeConfigServer
}
func (*Notification) Configure ¶
func (p *Notification) Configure(_ context.Context, _ *configv1.ConfigureRequest) (*configv1.ConfigureResponse, error)
func (*Notification) SendNotification ¶
func (p *Notification) SendNotification(_ context.Context, _ *notificationv1.SendNotificationRequest) ( *notificationv1.SendNotificationResponse, error, )
type SystemInformation ¶
type SystemInformation struct {
systeminformationv1.UnsafeSystemInformationServiceServer
configv1.UnsafeConfigServer
}
func (*SystemInformation) Configure ¶
func (p *SystemInformation) Configure( _ context.Context, req *configv1.ConfigureRequest, ) (*configv1.ConfigureResponse, error)
func (*SystemInformation) Get ¶
func (p *SystemInformation) Get( _ context.Context, _ *systeminformationv1.GetRequest, ) ( *systeminformationv1.GetResponse, error, )
Click to show internal directories.
Click to hide internal directories.