client

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultAPIVersion is the default docker API version set by libcompose
	DefaultAPIVersion = "v1.20"
)

Variables

This section is empty.

Functions

func Create

func Create(c Options) (client.APIClient, error)

Create creates a docker client based on the specified options.

Types

type Factory

type Factory interface {
	// Create constructs a Docker client for the given service. The passed in
	// config may be nil in which case a generic client for the project should
	// be returned.
	Create(service project.Service) client.APIClient
}

Factory is a factory to create docker clients.

func NewDefaultFactory

func NewDefaultFactory(opts Options) (Factory, error)

NewDefaultFactory creates and returns the default client factory that uses github.com/docker/docker client.

type Options

type Options struct {
	TLS        bool
	TLSVerify  bool
	TLSOptions tlsconfig.Options
	TrustKey   string
	Host       string
	APIVersion string
}

Options holds docker client options (host, tls, ..)

Jump to

Keyboard shortcuts

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