cfg

package
v0.0.0-...-1643d90 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2020 License: UPL-1.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageTypeFile = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StoreConfig           *StoreConfig              `json:"storeConfig"`
	EnableWatch           bool                      `json:"enableWatch,omitempty"`
	AsserterWebhookConfig *assertion.AsserterConfig `json:"asserterWebhookConfig,omitempty"`
	FuncsvcEndpoint       string                    `json:"funcsvcEndpoint,omitempty"`
	ServerConfig          *ServerConfig             `json:"serverConfig,omitempty"`
	LogConfig             *logging.LogConfig        `json:"logConfig,omitempty"`
	AuditLogConfig        *logging.LogConfig        `json:"auditLogConfig,omitempty"`
}

func ReadConfig

func ReadConfig(configFileLocation string) (*Config, error)

type ServerConfig

type ServerConfig struct {
	Endpoint        string `json:"endpoint,omitempty"`
	Insecure        string `json:"insecure,omitempty"`
	EnableAuthz     string `json:"enableAuthz,omitempty"`
	KeyPath         string `json:"keyPath,omitempty"`
	CertPath        string `json:"certPath,omitempty"`
	ClientCertPath  string `json:"clientCertPath,omitempty"`
	ForceClientCert bool   `json:"forceClientCert,omitempty"`
}

type StoreConfig

type StoreConfig struct {
	StoreType  string                 `json:"storeType"`
	StoreProps map[string]interface{} `json:"storeProps"`
}

func ReadStoreConfig

func ReadStoreConfig(configFileLocation string) (*StoreConfig, error)

Jump to

Keyboard shortcuts

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