sqlite

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Dsn string
}

type SqliteDatabase

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

func Initialize

func Initialize(configuration Configuration) (*SqliteDatabase, error)

Initialize a sqlite database for secret storage.

func (*SqliteDatabase) Create

func (db *SqliteDatabase) Create(request *secretsv1.CreateSecretRequest) error

Create a new secret.

func (*SqliteDatabase) Delete

func (db *SqliteDatabase) Delete(request *secretsv1.DeleteSecretRequest) error

Delete a secret and all its versions.

func (*SqliteDatabase) List

List all secrets and their versions.

func (*SqliteDatabase) Read

Retrieve the latest version of a secret.

func (*SqliteDatabase) Revert

Revert a secret to a previous version.

func (*SqliteDatabase) Update

Create a new version of an existing secret.

Jump to

Keyboard shortcuts

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