discovery

package
v1.12.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDiscoveryInterface

type MockDiscoveryInterface struct {
	mock.Mock
}

MockDiscoveryInterface is an autogenerated mock type for the DiscoveryInterface type

func NewMockDiscoveryInterface

func NewMockDiscoveryInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDiscoveryInterface

NewMockDiscoveryInterface creates a new instance of MockDiscoveryInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockDiscoveryInterface) EXPECT

func (*MockDiscoveryInterface) OpenAPISchema

func (_m *MockDiscoveryInterface) OpenAPISchema() (*openapi_v2.Document, error)

OpenAPISchema provides a mock function with given fields:

func (*MockDiscoveryInterface) OpenAPIV3

func (_m *MockDiscoveryInterface) OpenAPIV3() openapi.Client

OpenAPIV3 provides a mock function with given fields:

func (*MockDiscoveryInterface) RESTClient

func (_m *MockDiscoveryInterface) RESTClient() rest.Interface

RESTClient provides a mock function with given fields:

func (*MockDiscoveryInterface) ServerGroups

func (_m *MockDiscoveryInterface) ServerGroups() (*v1.APIGroupList, error)

ServerGroups provides a mock function with given fields:

func (*MockDiscoveryInterface) ServerGroupsAndResources

func (_m *MockDiscoveryInterface) ServerGroupsAndResources() ([]*v1.APIGroup, []*v1.APIResourceList, error)

ServerGroupsAndResources provides a mock function with given fields:

func (*MockDiscoveryInterface) ServerPreferredNamespacedResources

func (_m *MockDiscoveryInterface) ServerPreferredNamespacedResources() ([]*v1.APIResourceList, error)

ServerPreferredNamespacedResources provides a mock function with given fields:

func (*MockDiscoveryInterface) ServerPreferredResources

func (_m *MockDiscoveryInterface) ServerPreferredResources() ([]*v1.APIResourceList, error)

ServerPreferredResources provides a mock function with given fields:

func (*MockDiscoveryInterface) ServerResourcesForGroupVersion

func (_m *MockDiscoveryInterface) ServerResourcesForGroupVersion(groupVersion string) (*v1.APIResourceList, error)

ServerResourcesForGroupVersion provides a mock function with given fields: groupVersion

func (*MockDiscoveryInterface) ServerVersion

func (_m *MockDiscoveryInterface) ServerVersion() (*version.Info, error)

ServerVersion provides a mock function with given fields:

func (*MockDiscoveryInterface) WithLegacy

WithLegacy provides a mock function with given fields:

type MockDiscoveryInterface_Expecter

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

func (*MockDiscoveryInterface_Expecter) OpenAPISchema

OpenAPISchema is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) OpenAPIV3

OpenAPIV3 is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) RESTClient

RESTClient is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) ServerGroups

ServerGroups is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) ServerGroupsAndResources

ServerGroupsAndResources is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) ServerPreferredNamespacedResources

ServerPreferredNamespacedResources is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) ServerPreferredResources

ServerPreferredResources is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) ServerResourcesForGroupVersion

func (_e *MockDiscoveryInterface_Expecter) ServerResourcesForGroupVersion(groupVersion interface{}) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call

ServerResourcesForGroupVersion is a helper method to define mock.On call

  • groupVersion string

func (*MockDiscoveryInterface_Expecter) ServerVersion

ServerVersion is a helper method to define mock.On call

func (*MockDiscoveryInterface_Expecter) WithLegacy

WithLegacy is a helper method to define mock.On call

type MockDiscoveryInterface_OpenAPISchema_Call

type MockDiscoveryInterface_OpenAPISchema_Call struct {
	*mock.Call
}

MockDiscoveryInterface_OpenAPISchema_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenAPISchema'

func (*MockDiscoveryInterface_OpenAPISchema_Call) Return

func (*MockDiscoveryInterface_OpenAPISchema_Call) Run

func (*MockDiscoveryInterface_OpenAPISchema_Call) RunAndReturn

type MockDiscoveryInterface_OpenAPIV3_Call

type MockDiscoveryInterface_OpenAPIV3_Call struct {
	*mock.Call
}

MockDiscoveryInterface_OpenAPIV3_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenAPIV3'

func (*MockDiscoveryInterface_OpenAPIV3_Call) Return

func (*MockDiscoveryInterface_OpenAPIV3_Call) Run

func (*MockDiscoveryInterface_OpenAPIV3_Call) RunAndReturn

type MockDiscoveryInterface_RESTClient_Call

type MockDiscoveryInterface_RESTClient_Call struct {
	*mock.Call
}

MockDiscoveryInterface_RESTClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RESTClient'

func (*MockDiscoveryInterface_RESTClient_Call) Return

func (*MockDiscoveryInterface_RESTClient_Call) Run

func (*MockDiscoveryInterface_RESTClient_Call) RunAndReturn

type MockDiscoveryInterface_ServerGroupsAndResources_Call

type MockDiscoveryInterface_ServerGroupsAndResources_Call struct {
	*mock.Call
}

MockDiscoveryInterface_ServerGroupsAndResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerGroupsAndResources'

func (*MockDiscoveryInterface_ServerGroupsAndResources_Call) Return

func (*MockDiscoveryInterface_ServerGroupsAndResources_Call) Run

func (*MockDiscoveryInterface_ServerGroupsAndResources_Call) RunAndReturn

type MockDiscoveryInterface_ServerGroups_Call

type MockDiscoveryInterface_ServerGroups_Call struct {
	*mock.Call
}

MockDiscoveryInterface_ServerGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerGroups'

func (*MockDiscoveryInterface_ServerGroups_Call) Return

func (*MockDiscoveryInterface_ServerGroups_Call) Run

func (*MockDiscoveryInterface_ServerGroups_Call) RunAndReturn

type MockDiscoveryInterface_ServerPreferredNamespacedResources_Call

type MockDiscoveryInterface_ServerPreferredNamespacedResources_Call struct {
	*mock.Call
}

MockDiscoveryInterface_ServerPreferredNamespacedResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerPreferredNamespacedResources'

func (*MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) Return

func (*MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) Run

func (*MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) RunAndReturn

type MockDiscoveryInterface_ServerPreferredResources_Call

type MockDiscoveryInterface_ServerPreferredResources_Call struct {
	*mock.Call
}

MockDiscoveryInterface_ServerPreferredResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerPreferredResources'

func (*MockDiscoveryInterface_ServerPreferredResources_Call) Return

func (*MockDiscoveryInterface_ServerPreferredResources_Call) Run

func (*MockDiscoveryInterface_ServerPreferredResources_Call) RunAndReturn

type MockDiscoveryInterface_ServerResourcesForGroupVersion_Call

type MockDiscoveryInterface_ServerResourcesForGroupVersion_Call struct {
	*mock.Call
}

MockDiscoveryInterface_ServerResourcesForGroupVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerResourcesForGroupVersion'

func (*MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) Return

func (*MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) Run

func (*MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) RunAndReturn

type MockDiscoveryInterface_ServerVersion_Call

type MockDiscoveryInterface_ServerVersion_Call struct {
	*mock.Call
}

MockDiscoveryInterface_ServerVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerVersion'

func (*MockDiscoveryInterface_ServerVersion_Call) Return

func (*MockDiscoveryInterface_ServerVersion_Call) Run

func (*MockDiscoveryInterface_ServerVersion_Call) RunAndReturn

type MockDiscoveryInterface_WithLegacy_Call

type MockDiscoveryInterface_WithLegacy_Call struct {
	*mock.Call
}

MockDiscoveryInterface_WithLegacy_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithLegacy'

func (*MockDiscoveryInterface_WithLegacy_Call) Return

func (*MockDiscoveryInterface_WithLegacy_Call) Run

func (*MockDiscoveryInterface_WithLegacy_Call) RunAndReturn

Jump to

Keyboard shortcuts

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