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) Close ¶
func (f *FakeVtworkerClient) Close()
Close is part of the vtworkerclient interface.
func (*FakeVtworkerClient) ExecuteVtworkerCommand ¶
func (f *FakeVtworkerClient) ExecuteVtworkerCommand(ctx context.Context, args []string) (logutil.EventStream, error)
ExecuteVtworkerCommand is part of the vtworkerclient interface.
func (*FakeVtworkerClient) FakeVtworkerClientFactory ¶
func (f *FakeVtworkerClient) FakeVtworkerClientFactory(addr string, dialTimeout time.Duration) (vtworkerclient.Client, error)
FakeVtworkerClientFactory always returns the current instance.
Click to show internal directories.
Click to hide internal directories.