libcompose: github.com/docker/libcompose/docker/client Index | Files

package client

import "github.com/docker/libcompose/docker/client"

Index

Package Files

client.go client_factory.go

Constants

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

func Create Uses

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

Create creates a docker client based on the specified options.

type Factory Uses

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 Uses

func NewDefaultFactory(opts Options) (Factory, error)

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

type Options Uses

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

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

Package client imports 11 packages (graph) and is imported by 40 packages. Updated 2018-08-18. Refresh now. Tools for package owners.