Documentation ¶
Index ¶
- func GetExportInformationFromResponseKey(responseKey *wssdcloudsecurity.Key) (string, error)
- func GetKeyWrappingAlgorithm(algo wssdcloudcommon.KeyWrappingAlgorithm) (wrappingAlgo keyvault.KeyWrappingAlgorithm, err error)
- func GetMOCAlgorithmType(algo string) (keyvault.JSONWebKeyEncryptionAlgorithm, error)
- func GetMOCKeyWrappingAlgorithm(algo keyvault.KeyWrappingAlgorithm) (wrappingAlgo wssdcloudcommon.KeyWrappingAlgorithm, err error)
- func ParseAndValidateExportParams(keyValue *string, exportKey *wssdcloudsecurity.Key) (err error)
- func ParseAndValidateImportExportParams(keyValue *string) (parsedImportExportParams keyvault.KeyImportExportValue, ...)
- func ParseAndValidateImportParams(keyValue *string, importKey *wssdcloudsecurity.Key) (err error)
- type KeyClient
- func (c *KeyClient) CreateOrUpdate(ctx context.Context, group, vaultName, name string, param *keyvault.Key) (*keyvault.Key, error)
- func (c *KeyClient) Decrypt(ctx context.Context, group, vaultName, name string, ...) (result *keyvault.KeyOperationResult, err error)
- func (c *KeyClient) Delete(ctx context.Context, group, vaultName, name string) error
- func (c *KeyClient) Encrypt(ctx context.Context, group, vaultName, name string, ...) (result *keyvault.KeyOperationResult, err error)
- func (c *KeyClient) Export(ctx context.Context, group, vaultName, name string, param *keyvault.Key) (*keyvault.Key, error)
- func (c *KeyClient) Get(ctx context.Context, group, vaultName, name string) (*[]keyvault.Key, error)
- func (c *KeyClient) Import(ctx context.Context, group, vaultName, name string, param *keyvault.Key) (*keyvault.Key, error)
- func (c *KeyClient) UnwrapKey(ctx context.Context, group, vaultName, name string, ...) (result *keyvault.KeyOperationResult, err error)
- func (c *KeyClient) WrapKey(ctx context.Context, group, vaultName, name string, ...) (result *keyvault.KeyOperationResult, err error)
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExportInformationFromResponseKey ¶ added in v0.10.21
func GetExportInformationFromResponseKey(responseKey *wssdcloudsecurity.Key) (string, error)
func GetKeyWrappingAlgorithm ¶ added in v0.10.21
func GetKeyWrappingAlgorithm(algo wssdcloudcommon.KeyWrappingAlgorithm) (wrappingAlgo keyvault.KeyWrappingAlgorithm, err error)
func GetMOCAlgorithmType ¶
func GetMOCAlgorithmType(algo string) (keyvault.JSONWebKeyEncryptionAlgorithm, error)
func GetMOCKeyWrappingAlgorithm ¶ added in v0.10.21
func GetMOCKeyWrappingAlgorithm(algo keyvault.KeyWrappingAlgorithm) (wrappingAlgo wssdcloudcommon.KeyWrappingAlgorithm, err error)
func ParseAndValidateExportParams ¶ added in v0.10.21
func ParseAndValidateExportParams(keyValue *string, exportKey *wssdcloudsecurity.Key) (err error)
Validate Export params
func ParseAndValidateImportExportParams ¶ added in v0.10.21
func ParseAndValidateImportExportParams(keyValue *string) (parsedImportExportParams keyvault.KeyImportExportValue, keyWrappingAlgo wssdcloudcommon.KeyWrappingAlgorithm, err error)
Common validation for Import and Export params
func ParseAndValidateImportParams ¶ added in v0.10.21
func ParseAndValidateImportParams(keyValue *string, importKey *wssdcloudsecurity.Key) (err error)
Validate Import params
Types ¶
type KeyClient ¶
type KeyClient struct { security.BaseClient // contains filtered or unexported fields }
Client structure
func NewKeyClient ¶
func NewKeyClient(cloudFQDN string, authorizer auth.Authorizer) (*KeyClient, error)
NewClient method returns new client
func (*KeyClient) CreateOrUpdate ¶
func (c *KeyClient) CreateOrUpdate(ctx context.Context, group, vaultName, name string, param *keyvault.Key) (*keyvault.Key, error)
CreateOrUpdate methods invokes create or update on the client
func (*KeyClient) Decrypt ¶
func (c *KeyClient) Decrypt(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)
Decrypt methods invokes encrypt of the keyvault resource
func (*KeyClient) Encrypt ¶
func (c *KeyClient) Encrypt(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)
Encrypt methods invokes encrypt of the keyvault resource
func (*KeyClient) Export ¶ added in v0.10.21
func (c *KeyClient) Export(ctx context.Context, group, vaultName, name string, param *keyvault.Key) (*keyvault.Key, error)
Export methods invokes export on the client
func (*KeyClient) Get ¶
func (c *KeyClient) Get(ctx context.Context, group, vaultName, name string) (*[]keyvault.Key, error)
Get methods invokes the client Get method
func (*KeyClient) Import ¶ added in v0.10.21
func (c *KeyClient) Import(ctx context.Context, group, vaultName, name string, param *keyvault.Key) (*keyvault.Key, error)
Import methods invokes import on the client
type Service ¶
type Service interface { Get(context.Context, string, string, string) (*[]keyvault.Key, error) CreateOrUpdate(context.Context, string, string, string, *keyvault.Key) (*keyvault.Key, error) Delete(context.Context, string, string, string) error Encrypt(context.Context, string, string, string, *keyvault.KeyOperationsParameters) (*keyvault.KeyOperationResult, error) Decrypt(context.Context, string, string, string, *keyvault.KeyOperationsParameters) (*keyvault.KeyOperationResult, error) WrapKey(context.Context, string, string, string, *keyvault.KeyOperationsParameters) (*keyvault.KeyOperationResult, error) UnwrapKey(context.Context, string, string, string, *keyvault.KeyOperationsParameters) (*keyvault.KeyOperationResult, error) ImportKey(context.Context, string, string, string, *keyvault.Key) (*keyvault.Key, error) ExportKey(context.Context, string, string, string, *keyvault.Key) (*keyvault.Key, error) }
Service interface
Click to show internal directories.
Click to hide internal directories.