Documentation ¶
Index ¶
- type MockDiscoveryInterface
- func (_m *MockDiscoveryInterface) EXPECT() *MockDiscoveryInterface_Expecter
- func (_m *MockDiscoveryInterface) OpenAPISchema() (*openapi_v2.Document, error)
- func (_m *MockDiscoveryInterface) OpenAPIV3() openapi.Client
- func (_m *MockDiscoveryInterface) RESTClient() rest.Interface
- func (_m *MockDiscoveryInterface) ServerGroups() (*v1.APIGroupList, error)
- func (_m *MockDiscoveryInterface) ServerGroupsAndResources() ([]*v1.APIGroup, []*v1.APIResourceList, error)
- func (_m *MockDiscoveryInterface) ServerPreferredNamespacedResources() ([]*v1.APIResourceList, error)
- func (_m *MockDiscoveryInterface) ServerPreferredResources() ([]*v1.APIResourceList, error)
- func (_m *MockDiscoveryInterface) ServerResourcesForGroupVersion(groupVersion string) (*v1.APIResourceList, error)
- func (_m *MockDiscoveryInterface) ServerVersion() (*version.Info, error)
- func (_m *MockDiscoveryInterface) WithLegacy() discovery.DiscoveryInterface
- type MockDiscoveryInterface_Expecter
- func (_e *MockDiscoveryInterface_Expecter) OpenAPISchema() *MockDiscoveryInterface_OpenAPISchema_Call
- func (_e *MockDiscoveryInterface_Expecter) OpenAPIV3() *MockDiscoveryInterface_OpenAPIV3_Call
- func (_e *MockDiscoveryInterface_Expecter) RESTClient() *MockDiscoveryInterface_RESTClient_Call
- func (_e *MockDiscoveryInterface_Expecter) ServerGroups() *MockDiscoveryInterface_ServerGroups_Call
- func (_e *MockDiscoveryInterface_Expecter) ServerGroupsAndResources() *MockDiscoveryInterface_ServerGroupsAndResources_Call
- func (_e *MockDiscoveryInterface_Expecter) ServerPreferredNamespacedResources() *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
- func (_e *MockDiscoveryInterface_Expecter) ServerPreferredResources() *MockDiscoveryInterface_ServerPreferredResources_Call
- func (_e *MockDiscoveryInterface_Expecter) ServerResourcesForGroupVersion(groupVersion interface{}) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
- func (_e *MockDiscoveryInterface_Expecter) ServerVersion() *MockDiscoveryInterface_ServerVersion_Call
- func (_e *MockDiscoveryInterface_Expecter) WithLegacy() *MockDiscoveryInterface_WithLegacy_Call
- type MockDiscoveryInterface_OpenAPISchema_Call
- func (_c *MockDiscoveryInterface_OpenAPISchema_Call) Return(_a0 *openapi_v2.Document, _a1 error) *MockDiscoveryInterface_OpenAPISchema_Call
- func (_c *MockDiscoveryInterface_OpenAPISchema_Call) Run(run func()) *MockDiscoveryInterface_OpenAPISchema_Call
- func (_c *MockDiscoveryInterface_OpenAPISchema_Call) RunAndReturn(run func() (*openapi_v2.Document, error)) *MockDiscoveryInterface_OpenAPISchema_Call
- type MockDiscoveryInterface_OpenAPIV3_Call
- func (_c *MockDiscoveryInterface_OpenAPIV3_Call) Return(_a0 openapi.Client) *MockDiscoveryInterface_OpenAPIV3_Call
- func (_c *MockDiscoveryInterface_OpenAPIV3_Call) Run(run func()) *MockDiscoveryInterface_OpenAPIV3_Call
- func (_c *MockDiscoveryInterface_OpenAPIV3_Call) RunAndReturn(run func() openapi.Client) *MockDiscoveryInterface_OpenAPIV3_Call
- type MockDiscoveryInterface_RESTClient_Call
- func (_c *MockDiscoveryInterface_RESTClient_Call) Return(_a0 rest.Interface) *MockDiscoveryInterface_RESTClient_Call
- func (_c *MockDiscoveryInterface_RESTClient_Call) Run(run func()) *MockDiscoveryInterface_RESTClient_Call
- func (_c *MockDiscoveryInterface_RESTClient_Call) RunAndReturn(run func() rest.Interface) *MockDiscoveryInterface_RESTClient_Call
- type MockDiscoveryInterface_ServerGroupsAndResources_Call
- func (_c *MockDiscoveryInterface_ServerGroupsAndResources_Call) Return(_a0 []*v1.APIGroup, _a1 []*v1.APIResourceList, _a2 error) *MockDiscoveryInterface_ServerGroupsAndResources_Call
- func (_c *MockDiscoveryInterface_ServerGroupsAndResources_Call) Run(run func()) *MockDiscoveryInterface_ServerGroupsAndResources_Call
- func (_c *MockDiscoveryInterface_ServerGroupsAndResources_Call) RunAndReturn(run func() ([]*v1.APIGroup, []*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerGroupsAndResources_Call
- type MockDiscoveryInterface_ServerGroups_Call
- func (_c *MockDiscoveryInterface_ServerGroups_Call) Return(_a0 *v1.APIGroupList, _a1 error) *MockDiscoveryInterface_ServerGroups_Call
- func (_c *MockDiscoveryInterface_ServerGroups_Call) Run(run func()) *MockDiscoveryInterface_ServerGroups_Call
- func (_c *MockDiscoveryInterface_ServerGroups_Call) RunAndReturn(run func() (*v1.APIGroupList, error)) *MockDiscoveryInterface_ServerGroups_Call
- type MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
- func (_c *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) Return(_a0 []*v1.APIResourceList, _a1 error) *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
- func (_c *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) Run(run func()) *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
- func (_c *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) RunAndReturn(run func() ([]*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
- type MockDiscoveryInterface_ServerPreferredResources_Call
- func (_c *MockDiscoveryInterface_ServerPreferredResources_Call) Return(_a0 []*v1.APIResourceList, _a1 error) *MockDiscoveryInterface_ServerPreferredResources_Call
- func (_c *MockDiscoveryInterface_ServerPreferredResources_Call) Run(run func()) *MockDiscoveryInterface_ServerPreferredResources_Call
- func (_c *MockDiscoveryInterface_ServerPreferredResources_Call) RunAndReturn(run func() ([]*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerPreferredResources_Call
- type MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
- func (_c *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) Return(_a0 *v1.APIResourceList, _a1 error) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
- func (_c *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) Run(run func(groupVersion string)) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
- func (_c *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) RunAndReturn(run func(string) (*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
- type MockDiscoveryInterface_ServerVersion_Call
- func (_c *MockDiscoveryInterface_ServerVersion_Call) Return(_a0 *version.Info, _a1 error) *MockDiscoveryInterface_ServerVersion_Call
- func (_c *MockDiscoveryInterface_ServerVersion_Call) Run(run func()) *MockDiscoveryInterface_ServerVersion_Call
- func (_c *MockDiscoveryInterface_ServerVersion_Call) RunAndReturn(run func() (*version.Info, error)) *MockDiscoveryInterface_ServerVersion_Call
- type MockDiscoveryInterface_WithLegacy_Call
- func (_c *MockDiscoveryInterface_WithLegacy_Call) Return(_a0 discovery.DiscoveryInterface) *MockDiscoveryInterface_WithLegacy_Call
- func (_c *MockDiscoveryInterface_WithLegacy_Call) Run(run func()) *MockDiscoveryInterface_WithLegacy_Call
- func (_c *MockDiscoveryInterface_WithLegacy_Call) RunAndReturn(run func() discovery.DiscoveryInterface) *MockDiscoveryInterface_WithLegacy_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDiscoveryInterface ¶
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 (_m *MockDiscoveryInterface) EXPECT() *MockDiscoveryInterface_Expecter
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 ¶
func (_m *MockDiscoveryInterface) WithLegacy() discovery.DiscoveryInterface
WithLegacy provides a mock function with given fields:
type MockDiscoveryInterface_Expecter ¶
type MockDiscoveryInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDiscoveryInterface_Expecter) OpenAPISchema ¶
func (_e *MockDiscoveryInterface_Expecter) OpenAPISchema() *MockDiscoveryInterface_OpenAPISchema_Call
OpenAPISchema is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) OpenAPIV3 ¶
func (_e *MockDiscoveryInterface_Expecter) OpenAPIV3() *MockDiscoveryInterface_OpenAPIV3_Call
OpenAPIV3 is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) RESTClient ¶
func (_e *MockDiscoveryInterface_Expecter) RESTClient() *MockDiscoveryInterface_RESTClient_Call
RESTClient is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) ServerGroups ¶
func (_e *MockDiscoveryInterface_Expecter) ServerGroups() *MockDiscoveryInterface_ServerGroups_Call
ServerGroups is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) ServerGroupsAndResources ¶
func (_e *MockDiscoveryInterface_Expecter) ServerGroupsAndResources() *MockDiscoveryInterface_ServerGroupsAndResources_Call
ServerGroupsAndResources is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) ServerPreferredNamespacedResources ¶
func (_e *MockDiscoveryInterface_Expecter) ServerPreferredNamespacedResources() *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
ServerPreferredNamespacedResources is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) ServerPreferredResources ¶
func (_e *MockDiscoveryInterface_Expecter) ServerPreferredResources() *MockDiscoveryInterface_ServerPreferredResources_Call
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 ¶
func (_e *MockDiscoveryInterface_Expecter) ServerVersion() *MockDiscoveryInterface_ServerVersion_Call
ServerVersion is a helper method to define mock.On call
func (*MockDiscoveryInterface_Expecter) WithLegacy ¶
func (_e *MockDiscoveryInterface_Expecter) WithLegacy() *MockDiscoveryInterface_WithLegacy_Call
WithLegacy is a helper method to define mock.On call
type MockDiscoveryInterface_OpenAPISchema_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 (_c *MockDiscoveryInterface_OpenAPISchema_Call) Return(_a0 *openapi_v2.Document, _a1 error) *MockDiscoveryInterface_OpenAPISchema_Call
func (*MockDiscoveryInterface_OpenAPISchema_Call) Run ¶
func (_c *MockDiscoveryInterface_OpenAPISchema_Call) Run(run func()) *MockDiscoveryInterface_OpenAPISchema_Call
func (*MockDiscoveryInterface_OpenAPISchema_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_OpenAPISchema_Call) RunAndReturn(run func() (*openapi_v2.Document, error)) *MockDiscoveryInterface_OpenAPISchema_Call
type MockDiscoveryInterface_OpenAPIV3_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 (_c *MockDiscoveryInterface_OpenAPIV3_Call) Return(_a0 openapi.Client) *MockDiscoveryInterface_OpenAPIV3_Call
func (*MockDiscoveryInterface_OpenAPIV3_Call) Run ¶
func (_c *MockDiscoveryInterface_OpenAPIV3_Call) Run(run func()) *MockDiscoveryInterface_OpenAPIV3_Call
func (*MockDiscoveryInterface_OpenAPIV3_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_OpenAPIV3_Call) RunAndReturn(run func() openapi.Client) *MockDiscoveryInterface_OpenAPIV3_Call
type MockDiscoveryInterface_RESTClient_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 (_c *MockDiscoveryInterface_RESTClient_Call) Return(_a0 rest.Interface) *MockDiscoveryInterface_RESTClient_Call
func (*MockDiscoveryInterface_RESTClient_Call) Run ¶
func (_c *MockDiscoveryInterface_RESTClient_Call) Run(run func()) *MockDiscoveryInterface_RESTClient_Call
func (*MockDiscoveryInterface_RESTClient_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_RESTClient_Call) RunAndReturn(run func() rest.Interface) *MockDiscoveryInterface_RESTClient_Call
type MockDiscoveryInterface_ServerGroupsAndResources_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 (_c *MockDiscoveryInterface_ServerGroupsAndResources_Call) Return(_a0 []*v1.APIGroup, _a1 []*v1.APIResourceList, _a2 error) *MockDiscoveryInterface_ServerGroupsAndResources_Call
func (*MockDiscoveryInterface_ServerGroupsAndResources_Call) Run ¶
func (_c *MockDiscoveryInterface_ServerGroupsAndResources_Call) Run(run func()) *MockDiscoveryInterface_ServerGroupsAndResources_Call
func (*MockDiscoveryInterface_ServerGroupsAndResources_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_ServerGroupsAndResources_Call) RunAndReturn(run func() ([]*v1.APIGroup, []*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerGroupsAndResources_Call
type MockDiscoveryInterface_ServerGroups_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 (_c *MockDiscoveryInterface_ServerGroups_Call) Return(_a0 *v1.APIGroupList, _a1 error) *MockDiscoveryInterface_ServerGroups_Call
func (*MockDiscoveryInterface_ServerGroups_Call) Run ¶
func (_c *MockDiscoveryInterface_ServerGroups_Call) Run(run func()) *MockDiscoveryInterface_ServerGroups_Call
func (*MockDiscoveryInterface_ServerGroups_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_ServerGroups_Call) RunAndReturn(run func() (*v1.APIGroupList, error)) *MockDiscoveryInterface_ServerGroups_Call
type MockDiscoveryInterface_ServerPreferredNamespacedResources_Call ¶
MockDiscoveryInterface_ServerPreferredNamespacedResources_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerPreferredNamespacedResources'
func (*MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call) RunAndReturn(run func() ([]*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerPreferredNamespacedResources_Call
type MockDiscoveryInterface_ServerPreferredResources_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 (_c *MockDiscoveryInterface_ServerPreferredResources_Call) Return(_a0 []*v1.APIResourceList, _a1 error) *MockDiscoveryInterface_ServerPreferredResources_Call
func (*MockDiscoveryInterface_ServerPreferredResources_Call) Run ¶
func (_c *MockDiscoveryInterface_ServerPreferredResources_Call) Run(run func()) *MockDiscoveryInterface_ServerPreferredResources_Call
func (*MockDiscoveryInterface_ServerPreferredResources_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_ServerPreferredResources_Call) RunAndReturn(run func() ([]*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerPreferredResources_Call
type MockDiscoveryInterface_ServerResourcesForGroupVersion_Call ¶
MockDiscoveryInterface_ServerResourcesForGroupVersion_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServerResourcesForGroupVersion'
func (*MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) Run ¶
func (_c *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) Run(run func(groupVersion string)) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
func (*MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call) RunAndReturn(run func(string) (*v1.APIResourceList, error)) *MockDiscoveryInterface_ServerResourcesForGroupVersion_Call
type MockDiscoveryInterface_ServerVersion_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 (_c *MockDiscoveryInterface_ServerVersion_Call) Return(_a0 *version.Info, _a1 error) *MockDiscoveryInterface_ServerVersion_Call
func (*MockDiscoveryInterface_ServerVersion_Call) Run ¶
func (_c *MockDiscoveryInterface_ServerVersion_Call) Run(run func()) *MockDiscoveryInterface_ServerVersion_Call
func (*MockDiscoveryInterface_ServerVersion_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_ServerVersion_Call) RunAndReturn(run func() (*version.Info, error)) *MockDiscoveryInterface_ServerVersion_Call
type MockDiscoveryInterface_WithLegacy_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 (_c *MockDiscoveryInterface_WithLegacy_Call) Return(_a0 discovery.DiscoveryInterface) *MockDiscoveryInterface_WithLegacy_Call
func (*MockDiscoveryInterface_WithLegacy_Call) Run ¶
func (_c *MockDiscoveryInterface_WithLegacy_Call) Run(run func()) *MockDiscoveryInterface_WithLegacy_Call
func (*MockDiscoveryInterface_WithLegacy_Call) RunAndReturn ¶
func (_c *MockDiscoveryInterface_WithLegacy_Call) RunAndReturn(run func() discovery.DiscoveryInterface) *MockDiscoveryInterface_WithLegacy_Call