Documentation ¶
Index ¶
- func NewFakeClient(initObjs ...runtime.Object) client.Client
- type FakeClient
- func (c *FakeClient) Discovery() discovery.DiscoveryInterface
- func (c *FakeClient) GetConfig() *rest.Config
- func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)
- func (c *FakeClient) GetScheme() *runtime.Scheme
- func (c *FakeClient) Patch(ctx context.Context, obj controller.Object, patch controller.Patch, ...) error
- func (c *FakeClient) ScalesClient() (scale.ScalesGetter, error)
- type FakeDiscovery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeClient ¶
type FakeClient struct { controller.Client kubernetes.Interface // contains filtered or unexported fields }
FakeClient ---.
func (*FakeClient) Discovery ¶
func (c *FakeClient) Discovery() discovery.DiscoveryInterface
func (*FakeClient) GetConfig ¶
func (c *FakeClient) GetConfig() *rest.Config
func (*FakeClient) GetCurrentNamespace ¶
func (c *FakeClient) GetCurrentNamespace(kubeConfig string) (string, error)
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)
type FakeDiscovery ¶
type FakeDiscovery struct {
discovery.DiscoveryInterface
}
func (*FakeDiscovery) ServerResourcesForGroupVersion ¶
func (f *FakeDiscovery) ServerResourcesForGroupVersion(groupVersion string) (*metav1.APIResourceList, error)
Click to show internal directories.
Click to hide internal directories.