Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discovery ¶
type Discovery struct { MockGetServerVersion GetServerVersion MockGetMapper GetMapper MockRefresh Refresh MockKindsFor KindsFor }
func NewMockDiscovery ¶
func NewMockDiscovery() *Discovery
func (*Discovery) KindsFor ¶
func (m *Discovery) KindsFor(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
type GetMapper ¶
type GetMapper func() (meta.RESTMapper, error)
type GetServerVersion ¶
type KindsFor ¶
type KindsFor func(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error)
func NewMockKindsFor ¶
type Refresh ¶
type Refresh func() (meta.RESTMapper, error)
Click to show internal directories.
Click to hide internal directories.