clients

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: AGPL-3.0 Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func (*Client) S3 added in v0.0.5

func (c *Client) S3() s3.Runtime

type ClientInterface

type ClientInterface interface {
	Files() files.Runtime
	Postgres() postgres.Runtime
	S3() s3.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

func (*MockClientInterface) S3 added in v0.0.5

func (_m *MockClientInterface) S3() s3.Runtime

S3 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

func (*MockClientInterface_Expecter) S3 added in v0.0.5

S3 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 MockClientInterface_S3_Call added in v0.0.5

type MockClientInterface_S3_Call struct {
	*mock.Call
}

MockClientInterface_S3_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'S3'

func (*MockClientInterface_S3_Call) Return added in v0.0.5

func (*MockClientInterface_S3_Call) Run added in v0.0.5

func (*MockClientInterface_S3_Call) RunAndReturn added in v0.0.5

func (_c *MockClientInterface_S3_Call) RunAndReturn(run func() s3.Runtime) *MockClientInterface_S3_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

type S3Client added in v0.0.5

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

func NewS3Client added in v0.0.5

func NewS3Client(grpcConnection grpc.ClientConnInterface) *S3Client

func (*S3Client) Sync added in v0.0.5

func (s3c *S3Client) Sync(ctx *contexts.Context, credentials s3.CredentialsInterface, src, dest string) error

Jump to

Keyboard shortcuts

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