Documentation
¶
Index ¶
- type MockService
- func (s *MockService) CreateKeystore(controller, vaultID string) (*kms.KeystoreData, error)
- func (s *MockService) GetKeystoreData(keystoreID string) (*kms.KeystoreData, error)
- func (s *MockService) ResolveKeystore(req *http.Request) (keystore.Keystore, error)
- func (s *MockService) SaveKeystoreData(keystoreData *kms.KeystoreData) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
type MockService struct {
CreateKeystoreValue *kms.KeystoreData
ResolveKeystoreValue keystore.Keystore
GetKeystoreDataValue *kms.KeystoreData
CreateKeystoreErr error
ResolveKeystoreErr error
GetKeystoreDataErr error
SaveKeystoreDataErr error
mockcrypto.Crypto
}
MockService is a mock KMS service.
func (*MockService) CreateKeystore ¶
func (s *MockService) CreateKeystore(controller, vaultID string) (*kms.KeystoreData, error)
CreateKeystore creates a new Keystore.
func (*MockService) GetKeystoreData ¶
func (s *MockService) GetKeystoreData(keystoreID string) (*kms.KeystoreData, error)
GetKeystoreData retrieves Keystore metadata.
func (*MockService) ResolveKeystore ¶
ResolveKeystore resolves Keystore for the given request.
func (*MockService) SaveKeystoreData ¶
func (s *MockService) SaveKeystoreData(keystoreData *kms.KeystoreData) error
SaveKeystoreData saves Keystore metadata.
Click to show internal directories.
Click to hide internal directories.