modules

package
v0.0.0-...-be71356 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVersion = "v1.20"
)

Variables

View Source
var (
	ErrNotFound = errors.New("Not found")
)

Functions

func LoadBuildList

func LoadBuildList(path string) error

Types

type BuildImage

type BuildImage struct {
	DockerfileName string
	Context        io.Reader
	RemoteURL      string
	RepoName       string
	SuppressOutput bool
	NoCache        bool
	Remove         bool
	ForceRemove    bool
	Pull           bool
	Memory         int64
	MemorySwap     int64
	CpuShares      int64
	CpuPeriod      int64
	CpuQuota       int64
	CpuSetCpus     string
	CpuSetMems     string
	CgroupParent   string
}

type BuilderInfo

type BuilderInfo struct {
	IP   string `json:"url"`
	PORT string `json:"port"`
}

type BuilderList

type BuilderList struct {
	Dockers []BuilderInfo `json:"docker"`
}

type Client

type Client interface {
	BuildImage(image *BuildImage) (io.ReadCloser, error)
}

type DockerClient

type DockerClient struct {
	URL        *url.URL
	HTTPClient *http.Client
	TLSConfig  *tls.Config
}

func NewDockerClient

func NewDockerClient(daemonUrl string, tlsConfig *tls.Config) (*DockerClient, error)

func NewDockerClientTimeout

func NewDockerClientTimeout(daemonUrl string, tlsConfig *tls.Config, timeout time.Duration) (*DockerClient, error)

func (*DockerClient) BuildImage

func (client *DockerClient) BuildImage(image *BuildImage) (io.ReadCloser, error)

Todo : need delete build temp containers

func (*DockerClient) PushImage

func (client *DockerClient) PushImage(image *BuildImage) (io.ReadCloser, error)

type Error

type Error struct {
	StatusCode int
	Status     string
	// contains filtered or unexported fields
}

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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