azsecrets

package
v0.0.0-...-fa63c6f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBase64Value

func ExtractBase64Value(secret azsecrets.GetSecretResponse) ([]byte, error)

ExtractBase64Value extracts the value of a KeyVault secret as a base64-encoded string

func ParseSecretAsCertificate

func ParseSecretAsCertificate(secret azsecrets.GetSecretResponse) (*rsa.PrivateKey, []*x509.Certificate, error)

ParseSecretAsCertificate parses the value of a KeyVault secret as a set of PEM blocks containing a private key and certificate.

func URI

func URI(metadata instancemetadata.InstanceMetadata, suffix, keyVaultPrefix string) string

Types

type ArmClient

type ArmClient struct {
	*azsecrets.Client
}

func NewClient

func NewClient(vaultURL string, credential azcore.TokenCredential, options azcore.ClientOptions) (ArmClient, error)

Jump to

Keyboard shortcuts

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