framework

package
v0.3.23 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCallbackFunc

type CreateCallbackFunc func(runtime.Object)

type DeleteCallbackFunc

type DeleteCallbackFunc func(runtime.Object)

type Environment

type Environment interface {
	RegisterCreateCallback(CreateCallbackFunc)
	RegisterUpdateCallback(UpdateCallbackFunc)
	RegisterDeleteCallback(DeleteCallbackFunc)
	SetBasePath(string)
	Decoder() runtime.Decoder
	DynamicClient() *dynamicfake.FakeDynamicClient
	NewSynchronizer() *Synchronizer
	LoadObjectFromFile(string) runtime.Object
	AddObject(runtime.Object)
	AddObjectFromFile(string)
	AddObjectsFromFiles(...string)
	WithObject(runtime.Object) Environment
	WithObjectFromFile(string) Environment
	WithObjectsFromFiles(...string) Environment
	AssertObject(runtime.Object) error
	AssertObjectFromFile(string) error
	AssertObjectCount(schema.GroupVersionKind, string, string, int) error
	GetObject(schema.GroupVersionKind, string, string) (runtime.Object, error)
	ListObjects(schema.GroupVersionKind, string, string) ([]runtime.Object, error)
	CreateObject(runtime.Object) (runtime.Object, error)
	CreateObjectFromFile(string) (runtime.Object, error)
	UpdateObject(runtime.Object) (runtime.Object, error)
	UpdateObjectFromFile(string) (runtime.Object, error)
	PatchObject(schema.GroupVersionKind, string, string, types.PatchType, []byte) (runtime.Object, error)
	LabelObject(schema.GroupVersionKind, string, string, string, string) (runtime.Object, error)
	UnlabelObject(schema.GroupVersionKind, string, string, string) (runtime.Object, error)
	DeleteObject(schema.GroupVersionKind, string, string) error
	WaitForObject(runtime.Object, ...watchtools.ConditionFunc) (runtime.Object, error)
	WaitForObjectFromFile(string, ...watchtools.ConditionFunc) (runtime.Object, error)
}

func NewEnvironment

func NewEnvironment(groupVersions []*GroupVersion) Environment

type GroupVersion

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

func NewGroupVersion

func NewGroupVersion(addToScheme func(*runtime.Scheme) error, client testing.FakeClient) *GroupVersion

func (*GroupVersion) AddToScheme

func (g *GroupVersion) AddToScheme(scheme *runtime.Scheme) error

func (*GroupVersion) Client

func (g *GroupVersion) Client() testing.FakeClient

type Synchronizer

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

func (*Synchronizer) Init

func (*Synchronizer) WaitUntilSynced

func (s *Synchronizer) WaitUntilSynced()

type UpdateCallbackFunc

type UpdateCallbackFunc func(runtime.Object, runtime.Object)

Jump to

Keyboard shortcuts

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