container

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(name string, args []string) error

func Delete

func Delete(name string) error

func Exec

func Exec(name string, command []string, stdin io.Reader, stdout io.Writer, stderr io.Writer) error

func Exist

func Exist(name string) bool

func GetLabelValue added in v0.1.0

func GetLabelValue(name string, label string) (string, error)

GetLabelValue return the value of the associated label It returns an error if the label value does not exist

func IPs

func IPs(name string) (ipv4 string, ipv6 string, err error)

func IsRunning

func IsRunning(name string) bool

func ListByLabel

func ListByLabel(label string) ([]string, error)

func PortMaps added in v0.1.0

func PortMaps(name string) (map[string]string, error)

return a list with the map of the internal port to the external port

func Signal

func Signal(name string, signal string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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