docker

package
v0.0.0-...-e2fb21b Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(judge string, net *netaddr.IPv4Net, netprefix uint8)

Types

type Docker

type Docker struct {
	ID      string
	SubNets netaddr.IPv4NetList
	Dir     string
	// contains filtered or unexported fields
}

func NewDocker

func NewDocker(dir, hostworkerdir string) (*Docker, error)

func (*Docker) Close

func (c *Docker) Close()

func (*Docker) Down

func (c *Docker) Down() error

func (*Docker) Exec

func (c *Docker) Exec(name string, env map[string]string, timeout time.Duration, command ...string) (stdout, stderr bytes.Buffer, err error)

func (*Docker) GetID

func (c *Docker) GetID() string

func (*Docker) InitPool

func (c *Docker) InitPool(poolname string) error

func (*Docker) Up

func (c *Docker) Up() error

Jump to

Keyboard shortcuts

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