Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultExecutorCount = 1 DefaultImageStorage = "filesystem" DefaultImageVarDir = "/var/lib/gate/image" DefaultDatabaseDriver = "sqlite" DefaultInventoryDSN = "file:/var/lib/gate/inventory.sqlite?cache=shared" DefaultNet = "tcp" DefaultHTTPAddr = "localhost:8080" DefaultACMECacheDir = "/var/cache/gate/acme" )
Variables ¶
View Source
var Defaults = []string{
"/etc/gate/server.toml",
"/etc/gate/server.d/*.toml",
}
Functions ¶
Types ¶
type Config ¶
type Config struct { Runtime struct { runtime.Config PrepareProcesses int ExecutorCount int } Image struct { ProgramStorage string PreparePrograms int InstanceStorage string PrepareInstances int VarDir string } Inventory map[string]database.Config Service map[string]interface{} Server struct { server.Config UID int GID int } Access struct { Policy string Public struct{} SSH struct { AuthorizedKeys string } } Principal server.AccessConfig Source struct { HTTP []struct { Name string httpsource.Config } IPFS struct { ipfs.Config } } HTTP struct { Net string Addr string web.Config AccessDB map[string]database.Config AccessLog string TLS struct { Enabled bool Domains []string HTTPNet string HTTPAddr string } } ACME struct { AcceptTOS bool CacheDir string RenewBefore time.Duration DirectoryURL string Email string ForceRSA bool } Log struct { Syslog bool Verbose bool } }
Click to show internal directories.
Click to hide internal directories.