app

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Types

type StartConfig

type StartConfig struct {
	DatabaseURL string `mapstructure:"database-url" validate:"url"`
	StorageURL  string `mapstructure:"storage-url" validate:"url"`
	Addr        string `mapstructure:"addr" validate:"hostname_port"`

	TLS             bool   `mapstructure:"tls"`
	TLSAddr         string `mapstructure:"tls-addr" validate:"hostname_port"`
	TLSACMEEndpoint string `mapstructure:"tls-acme-endpoint"`
	TLSACMEEmail    string `mapstructure:"tls-acme-email"`
	TLSProtectKey   string `mapstructure:"tls-protect-key"`

	Controller       bool   `mapstructure:"controller"`
	Cron             bool   `mapstructure:"cron"`
	Sites            bool   `mapstructure:"sites"`
	ControllerDomain string `mapstructure:"controller-domain" validate:"omitempty,hostname_rfc1123"`

	StartSitesConfig      `mapstructure:",squash"`
	StartControllerConfig `mapstructure:",squash"`
	StartCronConfig       `mapstructure:",squash"`
}

type StartControllerConfig

type StartControllerConfig struct {
	MaxDeploymentSize string   `mapstructure:"max-deployment-size" validate:"size"`
	StorageKeyPrefix  string   `mapstructure:"storage-key-prefix"`
	TokenSigningKey   string   `mapstructure:"token-signing-key"`
	TokenAuthority    string   `mapstructure:"token-authority"`
	ReservedApps      []string `mapstructure:"reserved-apps"`
	APIACLFile        string   `mapstructure:"api-acl" validate:"omitempty,filepath"`

	CustomDomainMessage string `mapstructure:"custom-domain-message"`
}

type StartCronConfig

type StartCronConfig struct {
	CleanupExpiredCrontab string        `mapstructure:"cleanup-expired-crontab" validate:"omitempty,cron"`
	KeepAfterExpired      time.Duration `mapstructure:"keep-after-expired" validate:"min=0"`
}

type StartSitesConfig

type StartSitesConfig struct {
	HostPattern  string              `mapstructure:"host-pattern"`
	HostIDScheme config.HostIDScheme `mapstructure:"host-id-scheme" validate:"hostidscheme"`
}

Jump to

Keyboard shortcuts

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