certmagicsqlite3

package module
v0.0.0-...-36aeb29 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

CertMagic Storage Backend for SQLite3

This is an implementation of the CertMagic Storage backend interface using SQLite3.

Prequisites

You should have SQLite3 installed.

Building

xcaddy build --with github.com/crmejia/certmagic_sqlite3

Caddyfile Example

{
    storage sqlite "certmagic" {
         
    }
}

:2015 {
	respond "Hello, World"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	DataSourceName string `json:"datasourcename,omitempty"`
	// contains filtered or unexported fields
}

func OpenSQLiteStorage

func OpenSQLiteStorage(dataSourceName string) (Storage, error)

func (Storage) CaddyModule

func (Storage) CaddyModule() caddy.ModuleInfo

func (*Storage) CertMagicStorage

func (s *Storage) CertMagicStorage() (certmagic.Storage, error)

func (*Storage) Delete

func (s *Storage) Delete(ctx context.Context, key string) error

func (*Storage) Exists

func (s *Storage) Exists(ctx context.Context, key string) bool

func (*Storage) List

func (s *Storage) List(ctx context.Context, prefix string, recursive bool) ([]string, error)

func (*Storage) Load

func (s *Storage) Load(ctx context.Context, key string) ([]byte, error)

func (*Storage) Lock

func (s *Storage) Lock(ctx context.Context, name string) error

Lock unimplemented TODO

func (*Storage) Provision

func (s *Storage) Provision(ctx caddy.Context) error

func (*Storage) SetLockTimeOut

func (s *Storage) SetLockTimeOut(timeout time.Duration)

func (*Storage) Stat

func (s *Storage) Stat(ctx context.Context, key string) (certmagic.KeyInfo, error)

func (*Storage) Store

func (s *Storage) Store(ctx context.Context, key string, value []byte) error

func (*Storage) Unlock

func (s *Storage) Unlock(ctx context.Context, name string) error

UnLock unimplemented TODO

func (*Storage) UnmarshalCaddyfile

func (s *Storage) UnmarshalCaddyfile(d *caddyfile.Dispenser) error

Jump to

Keyboard shortcuts

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