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.
Click to show internal directories.
Click to hide internal directories.