Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtenderHandler ¶
type ExtenderHandler struct {
// contains filtered or unexported fields
}
ExtenderHandler is a handler about scheduling.
func NewExtenderHandler ¶
func NewExtenderHandler(s di.ExtenderService) *ExtenderHandler
func (*ExtenderHandler) Bind ¶
func (h *ExtenderHandler) Bind(c echo.Context) error
Bind request the original extender server which is specified by user, and return the response as is.
func (*ExtenderHandler) Filter ¶
func (h *ExtenderHandler) Filter(c echo.Context) error
Filter request the original extender server which is specified by user, and return the response as is.
func (*ExtenderHandler) Preempt ¶
func (h *ExtenderHandler) Preempt(c echo.Context) error
Preempt request the original extender server which is specified by user, and return the response as is.
func (*ExtenderHandler) Prioritize ¶
func (h *ExtenderHandler) Prioritize(c echo.Context) error
Prioritize request the original extender server which is specified by user, and return the response as is.
type ResetHandler ¶
type ResetHandler struct {
// contains filtered or unexported fields
}
ResetHandler is handler for clean up resources and scheduler configuration.
func NewResetHandler ¶
func NewResetHandler(s di.ResetService) *ResetHandler
NewResetHandler initializes ResetHandler.
func (*ResetHandler) Reset ¶
func (h *ResetHandler) Reset(c echo.Context) error
type ResourceWatcherHandler ¶
type ResourceWatcherHandler struct {
// contains filtered or unexported fields
}
ResourceWatcherHandler is a handler for watching the k8s resources in the simulator.
func NewResourceWatcherHandler ¶
func NewResourceWatcherHandler(s di.ResourceWatcherService) *ResourceWatcherHandler
func (*ResourceWatcherHandler) ListWatchResources ¶
func (h *ResourceWatcherHandler) ListWatchResources(c echo.Context) error
ListWatchResources provides resource updates using `server-sent events`.
type ResourcesForLoad ¶ added in v0.1.1
type ResourcesForLoad struct { Pods []v1.PodApplyConfiguration `json:"pods"` Nodes []v1.NodeApplyConfiguration `json:"nodes"` Pvs []v1.PersistentVolumeApplyConfiguration `json:"pvs"` Pvcs []v1.PersistentVolumeClaimApplyConfiguration `json:"pvcs"` StorageClasses []confstoragev1.StorageClassApplyConfiguration `json:"storageClasses"` PriorityClasses []schedulingcfgv1.PriorityClassApplyConfiguration `json:"priorityClasses"` SchedulerConfig *configv1.KubeSchedulerConfiguration `json:"schedulerConfig"` Namespaces []v1.NamespaceApplyConfiguration `json:"namespaces"` }
type SchedulerConfigHandler ¶
type SchedulerConfigHandler struct {
// contains filtered or unexported fields
}
SchedulerConfigHandler is handler for manage scheduler config.
func NewSchedulerConfigHandler ¶
func NewSchedulerConfigHandler(s di.SchedulerService) *SchedulerConfigHandler
func (*SchedulerConfigHandler) ApplySchedulerConfig ¶
func (h *SchedulerConfigHandler) ApplySchedulerConfig(c echo.Context) error
ApplySchedulerConfig currently only takes profiles from the posted payload and applies them.
func (*SchedulerConfigHandler) GetSchedulerConfig ¶
func (h *SchedulerConfigHandler) GetSchedulerConfig(c echo.Context) error
type SnapshotHandler ¶ added in v0.1.1
type SnapshotHandler struct {
// contains filtered or unexported fields
}
func NewSnapshotHandler ¶ added in v0.1.1
func NewSnapshotHandler(s di.SnapshotService) *SnapshotHandler
func (*SnapshotHandler) Load ¶ added in v0.1.1
func (h *SnapshotHandler) Load(c echo.Context) error
func (*SnapshotHandler) Snap ¶ added in v0.1.1
func (h *SnapshotHandler) Snap(c echo.Context) error