docker

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c Container) error

func Events

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

func NetworkRemove

func NetworkRemove(name string) error

func Pull

func Pull(image string) error

func Rm

func Rm(name string) error

func Start

func Start(c Container) error

func Stop

func Stop(id 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
}

func Ps

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

func (Container) Create

func (c Container) Create() error

func (Container) Pull

func (c Container) Pull() 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