keyvault

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertFormatPem    = "application/x-pem-file"
	CertFormatPkcs12 = "application/x-pkcs12"
)
View Source
const CertificateObjectType = "kv/certificate"
View Source
const KeyObjectType = "kv/key"
View Source
const SecretObjectType = "kv/secret"

Variables

This section is empty.

Functions

func AcquireCertificateData

func AcquireCertificateData(certData []byte, password string) (core.ConfidentialCertificateData, error)

func AcquireJWT

func AcquireJWT(keyData []byte, password string) (interface{}, error)

func AzKeyVaultObjectIdentityModelSchema

func AzKeyVaultObjectIdentityModelSchema() identityschema.Schema

func NewCertificateEncryptorFunction

func NewCertificateEncryptorFunction() function.Function

func NewCertificateResource

func NewCertificateResource() resource.Resource

func NewKeyEncryptorFunction

func NewKeyEncryptorFunction() function.Function

func NewKeyResource

func NewKeyResource() resource.Resource

func NewSecretEncryptorFunction

func NewSecretEncryptorFunction() function.Function

func NewSecretResource

func NewSecretResource() resource.Resource

Types

type AzKVObjectCoordinateParamValidator

type AzKVObjectCoordinateParamValidator struct{}

func (*AzKVObjectCoordinateParamValidator) ValidateParameterObject

type AzKeyVaultCertificateResourceSpecializer

type AzKeyVaultCertificateResourceSpecializer struct {
	// contains filtered or unexported fields
}

func (*AzKeyVaultCertificateResourceSpecializer) CheckPlacement

func (*AzKeyVaultCertificateResourceSpecializer) ConvertToTerraform

func (*AzKeyVaultCertificateResourceSpecializer) DoCreate

func (*AzKeyVaultCertificateResourceSpecializer) DoDelete

func (*AzKeyVaultCertificateResourceSpecializer) DoUpdate

func (*AzKeyVaultCertificateResourceSpecializer) GetConfidentialMaterialFrom

func (*AzKeyVaultCertificateResourceSpecializer) GetJsonDataImporter

func (*AzKeyVaultCertificateResourceSpecializer) NewTerraformModel

func (*AzKeyVaultCertificateResourceSpecializer) SetFactory

type AzKeyVaultKeyResourceSpecializer

type AzKeyVaultKeyResourceSpecializer struct {
	// contains filtered or unexported fields
}

func (*AzKeyVaultKeyResourceSpecializer) CheckPlacement

func (*AzKeyVaultKeyResourceSpecializer) ConvertToTerraform

func (a *AzKeyVaultKeyResourceSpecializer) ConvertToTerraform(_ context.Context, azObj azkeys.KeyBundle, tfModel *KeyModel) diag.Diagnostics

func (*AzKeyVaultKeyResourceSpecializer) Decrypt

func (*AzKeyVaultKeyResourceSpecializer) DoCreate

func (*AzKeyVaultKeyResourceSpecializer) DoDelete

func (*AzKeyVaultKeyResourceSpecializer) DoRead

func (*AzKeyVaultKeyResourceSpecializer) DoUpdate

func (*AzKeyVaultKeyResourceSpecializer) GetConfidentialMaterialFrom

func (*AzKeyVaultKeyResourceSpecializer) GetJsonDataImporter

func (*AzKeyVaultKeyResourceSpecializer) NewTerraformModel

func (a *AzKeyVaultKeyResourceSpecializer) NewTerraformModel() KeyModel

func (*AzKeyVaultKeyResourceSpecializer) SetFactory

type AzKeyVaultObjectIdentityModel

type AzKeyVaultObjectIdentityModel struct {
	VaultName     string `tfsdk:"vault_name"`
	ObjectType    string `tfsdk:"object_type"`
	ObjectName    string `tfsdk:"object_name"`
	ObjectVersion string `tfsdk:"object_version"`
}

func (*AzKeyVaultObjectIdentityModel) AsCoordinate

type AzKeyVaultSecretResourceSpecializer

type AzKeyVaultSecretResourceSpecializer struct {
	// contains filtered or unexported fields
}

AzKeyVaultSecretResourceSpecializer Generified Implementation

func (*AzKeyVaultSecretResourceSpecializer) CheckPlacement

func (*AzKeyVaultSecretResourceSpecializer) ConvertToTerraform

func (*AzKeyVaultSecretResourceSpecializer) DoCreate

func (*AzKeyVaultSecretResourceSpecializer) DoDelete

func (*AzKeyVaultSecretResourceSpecializer) DoRead

func (*AzKeyVaultSecretResourceSpecializer) DoUpdate

func (*AzKeyVaultSecretResourceSpecializer) GetConfidentialMaterialFrom

func (*AzKeyVaultSecretResourceSpecializer) GetJsonDataImporter

func (*AzKeyVaultSecretResourceSpecializer) NewTerraformModel

func (a *AzKeyVaultSecretResourceSpecializer) NewTerraformModel() SecretModel

func (*AzKeyVaultSecretResourceSpecializer) SetFactory

type AzKvCertificateParamValidator

type AzKvCertificateParamValidator struct{}

func (*AzKvCertificateParamValidator) ValidateParameterObject

type AzKvPrivateKeyParamValidator

type AzKvPrivateKeyParamValidator struct{}

func (*AzKvPrivateKeyParamValidator) ValidateParameterObject

type CertificateDataFunctionParameter

type CertificateDataFunctionParameter struct {
	Certificate types.String `tfsdk:"certificate"`
	Password    types.String `tfsdk:"password"`
}

type CertificateModel

type CertificateModel struct {
	resources.WrappedAzKeyVaultObjectConfidentialMaterialModel
	VersionlessId       types.String `tfsdk:"versionless_id"`
	SecretId            types.String `tfsdk:"secret_id"`
	VersionlessSecretId types.String `tfsdk:"versionless_secret_id"`

	DestinationCert    core.AzKeyVaultObjectCoordinateModel `tfsdk:"destination_certificate"`
	CertificateVersion types.String                         `tfsdk:"version"`

	Thumbprint            types.String `tfsdk:"thumbprint"`
	CertificateData       types.String `tfsdk:"certificate_data"`
	CertificateDataBase64 types.String `tfsdk:"certificate_data_base64"`
}

func (*CertificateModel) Accept

func (cm *CertificateModel) Accept(cert azcertificates.Certificate)

func (*CertificateModel) AssignId

func (cm *CertificateModel) AssignId(cert azcertificates.Certificate)

func (*CertificateModel) ConvertToImportCertParam

func (d *CertificateModel) ConvertToImportCertParam() azcertificates.ImportCertificateParameters

func (*CertificateModel) ConvertToUpdateCertParam

func (d *CertificateModel) ConvertToUpdateCertParam() azcertificates.UpdateCertificateParameters

type KeyDataFunctionParameter

type KeyDataFunctionParameter struct {
	Key      types.String `tfsdk:"key"`
	Password types.String `tfsdk:"password"`
}

type KeyModel

type KeyModel struct {
	resources.WrappedAzKeyVaultObjectConfidentialMaterialModel

	HSM            types.Bool                           `tfsdk:"hsm"`
	DestinationKey core.AzKeyVaultObjectCoordinateModel `tfsdk:"destination_key"`
	KeyOperations  types.Set                            `tfsdk:"key_opts"`

	KeyVersion types.String `tfsdk:"key_version"`

	PublicKeyPem     types.String `tfsdk:"public_key_pem"`
	PublicKeyOpenSSH types.String `tfsdk:"public_key_openssh"`
}

func (*KeyModel) Accept

func (cm *KeyModel) Accept(key azkeys.KeyBundle, diagnostics *diag.Diagnostics)

func (*KeyModel) ConvertToImportKeyParam

func (cm *KeyModel) ConvertToImportKeyParam(ctx context.Context) azkeys.ImportKeyParameters

func (*KeyModel) ConvertToUpdateKeyParam

func (cm *KeyModel) ConvertToUpdateKeyParam(ctx context.Context) azkeys.UpdateKeyParameters

func (*KeyModel) GetDestinationKeyCoordinate

func (cm *KeyModel) GetDestinationKeyCoordinate(defaultVaultName string) core.AzKeyVaultObjectCoordinate

func (*KeyModel) GetKeyOperations

func (cm *KeyModel) GetKeyOperations(ctx context.Context) []*azkeys.KeyOperation

type SecretModel

type SecretModel struct {
	resources.WrappedAzKeyVaultObjectConfidentialMaterialModel

	ContentType       types.String                         `tfsdk:"content_type"`
	DestinationSecret core.AzKeyVaultObjectCoordinateModel `tfsdk:"destination_secret"`

	SecretVersion types.String `tfsdk:"secret_version"`
}

func (*SecretModel) Accept

func (cm *SecretModel) Accept(secret azsecrets.Secret)

func (*SecretModel) ContentTypeAsPtr

func (cm *SecretModel) ContentTypeAsPtr() *string

func (*SecretModel) ConvertToSetSecretParam

func (cm *SecretModel) ConvertToSetSecretParam(data *SecretModel) azsecrets.SetSecretParameters

func (*SecretModel) ConvertToUpdateSecretPropertiesParam

func (cm *SecretModel) ConvertToUpdateSecretPropertiesParam(data *SecretModel) azsecrets.UpdateSecretPropertiesParameters

func (*SecretModel) GetDestinationSecretCoordinate

func (cm *SecretModel) GetDestinationSecretCoordinate(defaultVaultName string) core.AzKeyVaultObjectCoordinate

Jump to

Keyboard shortcuts

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