fake

package
v0.0.0-...-2a2eb63 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 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 FakeArticles

type FakeArticles struct {
	Fake *FakeCoreV1alpha1
	// contains filtered or unexported fields
}

FakeArticles implements ArticleInterface

func (*FakeArticles) Create

func (c *FakeArticles) Create(ctx context.Context, article *v1alpha1.Article, opts v1.CreateOptions) (result *v1alpha1.Article, err error)

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

func (*FakeArticles) Delete

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

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

func (*FakeArticles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArticles) Get

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

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

func (*FakeArticles) List

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

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

func (*FakeArticles) Patch

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

Patch applies the patch and returns the patched article.

func (*FakeArticles) Update

func (c *FakeArticles) Update(ctx context.Context, article *v1alpha1.Article, opts v1.UpdateOptions) (result *v1alpha1.Article, err error)

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

func (*FakeArticles) UpdateStatus

func (c *FakeArticles) UpdateStatus(ctx context.Context, article *v1alpha1.Article, opts v1.UpdateOptions) (*v1alpha1.Article, error)

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

func (*FakeArticles) Watch

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

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

type FakeCoreV1alpha1

type FakeCoreV1alpha1 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha1) Articles

func (c *FakeCoreV1alpha1) Articles(namespace string) v1alpha1.ArticleInterface

func (*FakeCoreV1alpha1) RESTClient

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

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

func (*FakeCoreV1alpha1) Tags

func (c *FakeCoreV1alpha1) Tags(namespace string) v1alpha1.TagInterface

func (*FakeCoreV1alpha1) Users

func (c *FakeCoreV1alpha1) Users(namespace string) v1alpha1.UserInterface

type FakeTags

type FakeTags struct {
	Fake *FakeCoreV1alpha1
	// contains filtered or unexported fields
}

FakeTags implements TagInterface

func (*FakeTags) Create

func (c *FakeTags) Create(ctx context.Context, tag *v1alpha1.Tag, opts v1.CreateOptions) (result *v1alpha1.Tag, err error)

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

func (*FakeTags) Delete

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

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

func (*FakeTags) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTags) Get

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

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

func (*FakeTags) List

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

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

func (*FakeTags) Patch

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

Patch applies the patch and returns the patched tag.

func (*FakeTags) Update

func (c *FakeTags) Update(ctx context.Context, tag *v1alpha1.Tag, opts v1.UpdateOptions) (result *v1alpha1.Tag, err error)

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

func (*FakeTags) Watch

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

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

type FakeUsers

type FakeUsers struct {
	Fake *FakeCoreV1alpha1
	// contains filtered or unexported fields
}

FakeUsers implements UserInterface

func (*FakeUsers) Create

func (c *FakeUsers) Create(ctx context.Context, user *v1alpha1.User, opts v1.CreateOptions) (result *v1alpha1.User, err error)

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

func (*FakeUsers) Delete

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

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

func (*FakeUsers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeUsers) Get

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

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

func (*FakeUsers) List

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

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

func (*FakeUsers) Patch

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

Patch applies the patch and returns the patched user.

func (*FakeUsers) Update

func (c *FakeUsers) Update(ctx context.Context, user *v1alpha1.User, opts v1.UpdateOptions) (result *v1alpha1.User, err error)

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

func (*FakeUsers) UpdateStatus

func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1alpha1.User, opts v1.UpdateOptions) (*v1alpha1.User, error)

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

func (*FakeUsers) Watch

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

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

Jump to

Keyboard shortcuts

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