fake

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClusters

type FakeClusters struct {
	Fake *FakeInfraV1alpha1
	// 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 FakeEndpointSets

type FakeEndpointSets struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeEndpointSets implements EndpointSetInterface

func (*FakeEndpointSets) Create

func (c *FakeEndpointSets) Create(ctx context.Context, endpointSet *v1alpha1.EndpointSet, opts v1.CreateOptions) (result *v1alpha1.EndpointSet, err error)

Create takes the representation of a endpointSet and creates it. Returns the server's representation of the endpointSet, and an error, if there is any.

func (*FakeEndpointSets) Delete

func (c *FakeEndpointSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the endpointSet and deletes it. Returns an error if one occurs.

func (*FakeEndpointSets) DeleteCollection

func (c *FakeEndpointSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEndpointSets) Get

func (c *FakeEndpointSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.EndpointSet, err error)

Get takes name of the endpointSet, and returns the corresponding endpointSet object, and an error if there is any.

func (*FakeEndpointSets) List

func (c *FakeEndpointSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EndpointSetList, err error)

List takes label and field selectors, and returns the list of EndpointSets that match those selectors.

func (*FakeEndpointSets) Patch

func (c *FakeEndpointSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.EndpointSet, err error)

Patch applies the patch and returns the patched endpointSet.

func (*FakeEndpointSets) Update

func (c *FakeEndpointSets) Update(ctx context.Context, endpointSet *v1alpha1.EndpointSet, opts v1.UpdateOptions) (result *v1alpha1.EndpointSet, err error)

Update takes the representation of a endpointSet and updates it. Returns the server's representation of the endpointSet, and an error, if there is any.

func (*FakeEndpointSets) UpdateStatus

func (c *FakeEndpointSets) UpdateStatus(ctx context.Context, endpointSet *v1alpha1.EndpointSet, opts v1.UpdateOptions) (*v1alpha1.EndpointSet, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeEndpointSets) Watch

Watch returns a watch.Interface that watches the requested endpointSets.

type FakeEndpoints

type FakeEndpoints struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeEndpoints implements EndpointInterface

func (*FakeEndpoints) Create

func (c *FakeEndpoints) Create(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.CreateOptions) (result *v1alpha1.Endpoint, err error)

Create takes the representation of a endpoint and creates it. Returns the server's representation of the endpoint, and an error, if there is any.

func (*FakeEndpoints) Delete

func (c *FakeEndpoints) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the endpoint and deletes it. Returns an error if one occurs.

func (*FakeEndpoints) DeleteCollection

func (c *FakeEndpoints) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEndpoints) Get

func (c *FakeEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Endpoint, err error)

Get takes name of the endpoint, and returns the corresponding endpoint object, and an error if there is any.

func (*FakeEndpoints) List

func (c *FakeEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.EndpointList, err error)

List takes label and field selectors, and returns the list of Endpoints that match those selectors.

func (*FakeEndpoints) Patch

func (c *FakeEndpoints) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Endpoint, err error)

Patch applies the patch and returns the patched endpoint.

func (*FakeEndpoints) Update

func (c *FakeEndpoints) Update(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.UpdateOptions) (result *v1alpha1.Endpoint, err error)

Update takes the representation of a endpoint and updates it. Returns the server's representation of the endpoint, and an error, if there is any.

func (*FakeEndpoints) UpdateStatus

func (c *FakeEndpoints) UpdateStatus(ctx context.Context, endpoint *v1alpha1.Endpoint, opts v1.UpdateOptions) (*v1alpha1.Endpoint, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeEndpoints) Watch

Watch returns a watch.Interface that watches the requested endpoints.

type FakeInfraV1alpha1

type FakeInfraV1alpha1 struct {
	*testing.Fake
}

func (*FakeInfraV1alpha1) Clusters

func (c *FakeInfraV1alpha1) Clusters(namespace string) v1alpha1.ClusterInterface

func (*FakeInfraV1alpha1) EndpointSets

func (c *FakeInfraV1alpha1) EndpointSets(namespace string) v1alpha1.EndpointSetInterface

func (*FakeInfraV1alpha1) Endpoints

func (c *FakeInfraV1alpha1) Endpoints(namespace string) v1alpha1.EndpointInterface

func (*FakeInfraV1alpha1) LinkSets

func (c *FakeInfraV1alpha1) LinkSets(namespace string) v1alpha1.LinkSetInterface
func (c *FakeInfraV1alpha1) Links(namespace string) v1alpha1.LinkInterface

func (*FakeInfraV1alpha1) ModuleBays

func (c *FakeInfraV1alpha1) ModuleBays(namespace string) v1alpha1.ModuleBayInterface

func (*FakeInfraV1alpha1) Modules

func (c *FakeInfraV1alpha1) Modules(namespace string) v1alpha1.ModuleInterface

func (*FakeInfraV1alpha1) NodeGroups

func (c *FakeInfraV1alpha1) NodeGroups(namespace string) v1alpha1.NodeGroupInterface

func (*FakeInfraV1alpha1) NodeItems

func (c *FakeInfraV1alpha1) NodeItems(namespace string) v1alpha1.NodeItemInterface

func (*FakeInfraV1alpha1) NodeSets

func (c *FakeInfraV1alpha1) NodeSets(namespace string) v1alpha1.NodeSetInterface

func (*FakeInfraV1alpha1) Nodes

func (c *FakeInfraV1alpha1) Nodes(namespace string) v1alpha1.NodeInterface

func (*FakeInfraV1alpha1) RESTClient

func (c *FakeInfraV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeInfraV1alpha1) Racks

func (c *FakeInfraV1alpha1) Racks(namespace string) v1alpha1.RackInterface

func (*FakeInfraV1alpha1) Regions

func (c *FakeInfraV1alpha1) Regions(namespace string) v1alpha1.RegionInterface

func (*FakeInfraV1alpha1) Sites

func (c *FakeInfraV1alpha1) Sites(namespace string) v1alpha1.SiteInterface

type FakeLinkSets

type FakeLinkSets struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeLinkSets implements LinkSetInterface

func (*FakeLinkSets) Create

func (c *FakeLinkSets) Create(ctx context.Context, linkSet *v1alpha1.LinkSet, opts v1.CreateOptions) (result *v1alpha1.LinkSet, err error)

Create takes the representation of a linkSet and creates it. Returns the server's representation of the linkSet, and an error, if there is any.

func (*FakeLinkSets) Delete

func (c *FakeLinkSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the linkSet and deletes it. Returns an error if one occurs.

func (*FakeLinkSets) DeleteCollection

func (c *FakeLinkSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeLinkSets) Get

func (c *FakeLinkSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.LinkSet, err error)

Get takes name of the linkSet, and returns the corresponding linkSet object, and an error if there is any.

func (*FakeLinkSets) List

func (c *FakeLinkSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LinkSetList, err error)

List takes label and field selectors, and returns the list of LinkSets that match those selectors.

func (*FakeLinkSets) Patch

func (c *FakeLinkSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.LinkSet, err error)

Patch applies the patch and returns the patched linkSet.

func (*FakeLinkSets) Update

func (c *FakeLinkSets) Update(ctx context.Context, linkSet *v1alpha1.LinkSet, opts v1.UpdateOptions) (result *v1alpha1.LinkSet, err error)

Update takes the representation of a linkSet and updates it. Returns the server's representation of the linkSet, and an error, if there is any.

func (*FakeLinkSets) UpdateStatus

func (c *FakeLinkSets) UpdateStatus(ctx context.Context, linkSet *v1alpha1.LinkSet, opts v1.UpdateOptions) (*v1alpha1.LinkSet, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeLinkSets) Watch

func (c *FakeLinkSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested linkSets.

type FakeLinks struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeLinks implements LinkInterface

func (*FakeLinks) Create

func (c *FakeLinks) Create(ctx context.Context, link *v1alpha1.Link, opts v1.CreateOptions) (result *v1alpha1.Link, err error)

Create takes the representation of a link and creates it. Returns the server's representation of the link, and an error, if there is any.

func (*FakeLinks) Delete

func (c *FakeLinks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the link and deletes it. Returns an error if one occurs.

func (*FakeLinks) DeleteCollection

func (c *FakeLinks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeLinks) Get

func (c *FakeLinks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Link, err error)

Get takes name of the link, and returns the corresponding link object, and an error if there is any.

func (*FakeLinks) List

func (c *FakeLinks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.LinkList, err error)

List takes label and field selectors, and returns the list of Links that match those selectors.

func (*FakeLinks) Patch

func (c *FakeLinks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Link, err error)

Patch applies the patch and returns the patched link.

func (*FakeLinks) Update

func (c *FakeLinks) Update(ctx context.Context, link *v1alpha1.Link, opts v1.UpdateOptions) (result *v1alpha1.Link, err error)

Update takes the representation of a link and updates it. Returns the server's representation of the link, and an error, if there is any.

func (*FakeLinks) UpdateStatus

func (c *FakeLinks) UpdateStatus(ctx context.Context, link *v1alpha1.Link, opts v1.UpdateOptions) (*v1alpha1.Link, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeLinks) Watch

func (c *FakeLinks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested links.

type FakeModuleBays

type FakeModuleBays struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeModuleBays implements ModuleBayInterface

func (*FakeModuleBays) Create

func (c *FakeModuleBays) Create(ctx context.Context, moduleBay *v1alpha1.ModuleBay, opts v1.CreateOptions) (result *v1alpha1.ModuleBay, err error)

Create takes the representation of a moduleBay and creates it. Returns the server's representation of the moduleBay, and an error, if there is any.

func (*FakeModuleBays) Delete

func (c *FakeModuleBays) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the moduleBay and deletes it. Returns an error if one occurs.

func (*FakeModuleBays) DeleteCollection

func (c *FakeModuleBays) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeModuleBays) Get

func (c *FakeModuleBays) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ModuleBay, err error)

Get takes name of the moduleBay, and returns the corresponding moduleBay object, and an error if there is any.

func (*FakeModuleBays) List

func (c *FakeModuleBays) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ModuleBayList, err error)

List takes label and field selectors, and returns the list of ModuleBays that match those selectors.

func (*FakeModuleBays) Patch

func (c *FakeModuleBays) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.ModuleBay, err error)

Patch applies the patch and returns the patched moduleBay.

func (*FakeModuleBays) Update

func (c *FakeModuleBays) Update(ctx context.Context, moduleBay *v1alpha1.ModuleBay, opts v1.UpdateOptions) (result *v1alpha1.ModuleBay, err error)

Update takes the representation of a moduleBay and updates it. Returns the server's representation of the moduleBay, and an error, if there is any.

func (*FakeModuleBays) UpdateStatus

func (c *FakeModuleBays) UpdateStatus(ctx context.Context, moduleBay *v1alpha1.ModuleBay, opts v1.UpdateOptions) (*v1alpha1.ModuleBay, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeModuleBays) Watch

Watch returns a watch.Interface that watches the requested moduleBays.

type FakeModules

type FakeModules struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeModules implements ModuleInterface

func (*FakeModules) Create

func (c *FakeModules) Create(ctx context.Context, module *v1alpha1.Module, opts v1.CreateOptions) (result *v1alpha1.Module, err error)

Create takes the representation of a module and creates it. Returns the server's representation of the module, and an error, if there is any.

func (*FakeModules) Delete

func (c *FakeModules) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the module and deletes it. Returns an error if one occurs.

func (*FakeModules) DeleteCollection

func (c *FakeModules) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeModules) Get

func (c *FakeModules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Module, err error)

Get takes name of the module, and returns the corresponding module object, and an error if there is any.

func (*FakeModules) List

func (c *FakeModules) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ModuleList, err error)

List takes label and field selectors, and returns the list of Modules that match those selectors.

func (*FakeModules) Patch

func (c *FakeModules) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Module, err error)

Patch applies the patch and returns the patched module.

func (*FakeModules) Update

func (c *FakeModules) Update(ctx context.Context, module *v1alpha1.Module, opts v1.UpdateOptions) (result *v1alpha1.Module, err error)

Update takes the representation of a module and updates it. Returns the server's representation of the module, and an error, if there is any.

func (*FakeModules) UpdateStatus

func (c *FakeModules) UpdateStatus(ctx context.Context, module *v1alpha1.Module, opts v1.UpdateOptions) (*v1alpha1.Module, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeModules) Watch

func (c *FakeModules) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested modules.

type FakeNodeGroups

type FakeNodeGroups struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeNodeGroups implements NodeGroupInterface

func (*FakeNodeGroups) Create

func (c *FakeNodeGroups) Create(ctx context.Context, nodeGroup *v1alpha1.NodeGroup, opts v1.CreateOptions) (result *v1alpha1.NodeGroup, err error)

Create takes the representation of a nodeGroup and creates it. Returns the server's representation of the nodeGroup, and an error, if there is any.

func (*FakeNodeGroups) Delete

func (c *FakeNodeGroups) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the nodeGroup and deletes it. Returns an error if one occurs.

func (*FakeNodeGroups) DeleteCollection

func (c *FakeNodeGroups) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNodeGroups) Get

func (c *FakeNodeGroups) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeGroup, err error)

Get takes name of the nodeGroup, and returns the corresponding nodeGroup object, and an error if there is any.

func (*FakeNodeGroups) List

func (c *FakeNodeGroups) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeGroupList, err error)

List takes label and field selectors, and returns the list of NodeGroups that match those selectors.

func (*FakeNodeGroups) Patch

func (c *FakeNodeGroups) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NodeGroup, err error)

Patch applies the patch and returns the patched nodeGroup.

func (*FakeNodeGroups) Update

func (c *FakeNodeGroups) Update(ctx context.Context, nodeGroup *v1alpha1.NodeGroup, opts v1.UpdateOptions) (result *v1alpha1.NodeGroup, err error)

Update takes the representation of a nodeGroup and updates it. Returns the server's representation of the nodeGroup, and an error, if there is any.

func (*FakeNodeGroups) UpdateStatus

func (c *FakeNodeGroups) UpdateStatus(ctx context.Context, nodeGroup *v1alpha1.NodeGroup, opts v1.UpdateOptions) (*v1alpha1.NodeGroup, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNodeGroups) Watch

Watch returns a watch.Interface that watches the requested nodeGroups.

type FakeNodeItems

type FakeNodeItems struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeNodeItems implements NodeItemInterface

func (*FakeNodeItems) Create

func (c *FakeNodeItems) Create(ctx context.Context, nodeItem *v1alpha1.NodeItem, opts v1.CreateOptions) (result *v1alpha1.NodeItem, err error)

Create takes the representation of a nodeItem and creates it. Returns the server's representation of the nodeItem, and an error, if there is any.

func (*FakeNodeItems) Delete

func (c *FakeNodeItems) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the nodeItem and deletes it. Returns an error if one occurs.

func (*FakeNodeItems) DeleteCollection

func (c *FakeNodeItems) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNodeItems) Get

func (c *FakeNodeItems) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeItem, err error)

Get takes name of the nodeItem, and returns the corresponding nodeItem object, and an error if there is any.

func (*FakeNodeItems) List

func (c *FakeNodeItems) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeItemList, err error)

List takes label and field selectors, and returns the list of NodeItems that match those selectors.

func (*FakeNodeItems) Patch

func (c *FakeNodeItems) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NodeItem, err error)

Patch applies the patch and returns the patched nodeItem.

func (*FakeNodeItems) Update

func (c *FakeNodeItems) Update(ctx context.Context, nodeItem *v1alpha1.NodeItem, opts v1.UpdateOptions) (result *v1alpha1.NodeItem, err error)

Update takes the representation of a nodeItem and updates it. Returns the server's representation of the nodeItem, and an error, if there is any.

func (*FakeNodeItems) UpdateStatus

func (c *FakeNodeItems) UpdateStatus(ctx context.Context, nodeItem *v1alpha1.NodeItem, opts v1.UpdateOptions) (*v1alpha1.NodeItem, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNodeItems) Watch

Watch returns a watch.Interface that watches the requested nodeItems.

type FakeNodeSets

type FakeNodeSets struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeNodeSets implements NodeSetInterface

func (*FakeNodeSets) Create

func (c *FakeNodeSets) Create(ctx context.Context, nodeSet *v1alpha1.NodeSet, opts v1.CreateOptions) (result *v1alpha1.NodeSet, err error)

Create takes the representation of a nodeSet and creates it. Returns the server's representation of the nodeSet, and an error, if there is any.

func (*FakeNodeSets) Delete

func (c *FakeNodeSets) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the nodeSet and deletes it. Returns an error if one occurs.

func (*FakeNodeSets) DeleteCollection

func (c *FakeNodeSets) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNodeSets) Get

func (c *FakeNodeSets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.NodeSet, err error)

Get takes name of the nodeSet, and returns the corresponding nodeSet object, and an error if there is any.

func (*FakeNodeSets) List

func (c *FakeNodeSets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeSetList, err error)

List takes label and field selectors, and returns the list of NodeSets that match those selectors.

func (*FakeNodeSets) Patch

func (c *FakeNodeSets) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.NodeSet, err error)

Patch applies the patch and returns the patched nodeSet.

func (*FakeNodeSets) Update

func (c *FakeNodeSets) Update(ctx context.Context, nodeSet *v1alpha1.NodeSet, opts v1.UpdateOptions) (result *v1alpha1.NodeSet, err error)

Update takes the representation of a nodeSet and updates it. Returns the server's representation of the nodeSet, and an error, if there is any.

func (*FakeNodeSets) UpdateStatus

func (c *FakeNodeSets) UpdateStatus(ctx context.Context, nodeSet *v1alpha1.NodeSet, opts v1.UpdateOptions) (*v1alpha1.NodeSet, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNodeSets) Watch

func (c *FakeNodeSets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested nodeSets.

type FakeNodes

type FakeNodes struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeNodes implements NodeInterface

func (*FakeNodes) Create

func (c *FakeNodes) Create(ctx context.Context, node *v1alpha1.Node, opts v1.CreateOptions) (result *v1alpha1.Node, err error)

Create takes the representation of a node and creates it. Returns the server's representation of the node, and an error, if there is any.

func (*FakeNodes) Delete

func (c *FakeNodes) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the node and deletes it. Returns an error if one occurs.

func (*FakeNodes) DeleteCollection

func (c *FakeNodes) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeNodes) Get

func (c *FakeNodes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Node, err error)

Get takes name of the node, and returns the corresponding node object, and an error if there is any.

func (*FakeNodes) List

func (c *FakeNodes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.NodeList, err error)

List takes label and field selectors, and returns the list of Nodes that match those selectors.

func (*FakeNodes) Patch

func (c *FakeNodes) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Node, err error)

Patch applies the patch and returns the patched node.

func (*FakeNodes) Update

func (c *FakeNodes) Update(ctx context.Context, node *v1alpha1.Node, opts v1.UpdateOptions) (result *v1alpha1.Node, err error)

Update takes the representation of a node and updates it. Returns the server's representation of the node, and an error, if there is any.

func (*FakeNodes) UpdateStatus

func (c *FakeNodes) UpdateStatus(ctx context.Context, node *v1alpha1.Node, opts v1.UpdateOptions) (*v1alpha1.Node, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeNodes) Watch

func (c *FakeNodes) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested nodes.

type FakeRacks

type FakeRacks struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeRacks implements RackInterface

func (*FakeRacks) Create

func (c *FakeRacks) Create(ctx context.Context, rack *v1alpha1.Rack, opts v1.CreateOptions) (result *v1alpha1.Rack, err error)

Create takes the representation of a rack and creates it. Returns the server's representation of the rack, and an error, if there is any.

func (*FakeRacks) Delete

func (c *FakeRacks) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the rack and deletes it. Returns an error if one occurs.

func (*FakeRacks) DeleteCollection

func (c *FakeRacks) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRacks) Get

func (c *FakeRacks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Rack, err error)

Get takes name of the rack, and returns the corresponding rack object, and an error if there is any.

func (*FakeRacks) List

func (c *FakeRacks) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RackList, err error)

List takes label and field selectors, and returns the list of Racks that match those selectors.

func (*FakeRacks) Patch

func (c *FakeRacks) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Rack, err error)

Patch applies the patch and returns the patched rack.

func (*FakeRacks) Update

func (c *FakeRacks) Update(ctx context.Context, rack *v1alpha1.Rack, opts v1.UpdateOptions) (result *v1alpha1.Rack, err error)

Update takes the representation of a rack and updates it. Returns the server's representation of the rack, and an error, if there is any.

func (*FakeRacks) UpdateStatus

func (c *FakeRacks) UpdateStatus(ctx context.Context, rack *v1alpha1.Rack, opts v1.UpdateOptions) (*v1alpha1.Rack, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRacks) Watch

func (c *FakeRacks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested racks.

type FakeRegions

type FakeRegions struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeRegions implements RegionInterface

func (*FakeRegions) Create

func (c *FakeRegions) Create(ctx context.Context, region *v1alpha1.Region, opts v1.CreateOptions) (result *v1alpha1.Region, err error)

Create takes the representation of a region and creates it. Returns the server's representation of the region, and an error, if there is any.

func (*FakeRegions) Delete

func (c *FakeRegions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the region and deletes it. Returns an error if one occurs.

func (*FakeRegions) DeleteCollection

func (c *FakeRegions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRegions) Get

func (c *FakeRegions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Region, err error)

Get takes name of the region, and returns the corresponding region object, and an error if there is any.

func (*FakeRegions) List

func (c *FakeRegions) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RegionList, err error)

List takes label and field selectors, and returns the list of Regions that match those selectors.

func (*FakeRegions) Patch

func (c *FakeRegions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Region, err error)

Patch applies the patch and returns the patched region.

func (*FakeRegions) Update

func (c *FakeRegions) Update(ctx context.Context, region *v1alpha1.Region, opts v1.UpdateOptions) (result *v1alpha1.Region, err error)

Update takes the representation of a region and updates it. Returns the server's representation of the region, and an error, if there is any.

func (*FakeRegions) UpdateStatus

func (c *FakeRegions) UpdateStatus(ctx context.Context, region *v1alpha1.Region, opts v1.UpdateOptions) (*v1alpha1.Region, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRegions) Watch

func (c *FakeRegions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested regions.

type FakeSites

type FakeSites struct {
	Fake *FakeInfraV1alpha1
	// contains filtered or unexported fields
}

FakeSites implements SiteInterface

func (*FakeSites) Create

func (c *FakeSites) Create(ctx context.Context, site *v1alpha1.Site, opts v1.CreateOptions) (result *v1alpha1.Site, err error)

Create takes the representation of a site and creates it. Returns the server's representation of the site, and an error, if there is any.

func (*FakeSites) Delete

func (c *FakeSites) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

Delete takes name of the site and deletes it. Returns an error if one occurs.

func (*FakeSites) DeleteCollection

func (c *FakeSites) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSites) Get

func (c *FakeSites) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Site, err error)

Get takes name of the site, and returns the corresponding site object, and an error if there is any.

func (*FakeSites) List

func (c *FakeSites) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SiteList, err error)

List takes label and field selectors, and returns the list of Sites that match those selectors.

func (*FakeSites) Patch

func (c *FakeSites) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Site, err error)

Patch applies the patch and returns the patched site.

func (*FakeSites) Update

func (c *FakeSites) Update(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (result *v1alpha1.Site, err error)

Update takes the representation of a site and updates it. Returns the server's representation of the site, and an error, if there is any.

func (*FakeSites) UpdateStatus

func (c *FakeSites) UpdateStatus(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (*v1alpha1.Site, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeSites) Watch

func (c *FakeSites) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested sites.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL