docker

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSocket = "/var/run/docker.sock"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Action added in v0.18.0

type Action string
const (
	ActionCreate Action = "create"
	ActionStart  Action = "start"

	// ActionExecCreate is the prefix used for exec_create events. These
	// event-actions are commonly followed by a colon and space (": "),
	// and the command that's defined for the exec, for example:
	//
	//	exec_create: /bin/sh -c 'echo hello'
	//
	// This is far from ideal; it's a compromise to allow filtering and
	// to preserve backward-compatibility.
	ActionExecCreate Action = "exec_create"
	// ActionExecStart is the prefix used for exec_create events. These
	// event-actions are commonly followed by a colon and space (": "),
	// and the command that's defined for the exec, for example:
	//
	//	exec_start: /bin/sh -c 'echo hello'
	//
	// This is far from ideal; it's a compromise to allow filtering and
	// to preserve backward-compatibility.
	ActionExecStart Action = "exec_start"
)

type MetaData

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

func NewMetaData

func NewMetaData(host string) (*MetaData, error)

func (*MetaData) Close

func (d *MetaData) Close() error

func (*MetaData) GetById

func (d *MetaData) GetById(containerId string) types.Container

func (*MetaData) GetByMntNs

func (d *MetaData) GetByMntNs(mntNs int64) types.Container

func (*MetaData) GetByName added in v0.13.0

func (d *MetaData) GetByName(name string) []types.Container

func (*MetaData) GetByNetNs

func (d *MetaData) GetByNetNs(netNs int64) types.Container

func (*MetaData) GetByPid

func (d *MetaData) GetByPid(pid int) types.Container

func (*MetaData) GetByPod added in v0.15.0

func (d *MetaData) GetByPod(name, namespace string) []types.Container

func (*MetaData) Start

func (d *MetaData) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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