containers

package
v0.0.0-...-47dfbc3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logs

func Logs(containers []Container) (io.Reader, error)

Logs combines all the logs from all the containers

Types

type Container

type Container struct {
	Image   string
	ID      string
	Name    string
	Address string
}

func New

func New(
	ctx context.Context,
	image string,
	name string,
	networkName string,
	portMap map[string]string,
	command []string,
	env []string,
) (*Container, error)

func (*Container) Delete

func (cnt *Container) Delete(ctx context.Context) error

func (*Container) Logs

func (cnt *Container) Logs(ctx context.Context) (io.ReadCloser, error)

func (*Container) Stop

func (cnt *Container) Stop(ctx context.Context) error

type Network

type Network struct {
	ID   string
	Name string
}

func NewNetwork

func NewNetwork(ctx context.Context, name string) (*Network, error)

func (*Network) Remove

func (n *Network) Remove(ctx context.Context) error

Jump to

Keyboard shortcuts

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