Versions in this module Expand all Collapse all v0 v0.1.5 Aug 8, 2024 Changes in this version type Database + MigrateCredentials []Github type Github + App GithubApp + AuthType GithubAuthType + PAT GithubPAT + func (g *Github) GetAuthType() GithubAuthType + func (g *Github) HTTPClient(ctx context.Context) (*http.Client, error) + type GithubApp struct + AppID int64 + InstallationID int64 + PrivateKeyPath string + func (a *GithubApp) PrivateKeyBytes() ([]byte, error) + func (a *GithubApp) Validate() error + type GithubAuthType string + const GithubAuthTypeApp + const GithubAuthTypePAT + type GithubPAT struct + OAuth2Token string type Metrics + Period time.Duration + func (m *Metrics) Duration() time.Duration + func (m *Metrics) ParseDuration() (time.Duration, error) v0.1.4 Feb 12, 2024 Changes in this version type Config + Logging Logging + func (c *Config) GetLoggingConfig() Logging type DBBackendType + const EnvironmentVariablePrefix type Default + EnableWebhookManagement bool + WebhookURL string type External + EnvironmentVariables []string + func (e *External) GetEnvironmentVariables() []string + type LogFormat string + const FormatJSON + const FormatText + type LogLevel string + const LevelDebug + const LevelError + const LevelInfo + const LevelWarn + type Logging struct + EnableLogStreamer *bool + LogFile string + LogFormat LogFormat + LogLevel LogLevel + LogSource bool + func (l *Logging) Validate() error type Provider + DisableJITConfig bool v0.1.4-rc1 Dec 18, 2023 v0.1.3 Jul 25, 2023 v0.1.2 Jul 6, 2023 Changes in this version type Default + DebugServer bool v0.1.1 Jun 16, 2023 v0.1.0 Jun 8, 2023 Changes in this version + const LXDImageContainer + const LXDImageVirtualMachine + const SimpleStreams + type APIServer struct + Bind string + CORSOrigins []string + Port int + TLSConfig TLSConfig + UseTLS bool + func (a *APIServer) BindAddress() string + func (a *APIServer) Validate() error + type Config struct + APIServer APIServer + Database Database + Default Default + Github []Github + JWTAuth JWTAuth + Metrics Metrics + Providers []Provider + func NewConfig(cfgFile string) (*Config, error) + func (c *Config) Validate() error + type DBBackendType string + const MySQLBackend + const SQLiteBackend + type Database struct + DbBackend DBBackendType + Debug bool + MySQL MySQL + Passphrase string + SQLite SQLite + func (d *Database) GormParams() (dbType DBBackendType, uri string, err error) + func (d *Database) Validate() error + type Default struct + CallbackURL string + ConfigDir string + EnableLogStreamer bool + LogFile string + MetadataURL string + func (d *Default) Validate() error + type External struct + ConfigFile string + ProviderDir string + ProviderExecutable string + func (e *External) ExecutablePath() (string, error) + func (e *External) Validate() error + type Github struct + APIBaseURL string + BaseURL string + CACertBundlePath string + Description string + Name string + OAuth2Token string + UploadBaseURL string + func (g *Github) APIEndpoint() string + func (g *Github) BaseEndpoint() string + func (g *Github) CACertBundle() ([]byte, error) + func (g *Github) UploadEndpoint() string + func (g *Github) Validate() error + type JWTAuth struct + Secret string + TimeToLive timeToLive + func (j *JWTAuth) Validate() error + type LXD struct + ClientCertificate string + ClientKey string + ImageRemotes map[string]LXDImageRemote + IncludeDefaultProfile bool + InstanceType LXDImageType + ProjectName string + SecureBoot bool + TLSCA string + TLSServerCert string + URL string + UnixSocket string + func (l *LXD) GetInstanceType() LXDImageType + func (l *LXD) Validate() error + type LXDImageRemote struct + Address string + InsecureSkipVerify bool + Protocol LXDRemoteProtocol + Public bool + func (l *LXDImageRemote) Validate() error + type LXDImageType string + func (l LXDImageType) String() string + type LXDRemoteProtocol string + type Metrics struct + DisableAuth bool + Enable bool + type MySQL struct + DatabaseName string + Hostname string + Password string + Username string + func (m *MySQL) ConnectionString() (string, error) + func (m *MySQL) Validate() error + type Provider struct + Description string + External External + LXD LXD + Name string + ProviderType params.ProviderType + func (p *Provider) Validate() error + type SQLite struct + DBFile string + func (s *SQLite) ConnectionString() (string, error) + func (s *SQLite) Validate() error + type TLSConfig struct + CRT string + Key string + func (t *TLSConfig) Validate() error