test

package
Version: v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 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 runtime.Object, opts ...clientv1.CreateOption) error
	DeleteFunc          func(ctx context.Context, obj runtime.Object, opts ...clientv1.DeleteOption) error
	GetFunc             func(ctx context.Context, key clientv1.ObjectKey, obj runtime.Object) error
	ListFunc            func(ctx context.Context, list runtime.Object, opts ...clientv1.ListOption) error
	UpdateFunc          func(ctx context.Context, obj runtime.Object, opts ...clientv1.UpdateOption) error
	PatchFunc           func(ctx context.Context, obj runtime.Object, patch clientv1.Patch, opts ...clientv1.PatchOption) error
	DeleteAllOfFunc     func(ctx context.Context, obj runtime.Object, opts ...clientv1.DeleteAllOfOption) error
	GetCachedFunc       func(ctx context.Context, key clientv1.ObjectKey, obj runtime.Object) error
	ImageStreamTagsFunc func(namespace string) imagev1.ImageStreamTagInterface
	GetSchemeFunc       func() *runtime.Scheme
	StatusFunc          func() clientv1.StatusWriter
	// contains filtered or unexported fields
}

func (*MockPlatformService) Create

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

func (*MockPlatformService) Delete

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

func (*MockPlatformService) DeleteAllOf

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

func (*MockPlatformService) Get

func (*MockPlatformService) GetCached

func (service *MockPlatformService) GetCached(ctx context.Context, key clientv1.ObjectKey, obj runtime.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 runtime.Object, opts ...clientv1.ListOption) error

func (*MockPlatformService) Patch

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

func (*MockPlatformService) Status added in v1.4.5

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

func (*MockPlatformService) Update

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

type MockPlatformServiceBuilder

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

func NewMockPlatformServiceBuilder

func NewMockPlatformServiceBuilder(schemeBuilder runtime.SchemeBuilder) *MockPlatformServiceBuilder

func (*MockPlatformServiceBuilder) Build

func (*MockPlatformServiceBuilder) WithExtraScheme

func (builder *MockPlatformServiceBuilder) WithExtraScheme(objs ...runtime.Object)

func (*MockPlatformServiceBuilder) WithScheme

func (builder *MockPlatformServiceBuilder) WithScheme(objs ...runtime.Object)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL