routers

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 66 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RealClientIPMiddleware

func RealClientIPMiddleware() gin.HandlerFunc

Types

type PluginInfoGetter

type PluginInfoGetter struct {
	base.BaseHandler
}

func (*PluginInfoGetter) ClusterNameOf

func (p *PluginInfoGetter) ClusterNameOf(tenant, project, environment string) (clusterName string)

func (*PluginInfoGetter) NacosInfoOf

func (p *PluginInfoGetter) NacosInfoOf(clusterName string) (addr, username, password string, err error)

func (*PluginInfoGetter) RoundTripperOf

func (p *PluginInfoGetter) RoundTripperOf(clusterName string) (rt http.RoundTripper)

func (*PluginInfoGetter) Username

func (p *PluginInfoGetter) Username(c *gin.Context) string

type Router

type Router struct {
	Opts        *options.Options
	Agents      *agents.ClientSet
	Database    *database.Database
	Argo        *argo.Client
	GitProvider git.Provider
	// contains filtered or unexported fields
}

func (*Router) AddRestAPI added in v1.22.0

func (r *Router) AddRestAPI(ctx context.Context, deps apis.Dependencies) error

func (*Router) Complete

func (r *Router) Complete(ctx context.Context, rediscli *redis.Client) error

nolint: funlen

func (*Router) Run

func (r *Router) Run(ctx context.Context, rediscli *redis.Client) error

Jump to

Keyboard shortcuts

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