fakevtctldclient

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VtctldClient

type VtctldClient struct {
	vtctldclient.VtctldClient

	CreateKeyspaceShouldErr        bool
	DeleteKeyspaceShouldErr        bool
	FindAllShardsInKeyspaceResults map[string]struct {
		Response *vtctldatapb.FindAllShardsInKeyspaceResponse
		Error    error
	}
	GetKeyspaceResults map[string]struct {
		Response *vtctldatapb.GetKeyspaceResponse
		Error    error
	}
	GetKeyspacesResults struct {
		Keyspaces []*vtctldatapb.Keyspace
		Error     error
	}
	GetSchemaResults map[string]struct {
		Response *vtctldatapb.GetSchemaResponse
		Error    error
	}
	GetVSchemaResults map[string]struct {
		Response *vtctldatapb.GetVSchemaResponse
		Error    error
	}
	GetWorkflowsResults map[string]struct {
		Response *vtctldatapb.GetWorkflowsResponse
		Error    error
	}
	ShardReplicationPositionsResults map[string]struct {
		Response *vtctldatapb.ShardReplicationPositionsResponse
		Error    error
	}
}

VtctldClient provides a partial mock implementation of the vtctldclient.VtctldClient interface for use in testing.

func (*VtctldClient) CreateKeyspace added in v0.12.0

CreateKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) DeleteKeyspace added in v0.12.0

DeleteKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) FindAllShardsInKeyspace

FindAllShardsInKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetKeyspace

GetKeyspace is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetKeyspaces

GetKeyspaces is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetSchema

GetSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetVSchema

GetVSchema is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) GetWorkflows

GetWorkflows is part of the vtctldclient.VtctldClient interface.

func (*VtctldClient) ShardReplicationPositions added in v0.12.0

ShardReplicationPositions is part of the vtctldclient.VtctldClient interface.

Jump to

Keyboard shortcuts

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