redis

package
v0.0.0-...-fa8d9bb Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Name is plugin name
	Name = "redis-scheduler"
)

Variables

This section is empty.

Functions

func New

New new 一个plugin.

Types

type Args

type Args struct {
	// 节点数量
	NodeNum int `json:"node_num,omitempty"`
}

Args 调度器配置说明.

type RedisScheduler

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

func (*RedisScheduler) Filter

func (s *RedisScheduler) Filter(pc *framework.PluginContext, pod *v1.Pod, nodeName string) *framework.Status

func (*RedisScheduler) Name

func (s *RedisScheduler) Name() string

func (*RedisScheduler) PreBind

func (s *RedisScheduler) PreBind(pc *framework.PluginContext, p *v1.Pod, nodeName string) *framework.Status

Jump to

Keyboard shortcuts

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