docker

package
v0.0.0-...-bf2e0f7 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrContainerLogs

func ErrContainerLogs(msg string) error

ErrContainerLogs wraps errors found into the logs of a container.

Types

type App

type App map[string]*service

type AppInstance

type AppInstance map[string]string

type Client

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

func NewClient

func NewClient(options ...client.Opt) (*Client, error)

func NewDefaultClient

func NewDefaultClient() (*Client, error)

func (*Client) BuildImage

func (c *Client) BuildImage(imageName, srcPath, dockerfile string) error

func (*Client) Close

func (c *Client) Close() error

func (*Client) Delete

func (c *Client) Delete(instance AppInstance) error

func (*Client) GetContainerLogs

func (c *Client) GetContainerLogs(containerID string) (string, error)

getContainerLogs returns the logs from a given container. If there is any error in retrieving the logs, it is returned.

func (*Client) NetworkCreate

func (c *Client) NetworkCreate(name string) (string, error)

func (*Client) NetworkRemove

func (c *Client) NetworkRemove(networkID string) error

func (*Client) NewApp

func (c *Client) NewApp(definition string) (App, error)

func (*Client) Run

func (c *Client) Run(app App, config RunOptions) (AppInstance, error)

type RunOptions

type RunOptions struct {
	Prefix   string
	Networks []string
}

Jump to

Keyboard shortcuts

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