test

package
v0.0.0-...-5f1e80b Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 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(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
	UpdateStatusFunc    func(ctx context.Context, obj runtime.Object) 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
	// 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) Update

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

func (*MockPlatformService) UpdateStatus

func (service *MockPlatformService) UpdateStatus(ctx context.Context, obj runtime.Object) 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
y or Y : Canonical URL