router

package
v1.41.8 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const BearerPrefix = "Bearer "
View Source
const JWTTokenCacheDuration = time.Minute * 30
View Source
const JWTTokenCacheSize = 20000

Variables

This section is empty.

Functions

This section is empty.

Types

type AllocatorInfoRouter added in v1.39.1

type AllocatorInfoRouter struct {
	// contains filtered or unexported fields
}

func NewAllocatorInfoRouter added in v1.39.1

func NewAllocatorInfoRouter(
	ctx context.Context,
	allocator *gpuallocator.GpuAllocator,
	scheduler *scheduler.Scheduler,
) (*AllocatorInfoRouter, error)

func (*AllocatorInfoRouter) Get added in v1.39.1

func (r *AllocatorInfoRouter) Get(ctx *gin.Context)

func (*AllocatorInfoRouter) SimulateScheduleOnePod added in v1.39.1

func (r *AllocatorInfoRouter) SimulateScheduleOnePod(ctx *gin.Context)

Simulate the partial logic of schedulingCycle in ScheduleOne() make sure no side effect when simulate scheduling, only run PreFilter/Filter/Score plugins AssumePod, Reserve, bindingCycle has side effect on scheduler, thus not run them Permit plugin can not be run in simulate scheduling, because it's after AssumePod & Reserve stage

type AssignHostPortRouter added in v1.33.4

type AssignHostPortRouter struct {
	// contains filtered or unexported fields
}

func NewAssignHostPortRouter added in v1.33.4

func NewAssignHostPortRouter(ctx context.Context, allocator *portallocator.PortAllocator) (*AssignHostPortRouter, error)

func (*AssignHostPortRouter) AssignHostPort added in v1.33.4

func (r *AssignHostPortRouter) AssignHostPort(ctx *gin.Context)

type ConnectionRouter

type ConnectionRouter struct {
	// contains filtered or unexported fields
}

func NewConnectionRouter

func NewConnectionRouter(ctx context.Context, client client.WithWatch) (*ConnectionRouter, error)

func (*ConnectionRouter) Get

func (cr *ConnectionRouter) Get(ctx *gin.Context)

Jump to

Keyboard shortcuts

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