psql

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidContainerManager = errors.New("invalid container manager")
	ErrInvalidHostname         = errors.New("invalid hostname")
	ErrCommandFailed           = errors.New("psql failed")
)

Functions

This section is empty.

Types

type Case

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

func NewCase

func NewCase(manager ContainerManager, hostname string) (*Case, error)

func (*Case) Exec

func (c *Case) Exec(ctx context.Context) error

func (*Case) WithPort

func (c *Case) WithPort(port int) *Case

type ContainerManager

type ContainerManager interface {
	ShellCommand(ctx context.Context, containerName string, username string, workDir string, command []string) error
}

Jump to

Keyboard shortcuts

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