Help us shape the future of Go! Take the 2026 Go Developer Survey

dockerclient

package module
v0.0.0-...-ebab26a Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2014 License: MIT Imports: 9 Imported by: 6

README

go-dockerclient-quick

Build Status GoDoc

Wraps go-dockerclient and adds a few handy functions - NOT a replacement for go-dockerclient, just how I like to use it

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerClient

type DockerClient interface {
	// Client returns the underlying *docker.Client
	Client() *docker.Client

	// LatestImageByRegex returns the docker api image object if that object is
	// tagged with at least one tag that matches "regex"
	LatestImageByRegex(regex string) (*docker.APIImages, error)
}

DockerClient wraps docker.Client, adding a few handy functions

func FakeClient

func FakeClient() DockerClient

FakeClient returns a DockerClient implementation that is suitable for testing

func NewDockerClient

func NewDockerClient() (DockerClient, error)

NewDockerClient returns the dockerclient used by the artifactory package

Jump to

Keyboard shortcuts

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