fake

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: 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 {
	*core.Fake
}

func (*FakeBatch) GetRESTClient

func (c *FakeBatch) GetRESTClient() *restclient.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) unversioned.JobInterface

func (*FakeBatch) ScheduledJobs

func (c *FakeBatch) ScheduledJobs(namespace string) unversioned.ScheduledJobInterface

type FakeJobs

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

FakeJobs implements JobInterface

func (*FakeJobs) Create

func (c *FakeJobs) Create(job *batch.Job) (result *batch.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 *batch.Job, err error)

func (*FakeJobs) List

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

func (*FakeJobs) Patch added in v1.4.0

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

Patch applies the patch and returns the patched job.

func (*FakeJobs) Update

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

func (*FakeJobs) UpdateStatus

func (c *FakeJobs) UpdateStatus(job *batch.Job) (*batch.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.

type FakeScheduledJobs

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

FakeScheduledJobs implements ScheduledJobInterface

func (*FakeScheduledJobs) Create

func (c *FakeScheduledJobs) Create(scheduledJob *batch.ScheduledJob) (result *batch.ScheduledJob, err error)

func (*FakeScheduledJobs) Delete

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

func (*FakeScheduledJobs) DeleteCollection

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

func (*FakeScheduledJobs) Get

func (c *FakeScheduledJobs) Get(name string) (result *batch.ScheduledJob, err error)

func (*FakeScheduledJobs) List

func (c *FakeScheduledJobs) List(opts api.ListOptions) (result *batch.ScheduledJobList, err error)

func (*FakeScheduledJobs) Patch added in v1.4.0

func (c *FakeScheduledJobs) Patch(name string, pt api.PatchType, data []byte, subresources ...string) (result *batch.ScheduledJob, err error)

Patch applies the patch and returns the patched scheduledJob.

func (*FakeScheduledJobs) Update

func (c *FakeScheduledJobs) Update(scheduledJob *batch.ScheduledJob) (result *batch.ScheduledJob, err error)

func (*FakeScheduledJobs) UpdateStatus

func (c *FakeScheduledJobs) UpdateStatus(scheduledJob *batch.ScheduledJob) (*batch.ScheduledJob, error)

func (*FakeScheduledJobs) Watch

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

Jump to

Keyboard shortcuts

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