dockertool

package
v0.0.0-...-7697303 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2017 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedContainerType1 = errutil.NewFactory("unsupported container type: %q")
)

errors

Functions

func GetContainerInfo

func GetContainerInfo(container interface{}) (id string, name string, err error)

GetContainerInfo return container info from docker object

Types

type StringExist

type StringExist struct {
	// contains filtered or unexported fields
}

StringExist a struct to check string state

func NewStringExist

func NewStringExist() StringExist

NewStringExist create a StringExist

func (*StringExist) Add

func (t *StringExist) Add(id string)

Add id to data

func (StringExist) Exist

func (t StringExist) Exist(id string) bool

Exist return true if id exist

func (*StringExist) Remove

func (t *StringExist) Remove(id string)

Remove id from data

Jump to

Keyboard shortcuts

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