fake

package
v0.0.0-...-aa771b6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPodLister

func NewPodLister(pods []*v1.Pod) algorithm.PodLister

NewPodLister creates a fake PodLister

Types

type NodeCache

type NodeCache map[string]string

NodeCache keeps node to host mapping

func (NodeCache) GetHost

func (c NodeCache) GetHost(node string) string

GetHost returns the hostname of a given node

func (NodeCache) GetNodes

func (c NodeCache) GetNodes(host string) []string

GetNodes returns all the nodes running on a given host

Jump to

Keyboard shortcuts

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