kubelet

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeKubelet

type FakeKubelet struct {
	PodJSON []byte
	// contains filtered or unexported fields
}

FakeKubelet is a mock of the ingest server. Holds all of the received datapoints for later inspection

func NewFakeKubelet

func NewFakeKubelet() *FakeKubelet

NewFakeKubelet creates a new instance of FakeKubelet but does not start the server

func (*FakeKubelet) Close

func (f *FakeKubelet) Close()

Close stops the mock HTTP server

func (*FakeKubelet) ServeHTTP

func (f *FakeKubelet) ServeHTTP(rw http.ResponseWriter, r *http.Request)

ServeHTTP handles a single request

func (*FakeKubelet) Start

func (f *FakeKubelet) Start()

Start creates and starts the mock HTTP server

func (*FakeKubelet) URL

func (f *FakeKubelet) URL() *url.URL

URL is the of the mock server to point your objects under test to

Jump to

Keyboard shortcuts

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