keyvault

package
v0.0.0-...-823d357 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func URI

func URI(instancemetadata instancemetadata.InstanceMetadata, suffix string) (string, error)

Types

type Eku

type Eku string
const (
	EkuServerAuth Eku = "1.3.6.1.5.5.7.3.1"
	EkuClientAuth Eku = "1.3.6.1.5.5.7.3.2"
)

type Manager

type Manager interface {
	CreateSignedCertificate(context.Context, string, string, string, Eku) error
	EnsureCertificateDeleted(context.Context, string) error
	GetBase64Secret(context.Context, string) ([]byte, error)
	GetCertificateSecret(context.Context, string) (*rsa.PrivateKey, []*x509.Certificate, error)
	GetSecret(context.Context, string) (azkeyvault.SecretBundle, error)
	GetSecrets(context.Context) ([]azkeyvault.SecretItem, error)
	SetCertificateIssuer(ctx context.Context, issuerName string, parameter azkeyvault.CertificateIssuerSetParameters) (result azkeyvault.IssuerBundle, err error)
	SetSecret(context.Context, string, azkeyvault.SecretSetParameters) error
	WaitForCertificateOperation(context.Context, string) error
}

func NewManager

func NewManager(kvAuthorizer autorest.Authorizer, keyvaultURI string) Manager

NewManager returns a pointer to a manager containing a BaseClient. The BaseClient is created with kvAuthorizer, which is an authorizer which can access a key vault.

Jump to

Keyboard shortcuts

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