Documentation
¶
Index ¶
- Constants
- type Config
- func (c *Config) GetArtifactsDir() string
- func (c *Config) GetDatabaseFile() string
- func (c *Config) GetProject(id int) *model.Project
- func (c *Config) IsAuthEnabled() bool
- func (c *Config) IsHttpEnabled() bool
- func (c *Config) IsHttpsEnabled() bool
- func (c *Config) Save() error
- func (c *Config) Setup()
- type UserList
Constants ¶
View Source
const ( DATABASE = "meta.db" ARTIFACTS = "artifacts" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HttpListen string `yaml:"http_listen,omitempty"` HttpsListen string `yaml:"https_listen,omitempty"` HttpsKey string `yaml:"https_key,omitempty"` HttpsCert string `yaml:"https_cert,omitempty"` DataDir string `yaml:"datadir,omitempty"` Users UserList `yaml:"users,omitempty"` Agents []agent.Agent `yaml:"agents,omitempty"` Projects []*model.Project `yaml:"projects,omitempty"` // contains filtered or unexported fields }
func (*Config) GetArtifactsDir ¶
Returns the artifacts directory.
func (*Config) GetDatabaseFile ¶
Returns the path to the database file.
func (*Config) GetProject ¶
Returns a project by its ID.
func (*Config) IsAuthEnabled ¶
Returns true if user authentication is enabled.
func (*Config) IsHttpEnabled ¶
Returns true if http server is enabled.
func (*Config) IsHttpsEnabled ¶
Returns true if ssl encrypted http(s) server is enabled.
Click to show internal directories.
Click to hide internal directories.