test

package
v0.0.0-...-a692f2c Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ProviderName = "test"

ProviderName is the name of this provider

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudProvider

type CloudProvider struct {
	sync.Mutex

	DeletedNodes []*kubernetes.Node
}

CloudProvider is a dummy cloud provider to be used in tests

func NewTestCloudProvider

func NewTestCloudProvider() *CloudProvider

NewTestCloudProvider instantiates a new CloudProvider

func (*CloudProvider) Delete

func (t *CloudProvider) Delete(node *kubernetes.Node) error

Delete deletes the specified node

func (*CloudProvider) Name

func (t *CloudProvider) Name() string

Name is the name of that cloud provider

Jump to

Keyboard shortcuts

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