docker

package
v0.0.0-...-3d25219 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ID            string
	PID           uint32
	IP            uint32
	RootFSPath    string
	LibSSLVersion int
	LibSSLPath    string
	NodePath      string
}

type ContainerGUI

type ContainerGUI struct {
	ID     string
	Image  string
	IP     string
	Name   string
	Status string
}

ContainerGUI contains the container information which is needed to display in the GUI containers dialog, it gets sent to the GUI over GRPC.

type Containers

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

Containers is a wrapper around the docker client and provides helper methods for fetching containers & procs running in docker.

func NewContainers

func NewContainers(filterCmd string) *Containers

func (*Containers) GetAllContainers

func (c *Containers) GetAllContainers() ([]ContainerGUI, error)

GetAllContainers returns all containers running on the machine

func (*Containers) GetContainersToIntercept

func (c *Containers) GetContainersToIntercept() map[string]Container

func (*Containers) GetProcsToIntercept

func (c *Containers) GetProcsToIntercept() map[uint32]Proc

func (*Containers) SetContainers

func (c *Containers) SetContainers(containerIDs []string)

type LibSSL

type LibSSL struct {
	Version int
	Path    string
}

type Proc

type Proc struct {
	PID           uint32
	ContainerId   string
	ExecPath      string
	LibSSLVersion int
	LibSSLPath    string
}

Jump to

Keyboard shortcuts

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