database

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretsStoreImpl

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

func ProvideSecretsStore

func ProvideSecretsStore(sqlStore *sqlstore.SQLStore) *SecretsStoreImpl

func (*SecretsStoreImpl) CreateDataKey

func (ss *SecretsStoreImpl) CreateDataKey(ctx context.Context, dataKey *secrets.DataKey) error

func (*SecretsStoreImpl) CreateDataKeyWithDBSession

func (ss *SecretsStoreImpl) CreateDataKeyWithDBSession(_ context.Context, dataKey *secrets.DataKey, sess *xorm.Session) error

func (*SecretsStoreImpl) DeleteDataKey

func (ss *SecretsStoreImpl) DeleteDataKey(ctx context.Context, id string) error

func (*SecretsStoreImpl) DisableDataKeys

func (ss *SecretsStoreImpl) DisableDataKeys(ctx context.Context) error

func (*SecretsStoreImpl) GetAllDataKeys

func (ss *SecretsStoreImpl) GetAllDataKeys(ctx context.Context) ([]*secrets.DataKey, error)

func (*SecretsStoreImpl) GetCurrentDataKey

func (ss *SecretsStoreImpl) GetCurrentDataKey(ctx context.Context, label string) (*secrets.DataKey, error)

func (*SecretsStoreImpl) GetDataKey

func (ss *SecretsStoreImpl) GetDataKey(ctx context.Context, id string) (*secrets.DataKey, error)

func (*SecretsStoreImpl) ReEncryptDataKeys

func (ss *SecretsStoreImpl) ReEncryptDataKeys(
	ctx context.Context,
	providers map[secrets.ProviderID]secrets.Provider,
	currProvider secrets.ProviderID,
) error

Jump to

Keyboard shortcuts

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