store

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: MIT Imports: 4 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) (dataplane.CredentialsObject, 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) 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, secretName string, 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.

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