test

package
v3.10.0-0.33.0+incompa... Latest Latest
Warning

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

Go to latest
Published: May 4, 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 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, resource schema.GroupResource) error

func (*FakeLaggedScaler) ScaleSimple

func (t *FakeLaggedScaler) ScaleSimple(namespace, name string, preconditions *kubectl.ScalePrecondition, newSize uint, resource schema.GroupResource) (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, resource schema.GroupResource) error

func (*FakeScaler) ScaleSimple

func (t *FakeScaler) ScaleSimple(namespace, name string, preconditions *kubectl.ScalePrecondition, newSize uint, resource schema.GroupResource) (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