routes

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 16 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)

func V2AuthRouteMap added in v1.9.0

func V2AuthRouteMap(baseHref string) (authz.RouteMap, error)

V2AuthRouteMap derives the authorization metadata from the embedded OpenAPI contract so each declared v2 operation has one source of truth for its policy.

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