remote

package
v0.0.0-...-05cc298 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DockerHostEnvVar     = "DOCKER_HOST"
	DockerCertPathEnvVar = "DOCKER_CERT_PATH"
	LocalDockerSocket    = "/tmp/docker.sock"
	LocalDockerHost      = "unix://" + LocalDockerSocket
	RemoteDockerSocket   = "/var/run/docker.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Remote

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

func NewRemote

func NewRemote(config RemoteConfig) *Remote

func (*Remote) Cleanup

func (r *Remote) Cleanup() error

func (*Remote) Close

func (r *Remote) Close() error

func (*Remote) Connect

func (r *Remote) Connect() error

func (*Remote) ConnectWithKey

func (r *Remote) ConnectWithKey(key string) error

func (*Remote) ConnectWithPassword

func (r *Remote) ConnectWithPassword(password string) error

func (*Remote) PorxyDockerSocket

func (r *Remote) PorxyDockerSocket() error

type RemoteConfig

type RemoteConfig struct {
	Address string
	User    string
	Timeout time.Duration
}

func ParseRemoteConfig

func ParseRemoteConfig(address string) (*RemoteConfig, error)

Jump to

Keyboard shortcuts

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