weighter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceWeighter

type ServiceWeighter struct {
	Balancer ipvs.Balancer
}

func NewIPVSServiceWeighter

func NewIPVSServiceWeighter() (*ServiceWeighter, error)

func (*ServiceWeighter) SetForPod

func (s *ServiceWeighter) SetForPod(pod corev1.Pod, service corev1.Service, weight int) error

func (*ServiceWeighter) SetScheduler

func (s *ServiceWeighter) SetScheduler(service corev1.Service, scheduler string) error

Jump to

Keyboard shortcuts

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