fake

package
Version: v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2016 License: Apache-2.0, Apache-2.0 Imports: 8 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 FakeBatch

type FakeBatch struct {
	*testing.Fake
}

func (*FakeBatch) GetRESTClient

func (c *FakeBatch) GetRESTClient() *rest.RESTClient

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

func (*FakeBatch) Jobs

func (c *FakeBatch) Jobs(namespace string) v1.JobInterface

type FakeJobs

type FakeJobs struct {
	Fake *FakeBatch
	// contains filtered or unexported fields
}

FakeJobs implements JobInterface

func (*FakeJobs) Create

func (c *FakeJobs) Create(job *v1.Job) (result *v1.Job, err error)

func (*FakeJobs) Delete

func (c *FakeJobs) Delete(name string, options *api.DeleteOptions) error

func (*FakeJobs) DeleteCollection

func (c *FakeJobs) DeleteCollection(options *api.DeleteOptions, listOptions api.ListOptions) error

func (*FakeJobs) Get

func (c *FakeJobs) Get(name string) (result *v1.Job, err error)

func (*FakeJobs) List

func (c *FakeJobs) List(opts api.ListOptions) (result *v1.JobList, err error)

func (*FakeJobs) Patch

func (c *FakeJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *v1.Job, err error)

Patch applies the patch and returns the patched job.

func (*FakeJobs) Update

func (c *FakeJobs) Update(job *v1.Job) (result *v1.Job, err error)

func (*FakeJobs) UpdateStatus

func (c *FakeJobs) UpdateStatus(job *v1.Job) (*v1.Job, error)

func (*FakeJobs) Watch

func (c *FakeJobs) Watch(opts api.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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