dockerclient

package
v0.3.18 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidEndpoint is returned when the endpoint is not a valid URL.
	ErrInvalidEndpoint = errors.New("invalid endpoint")
	// ErrConnectionRefused is returned when the client cannot connect to the given endpoint.
	ErrConnectionRefused = errors.New("cannot connect to Docker endpoint")
)

Functions

This section is empty.

Types

type Client added in v0.3.16

type Client struct {
	Dialer     Dialer
	TLSConfig  *tls.Config
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

func NewClient added in v0.3.16

func NewClient() (*Client, error)

NewClient returns a Client

func NewTLSClient

func NewTLSClient(endpoint string, dockerCertPath string) (*Client, error)

NewTLSClient returns a Client instance ready for TLS communications with the givens server endpoint, key and certificates, using a specific remote API version. TODO: 🚧 Under construction...

func (*Client) ListServices added in v0.3.18

func (c *Client) ListServices() ([]swarm.Service, error)

type Dialer added in v0.3.18

type Dialer interface {
	Dial(network, address string) (net.Conn, error)
}

Jump to

Keyboard shortcuts

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