fakevtworkerclient

package
Version: v2.1.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 22, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package fakevtworkerclient contains a fake for the vtworkerclient interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeVtworkerClient

type FakeVtworkerClient struct {
	*fakevtctlclient.FakeLoggerEventStreamingClient
}

FakeVtworkerClient is a fake which implements the vtworkerclient interface. The fake can be used to return a specific result for a given command. If the command is not registered, an error will be thrown.

func NewFakeVtworkerClient

func NewFakeVtworkerClient() *FakeVtworkerClient

NewFakeVtworkerClient creates a FakeVtworkerClient struct.

func (*FakeVtworkerClient) FakeVtworkerClientFactory

func (f *FakeVtworkerClient) FakeVtworkerClientFactory(addr string, dialTimeout time.Duration) (vtworkerclient.Client, error)

FakeVtworkerClientFactory returns the current instance and stores the dialed server address in an outer struct.

Jump to

Keyboard shortcuts

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