sqlite

package
v0.0.0-...-ca99752 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLite

type SQLite struct{}

SQLite represents the client for secret table

func NewSQLiteSecretRepository

func NewSQLiteSecretRepository() *SQLite

NewSQLiteSecretRepository creates a new instance of SQLite

func (SQLite) Create

func (s SQLite) Create(db utildb.DB, secret secretify.Secret) (secretify.Secret, error)

Create creates a new secret on database

func (SQLite) Delete

func (s SQLite) Delete(db utildb.DB, identifier string) error

Delete deletes the secret from the database

func (SQLite) DeleteExpired

func (s SQLite) DeleteExpired(db utildb.DB) error

DeleteExpired deletes all expired secrets

func (SQLite) ViewAllExpired

func (s SQLite) ViewAllExpired(db utildb.DB) (secrets []secretify.Secret, err error)

ViewAllExpired returns all expired secrets

func (SQLite) ViewByIdentifier

func (s SQLite) ViewByIdentifier(db utildb.DB, identifier string) (secretify.Secret, error)

ViewByIdentifier returns a single secret by identifier

Jump to

Keyboard shortcuts

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