testing

package
v0.0.0-...-9f1a7a8 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientWrapper

type ClientWrapper struct {
	*fake.Clientset
	ClusterInterface
}

func (*ClientWrapper) CoreV1

func (c *ClientWrapper) CoreV1() v1core.CoreV1Interface

type ClusterInterface

type ClusterInterface interface {
	CoreV1() v1core.CoreV1Interface
	RestConfig() *rest.Config
	Namespace() string
	GetCluster() *cluster.Cluster
}

type KubeMock

type KubeMock struct {
	Stream  map[string]StreamResult
	LogHook func(w io.Writer, r *http.Request)
	// contains filtered or unexported fields
}

func NewKubeMock

func NewKubeMock(cluster *ClientWrapper, p provision.Provisioner) *KubeMock

func (*KubeMock) CreateDeployReadyServer

func (s *KubeMock) CreateDeployReadyServer(c *check.C) (*httptest.Server, *sync.WaitGroup)

func (*KubeMock) DefaultReactions

func (s *KubeMock) DefaultReactions(c *check.C) (*provisiontest.FakeApp, func(), func())

func (*KubeMock) DeploymentReactions

func (s *KubeMock) DeploymentReactions(c *check.C) func()

func (*KubeMock) MockfakeNodes

func (s *KubeMock) MockfakeNodes(c *check.C, urls ...string)

type StreamResult

type StreamResult struct {
	Stdin  string
	Resize string
	Urls   []url.URL
}

Jump to

Keyboard shortcuts

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