proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Node Node
	Task Task
}

type Filter

type Filter interface {
	Filter(*Args) Status
}

type FilterPlugin

type FilterPlugin struct {
	Impl Filter
}

func (FilterPlugin) Client

func (FilterPlugin) Client(b *plugin.MuxBroker, c *rpc.Client) (interface{}, error)

func (*FilterPlugin) Server

func (n *FilterPlugin) Server(*plugin.MuxBroker) (interface{}, error)

type FilterRPC

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

func (*FilterRPC) Filter

func (n *FilterRPC) Filter(args *Args) Status

type FilterRPCServer

type FilterRPCServer struct {
	Impl Filter
}

func (*FilterRPCServer) Filter

func (n *FilterRPCServer) Filter(args *Args, resp *Status) error

type Node

type Node struct {
	Name          string
	Unschedulable bool
}

type Status

type Status struct {
	Error string
}

type Task

type Task struct {
	NodeName               string
	ToleratesUnschedulable bool
}

Jump to

Keyboard shortcuts

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