api

package
v0.1.0-rc.20 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthChecker

func NewHealthChecker() grpchealth.Checker

Types

type Server

type Server interface {
	Serve(ctx context.Context, l net.Listener, localMode bool) error
}

func NewServer

func NewServer(kc client.Client, cfg ServerConfig) (Server, error)

type ServerConfig

type ServerConfig struct {
	StandardConfig
	OIDCConfig     *oidc.Config
	AdminConfig    *handler.AdminConfig
	DexProxyConfig *dex.ProxyConfig
}

func ServerConfigFromEnv

func ServerConfigFromEnv() ServerConfig

type StandardConfig

type StandardConfig struct {
	GracefulShutdownTimeout time.Duration `envconfig:"GRACEFUL_SHUTDOWN_TIMEOUT" default:"30s"`
	UIDirectory             string        `envconfig:"UI_DIR" default:"./ui/build"`
}

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

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