Documentation ¶
Index ¶
- func GetMOCAlgorithmType(algo string) (keyvault.JSONWebKeyEncryptionAlgorithm, 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) Get(ctx context.Context, group, vaultName, name string) (*[]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 GetMOCAlgorithmType ¶
func GetMOCAlgorithmType(algo string) (keyvault.JSONWebKeyEncryptionAlgorithm, error)
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) Get ¶
func (c *KeyClient) Get(ctx context.Context, group, vaultName, name string) (*[]keyvault.Key, error)
Get methods invokes the client Get method
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) }
Service interface
Click to show internal directories.
Click to hide internal directories.