Documentation ¶
Index ¶
- type FakeDynamicClient
- type FakeDynamicClusterClient
- func (f *FakeDynamicClusterClient) Cluster(clusterPath logicalcluster.Path) dynamic.NamespaceableResourceInterface
- func (f *FakeDynamicClusterClient) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
- func (f *FakeDynamicClusterClient) Tracker() kcptesting.ObjectTracker
- func (f *FakeDynamicClusterClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeDynamicClusterClientset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeDynamicClient ¶
type FakeDynamicClient struct { *kcptesting.Fake // contains filtered or unexported fields }
func (*FakeDynamicClient) Resource ¶
func (f *FakeDynamicClient) Resource(resource schema.GroupVersionResource) dynamic.NamespaceableResourceInterface
func (*FakeDynamicClient) Tracker ¶
func (f *FakeDynamicClient) Tracker() kcptesting.ScopedObjectTracker
type FakeDynamicClusterClient ¶
type FakeDynamicClusterClient struct { *kcptesting.Fake // contains filtered or unexported fields }
func (*FakeDynamicClusterClient) Cluster ¶
func (f *FakeDynamicClusterClient) Cluster(clusterPath logicalcluster.Path) dynamic.NamespaceableResourceInterface
func (*FakeDynamicClusterClient) List ¶
func (f *FakeDynamicClusterClient) List(ctx context.Context, opts metav1.ListOptions) (*unstructured.UnstructuredList, error)
func (*FakeDynamicClusterClient) Tracker ¶
func (f *FakeDynamicClusterClient) Tracker() kcptesting.ObjectTracker
func (*FakeDynamicClusterClient) Watch ¶
func (f *FakeDynamicClusterClient) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
type FakeDynamicClusterClientset ¶
type FakeDynamicClusterClientset struct { *kcptesting.Fake // contains filtered or unexported fields }
Clientset implements clientset.Interface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the method you want to test easier.
func NewSimpleDynamicClient ¶
func NewSimpleDynamicClient(scheme *runtime.Scheme, objects ...runtime.Object) *FakeDynamicClusterClientset
func NewSimpleDynamicClientWithCustomListKinds ¶
func NewSimpleDynamicClientWithCustomListKinds(scheme *runtime.Scheme, gvrToListKind map[schema.GroupVersionResource]string, objects ...runtime.Object) *FakeDynamicClusterClientset
NewSimpleDynamicClientWithCustomListKinds try not to use this. In general you want to have the scheme have the List types registered and allow the default guessing for resources match. Sometimes that doesn't work, so you can specify a custom mapping here.
func (*FakeDynamicClusterClientset) Cluster ¶
func (c *FakeDynamicClusterClientset) Cluster(clusterPath logicalcluster.Path) dynamic.Interface
func (*FakeDynamicClusterClientset) Resource ¶
func (c *FakeDynamicClusterClientset) Resource(resource schema.GroupVersionResource) kcpdynamic.ResourceClusterInterface
func (*FakeDynamicClusterClientset) Tracker ¶
func (c *FakeDynamicClusterClientset) Tracker() kcptesting.ObjectTracker
Click to show internal directories.
Click to hide internal directories.