routes

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Routes

func Routes(ctx context.Context, r *gin.Engine, sysInfo SystemInfo, authInfo AuthInfo, baseHref string, authRouteMap authz.RouteMap)

Types

type AuthInfo added in v1.0.0

type AuthInfo struct {
	DisableAuth   bool   `json:"disableAuth"`
	DexServerAddr string `json:"dexServerAddr"`
	ServerAddr    string `json:"serverAddr"`
}

type SystemInfo added in v0.7.3

type SystemInfo struct {
	ManagedNamespace     string `json:"managedNamespace"`
	Namespaced           bool   `json:"namespaced"`
	IsReadOnly           bool   `json:"isReadOnly"`
	DisableMetricsCharts bool   `json:"disableMetricsCharts"`
	Version              string `json:"version"`
	DaemonClientProtocol string `json:"daemonClientProtocol"`
}

Jump to

Keyboard shortcuts

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