callback

package
v1.0.0-2 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncRMCallback

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

RM callback is called from the scheduler core, we need to ensure the response is handled asynchronously to avoid blocking the scheduler.

func NewAsyncRMCallback

func NewAsyncRMCallback(ctx *cache.Context) *AsyncRMCallback

func (*AsyncRMCallback) Predicates

func (callback *AsyncRMCallback) Predicates(args *si.PredicatesArgs) error

func (*AsyncRMCallback) SendEvent

func (callback *AsyncRMCallback) SendEvent(eventRecords []*si.EventRecord)

func (*AsyncRMCallback) UpdateAllocation

func (callback *AsyncRMCallback) UpdateAllocation(response *si.AllocationResponse) error

func (*AsyncRMCallback) UpdateApplication

func (callback *AsyncRMCallback) UpdateApplication(response *si.ApplicationResponse) error

func (*AsyncRMCallback) UpdateConfiguration

func (callback *AsyncRMCallback) UpdateConfiguration(args *si.UpdateConfigurationRequest) *si.UpdateConfigurationResponse

func (*AsyncRMCallback) UpdateContainerSchedulingState

func (callback *AsyncRMCallback) UpdateContainerSchedulingState(request *si.UpdateContainerSchedulingStateRequest)

func (*AsyncRMCallback) UpdateNode

func (callback *AsyncRMCallback) UpdateNode(response *si.NodeResponse) error

Jump to

Keyboard shortcuts

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