azurekeyvault

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	KeyVault  keyvault.BaseClient
	VaultName string
	// contains filtered or unexported fields
}

Client can extract public keys and certificates (e.g. TLS certificates) stored in Azure Key Vault

func GetInstance

func GetInstance() *Client

GetInstance returns the (initialized) singleton

func (*Client) BaseURL

func (akv *Client) BaseURL() string

BaseURL returns the base URL for all operations with the Key Vault

func (*Client) CertificateExists

func (akv *Client) CertificateExists(certificateName string) (exists bool, err error)

CertificateExists returns true whether if the certificate exists on the Key Vault

func (*Client) GetCertificate

func (akv *Client) GetCertificate(certificateName string, certificateVersion string) (string, []byte, []byte, *x509.Certificate, error)

GetCertificate returns the certificate and key from Azure Key Vault, encoded as PEM

func (*Client) GetPublicKey

func (akv *Client) GetPublicKey(keyName string, keyVersion string) (string, *rsa.PublicKey, error)

GetPublicKey returns the public portion of a key stored inside Azure Key Vault

func (*Client) Init

func (akv *Client) Init() error

Init the object

Jump to

Keyboard shortcuts

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