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) 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
Click to show internal directories.
Click to hide internal directories.