sqlite

package
v0.0.0-...-d123447 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLiteRepo

func NewSQLiteRepo(_ context.Context, path string) (db.TppRepository, error)

NewSQLiteRepo creates a TppRepository backed by SQLite, using the given database file path.

Types

type TppSqliteRepository

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

func NewTppSqliteRepository

func NewTppSqliteRepository(db *sql.DB) *TppSqliteRepository

func (*TppSqliteRepository) AddCertificate

func (r *TppSqliteRepository) AddCertificate(ctx context.Context, c *cert.ParsedCert) error

func (*TppSqliteRepository) GetRootCertificates

func (r *TppSqliteRepository) GetRootCertificates(ctx context.Context) ([]string, error)

func (*TppSqliteRepository) GetTpp

func (r *TppSqliteRepository) GetTpp(ctx context.Context, id string) (*models.TPP, error)

Jump to

Keyboard shortcuts

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