Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeClusters
- func (c *FakeClusters) Create(cluster *federation.Cluster) (result *federation.Cluster, err error)
- func (c *FakeClusters) Delete(name string, options *api.DeleteOptions) error
- func (c *FakeClusters) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
- func (c *FakeClusters) Get(name string) (result *federation.Cluster, err error)
- func (c *FakeClusters) List(opts api.ListOptions) (result *federation.ClusterList, err error)
- func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error)
- func (c *FakeClusters) Update(cluster *federation.Cluster) (result *federation.Cluster, err error)
- func (c *FakeClusters) UpdateStatus(cluster *federation.Cluster) (*federation.Cluster, error)
- func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error)
- type FakeFederation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClusters ¶
type FakeClusters struct {
Fake *FakeFederation
}
FakeClusters implements ClusterInterface
func (*FakeClusters) Create ¶
func (c *FakeClusters) Create(cluster *federation.Cluster) (result *federation.Cluster, err error)
func (*FakeClusters) Delete ¶
func (c *FakeClusters) Delete(name string, options *api.DeleteOptions) error
func (*FakeClusters) DeleteCollection ¶
func (c *FakeClusters) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error
func (*FakeClusters) Get ¶
func (c *FakeClusters) Get(name string) (result *federation.Cluster, err error)
func (*FakeClusters) List ¶
func (c *FakeClusters) List(opts api.ListOptions) (result *federation.ClusterList, err error)
func (*FakeClusters) Patch ¶ added in v1.4.0
func (c *FakeClusters) Patch(name string, pt api.PatchType, data []byte) (result *federation.Cluster, err error)
Patch applies the patch and returns the patched cluster.
func (*FakeClusters) Update ¶
func (c *FakeClusters) Update(cluster *federation.Cluster) (result *federation.Cluster, err error)
func (*FakeClusters) UpdateStatus ¶
func (c *FakeClusters) UpdateStatus(cluster *federation.Cluster) (*federation.Cluster, error)
func (*FakeClusters) Watch ¶
func (c *FakeClusters) Watch(opts api.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested clusters.
type FakeFederation ¶
func (*FakeFederation) Clusters ¶
func (c *FakeFederation) Clusters() unversioned.ClusterInterface
func (*FakeFederation) GetRESTClient ¶
func (c *FakeFederation) GetRESTClient() *restclient.RESTClient
GetRESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
Click to show internal directories.
Click to hide internal directories.