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 (*ConnectionRouter) Get ¶
func (cr *ConnectionRouter) Get(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.