secrets

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.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 Connector

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

func NewConnector

func NewConnector(store stores.SecretStore, db database.Secrets, authorizator auth.Authorizator, logger log.Logger) *Connector

func (Connector) Delete

func (c Connector) Delete(ctx context.Context, id string) error

func (Connector) Destroy

func (c Connector) Destroy(ctx context.Context, id string) error

func (Connector) Get

func (c Connector) Get(ctx context.Context, id, version string) (*entities.Secret, error)

func (Connector) GetDeleted

func (c Connector) GetDeleted(ctx context.Context, id string) (*entities.Secret, error)

func (Connector) List

func (c Connector) List(ctx context.Context, limit, offset uint64) ([]string, error)

func (Connector) ListDeleted

func (c Connector) ListDeleted(ctx context.Context, limit, offset uint64) ([]string, error)

func (Connector) Restore

func (c Connector) Restore(ctx context.Context, id string) error

func (Connector) Set

func (c Connector) Set(ctx context.Context, id, value string, attr *entities.Attributes) (*entities.Secret, error)

Jump to

Keyboard shortcuts

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