mock

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	Resources sync.Map

	GVRtoGVK map[schema.GroupVersionResource]schema.GroupVersionKind
}

func NewCluster

func NewCluster(client *fake.FakeDynamicClient, resourcelist ...*metav1.APIResourceList) *Cluster

func (*Cluster) Contains

func (c *Cluster) Contains(id manifest.Id) bool

func (*Cluster) ReactDelete

func (c *Cluster) ReactDelete(action testing.Action) (handled bool, ret runtime.Object, err error)

func (*Cluster) ReactGet

func (c *Cluster) ReactGet(action testing.Action) (handled bool, ret runtime.Object, err error)

func (*Cluster) ReactPatch

func (c *Cluster) ReactPatch(action testing.Action) (handled bool, ret runtime.Object, err error)

type NamedAction

type NamedAction interface {
	testing.Action
	GetName() string
}

Jump to

Keyboard shortcuts

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