fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 10 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 FakeAttachments

type FakeAttachments struct {
	Fake *FakeLogtailV1alpha1
	// contains filtered or unexported fields
}

FakeAttachments implements AttachmentInterface

func (*FakeAttachments) Create

func (c *FakeAttachments) Create(ctx context.Context, attachment *v1alpha1.Attachment, opts v1.CreateOptions) (result *v1alpha1.Attachment, err error)

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

func (*FakeAttachments) Delete

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

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

func (*FakeAttachments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAttachments) Get

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

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

func (*FakeAttachments) List

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

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

func (*FakeAttachments) Patch

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

Patch applies the patch and returns the patched attachment.

func (*FakeAttachments) Update

func (c *FakeAttachments) Update(ctx context.Context, attachment *v1alpha1.Attachment, opts v1.UpdateOptions) (result *v1alpha1.Attachment, err error)

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

func (*FakeAttachments) UpdateStatus

func (c *FakeAttachments) UpdateStatus(ctx context.Context, attachment *v1alpha1.Attachment, opts v1.UpdateOptions) (*v1alpha1.Attachment, error)

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

func (*FakeAttachments) Watch

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

type FakeConfigs

type FakeConfigs struct {
	Fake *FakeLogtailV1alpha1
	// contains filtered or unexported fields
}

FakeConfigs implements ConfigInterface

func (*FakeConfigs) Create

func (c *FakeConfigs) Create(ctx context.Context, config *v1alpha1.Config, opts v1.CreateOptions) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) Delete

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

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

func (*FakeConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConfigs) Get

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

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

func (*FakeConfigs) List

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

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

func (*FakeConfigs) Patch

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

Patch applies the patch and returns the patched config.

func (*FakeConfigs) Update

func (c *FakeConfigs) Update(ctx context.Context, config *v1alpha1.Config, opts v1.UpdateOptions) (result *v1alpha1.Config, err error)

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

func (*FakeConfigs) UpdateStatus

func (c *FakeConfigs) UpdateStatus(ctx context.Context, config *v1alpha1.Config, opts v1.UpdateOptions) (*v1alpha1.Config, error)

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

func (*FakeConfigs) Watch

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

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

type FakeLogtailV1alpha1

type FakeLogtailV1alpha1 struct {
	*testing.Fake
}

func (*FakeLogtailV1alpha1) Attachments

func (c *FakeLogtailV1alpha1) Attachments(namespace string) v1alpha1.AttachmentInterface

func (*FakeLogtailV1alpha1) Configs

func (c *FakeLogtailV1alpha1) Configs(namespace string) v1alpha1.ConfigInterface

func (*FakeLogtailV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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