controller

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigVersion = 2
View Source
const Unlimited = -1

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(skipCtrl, skipFrontend bool, inCfg *Config) error

func GC

func GC(inCfg *Config) error

func Run

func Run(inCfg *Config) error

Types

type AdminConfig

type AdminConfig struct {
	Secrets []string `cf:"+secret"`
	TouLink string
}

type Config

type Config struct {
	V             int
	Admin         *AdminConfig
	Endpoint      *EndpointConfig
	Email         *EmailConfig
	Influx        *InfluxConfig
	Limits        *LimitsConfig
	Maintenance   *MaintenanceConfig
	Metrics       *MetricsConfig
	Registration  *RegistrationConfig
	ResetPassword *ResetPasswordConfig
	Store         *store.Config
	Ziti          *ZitiConfig
}

func DefaultConfig

func DefaultConfig() *Config

func LoadConfig

func LoadConfig(path string) (*Config, error)

type EmailConfig

type EmailConfig struct {
	Host     string
	Port     int
	Username string
	Password string `cf:"+secret"`
	From     string
}

type EndpointConfig

type EndpointConfig struct {
	Host string
	Port int
}

type InfluxConfig

type InfluxConfig struct {
	Url    string
	Bucket string
	Org    string
	Token  string `cf:"+secret"`
}

type LimitsConfig

type LimitsConfig struct {
	Environments int
	Shares       int
}

type MaintenanceConfig

type MaintenanceConfig struct {
	ResetPassword *ResetPasswordMaintenanceConfig
	Registration  *RegistrationMaintenanceConfig
}

type MetricsConfig

type MetricsConfig struct {
	ServiceName string
}

type RegistrationConfig

type RegistrationConfig struct {
	RegistrationUrlTemplate string
	TokenStrategy           string
}

type RegistrationMaintenanceConfig

type RegistrationMaintenanceConfig struct {
	ExpirationTimeout time.Duration
	CheckFrequency    time.Duration
	BatchLimit        int
}

type ResetPasswordConfig

type ResetPasswordConfig struct {
	ResetUrlTemplate string
}

type ResetPasswordMaintenanceConfig

type ResetPasswordMaintenanceConfig struct {
	ExpirationTimeout time.Duration
	CheckFrequency    time.Duration
	BatchLimit        int
}

type ZitiConfig

type ZitiConfig struct {
	ApiEndpoint string
	Username    string
	Password    string `cf:"+secret"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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