Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { On string `yaml:"on" env-default:"push" json:"on,omitempty"` Branch string `yaml:"branch" env-default:"master" json:"branch,omitempty"` Cwd string `yaml:"cwd" json:"cwd,omitempty"` User string `yaml:"user" json:"user,omitempty"` Script string `yaml:"script" json:"script,omitempty"` Run []string `yaml:"run" json:"run,omitempty"` }
type Config ¶
type Config struct { Host string `yaml:"host" env:"HOST" env-default:"localhost"` Port int16 `yaml:"port" env:"PORT" env-default:"9090"` PublicUrl string `yaml:"public_url" env:"PUBLIC_URL"` DisableApi bool `yaml:"disable_api" env:"DISABLE_API"` ApiUser string `yaml:"api_user" env:"API_USER" env-default:"admin"` ApiPassword string `yaml:"api_password" env:"API_PASSWORD"` LogLevel string `yaml:"log_level" env:"LOG_LEVEL" env-default:"info"` LogsDbFile string `yaml:"logs_db_file" env:"LOGS_DB_FILE" env-default:"logs.sqlite3"` ActionsDbFile string `yaml:"actions_db_file" env:"ACTIONS_DB_FILE" env-default:"actions.sqlite3"` Ssl SslConfig `yaml:"ssl" env-prefix:"SSL__"` Projects map[string]Project `yaml:"projects" env-required:"true"` }
func (Config) MaskSensitiveData ¶
type Project ¶
type Project struct { GitProvider string `yaml:"git_provider" env-default:"github"` Repo string `yaml:"repo" env-required:"true"` Authorization string `yaml:"authorization" env:"AUTH"` Secret string `yaml:"secret" env:"SECRET"` Actions []Action `yaml:"actions" env-required:"true"` }
func (Project) MaskSensitiveData ¶
type StructEnvFields ¶
type StructEnvFields struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.