Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAddons
- func (c *FakeAddons) Create(ctx context.Context, addon *v1.Addon, opts metav1.CreateOptions) (result *v1.Addon, err error)
- func (c *FakeAddons) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeAddons) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeAddons) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Addon, err error)
- func (c *FakeAddons) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AddonList, err error)
- func (c *FakeAddons) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.Addon, err error)
- func (c *FakeAddons) Update(ctx context.Context, addon *v1.Addon, opts metav1.UpdateOptions) (result *v1.Addon, err error)
- func (c *FakeAddons) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeETCDSnapshotFiles
- func (c *FakeETCDSnapshotFiles) Create(ctx context.Context, eTCDSnapshotFile *v1.ETCDSnapshotFile, ...) (result *v1.ETCDSnapshotFile, err error)
- func (c *FakeETCDSnapshotFiles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
- func (c *FakeETCDSnapshotFiles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
- func (c *FakeETCDSnapshotFiles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ETCDSnapshotFile, err error)
- func (c *FakeETCDSnapshotFiles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ETCDSnapshotFileList, err error)
- func (c *FakeETCDSnapshotFiles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1.ETCDSnapshotFile, err error)
- func (c *FakeETCDSnapshotFiles) Update(ctx context.Context, eTCDSnapshotFile *v1.ETCDSnapshotFile, ...) (result *v1.ETCDSnapshotFile, err error)
- func (c *FakeETCDSnapshotFiles) UpdateStatus(ctx context.Context, eTCDSnapshotFile *v1.ETCDSnapshotFile, ...) (*v1.ETCDSnapshotFile, error)
- func (c *FakeETCDSnapshotFiles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
- type FakeK3sV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAddons ¶
type FakeAddons struct { Fake *FakeK3sV1 // contains filtered or unexported fields }
FakeAddons implements AddonInterface
func (*FakeAddons) Create ¶
func (c *FakeAddons) Create(ctx context.Context, addon *v1.Addon, opts metav1.CreateOptions) (result *v1.Addon, err error)
Create takes the representation of a addon and creates it. Returns the server's representation of the addon, and an error, if there is any.
func (*FakeAddons) Delete ¶
func (c *FakeAddons) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the addon and deletes it. Returns an error if one occurs.
func (*FakeAddons) DeleteCollection ¶
func (c *FakeAddons) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeAddons) Get ¶
func (c *FakeAddons) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Addon, err error)
Get takes name of the addon, and returns the corresponding addon object, and an error if there is any.
func (*FakeAddons) List ¶
func (c *FakeAddons) List(ctx context.Context, opts metav1.ListOptions) (result *v1.AddonList, err error)
List takes label and field selectors, and returns the list of Addons that match those selectors.
func (*FakeAddons) Patch ¶
func (c *FakeAddons) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Addon, err error)
Patch applies the patch and returns the patched addon.
func (*FakeAddons) Update ¶
func (c *FakeAddons) Update(ctx context.Context, addon *v1.Addon, opts metav1.UpdateOptions) (result *v1.Addon, err error)
Update takes the representation of a addon and updates it. Returns the server's representation of the addon, and an error, if there is any.
func (*FakeAddons) Watch ¶
func (c *FakeAddons) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested addons.
type FakeETCDSnapshotFiles ¶
type FakeETCDSnapshotFiles struct {
Fake *FakeK3sV1
}
FakeETCDSnapshotFiles implements ETCDSnapshotFileInterface
func (*FakeETCDSnapshotFiles) Create ¶
func (c *FakeETCDSnapshotFiles) Create(ctx context.Context, eTCDSnapshotFile *v1.ETCDSnapshotFile, opts metav1.CreateOptions) (result *v1.ETCDSnapshotFile, err error)
Create takes the representation of a eTCDSnapshotFile and creates it. Returns the server's representation of the eTCDSnapshotFile, and an error, if there is any.
func (*FakeETCDSnapshotFiles) Delete ¶
func (c *FakeETCDSnapshotFiles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
Delete takes name of the eTCDSnapshotFile and deletes it. Returns an error if one occurs.
func (*FakeETCDSnapshotFiles) DeleteCollection ¶
func (c *FakeETCDSnapshotFiles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeETCDSnapshotFiles) Get ¶
func (c *FakeETCDSnapshotFiles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ETCDSnapshotFile, err error)
Get takes name of the eTCDSnapshotFile, and returns the corresponding eTCDSnapshotFile object, and an error if there is any.
func (*FakeETCDSnapshotFiles) List ¶
func (c *FakeETCDSnapshotFiles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ETCDSnapshotFileList, err error)
List takes label and field selectors, and returns the list of ETCDSnapshotFiles that match those selectors.
func (*FakeETCDSnapshotFiles) Patch ¶
func (c *FakeETCDSnapshotFiles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ETCDSnapshotFile, err error)
Patch applies the patch and returns the patched eTCDSnapshotFile.
func (*FakeETCDSnapshotFiles) Update ¶
func (c *FakeETCDSnapshotFiles) Update(ctx context.Context, eTCDSnapshotFile *v1.ETCDSnapshotFile, opts metav1.UpdateOptions) (result *v1.ETCDSnapshotFile, err error)
Update takes the representation of a eTCDSnapshotFile and updates it. Returns the server's representation of the eTCDSnapshotFile, and an error, if there is any.
func (*FakeETCDSnapshotFiles) UpdateStatus ¶
func (c *FakeETCDSnapshotFiles) UpdateStatus(ctx context.Context, eTCDSnapshotFile *v1.ETCDSnapshotFile, opts metav1.UpdateOptions) (*v1.ETCDSnapshotFile, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().
func (*FakeETCDSnapshotFiles) Watch ¶
func (c *FakeETCDSnapshotFiles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested eTCDSnapshotFiles.
type FakeK3sV1 ¶
func (*FakeK3sV1) ETCDSnapshotFiles ¶
func (c *FakeK3sV1) ETCDSnapshotFiles() v1.ETCDSnapshotFileInterface
func (*FakeK3sV1) RESTClient ¶
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.