config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DomainStores []Store `json:"domain_stores,omitempty"`
}

Config represents the configuration for Certmatic.

type InmemoryStorageConfig

type InmemoryStorageConfig struct {
}

func AsInmemoryStorageConfig

func AsInmemoryStorageConfig(rawConfig map[string]any) (*InmemoryStorageConfig, error)

type PostgresStorageConfig

type PostgresStorageConfig struct {
	ConnectionString string `json:"connection_string,omitempty"`
}

func AsPostgresStorageConfig

func AsPostgresStorageConfig(rawConfig map[string]any) (*PostgresStorageConfig, error)

type RqliteStorageConfig

type RqliteStorageConfig struct {
	HTTPAddr string `json:"http_addr,omitempty"`
}

func AsRqliteStorageConfig

func AsRqliteStorageConfig(rawConfig map[string]any) (*RqliteStorageConfig, error)

type SqliteStorageConfig

type SqliteStorageConfig struct {
	FilePath string `json:"file_path,omitempty"`
}

func AsSqliteStorageConfig

func AsSqliteStorageConfig(rawConfig map[string]any) (*SqliteStorageConfig, error)

type StorageType

type StorageType string
const (
	StorageTypeMemory   StorageType = "memory"
	StorageTypePostgres StorageType = "postgres"
	StorageTypeSqlite   StorageType = "sqlite"
	StorageTypeRqlite   StorageType = "rqlite"
)

type Store

type Store struct {
	Type   string                 `json:"type,omitempty"`
	Config map[string]interface{} `json:"config,omitempty"`
}

func (*Store) GetStoreType

func (s *Store) GetStoreType() StorageType

GetStoreType returns the storage type for this store. Defaults to memory if unset.

Jump to

Keyboard shortcuts

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