apiserver

package
v0.0.0-...-5b6efc0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const ApiV1Path string = "/api/v1"

Variables

View Source
var BuildTime = "unknown"
View Source
var CommitSHA = "unknown"

Functions

func LogRequestMiddleware

func LogRequestMiddleware(next http.Handler) http.Handler

func NewFlowifyServer

func NewFlowifyServer(k8Client kubernetes.Interface,
	namespace string,
	wfclient argo_workflow.Interface,
	nodeStorage storage.ComponentClient,
	volumeStorage storage.VolumeClient,
	portnumber int,
	sec auth.AuthenticationClient) (flowifyServer, error)

func NewFlowifyServerFromConfig

func NewFlowifyServerFromConfig(cfg Config) (flowifyServer, error)

func SetCustomHeaders

func SetCustomHeaders(next http.Handler) http.Handler

Types

type Config

type Config struct {
	DbConfig         storage.DbConfig `mapstructure:"db"`
	KubernetesKonfig KubernetesKonfig `mapstructure:"kubernetes"`
	AuthConfig       auth.AuthConfig  `mapstructure:"auth"`

	LogConfig    LogConfig    `mapstructure:"logging"`
	ServerConfig ServerConfig `mapstructure:"server"`
}

func LoadConfigFromPath

func LoadConfigFromPath(path string) (Config, error)

func LoadConfigFromReader

func LoadConfigFromReader(stream io.Reader) (Config, error)

func (Config) Dump

func (cfg Config) Dump(path string) error

func (Config) String

func (cfg Config) String() string

type KubernetesKonfig

type KubernetesKonfig struct {
	KubeConfigPath string `mapstructure:"kubeconfigpath"`
	Namespace      string `mapstructure:"namespace"`
}

type LogConfig

type LogConfig struct {
	LogLevel string `mapstructure:"loglevel"`
}

type ServerConfig

type ServerConfig struct {
	Port int `mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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