Documentation ¶
Overview ¶
Package docker provides a wrapper around Docker Compose's functionality
Index ¶
- func CompareDeletedImages(i, j dti.DeleteResponse) int
- func LoadAppDefinition(fsys core.PathedFS, name string, configPaths []string, env map[string]string) (*dct.Project, error)
- func NewOutStream(out io.Writer) *streams.Out
- type Client
- func (c *Client) DeployApp(ctx context.Context, app *dct.Project, waitTimeout time.Duration) error
- func (c *Client) InspectImage(ctx context.Context, imageHash string) (Image, error)
- func (c *Client) ListApps(ctx context.Context) ([]api.Stack, error)
- func (c *Client) ListContainers(ctx context.Context, appName string) ([]dt.Container, error)
- func (c *Client) ListImages(ctx context.Context, matchName string) ([]Image, error)
- func (c *Client) PruneUnusedImages(ctx context.Context) (dt.ImagesPruneReport, error)
- func (c *Client) PullImage(ctx context.Context, taggedName string, outStream *streams.Out) (trust.ImageRefAndAuth, error)
- func (c *Client) RemoveApps(ctx context.Context, names []string) error
- type ClientOption
- type Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareDeletedImages ¶ added in v0.1.6
func CompareDeletedImages(i, j dti.DeleteResponse) int
func LoadAppDefinition ¶ added in v0.2.0
func LoadAppDefinition( fsys core.PathedFS, name string, configPaths []string, env map[string]string, ) (*dct.Project, error)
LoadAppDefinition parses the specified Docker Compose files from the provided fs as the current working directory, applies the provided environment variables, and returns a representation of the app as a Docker Compose project.
Types ¶
type Client ¶
type Client struct { Client *dc.Client Compose api.Service // contains filtered or unexported fields }
func NewClient ¶
func NewClient(opts ...ClientOption) (*Client, error)
func (*Client) InspectImage ¶ added in v0.1.6
func (*Client) ListContainers ¶ added in v0.2.0
func (*Client) ListImages ¶ added in v0.1.6
func (*Client) PruneUnusedImages ¶ added in v0.1.6
type ClientOption ¶ added in v0.5.0
type ClientOption func(clientOptions) clientOptions
func WithConcurrencySafeOutput ¶ added in v0.5.0
func WithConcurrencySafeOutput() ClientOption
Click to show internal directories.
Click to hide internal directories.