fake

package
v1.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	InjectF                       func(msg model.Message)
	InsertOrUpdateObjF            func(ctx context.Context, obj runtime.Object) error
	DeleteObjF                    func(ctx context.Context, obj runtime.Object) error
	InsertOrUpdatePassThroughObjF func(ctx context.Context, obj []byte, key string) error
	GetPassThroughObjF            func(ctx context.Context, key string) ([]byte, error)
	GetRevisionF                  func() uint64
	SetRevisionF                  func(version interface{})
	ListF                         func(ctx context.Context, key string) (imitator.Resp, error)
	GetF                          func(ctx context.Context, key string) (imitator.Resp, error)
	WatchF                        func(ctx context.Context, key string, ResourceVersion uint64) <-chan watch.Event
}

Client fake

func (Client) DeleteObj

func (c Client) DeleteObj(ctx context.Context, obj runtime.Object) error

DeleteObj fake

func (Client) Get

func (c Client) Get(ctx context.Context, key string) (imitator.Resp, error)

Get fake

func (Client) GetPassThroughObj

func (c Client) GetPassThroughObj(ctx context.Context, key string) ([]byte, error)

GetPassThroughObj fake

func (Client) GetRevision

func (c Client) GetRevision() uint64

GetRevision fake

func (Client) Inject

func (c Client) Inject(msg model.Message)

Inject fake

func (Client) InsertOrUpdateObj

func (c Client) InsertOrUpdateObj(ctx context.Context, obj runtime.Object) error

InsertOrUpdateObj fake

func (Client) InsertOrUpdatePassThroughObj

func (c Client) InsertOrUpdatePassThroughObj(ctx context.Context, obj []byte, key string) error

InsertOrUpdatePassThroughObj fake

func (Client) List

func (c Client) List(ctx context.Context, key string) (imitator.Resp, error)

List fake

func (Client) SetRevision

func (c Client) SetRevision(version interface{})

SetRevision fake

func (Client) Watch

func (c Client) Watch(ctx context.Context, key string, ResourceVersion uint64) <-chan watch.Event

Watch fake

Jump to

Keyboard shortcuts

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