Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfigPath = "config.json"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { HtpasswdPath string `json:"htpasswdPath"` Port uint16 `json:"port"` RepositoryData []RawRepository `json:"repositories"` SSLCertificate string `json:"sslCertificate"` SSLKey string `json:"sslKey"` TokenStorePath string `json:"tokenStorePath"` UseTLS bool `json:"useTLS"` WebhookStorePath string `json:"webhookStorePath"` Repositories map[string]repositories.Repository `json:"-"` }
type ConfigWatcher ¶
type ConfigWatcher struct { NewConfig <-chan *Config Errors <-chan error // contains filtered or unexported fields }
func Watch ¶
func Watch(path string) *ConfigWatcher
func (*ConfigWatcher) ForceReload ¶
func (cw *ConfigWatcher) ForceReload() (*Config, error)
type RawRepository ¶
Click to show internal directories.
Click to hide internal directories.