mock

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

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) GetMapper

func (m *Discovery) GetMapper() (meta.RESTMapper, error)

func (*Discovery) GetServerVersion

func (m *Discovery) GetServerVersion() (*version.Info, error)

func (*Discovery) KindsFor

func (*Discovery) Refresh

func (m *Discovery) Refresh() (meta.RESTMapper, error)

type GetMapper

type GetMapper func() (meta.RESTMapper, error)

type GetServerVersion

type GetServerVersion func() (*version.Info, error)

type KindsFor

type KindsFor func(input schema.GroupVersionResource) ([]schema.GroupVersionKind, error)

func NewMockKindsFor

func NewMockKindsFor(kind string, versions ...string) KindsFor

type Refresh

type Refresh func() (meta.RESTMapper, error)

Jump to

Keyboard shortcuts

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