dockertool

package
v0.0.0-...-c66a2f6 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 5 Imported by: 2

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 any) (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