config

package
v0.0.0-...-a73d231 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EnableSyncer        bool   `koanf:"enable-syncer"`
	HostFlatcarPackages bool   `koanf:"host-flatcar-packages"`
	FlatcarPackagesPath string `koanf:"flatcar-packages-path"`
	NebraskaURL         string `koanf:"nebraska-url"`
	SyncerPkgsURL       string `koanf:"syncer-packages-url"`
	HTTPLog             bool   `koanf:"http-log"`
	HTTPStaticDir       string `koanf:"http-static-dir"`
	AuthMode            string `koanf:"auth-mode"`
	FlatcarUpdatesURL   string `koanf:"sync-update-url"`
	CheckFrequencyVal   string `koanf:"sync-interval"`
	AppLogoPath         string `koanf:"client-logo"`
	AppTitle            string `koanf:"client-title"`
	AppHeaderStyle      string `koanf:"client-header-style"`
	APIEndpointSuffix   string `koanf:"api-endpoint-suffix"`
	Debug               bool   `koanf:"debug"`
	ServerPort          uint   `koanf:"port"`
	RollbackDBTo        string `koanf:"rollback-db-to"`

	GhClientID        string `koanf:"gh-client-id"`
	GhClientSecret    string `koanf:"gh-client-secret"`
	GhSessionAuthKey  string `koanf:"gh-session-secret"`
	GhSessionCryptKey string `koanf:"gh-session-crypt-key"`
	GhWebhookSecret   string `koanf:"gh-webhook-secret"`
	GhReadWriteTeams  string `koanf:"gh-rw-teams"`
	GhReadOnlyTeams   string `koanf:"gh-ro-teams"`
	GhEnterpriseURL   string `koanf:"gh-enterprise-url"`

	OidcClientID          string `koanf:"oidc-client-id"`
	OidcClientSecret      string `koanf:"oidc-client-secret"`
	OidcIssuerURL         string `koanf:"oidc-issuer-url"`
	OidcValidRedirectURLs string `koanf:"oidc-valid-redirect-urls"`
	OidcAdminRoles        string `koanf:"oidc-admin-roles"`
	OidcViewerRoles       string `koanf:"oidc-viewer-roles"`
	OidcRolesPath         string `koanf:"oidc-roles-path"`
	OidcScopes            string `koanf:"oidc-scopes"`
	OidcSessionAuthKey    string `koanf:"oidc-session-secret"`
	OidcSessionCryptKey   string `koanf:"oidc-session-crypt_key"`
	OidcManagementURL     string `koanf:"oidc-management-url"`
	OidcLogutURL          string `koanf:"oidc-logout-url"`
}

func Parse

func Parse() (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL