appconfig

package
v0.0.0-...-6e90c25 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationEncryptionConfig

type ApplicationEncryptionConfig struct {
	GPGPrivateKeyFile       string `json:"gpg_private_key_file"`
	GPGPublicKeyFile        string `json:"gpg_public_key_file"`
	GPGPassphraseFile       string `json:"gpg_private_key_password_file"`
	GPGPrivateKey           string `json:"gpg_private_key"`
	GPGPublicKey            string `json:"gpg_public_key"`
	GPGPrivateKeyPassphrase []byte `json:"gpg_private_key_password"`
	GPGDeleteKeys           bool   `json:"pgp_delete_key_files_after_startup"`
}

type ApplicationMasterConfig

type ApplicationMasterConfig struct {
	Encryption   ApplicationEncryptionConfig `json:"encryption"`
	PkiConfig    ApplicationPkiConfig        `json:"pki"`
	Storage      ApplicationStorageConfig    `json:"storage"`
	UserDb       map[string]UserConfig       `json:"users"`
	ServerConfig ApplicationServerConfig     `json:"server"`
}

func GetConfig

func GetConfig() ApplicationMasterConfig

type ApplicationPkiConfig

type ApplicationPkiConfig struct {
	CaCertFile                 string `json:"openssl_root_ca_cert_file"`
	CaPrivateKeyFile           string `json:"openssl_root_ca_key_file"`
	CaPrivateKeyPasswordFile   string `json:"openssl_root_ca_key_password_file"`
	CaPrivateKeyNoPasswordFile string `json:"openssl_root_ca_no_password_key_file"`
	CaDeleteKeys               bool   `json:"openssl_delete_key_files_after_startup"`
	CaCert                     *x509.Certificate
	CaPrivateNoPasswordKey     *rsa.PrivateKey
}

type ApplicationServerConfig

type ApplicationServerConfig struct {
	Domain      string `json:"domain"`
	Port        int    `json:"port"`
	TlsEnable   bool   `json:"tls_enabled"`
	TlsCertFile string `json:"tls_cert_file"`
	TlsKeyFile  string `json:"tls_key_file"`
	DebugMode   bool   `json:"debug_mode"`
}

type ApplicationStorageConfig

type ApplicationStorageConfig struct {
	StorageType string                 `json:"type"`
	Config      map[string]interface{} `json:"config"`
}

type UserConfig

type UserConfig struct {
}

Jump to

Keyboard shortcuts

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