Documentation ¶
Index ¶
- type MockImageStreamTag
- func (mock *MockImageStreamTag) Create(ctx context.Context, tag *imagev1.ImageStreamTag, ...) (*imagev1.ImageStreamTag, error)
- func (mock *MockImageStreamTag) Delete(ctx context.Context, name string, options meta_v1.DeleteOptions) error
- func (mock *MockImageStreamTag) Get(ctx context.Context, name string, options meta_v1.GetOptions) (*imagev1.ImageStreamTag, error)
- func (mock *MockImageStreamTag) List(ctx context.Context, opts meta_v1.ListOptions) (*imagev1.ImageStreamTagList, error)
- func (mock *MockImageStreamTag) Update(ctx context.Context, tag *imagev1.ImageStreamTag, ...) (*imagev1.ImageStreamTag, error)
- type MockPlatformService
- func (service *MockPlatformService) Create(ctx context.Context, obj clientv1.Object, opts ...clientv1.CreateOption) error
- func (service *MockPlatformService) Delete(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteOption) error
- func (service *MockPlatformService) DeleteAllOf(ctx context.Context, obj clientv1.Object, opts ...clientv1.DeleteAllOfOption) error
- func (service *MockPlatformService) Get(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error
- func (service *MockPlatformService) GetCached(ctx context.Context, key clientv1.ObjectKey, obj clientv1.Object) error
- func (service *MockPlatformService) GetScheme() *runtime.Scheme
- func (service *MockPlatformService) ImageStreamTags(namespace string) imagev1.ImageStreamTagInterface
- func (service *MockPlatformService) IsMockService() bool
- func (service *MockPlatformService) List(ctx context.Context, list clientv1.ObjectList, opts ...clientv1.ListOption) error
- func (service *MockPlatformService) Patch(ctx context.Context, obj clientv1.Object, patch clientv1.Patch, ...) error
- func (service *MockPlatformService) Status() clientv1.StatusWriter
- func (service *MockPlatformService) Update(ctx context.Context, obj clientv1.Object, opts ...clientv1.UpdateOption) error
- type MockPlatformServiceBuilder
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 (mock *MockImageStreamTag) Create(ctx context.Context, tag *imagev1.ImageStreamTag, options meta_v1.CreateOptions) (*imagev1.ImageStreamTag, error)
func (*MockImageStreamTag) Delete ¶
func (mock *MockImageStreamTag) Delete(ctx context.Context, name string, options meta_v1.DeleteOptions) error
func (*MockImageStreamTag) Get ¶
func (mock *MockImageStreamTag) Get(ctx context.Context, name string, options meta_v1.GetOptions) (*imagev1.ImageStreamTag, error)
func (*MockImageStreamTag) List ¶
func (mock *MockImageStreamTag) List(ctx context.Context, opts meta_v1.ListOptions) (*imagev1.ImageStreamTagList, error)
func (*MockImageStreamTag) Update ¶
func (mock *MockImageStreamTag) Update(ctx context.Context, tag *imagev1.ImageStreamTag, options meta_v1.UpdateOptions) (*imagev1.ImageStreamTag, error)
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 (*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) 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 ¶ added in v1.4.5
func (service *MockPlatformService) Status() clientv1.StatusWriter
func (*MockPlatformService) Update ¶
func (service *MockPlatformService) Update(ctx context.Context, obj clientv1.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 (builder *MockPlatformServiceBuilder) Build() *MockPlatformService
func (*MockPlatformServiceBuilder) WithExtraScheme ¶
func (builder *MockPlatformServiceBuilder) WithExtraScheme(objs ...runtime.Object)
func (*MockPlatformServiceBuilder) WithScheme ¶
func (builder *MockPlatformServiceBuilder) WithScheme(objs ...runtime.Object)
Click to show internal directories.
Click to hide internal directories.