clients

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2025 License: AGPL-3.0 Imports: 19 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx *contexts.Context, serverAddress string) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Files

func (c *Client) Files() files.Runtime

func (*Client) Health

func (c *Client) Health() grpc_health_v1.HealthClient

func (*Client) Postgres

func (c *Client) Postgres() postgres.Runtime

type ClientInterface

type ClientInterface interface {
	Files() files.Runtime
	Postgres() postgres.Runtime
	Close() error
}

type FilesClient

type FilesClient struct {
	// contains filtered or unexported fields
}

func NewFilesClient

func NewFilesClient(grpcConnection grpc.ClientConnInterface) *FilesClient

func (*FilesClient) CopyFiles

func (fc *FilesClient) CopyFiles(ctx *contexts.Context, src, dest string) error

func (*FilesClient) SyncFiles

func (fc *FilesClient) SyncFiles(ctx *contexts.Context, src, dest string) error

type MockClientInterface

type MockClientInterface struct {
	mock.Mock
}

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 (*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

type MockClientInterface_Close_Call struct {
	*mock.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 (*MockClientInterface_Close_Call) Run

func (*MockClientInterface_Close_Call) RunAndReturn

type MockClientInterface_Expecter

type MockClientInterface_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockClientInterface_Expecter) Close

Close is a helper method to define mock.On call

func (*MockClientInterface_Expecter) Files

Files is a helper method to define mock.On call

func (*MockClientInterface_Expecter) Postgres

Postgres is a helper method to define mock.On call

type MockClientInterface_Files_Call

type MockClientInterface_Files_Call struct {
	*mock.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 (*MockClientInterface_Files_Call) Run

func (*MockClientInterface_Files_Call) RunAndReturn

type MockClientInterface_Postgres_Call

type MockClientInterface_Postgres_Call struct {
	*mock.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 (*MockClientInterface_Postgres_Call) Run

func (*MockClientInterface_Postgres_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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