Documentation
¶
Index ¶
- func NewFakeClient(initObjs ...runtime.Object) (client.Client, error)
- type FakeAuthorization
- type FakeClient
- func (c *FakeClient) AddReactor(verb, resource string, reaction testing.ReactionFunc)
- func (c *FakeClient) AuthorizationV1() authorizationv1.AuthorizationV1Interface
- func (c *FakeClient) CamelV1() camelv1.CamelV1Interface
- func (c *FakeClient) DisableAPIGroupDiscovery(group string)
- func (c *FakeClient) DisableKnativeEventing()
- func (c *FakeClient) DisableKnativeServing()
- func (c *FakeClient) Discovery() discovery.DiscoveryInterface
- func (c *FakeClient) EnableOpenshiftDiscovery()
- func (c *FakeClient) GetConfig() *rest.Config
- func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)
- func (c *FakeClient) GetScheme() *runtime.Scheme
- func (c *FakeClient) Intercept(intercept *interceptor.Funcs)
- func (c *FakeClient) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, ...) error
- func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)
- func (c *FakeClient) ServerOrClientSideApplier() client.ServerOrClientSideApplier
- func (c *FakeClient) Status() controller.SubResourceWriter
- type FakeDiscovery
- type FakeSAR
- type FakeStatusWriter
- func (c *FakeStatusWriter) Create(ctx context.Context, obj controller.Object, subResource controller.Object, ...) error
- func (s *FakeStatusWriter) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, ...) error
- func (c *FakeStatusWriter) Update(ctx context.Context, obj controller.Object, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeAuthorization ¶
type FakeAuthorization struct {
authorizationv1.AuthorizationV1Interface
// contains filtered or unexported fields
}
func (*FakeAuthorization) SelfSubjectRulesReviews ¶
func (f *FakeAuthorization) SelfSubjectRulesReviews() authorizationv1.SelfSubjectRulesReviewInterface
func (*FakeAuthorization) SubjectAccessReviews ¶ added in v2.9.0
func (f *FakeAuthorization) SubjectAccessReviews() authorizationv1.SubjectAccessReviewInterface
Returns a fake SAR interface.
type FakeClient ¶
type FakeClient struct {
controller.Client
kubernetes.Interface
// contains filtered or unexported fields
}
FakeClient ---.
func (*FakeClient) AddReactor ¶
func (c *FakeClient) AddReactor(verb, resource string, reaction testing.ReactionFunc)
func (*FakeClient) AuthorizationV1 ¶
func (c *FakeClient) AuthorizationV1() authorizationv1.AuthorizationV1Interface
func (*FakeClient) CamelV1 ¶
func (c *FakeClient) CamelV1() camelv1.CamelV1Interface
func (*FakeClient) DisableAPIGroupDiscovery ¶
func (c *FakeClient) DisableAPIGroupDiscovery(group string)
func (*FakeClient) DisableKnativeEventing ¶
func (c *FakeClient) DisableKnativeEventing()
func (*FakeClient) DisableKnativeServing ¶
func (c *FakeClient) DisableKnativeServing()
func (*FakeClient) Discovery ¶
func (c *FakeClient) Discovery() discovery.DiscoveryInterface
func (*FakeClient) EnableOpenshiftDiscovery ¶
func (c *FakeClient) EnableOpenshiftDiscovery()
func (*FakeClient) GetConfig ¶
func (c *FakeClient) GetConfig() *rest.Config
func (*FakeClient) GetCurrentNamespace ¶
func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)
func (*FakeClient) Intercept ¶
func (c *FakeClient) Intercept(intercept *interceptor.Funcs)
func (*FakeClient) Patch ¶
func (c *FakeClient) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, opts ...controller.PatchOption) error
Patch mimicks patch for server-side apply and simply creates the obj.
func (*FakeClient) ScalesClient ¶
func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)
func (*FakeClient) ServerOrClientSideApplier ¶
func (c *FakeClient) ServerOrClientSideApplier() client.ServerOrClientSideApplier
func (*FakeClient) Status ¶ added in v2.9.0
func (c *FakeClient) Status() controller.SubResourceWriter
type FakeDiscovery ¶
type FakeDiscovery struct {
discovery.DiscoveryInterface
// contains filtered or unexported fields
}
func (*FakeDiscovery) ServerResourcesForGroupVersion ¶
func (f *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
type FakeSAR ¶ added in v2.9.0
type FakeSAR struct {
authorizationv1.SubjectAccessReviewInterface
}
func (*FakeSAR) Create ¶ added in v2.9.0
func (f *FakeSAR) Create(ctx context.Context, sar *authv1.SubjectAccessReview, opts metav1.CreateOptions) (*authv1.SubjectAccessReview, error)
Fake Create implementation (needed in cross namespace Kamelets test). Only allow `cross-ns-sa` user in `default` namespace.
type FakeStatusWriter ¶ added in v2.9.0
type FakeStatusWriter struct {
// contains filtered or unexported fields
}
func (*FakeStatusWriter) Create ¶ added in v2.9.0
func (c *FakeStatusWriter) Create(ctx context.Context, obj controller.Object, subResource controller.Object, opts ...controller.SubResourceCreateOption) error
func (*FakeStatusWriter) Patch ¶ added in v2.9.0
func (s *FakeStatusWriter) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, opts ...controller.SubResourcePatchOption) error
func (*FakeStatusWriter) Update ¶ added in v2.9.0
func (c *FakeStatusWriter) Update(ctx context.Context, obj controller.Object, opts ...controller.SubResourceUpdateOption) error
Click to show internal directories.
Click to hide internal directories.