cmd

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAuthRouteMap

func CreateAuthRouteMap(baseHref string) authz.RouteMap

CreateAuthRouteMap creates the route map for authorization. The key is a combination of the HTTP method and the path along with the baseHref. For example, "GET:/api/v1/namespaces" becomes "GET:/baseHref/api/v1/namespaces". The value is a RouteInfo object.

func NewServer

func NewServer(opts ServerOptions) *server

func UrlRewrite

func UrlRewrite(r *gin.Engine) gin.HandlerFunc

Types

type ServerOptions

type ServerOptions struct {
	Insecure           bool
	Port               int
	Namespaced         bool
	ManagedNamespace   string
	BaseHref           string
	DisableAuth        bool
	DexServerAddr      string
	ServerAddr         string
	CorsAllowedOrigins string
	ReadOnly           bool
}

Jump to

Keyboard shortcuts

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