store

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsiKeyVaultStore

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

func NewMsiKeyVaultStore

func NewMsiKeyVaultStore(kvClient KeyVaultClient) *MsiKeyVaultStore

func (*MsiKeyVaultStore) DeleteCredentialsObject

func (s *MsiKeyVaultStore) DeleteCredentialsObject(ctx context.Context, secretName string) error

Delete a credentials object from key vault using the specified secret name. Delete applies to all versions of the secret.

func (*MsiKeyVaultStore) GetCredentialsObject

func (s *MsiKeyVaultStore) GetCredentialsObject(ctx context.Context, secretName string) (*SecretResponse, error)

Get a credentials object from the key vault using the specified secret name. The latest version of the secret will always be returned.

func (*MsiKeyVaultStore) GetCredentialsObjectPager

func (s *MsiKeyVaultStore) GetCredentialsObjectPager() *runtime.Pager[azsecrets.ListSecretPropertiesResponse]

Get a pager for listing credentials objects from the key vault.

func (*MsiKeyVaultStore) GetDeletedCredentialsObjectPager added in v0.0.6

func (s *MsiKeyVaultStore) GetDeletedCredentialsObjectPager() *runtime.Pager[azsecrets.ListDeletedSecretPropertiesResponse]

Get a pager for listing deleted credentials objects from the key vault.

func (*MsiKeyVaultStore) PurgeDeletedCredentialsObject

func (s *MsiKeyVaultStore) PurgeDeletedCredentialsObject(ctx context.Context, secretName string) error

Purge a deleted credentials object from the key vault using the specified secret name. This operation is only applicable in vaults enabled for soft-delete.

func (*MsiKeyVaultStore) SetCredentialsObject

func (s *MsiKeyVaultStore) SetCredentialsObject(ctx context.Context, properties SecretProperties, credentialsObject dataplane.CredentialsObject) error

Set a credentials object in the key vault using the specified secret name. If the secret already exists, key vault will create a new version of the secret.

type SecretProperties added in v0.0.2

type SecretProperties struct {
	Enabled   bool
	Expires   time.Time
	Name      string
	NotBefore time.Time
}

type SecretResponse added in v0.0.2

type SecretResponse struct {
	CredentialsObject dataplane.CredentialsObject
	Properties        SecretProperties
}

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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