docker

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerConnect

type DockerConnect struct {
	Host      string
	Container string
	// contains filtered or unexported fields
}

DockerConnect represent a connection to a docker service

func NewDockerConnection

func NewDockerConnection(ctx context.Context, host string, container string) (*DockerConnect, error)

func (*DockerConnect) BatchUpload

func (d *DockerConnect) BatchUpload(ctx context.Context, dir string) (*batchUploader, error)

func (*DockerConnect) Command

func (d *DockerConnect) Command(ctx context.Context, args ...string) (string, error)

func (*DockerConnect) Download

func (d *DockerConnect) Download(ctx context.Context, hostFile string) (io.Reader, error)

Download a file from the docker container

func (*DockerConnect) Upload

func (d *DockerConnect) Upload(ctx context.Context, file string, size int64, r io.Reader) error

Upload a file to the docker container

Jump to

Keyboard shortcuts

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