Documentation ¶
Index ¶
- Constants
- func NewFakeConfig() *config.VirtualClusterConfig
- func NewFakeManager(client *FakeIndexClient) ctrl.Manager
- func NewFakeMapper(gvk schema.GroupVersionKind) synccontext.Mapper
- func NewFakeRESTMapper(scheme *runtime.Scheme) meta.RESTMapper
- type FakeEventRecorder
- type FakeIndexClient
- func (fc *FakeIndexClient) AddMapping(kind schema.GroupVersionKind, scope meta.RESTScope)
- func (fc *FakeIndexClient) AddSpecificMapping(kind schema.GroupVersionKind, plural, singular schema.GroupVersionResource, ...)
- func (fc *FakeIndexClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (fc *FakeIndexClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (fc *FakeIndexClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
- func (fc *FakeIndexClient) Get(ctx context.Context, key client.ObjectKey, obj client.Object, ...) error
- func (fc *FakeIndexClient) IndexField(ctx context.Context, obj client.Object, field string, ...) error
- func (fc *FakeIndexClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
- func (fc *FakeIndexClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (fc *FakeIndexClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Constants ¶
View Source
const ( DefaultTestTargetNamespace = "test" DefaultTestCurrentNamespace = "vcluster" DefaultTestVClusterName = "vcluster" DefaultTestVClusterServiceName = "vcluster" )
Variables ¶
This section is empty.
Functions ¶
func NewFakeConfig ¶ added in v0.21.0
func NewFakeConfig() *config.VirtualClusterConfig
func NewFakeManager ¶ added in v0.21.0
func NewFakeManager(client *FakeIndexClient) ctrl.Manager
func NewFakeMapper ¶
func NewFakeMapper(gvk schema.GroupVersionKind) synccontext.Mapper
func NewFakeRESTMapper ¶ added in v0.21.0
func NewFakeRESTMapper(scheme *runtime.Scheme) meta.RESTMapper
NewFakeRESTMapper creates a new fake mapper
Types ¶
type FakeEventRecorder ¶
type FakeEventRecorder struct { }
func (*FakeEventRecorder) AnnotatedEventf ¶
type FakeIndexClient ¶
func NewFakeClient ¶
func NewFakeClient(scheme *runtime.Scheme, objs ...runtime.Object) *FakeIndexClient
NewFakeClient creates a new fake client for the standard schema
func (*FakeIndexClient) AddMapping ¶ added in v0.21.0
func (fc *FakeIndexClient) AddMapping(kind schema.GroupVersionKind, scope meta.RESTScope)
func (*FakeIndexClient) AddSpecificMapping ¶ added in v0.21.0
func (fc *FakeIndexClient) AddSpecificMapping(kind schema.GroupVersionKind, plural, singular schema.GroupVersionResource, scope meta.RESTScope)
func (*FakeIndexClient) Create ¶
func (fc *FakeIndexClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*FakeIndexClient) Delete ¶
func (fc *FakeIndexClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*FakeIndexClient) DeleteAllOf ¶
func (fc *FakeIndexClient) DeleteAllOf(ctx context.Context, obj client.Object, opts ...client.DeleteAllOfOption) error
func (*FakeIndexClient) IndexField ¶
func (fc *FakeIndexClient) IndexField(ctx context.Context, obj client.Object, field string, extractValue client.IndexerFunc) error
func (*FakeIndexClient) List ¶
func (fc *FakeIndexClient) List(ctx context.Context, list client.ObjectList, opts ...client.ListOption) error
func (*FakeIndexClient) Patch ¶
func (fc *FakeIndexClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, opts ...client.PatchOption) error
func (*FakeIndexClient) Update ¶
func (fc *FakeIndexClient) Update(ctx context.Context, obj client.Object, opts ...client.UpdateOption) error
Click to show internal directories.
Click to hide internal directories.