Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeServerV1alpha1
- type FakeServers
- func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error)
- func (c *FakeServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Server, err error)
- func (c *FakeServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerList, err error)
- func (c *FakeServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Server, err error)
- func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error)
- func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error)
- func (c *FakeServers) 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 FakeServerV1alpha1 ¶
func (*FakeServerV1alpha1) RESTClient ¶
func (c *FakeServerV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeServerV1alpha1) Servers ¶
func (c *FakeServerV1alpha1) Servers(namespace string) v1alpha1.ServerInterface
type FakeServers ¶
type FakeServers struct { Fake *FakeServerV1alpha1 // contains filtered or unexported fields }
FakeServers implements ServerInterface
func (*FakeServers) Create ¶
func (c *FakeServers) Create(ctx context.Context, server *v1alpha1.Server, opts v1.CreateOptions) (result *v1alpha1.Server, err error)
Create takes the representation of a server and creates it. Returns the server's representation of the server, and an error, if there is any.
func (*FakeServers) Delete ¶
func (c *FakeServers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the server and deletes it. Returns an error if one occurs.
func (*FakeServers) DeleteCollection ¶
func (c *FakeServers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeServers) Get ¶
func (c *FakeServers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Server, err error)
Get takes name of the server, and returns the corresponding server object, and an error if there is any.
func (*FakeServers) List ¶
func (c *FakeServers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ServerList, err error)
List takes label and field selectors, and returns the list of Servers that match those selectors.
func (*FakeServers) Patch ¶
func (c *FakeServers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Server, err error)
Patch applies the patch and returns the patched server.
func (*FakeServers) Update ¶
func (c *FakeServers) Update(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (result *v1alpha1.Server, err error)
Update takes the representation of a server and updates it. Returns the server's representation of the server, and an error, if there is any.
func (*FakeServers) UpdateStatus ¶
func (c *FakeServers) UpdateStatus(ctx context.Context, server *v1alpha1.Server, opts v1.UpdateOptions) (*v1alpha1.Server, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeServers) Watch ¶
func (c *FakeServers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested servers.