Documentation
¶
Index ¶
- type Client
- type ClientInterface
- type FilesClient
- type MockClientInterface
- type MockClientInterface_Close_Call
- type MockClientInterface_Expecter
- type MockClientInterface_Files_Call
- func (_c *MockClientInterface_Files_Call) Return(_a0 files.Runtime) *MockClientInterface_Files_Call
- func (_c *MockClientInterface_Files_Call) Run(run func()) *MockClientInterface_Files_Call
- func (_c *MockClientInterface_Files_Call) RunAndReturn(run func() files.Runtime) *MockClientInterface_Files_Call
- type MockClientInterface_Postgres_Call
- func (_c *MockClientInterface_Postgres_Call) Return(_a0 postgres.Runtime) *MockClientInterface_Postgres_Call
- func (_c *MockClientInterface_Postgres_Call) Run(run func()) *MockClientInterface_Postgres_Call
- func (_c *MockClientInterface_Postgres_Call) RunAndReturn(run func() postgres.Runtime) *MockClientInterface_Postgres_Call
- type PostgresClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Health ¶
func (c *Client) Health() grpc_health_v1.HealthClient
type ClientInterface ¶
type FilesClient ¶
type FilesClient struct {
// contains filtered or unexported fields
}
func NewFilesClient ¶
func NewFilesClient(grpcConnection grpc.ClientConnInterface) *FilesClient
type MockClientInterface ¶
MockClientInterface is an autogenerated mock type for the ClientInterface type
func NewMockClientInterface ¶
func NewMockClientInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MockClientInterface
NewMockClientInterface creates a new instance of MockClientInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockClientInterface) Close ¶
func (_m *MockClientInterface) Close() error
Close provides a mock function with no fields
func (*MockClientInterface) EXPECT ¶
func (_m *MockClientInterface) EXPECT() *MockClientInterface_Expecter
func (*MockClientInterface) Files ¶
func (_m *MockClientInterface) Files() files.Runtime
Files provides a mock function with no fields
func (*MockClientInterface) Postgres ¶
func (_m *MockClientInterface) Postgres() postgres.Runtime
Postgres provides a mock function with no fields
type MockClientInterface_Close_Call ¶
MockClientInterface_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockClientInterface_Close_Call) Return ¶
func (_c *MockClientInterface_Close_Call) Return(_a0 error) *MockClientInterface_Close_Call
func (*MockClientInterface_Close_Call) Run ¶
func (_c *MockClientInterface_Close_Call) Run(run func()) *MockClientInterface_Close_Call
func (*MockClientInterface_Close_Call) RunAndReturn ¶
func (_c *MockClientInterface_Close_Call) RunAndReturn(run func() error) *MockClientInterface_Close_Call
type MockClientInterface_Expecter ¶
type MockClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientInterface_Expecter) Close ¶
func (_e *MockClientInterface_Expecter) Close() *MockClientInterface_Close_Call
Close is a helper method to define mock.On call
func (*MockClientInterface_Expecter) Files ¶
func (_e *MockClientInterface_Expecter) Files() *MockClientInterface_Files_Call
Files is a helper method to define mock.On call
func (*MockClientInterface_Expecter) Postgres ¶
func (_e *MockClientInterface_Expecter) Postgres() *MockClientInterface_Postgres_Call
Postgres is a helper method to define mock.On call
type MockClientInterface_Files_Call ¶
MockClientInterface_Files_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Files'
func (*MockClientInterface_Files_Call) Return ¶
func (_c *MockClientInterface_Files_Call) Return(_a0 files.Runtime) *MockClientInterface_Files_Call
func (*MockClientInterface_Files_Call) Run ¶
func (_c *MockClientInterface_Files_Call) Run(run func()) *MockClientInterface_Files_Call
func (*MockClientInterface_Files_Call) RunAndReturn ¶
func (_c *MockClientInterface_Files_Call) RunAndReturn(run func() files.Runtime) *MockClientInterface_Files_Call
type MockClientInterface_Postgres_Call ¶
MockClientInterface_Postgres_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Postgres'
func (*MockClientInterface_Postgres_Call) Return ¶
func (_c *MockClientInterface_Postgres_Call) Return(_a0 postgres.Runtime) *MockClientInterface_Postgres_Call
func (*MockClientInterface_Postgres_Call) Run ¶
func (_c *MockClientInterface_Postgres_Call) Run(run func()) *MockClientInterface_Postgres_Call
func (*MockClientInterface_Postgres_Call) RunAndReturn ¶
func (_c *MockClientInterface_Postgres_Call) RunAndReturn(run func() postgres.Runtime) *MockClientInterface_Postgres_Call
type PostgresClient ¶
type PostgresClient struct {
// contains filtered or unexported fields
}
func NewPostgresClient ¶
func NewPostgresClient(grpcConnection grpc.ClientConnInterface) *PostgresClient
func (*PostgresClient) DumpAll ¶
func (pc *PostgresClient) DumpAll(ctx *contexts.Context, credentials postgres.Credentials, outputFilePath string, opts postgres.DumpAllOptions) error
func (*PostgresClient) Restore ¶ added in v0.0.2
func (pc *PostgresClient) Restore(ctx *contexts.Context, credentials postgres.Credentials, inputFilePath string, opts postgres.RestoreOptions) error