package fake
import "k8s.io/client-go/kubernetes/typed/node/v1/fake"
Package fake has the automatically generated clients.
Index ¶
- type FakeNodeV1
- func (c *FakeNodeV1) RESTClient() rest.Interface
- func (c *FakeNodeV1) RuntimeClasses() v1.RuntimeClassInterface
- type FakeRuntimeClasses
- func (c *FakeRuntimeClasses) Apply(ctx context.Context, runtimeClass *applyconfigurationsnodev1.RuntimeClassApplyConfiguration, opts v1.ApplyOptions) (result *nodev1.RuntimeClass, err error)
- func (c *FakeRuntimeClasses) Create(ctx context.Context, runtimeClass *nodev1.RuntimeClass, opts v1.CreateOptions) (result *nodev1.RuntimeClass, err error)
- func (c *FakeRuntimeClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRuntimeClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRuntimeClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *nodev1.RuntimeClass, err error)
- func (c *FakeRuntimeClasses) List(ctx context.Context, opts v1.ListOptions) (result *nodev1.RuntimeClassList, err error)
- func (c *FakeRuntimeClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *nodev1.RuntimeClass, err error)
- func (c *FakeRuntimeClasses) Update(ctx context.Context, runtimeClass *nodev1.RuntimeClass, opts v1.UpdateOptions) (result *nodev1.RuntimeClass, err error)
- func (c *FakeRuntimeClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Types ¶
type FakeNodeV1 ¶
func (*FakeNodeV1) RESTClient ¶
func (c *FakeNodeV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeNodeV1) RuntimeClasses ¶
func (c *FakeNodeV1) RuntimeClasses() v1.RuntimeClassInterface
type FakeRuntimeClasses ¶
type FakeRuntimeClasses struct { Fake *FakeNodeV1 }
FakeRuntimeClasses implements RuntimeClassInterface
func (*FakeRuntimeClasses) Apply ¶
func (c *FakeRuntimeClasses) Apply(ctx context.Context, runtimeClass *applyconfigurationsnodev1.RuntimeClassApplyConfiguration, opts v1.ApplyOptions) (result *nodev1.RuntimeClass, err error)
Apply takes the given apply declarative configuration, applies it and returns the applied runtimeClass.
func (*FakeRuntimeClasses) Create ¶
func (c *FakeRuntimeClasses) Create(ctx context.Context, runtimeClass *nodev1.RuntimeClass, opts v1.CreateOptions) (result *nodev1.RuntimeClass, err error)
Create takes the representation of a runtimeClass and creates it. Returns the server's representation of the runtimeClass, and an error, if there is any.
func (*FakeRuntimeClasses) Delete ¶
func (c *FakeRuntimeClasses) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
Delete takes name of the runtimeClass and deletes it. Returns an error if one occurs.
func (*FakeRuntimeClasses) DeleteCollection ¶
func (c *FakeRuntimeClasses) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRuntimeClasses) Get ¶
func (c *FakeRuntimeClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *nodev1.RuntimeClass, err error)
Get takes name of the runtimeClass, and returns the corresponding runtimeClass object, and an error if there is any.
func (*FakeRuntimeClasses) List ¶
func (c *FakeRuntimeClasses) List(ctx context.Context, opts v1.ListOptions) (result *nodev1.RuntimeClassList, err error)
List takes label and field selectors, and returns the list of RuntimeClasses that match those selectors.
func (*FakeRuntimeClasses) Patch ¶
func (c *FakeRuntimeClasses) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *nodev1.RuntimeClass, err error)
Patch applies the patch and returns the patched runtimeClass.
func (*FakeRuntimeClasses) Update ¶
func (c *FakeRuntimeClasses) Update(ctx context.Context, runtimeClass *nodev1.RuntimeClass, opts v1.UpdateOptions) (result *nodev1.RuntimeClass, err error)
Update takes the representation of a runtimeClass and updates it. Returns the server's representation of the runtimeClass, and an error, if there is any.
func (*FakeRuntimeClasses) Watch ¶
func (c *FakeRuntimeClasses) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested runtimeClasses.
Source Files ¶
doc.go fake_node_client.go fake_runtimeclass.go
- Version
- v0.26.11
- Published
- Nov 15, 2023
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 3 minutes ago –
Tools for package owners.