test

package
v3.9.0-0.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2017 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 FakeLaggedScaler

type FakeLaggedScaler struct {
	Events     []ScaleEvent
	RetryCount int
}

func (*FakeLaggedScaler) Scale

func (t *FakeLaggedScaler) Scale(namespace, name string, newSize uint, preconditions *kubectl.ScalePrecondition, retry, wait *kubectl.RetryParams) error

func (*FakeLaggedScaler) ScaleSimple

func (t *FakeLaggedScaler) ScaleSimple(namespace, name string, preconditions *kubectl.ScalePrecondition, newSize uint) (string, error)

type FakeScaler

type FakeScaler struct {
	Events []ScaleEvent
}

func (*FakeScaler) Scale

func (t *FakeScaler) Scale(namespace, name string, newSize uint, preconditions *kubectl.ScalePrecondition, retry, wait *kubectl.RetryParams) error

func (*FakeScaler) ScaleSimple

func (t *FakeScaler) ScaleSimple(namespace, name string, preconditions *kubectl.ScalePrecondition, newSize uint) (string, error)

type ScaleEvent

type ScaleEvent struct {
	Name string
	Size uint
}

Jump to

Keyboard shortcuts

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