server

package
v0.0.0-...-4eea7d1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateServer

func CreateServer(defaults *ServerDefaults) (*http.Server, error)

Types

type Configuration

type Configuration struct {
	// ServerDefaults
	DockerImage string
	MaxCPU      string
	MaxMem      string
	PlatformUrl string

	// mandatory
	ContainerPort   string `json:"xliic.com/container-port"`
	ProtectionToken string `json:"xliic.com/protection-token"`
	TargetUrl       string `json:"xliic.com/target-url"`
	ServerName      string `json:"xliic.com/server-name"`

	// mandatory if SSL is enabled
	TlsSecretName string `json:"xliic.com/tls-secret-name"`

	// optional
	HttpOnly           string `json:"xliic.com/http-only"`
	EnvConfigMap       string `json:"xliic.com/env-configmap"`
	Debug              string `json:"xliic.com/debug"`
	LogToVolume        string `json:"xliic.com/log-to-volume"`
	ConfVolume         string `json:"xliic.com/conf-volume"`
	InjectSecretEnvJwk string `json:"xliic.com/inject-secret-env-jwk"`

	// later filled by readConfiguration()
	InjectedSecrets []InjectedSecret
}

type InjectedSecret

type InjectedSecret struct {
	EnvName    string
	SecretName string
	SecretKey  string
}

type ServerDefaults

type ServerDefaults struct {
	MaxMem   string
	MaxCPU   string
	Image    string
	Platform string
}

Jump to

Keyboard shortcuts

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