Documentation
¶
Index ¶
- Constants
- Variables
- func Inodes(pid int, cb func(uint64)) error
- func Nsenter(pid int, proto graph.NetProto, onconn func(int, *graph.Connection)) (err error)
- type Docker
- type DockerClient
- type InodesMap
- func (m *InodesMap) AddInode(containerID string, pid int, inode uint64)
- func (m *InodesMap) AddProcess(containerID string, pid int, name string)
- func (m *InodesMap) Has(containerID string, pid int, inode uint64) (yes bool)
- func (m *InodesMap) MarkListener(containerID string, pid int, path string)
- func (m *InodesMap) MarkUnknown(containerID string, pid int, inode uint64)
- func (m *InodesMap) ResolveUnknown(cb func(srcCID, dstCID, srcName, dstName, path string))
- type Option
Constants ¶
View Source
const ( None mode = 0 InContainer mode = 1 LinuxNsenter mode = 2 )
Variables ¶
View Source
var ErrModeNone = errors.New("mode not set")
Functions ¶
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
func (*Docker) Containers ¶
type DockerClient ¶
type DockerClient interface { ContainerList(context.Context, container.ListOptions) ([]types.Container, error) ContainerInspect(context.Context, string) (types.ContainerJSON, error) ContainerExecCreate(context.Context, string, container.ExecOptions) (types.IDResponse, error) ContainerExecAttach(context.Context, string, container.ExecStartOptions) (types.HijackedResponse, error) ContainerTop(ctx context.Context, containerID string, arguments []string) (container.ContainerTopOKBody, error) Close() error }
func Default ¶
func Default() (rv DockerClient, err error)
type InodesMap ¶
type InodesMap struct {
// contains filtered or unexported fields
}
func (*InodesMap) AddProcess ¶
func (*InodesMap) MarkListener ¶
func (*InodesMap) MarkUnknown ¶
func (*InodesMap) ResolveUnknown ¶
type Option ¶
type Option func(*options)
func WithClientCreator ¶
func WithClientCreator(c createClient) Option
func WithInodesFn ¶
func WithInodesFn(f inodes) Option
func WithNsenterFn ¶
func WithNsenterFn(f nsenter) Option
Click to show internal directories.
Click to hide internal directories.