fake

package
v0.0.0-...-c377703 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

fake provides a fake implementation of MxJobClient suitable for use in testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MxJobClientFake

type MxJobClientFake struct{}

func (*MxJobClientFake) Create

func (c *MxJobClientFake) Create(ns string, j *spec.MxJob) (*spec.MxJob, error)

func (*MxJobClientFake) Delete

func (c *MxJobClientFake) Delete(ns string, name string) (*spec.MxJob, error)

func (*MxJobClientFake) Get

func (c *MxJobClientFake) Get(ns string, name string) (*spec.MxJob, error)

func (*MxJobClientFake) List

func (c *MxJobClientFake) List(ns string) (*spec.MxJobList, error)

func (*MxJobClientFake) Update

func (c *MxJobClientFake) Update(ns string, j *spec.MxJob) (*spec.MxJob, error)

Update a MxJob.

func (*MxJobClientFake) WaitTPRReady

func (c *MxJobClientFake) WaitTPRReady(interval, timeout time.Duration, ns string) error

WaitTPRReady blocks until the MxJob TPR is ready.

func (*MxJobClientFake) Watch

func (c *MxJobClientFake) Watch(host, ns string, httpClient *http.Client, resourceVersion string) (*http.Response, error)

Watch MxJobs.

Jump to

Keyboard shortcuts

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