Documentation ¶
Index ¶
- Constants
- Variables
- func GetScheme() *runtime.Scheme
- func NewHco() *hcov1beta1.HyperConverged
- func NewNodePlacement() *sdkapi.NodePlacement
- func NewOtherNodePlacement() *sdkapi.NodePlacement
- func NewReq(inst *hcov1beta1.HyperConverged) *common.HcoRequest
- type EventEmitterMock
- func (eem EventEmitterMock) CheckEvents(expectedEvents []MockEvent) bool
- func (eem *EventEmitterMock) EmitEvent(_ runtime.Object, eventType, reason, msg string)
- func (EventEmitterMock) Init(_ context.Context, _ manager.Manager, _ hcoutil.ClusterInfo, _ logr.Logger)
- func (eem *EventEmitterMock) Reset()
- func (EventEmitterMock) UpdateClient(_ context.Context, _ client.Reader, _ logr.Logger)
- type FakeReadErrorGenerator
- type FakeWriteErrorGenerator
- type HcoTestClient
- func (c *HcoTestClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *HcoTestClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *HcoTestClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (c *HcoTestClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object) error
- func (c *HcoTestClient) InitiateCreateErrors(f FakeWriteErrorGenerator)
- func (c *HcoTestClient) InitiateDeleteErrors(f FakeWriteErrorGenerator)
- func (c *HcoTestClient) InitiateGetErrors(f FakeReadErrorGenerator)
- func (c *HcoTestClient) InitiateUpdateErrors(f FakeWriteErrorGenerator)
- func (c *HcoTestClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (c *HcoTestClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *HcoTestClient) RESTMapper() meta.RESTMapper
- func (c *HcoTestClient) Scheme() *runtime.Scheme
- func (c *HcoTestClient) Status() client.StatusWriter
- func (c *HcoTestClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
- type HcoTestStatusWriter
- type MockEvent
- type TestErrors
Constants ¶
View Source
const ( Name = "kubevirt-hyperconverged" Namespace = "kubevirt-hyperconverged" ConversionImage = "quay.io/kubevirt/kubevirt-v2v-conversion:v2.0.0" VmwareImage = "quay.io/kubevirt/kubevirt-vmware:v2.0.0" )
Name and Namespace of our primary resource
Variables ¶
Functions ¶
func NewHco ¶
func NewHco() *hcov1beta1.HyperConverged
func NewNodePlacement ¶
func NewNodePlacement() *sdkapi.NodePlacement
func NewOtherNodePlacement ¶
func NewOtherNodePlacement() *sdkapi.NodePlacement
func NewReq ¶
func NewReq(inst *hcov1beta1.HyperConverged) *common.HcoRequest
Types ¶
type EventEmitterMock ¶
type EventEmitterMock struct {
// contains filtered or unexported fields
}
func NewEventEmitterMock ¶ added in v1.4.0
func NewEventEmitterMock() *EventEmitterMock
func (EventEmitterMock) CheckEvents ¶ added in v1.4.0
func (eem EventEmitterMock) CheckEvents(expectedEvents []MockEvent) bool
func (*EventEmitterMock) EmitEvent ¶
func (eem *EventEmitterMock) EmitEvent(_ runtime.Object, eventType, reason, msg string)
func (EventEmitterMock) Init ¶
func (EventEmitterMock) Init(_ context.Context, _ manager.Manager, _ hcoutil.ClusterInfo, _ logr.Logger)
func (*EventEmitterMock) Reset ¶ added in v1.4.0
func (eem *EventEmitterMock) Reset()
func (EventEmitterMock) UpdateClient ¶
type FakeReadErrorGenerator ¶ added in v1.4.0
type FakeWriteErrorGenerator ¶ added in v1.4.0
type HcoTestClient ¶
type HcoTestClient struct {
// contains filtered or unexported fields
}
func InitClient ¶
func InitClient(clientObjects []runtime.Object) *HcoTestClient
func (*HcoTestClient) Create ¶
func (c *HcoTestClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*HcoTestClient) Delete ¶
func (c *HcoTestClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*HcoTestClient) DeleteAllOf ¶
func (c *HcoTestClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (*HcoTestClient) InitiateCreateErrors ¶ added in v1.4.0
func (c *HcoTestClient) InitiateCreateErrors(f FakeWriteErrorGenerator)
func (*HcoTestClient) InitiateDeleteErrors ¶ added in v1.4.0
func (c *HcoTestClient) InitiateDeleteErrors(f FakeWriteErrorGenerator)
func (*HcoTestClient) InitiateGetErrors ¶ added in v1.4.0
func (c *HcoTestClient) InitiateGetErrors(f FakeReadErrorGenerator)
func (*HcoTestClient) InitiateUpdateErrors ¶ added in v1.4.0
func (c *HcoTestClient) InitiateUpdateErrors(f FakeWriteErrorGenerator)
func (*HcoTestClient) List ¶
func (c *HcoTestClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*HcoTestClient) Patch ¶
func (c *HcoTestClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*HcoTestClient) RESTMapper ¶ added in v1.4.0
func (c *HcoTestClient) RESTMapper() meta.RESTMapper
func (*HcoTestClient) Scheme ¶ added in v1.4.0
func (c *HcoTestClient) Scheme() *runtime.Scheme
func (*HcoTestClient) Status ¶
func (c *HcoTestClient) Status() client.StatusWriter
func (*HcoTestClient) Update ¶
func (c *HcoTestClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type HcoTestStatusWriter ¶
type HcoTestStatusWriter struct {
// contains filtered or unexported fields
}
func (*HcoTestStatusWriter) InitiateErrors ¶
func (sw *HcoTestStatusWriter) InitiateErrors(errs ...error)
func (*HcoTestStatusWriter) Patch ¶
func (sw *HcoTestStatusWriter) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*HcoTestStatusWriter) Update ¶
func (sw *HcoTestStatusWriter) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
type TestErrors ¶
type TestErrors []error
func (*TestErrors) GetNextError ¶
func (errs *TestErrors) GetNextError() (bool, error)
Click to show internal directories.
Click to hide internal directories.