configuration

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertLevel added in v0.16.2

type AlertLevel string

Alert level enum values correspond to the severity levels of the MUI Alert component: https://mui.com/material-ui/react-alert/#severity

const (
	AlertLevelSuccess AlertLevel = "success"
	AlertLevelInfo    AlertLevel = "info"
	AlertLevelWarning AlertLevel = "warning"
	AlertLevelError   AlertLevel = "error"
)

type CommandSpec added in v0.4.15

type CommandSpec struct {
	// Name is the title of the command
	Name string
	// Tempate is the template string for the command
	Template string
	// DescriptionMd is an optional description for the command in Markdown
	DescriptionMd string
	// AlertMessageMd is an optional message for the command, to be displayed as
	// an alert, written in Markdown
	AlertMessageMd string
	// AlertLevel is the severity level of the alert
	AlertLevel AlertLevel
}

CommandSpec details a command to be displayed on a job's "Commands" sidebar tab in the Lookout UI

type LookoutV2Config added in v0.3.100

type LookoutV2Config struct {
	ApiPort     int
	Profiling   *profilingconfig.ProfilingConfig
	MetricsPort int

	CorsAllowedOrigins []string
	Tls                TlsConfig

	Postgres configuration.PostgresConfig

	PrunerConfig PrunerConfig

	UIConfig
}

func (LookoutV2Config) Validate added in v0.12.1

func (c LookoutV2Config) Validate() error

type PrunerConfig added in v0.3.49

type PrunerConfig struct {
	ExpireAfter              time.Duration
	DeduplicationExpireAfter time.Duration
	Timeout                  time.Duration
	BatchSize                int
	Postgres                 configuration.PostgresConfig
}

type TlsConfig added in v0.3.93

type TlsConfig struct {
	Enabled  bool
	KeyPath  string
	CertPath string
}

type UIConfig added in v0.3.100

type UIConfig struct {
	CustomTitle string

	// We have a separate flag here (instead of making the Oidc field optional)
	// so that clients can override the server's preference.
	OidcEnabled bool
	Oidc        struct {
		Authority string
		ClientId  string
		Scope     string
	}

	ArmadaApiBaseUrl         string
	UserAnnotationPrefix     string
	BinocularsBaseUrlPattern string

	JobSetsAutoRefreshMs int `json:",omitempty"`
	JobsAutoRefreshMs    int `json:",omitempty"`
	CommandSpecs         []CommandSpec

	Backend string `json:",omitempty"`
}

Jump to

Keyboard shortcuts

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