Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusters
- func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.CreateOptions) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterList, err error)
- func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (result *v1alpha1.Cluster, err error)
- func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (*v1alpha1.Cluster, error)
- func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeKubernetesV1alpha1
- type FakeNodePools
- func (c *FakeNodePools) Create(ctx context.Context, nodePool *v1alpha1.NodePool, opts v1.CreateOptions) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeNodePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeNodePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodePoolList, err error)
- func (c *FakeNodePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) Update(ctx context.Context, nodePool *v1alpha1.NodePool, opts v1.UpdateOptions) (result *v1alpha1.NodePool, err error)
- func (c *FakeNodePools) UpdateStatus(ctx context.Context, nodePool *v1alpha1.NodePool, opts v1.UpdateOptions) (*v1alpha1.NodePool, error)
- func (c *FakeNodePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusters ¶
type FakeClusters struct { Fake *FakeKubernetesV1alpha1 // contains filtered or unexported fields }
FakeClusters implements ClusterInterface
func (*FakeClusters) Create ¶
func (c *FakeClusters) Create(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.CreateOptions) (result *v1alpha1.Cluster, err error)
Create takes the representation of a cluster and creates it. Returns the server's representation of the cluster, and an error, if there is any.
func (*FakeClusters) Delete ¶
func (c *FakeClusters) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the cluster and deletes it. Returns an error if one occurs.
func (*FakeClusters) DeleteCollection ¶
func (c *FakeClusters) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeClusters) Get ¶
func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Cluster, err error)
Get takes name of the cluster, and returns the corresponding cluster object, and an error if there is any.
func (*FakeClusters) List ¶
func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ClusterList, err error)
List takes label and field selectors, and returns the list of Clusters that match those selectors.
func (*FakeClusters) Patch ¶
func (c *FakeClusters) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Cluster, err error)
Patch applies the patch and returns the patched cluster.
func (*FakeClusters) Update ¶
func (c *FakeClusters) Update(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (result *v1alpha1.Cluster, err error)
Update takes the representation of a cluster and updates it. Returns the server's representation of the cluster, and an error, if there is any.
func (*FakeClusters) UpdateStatus ¶
func (c *FakeClusters) UpdateStatus(ctx context.Context, cluster *v1alpha1.Cluster, opts v1.UpdateOptions) (*v1alpha1.Cluster, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeClusters) Watch ¶
func (c *FakeClusters) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusters.
type FakeKubernetesV1alpha1 ¶
func (*FakeKubernetesV1alpha1) Clusters ¶
func (c *FakeKubernetesV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface
func (*FakeKubernetesV1alpha1) NodePools ¶
func (c *FakeKubernetesV1alpha1) NodePools(namespace string) v1alpha1.NodePoolInterface
func (*FakeKubernetesV1alpha1) RESTClient ¶
func (c *FakeKubernetesV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
type FakeNodePools ¶
type FakeNodePools struct { Fake *FakeKubernetesV1alpha1 // contains filtered or unexported fields }
FakeNodePools implements NodePoolInterface
func (*FakeNodePools) Create ¶
func (c *FakeNodePools) Create(ctx context.Context, nodePool *v1alpha1.NodePool, opts v1.CreateOptions) (result *v1alpha1.NodePool, err error)
Create takes the representation of a nodePool and creates it. Returns the server's representation of the nodePool, and an error, if there is any.
func (*FakeNodePools) Delete ¶
func (c *FakeNodePools) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the nodePool and deletes it. Returns an error if one occurs.
func (*FakeNodePools) DeleteCollection ¶
func (c *FakeNodePools) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeNodePools) Get ¶
func (c *FakeNodePools) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodePool, err error)
Get takes name of the nodePool, and returns the corresponding nodePool object, and an error if there is any.
func (*FakeNodePools) List ¶
func (c *FakeNodePools) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodePoolList, err error)
List takes label and field selectors, and returns the list of NodePools that match those selectors.
func (*FakeNodePools) Patch ¶
func (c *FakeNodePools) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NodePool, err error)
Patch applies the patch and returns the patched nodePool.
func (*FakeNodePools) Update ¶
func (c *FakeNodePools) Update(ctx context.Context, nodePool *v1alpha1.NodePool, opts v1.UpdateOptions) (result *v1alpha1.NodePool, err error)
Update takes the representation of a nodePool and updates it. Returns the server's representation of the nodePool, and an error, if there is any.
func (*FakeNodePools) UpdateStatus ¶
func (c *FakeNodePools) UpdateStatus(ctx context.Context, nodePool *v1alpha1.NodePool, opts v1.UpdateOptions) (*v1alpha1.NodePool, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeNodePools) Watch ¶
func (c *FakeNodePools) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested nodePools.