Documentation ¶
Index ¶
- Constants
- Variables
- func LogRequestMiddleware(next http.Handler) http.Handler
- func NewFlowifyServer(k8Client kubernetes.Interface, namespace string, ...) (flowifyServer, error)
- func NewFlowifyServerFromConfig(cfg Config) (flowifyServer, error)
- func SetCustomHeaders(next http.Handler) http.Handler
- type Config
- type KubernetesKonfig
- type LogConfig
- type ServerConfig
Constants ¶
View Source
const ApiV1Path string = "/api/v1"
Variables ¶
View Source
var BuildTime = "unknown"
View Source
var CommitSHA = "unknown"
Functions ¶
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)
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 ¶
type KubernetesKonfig ¶
type ServerConfig ¶
type ServerConfig struct {
Port int `mapstructure:"port"`
}
Click to show internal directories.
Click to hide internal directories.