dockerclient

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dockerclient is a docker client that only uses types defined in docker. It is an example for httpclient package, it is currently in tree and will be moved to its own repo

Index

Constants

View Source
const DefaultVersion = "1.37"

Variables

This section is empty.

Functions

func DecodeDockerError

func DecodeDockerError(status int, body []byte, res *http.Response) (decodedError error)

Types

type Client

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

func New

func New(host string) (*Client, error)

func (*Client) Ping

func (dc *Client) Ping() (types.Ping, error)

func (*Client) Version

func (dc *Client) Version() (types.Version, error)

type ErrDocker

type ErrDocker struct {
	Method httputil.Method
	Url    string
	Path   string
	Status int
	// Message is the decoded error message from docker daemon
	Message string
	Body    string
}

func (*ErrDocker) Error

func (e *ErrDocker) Error() string

Jump to

Keyboard shortcuts

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