test

package
v0.0.0-...-d1d8335 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockImageStreamTag

type MockImageStreamTag struct {
	Tags map[string]*imagev1.ImageStreamTag
}

func (*MockImageStreamTag) Create

func (*MockImageStreamTag) Delete

func (mock *MockImageStreamTag) Delete(ctx context.Context, name string, options meta_v1.DeleteOptions) error

func (*MockImageStreamTag) Get

func (*MockImageStreamTag) List

func (*MockImageStreamTag) Update

type MockPlatformService

type MockPlatformService struct {
	Client clientv1.Client

	CreateFunc          func(ctx context.Context, obj clientv1.Object, opts ...clientv1.CreateOption) error
	DeleteFunc          func(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteOption) error
	GetFunc             func(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error
	ListFunc            func(ctx context.Context, list clientv1.ObjectList, opts ...clientv1.ListOption) error
	UpdateFunc          func(ctx context.Context, obj clientv1.Object, opts ...clientv1.UpdateOption) error
	PatchFunc           func(ctx context.Context, obj clientv1.Object, patch clientv1.Patch, opts ...clientv1.PatchOption) error
	DeleteAllOfFunc     func(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error
	GetCachedFunc       func(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error
	ImageStreamTagsFunc func(namespace string) imagev1.ImageStreamTagInterface
	GetSchemeFunc       func() *runtime.Scheme
	StatusFunc          func() clientv1.StatusWriter
	// contains filtered or unexported fields
}

func MockService

func MockService() *MockPlatformService

func MockServiceWithExtraScheme

func MockServiceWithExtraScheme(objs ...runtime.Object) *MockPlatformService

func (*MockPlatformService) Create

func (service *MockPlatformService) Create(ctx context.Context, obj clientv1.Object, opts ...clientv1.CreateOption) error

func (*MockPlatformService) Delete

func (service *MockPlatformService) Delete(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteOption) error

func (*MockPlatformService) DeleteAllOf

func (service *MockPlatformService) DeleteAllOf(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error

func (*MockPlatformService) Get

func (*MockPlatformService) GetCached

func (service *MockPlatformService) GetCached(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error

func (*MockPlatformService) GetScheme

func (service *MockPlatformService) GetScheme() *runtime.Scheme

func (*MockPlatformService) ImageStreamTags

func (service *MockPlatformService) ImageStreamTags(namespace string) imagev1.ImageStreamTagInterface

func (*MockPlatformService) IsMockService

func (service *MockPlatformService) IsMockService() bool

func (*MockPlatformService) List

func (service *MockPlatformService) List(ctx context.Context, list clientv1.ObjectList, opts ...clientv1.ListOption) error

func (*MockPlatformService) Patch

func (service *MockPlatformService) Patch(ctx context.Context, obj clientv1.Object, patch clientv1.Patch, opts ...clientv1.PatchOption) error

func (*MockPlatformService) Status

func (service *MockPlatformService) Status() clientv1.StatusWriter

func (*MockPlatformService) Update

func (service *MockPlatformService) Update(ctx context.Context, obj clientv1.Object, opts ...clientv1.UpdateOption) error

Jump to

Keyboard shortcuts

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