docker

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainerCreate added in v0.1.0

func ContainerCreate(c Container) error

func ContainerRm added in v0.1.0

func ContainerRm(name string) error

func ContainerStart added in v0.1.0

func ContainerStart(c Container) error

func ContainerStop added in v0.1.0

func ContainerStop(id string) error

func Events

func Events(filters map[string]string) (<-chan string, error)

func Info added in v0.1.2

func Info() error

func NetworkRemove

func NetworkRemove(name string) error

func Pull

func Pull(image string) error

Types

type Container

type Container struct {
	Env      map[string]string
	Image    string
	Labels   map[string]string
	Links    map[string]string
	Name     string
	Networks []string
	Ports    []string
	Volumes  map[string]string
}

func ContainerInspect added in v0.1.0

func ContainerInspect(id string) (*Container, error)

func Ps

func Ps(labels map[string]string) ([]Container, error)

func (Container) Create

func (c Container) Create() error

func (Container) Rm

func (c Container) Rm() error

func (Container) Start

func (c Container) Start() error

func (Container) Stop

func (c Container) Stop() error

type Network

type Network struct {
	Name string
}

func NetworkCreate

func NetworkCreate(name string) (*Network, error)

func (Network) Connect

func (n Network) Connect(c Container) error

Jump to

Keyboard shortcuts

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