azure

package
v0.0.0-...-9ffa3d9 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobClient

type BlobClient interface {
	Upload(ctx context.Context, buffer []byte) error
	Download(ctx context.Context) ([]byte, error)
	Exists(ctx context.Context) (bool, error)
}

func NewBlobClient

func NewBlobClient(containerUrl *url.URL, blobName string) (BlobClient, error)

type KeyVaultClient

type KeyVaultClient interface {
	GetKey(
		ctx context.Context, keyName string, version string,
	) (jwk.Key, error)
	ImportKey(ctx context.Context, keyName string, key jwk.Key) error

	GetSecret(
		ctx context.Context, secretName string, version string,
	) (*string, error)
	SetSecret(ctx context.Context, secretName string, value string) error

	GetCertificate(
		ctx context.Context, certificateName string, version string,
	) (*x509.Certificate, error)
	ImportCertificate(
		ctx context.Context, certificateName string,
		certificate *x509.Certificate, key *rsa.PrivateKey,
	) error
}

func NewKeyVaultClient

func NewKeyVaultClient(vaultUrl *url.URL) (KeyVaultClient, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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