testclient

package
v0.0.0-...-4e66905 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Fake *testing.Fake
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ns, host, token string, fake *testing.Fake) *Client

func (*Client) BuildConfigs

func (c *Client) BuildConfigs(namespace string) client.BuildConfigInterface

BuildConfigs provides a REST client for BuildConfigs

func (*Client) Builds

func (c *Client) Builds(namespace string) client.BuildInterface

Builds provides a REST client for Builds

type FakeBuildConfigs

type FakeBuildConfigs struct {
	Fake      *testing.Fake
	Namespace string
}

FakeBuildConfigs implements BuildConfigInterface. Meant to be embedded into a struct to get a default implementation. This makes faking out just the methods you want to test easier.

func NewFakeBuildConfigs

func NewFakeBuildConfigs(ns string, fake *testing.Fake) *FakeBuildConfigs

func (*FakeBuildConfigs) Create

func (c *FakeBuildConfigs) Create(config *build.BuildConfig) (*build.BuildConfig, error)

type FakeBuilds

type FakeBuilds struct {
	Fake      *testing.Fake
	Namespace string
}

func NewFakeBuilds

func NewFakeBuilds(ns string, fake *testing.Fake) *FakeBuilds

func (*FakeBuilds) Get

func (c *FakeBuilds) Get(name string, options metav1.GetOptions) (*build.Build, error)

func (*FakeBuilds) Instantiate

func (c *FakeBuilds) Instantiate(buildName string, buildRequest *build.BuildRequest) error

func (*FakeBuilds) Update

func (c *FakeBuilds) Update(b *build.Build) (*build.Build, error)

Jump to

Keyboard shortcuts

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