key

package
v0.10.6-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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) Delete

func (c *KeyClient) Delete(ctx context.Context, group, vaultName, name string) error

Delete methods invokes delete 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

func (*KeyClient) UnwrapKey

func (c *KeyClient) UnwrapKey(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)

UnwrapKey

func (*KeyClient) WrapKey

func (c *KeyClient) WrapKey(ctx context.Context, group, vaultName, name string, parameters *keyvault.KeyOperationsParameters) (result *keyvault.KeyOperationResult, err error)

WrapKey

Jump to

Keyboard shortcuts

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