testing

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSingleClusterInformerManagerByRS added in v1.6.0

func NewSingleClusterInformerManagerByRS(src string, obj runtime.Object) genericmanager.SingleClusterInformerManager

NewSingleClusterInformerManagerByRS will build a fake SingleClusterInformerManager and can add resource.

Types

type MockResponder

type MockResponder struct {
	// contains filtered or unexported fields
}

MockResponder is a mock for `k8s.io/apiserver/pkg/registry/rest/rest.go:292 => Responder interface`

func NewResponder

func NewResponder(response *httptest.ResponseRecorder) *MockResponder

NewResponder creates an instance of MockResponder

func (*MockResponder) Error

func (f *MockResponder) Error(err error)

Error implements Responder interface

func (*MockResponder) Object

func (f *MockResponder) Object(statusCode int, obj runtime.Object)

Object implements Responder interface

Jump to

Keyboard shortcuts

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