fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 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 FakeCoreV1alpha1

type FakeCoreV1alpha1 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha1) Events

func (c *FakeCoreV1alpha1) Events(namespace string) v1alpha1.EventInterface

func (*FakeCoreV1alpha1) Movies

func (c *FakeCoreV1alpha1) Movies(namespace string) v1alpha1.MovieInterface

func (*FakeCoreV1alpha1) Plays

func (c *FakeCoreV1alpha1) Plays(namespace string) v1alpha1.PlayInterface

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) Screeners

func (c *FakeCoreV1alpha1) Screeners(namespace string) v1alpha1.ScreenerInterface

type FakeEvents

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

FakeEvents implements EventInterface

func (*FakeEvents) Create

func (c *FakeEvents) Create(event *v1alpha1.Event) (result *v1alpha1.Event, err error)

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

func (*FakeEvents) Delete

func (c *FakeEvents) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeEvents) DeleteCollection

func (c *FakeEvents) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeEvents) Get

func (c *FakeEvents) Get(name string, options v1.GetOptions) (result *v1alpha1.Event, err error)

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

func (*FakeEvents) List

func (c *FakeEvents) List(opts v1.ListOptions) (result *v1alpha1.EventList, err error)

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

func (*FakeEvents) Patch

func (c *FakeEvents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Event, err error)

Patch applies the patch and returns the patched event.

func (*FakeEvents) Update

func (c *FakeEvents) Update(event *v1alpha1.Event) (result *v1alpha1.Event, err error)

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

func (*FakeEvents) UpdateStatus

func (c *FakeEvents) UpdateStatus(event *v1alpha1.Event) (*v1alpha1.Event, error)

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

func (*FakeEvents) Watch

func (c *FakeEvents) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeMovies

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

FakeMovies implements MovieInterface

func (*FakeMovies) Create

func (c *FakeMovies) Create(movie *v1alpha1.Movie) (result *v1alpha1.Movie, err error)

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

func (*FakeMovies) Delete

func (c *FakeMovies) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeMovies) DeleteCollection

func (c *FakeMovies) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMovies) Get

func (c *FakeMovies) Get(name string, options v1.GetOptions) (result *v1alpha1.Movie, err error)

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

func (*FakeMovies) List

func (c *FakeMovies) List(opts v1.ListOptions) (result *v1alpha1.MovieList, err error)

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

func (*FakeMovies) Patch

func (c *FakeMovies) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Movie, err error)

Patch applies the patch and returns the patched movie.

func (*FakeMovies) Update

func (c *FakeMovies) Update(movie *v1alpha1.Movie) (result *v1alpha1.Movie, err error)

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

func (*FakeMovies) UpdateStatus

func (c *FakeMovies) UpdateStatus(movie *v1alpha1.Movie) (*v1alpha1.Movie, error)

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

func (*FakeMovies) Watch

func (c *FakeMovies) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakePlays

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

FakePlays implements PlayInterface

func (*FakePlays) Create

func (c *FakePlays) Create(play *v1alpha1.Play) (result *v1alpha1.Play, err error)

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

func (*FakePlays) Delete

func (c *FakePlays) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakePlays) DeleteCollection

func (c *FakePlays) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePlays) Get

func (c *FakePlays) Get(name string, options v1.GetOptions) (result *v1alpha1.Play, err error)

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

func (*FakePlays) List

func (c *FakePlays) List(opts v1.ListOptions) (result *v1alpha1.PlayList, err error)

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

func (*FakePlays) Patch

func (c *FakePlays) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Play, err error)

Patch applies the patch and returns the patched play.

func (*FakePlays) Update

func (c *FakePlays) Update(play *v1alpha1.Play) (result *v1alpha1.Play, err error)

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

func (*FakePlays) UpdateStatus

func (c *FakePlays) UpdateStatus(play *v1alpha1.Play) (*v1alpha1.Play, error)

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

func (*FakePlays) Watch

func (c *FakePlays) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeScreeners

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

FakeScreeners implements ScreenerInterface

func (*FakeScreeners) Create

func (c *FakeScreeners) Create(screener *v1alpha1.Screener) (result *v1alpha1.Screener, err error)

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

func (*FakeScreeners) Delete

func (c *FakeScreeners) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeScreeners) DeleteCollection

func (c *FakeScreeners) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeScreeners) Get

func (c *FakeScreeners) Get(name string, options v1.GetOptions) (result *v1alpha1.Screener, err error)

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

func (*FakeScreeners) List

func (c *FakeScreeners) List(opts v1.ListOptions) (result *v1alpha1.ScreenerList, err error)

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

func (*FakeScreeners) Patch

func (c *FakeScreeners) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Screener, err error)

Patch applies the patch and returns the patched screener.

func (*FakeScreeners) Update

func (c *FakeScreeners) Update(screener *v1alpha1.Screener) (result *v1alpha1.Screener, err error)

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

func (*FakeScreeners) UpdateStatus

func (c *FakeScreeners) UpdateStatus(screener *v1alpha1.Screener) (*v1alpha1.Screener, error)

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

func (*FakeScreeners) Watch

func (c *FakeScreeners) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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