docker

package
v0.0.2-20220209 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExplorer

func NewExplorer(root string, containerdroot string, manifest string, snapshot string, sc *explorers.SupportContainer) (explorers.ContainerExplorer, error)

NewExplorer returns a ContainerExplorer interface to explorer docker managed containers.

Types

type Bridge

type Bridge struct {
	IPAMConfig        interface{}
	Links             interface{}
	Aliases           interface{}
	NetworkID         string
	EndpointID        string
	Gateway           string
	IPAddresses       string
	IPPrefixLen       int
	IPv6Gateway       string
	GlobalIPv6Address string
	GlobalIPPrefixLen int
	MacAddresses      string
	IPAMOperational   bool
}

Bridge represents docker networks bridge structure

type Config

type Config struct {
	ExposedPorts map[string]interface{}
	Hostname     string
	Domainname   string
	User         string
	AttachStdin  bool
	AttachStdout bool
	AttachStderr bool
	Tty          bool
	OpenStdin    bool
	StdinOnce    bool
	Env          []string
	Cmd          []string
	Image        string
	Volumes      interface{}
	WorkingDir   interface{}
	EntryPoint   interface{}
	OnBuild      interface{}
	Labels       map[string]string
}

Config holds docker runtime config

type ConfigFile

type ConfigFile struct {
	StreamConfig           map[string]interface{}
	State                  State
	ID                     string
	Created                time.Time
	Managed                bool
	Path                   string
	Args                   []string
	ContainerConfig        map[string]interface{}
	Config                 Config
	Image                  string
	NetworkSettings        NetworkSettings
	LogPath                string
	Name                   string
	Driver                 string
	MountLabel             string
	ProcessLabel           string
	RestartCount           int64
	HasBeenRestartedBefore bool
	HasBeenManuallyStopped bool
	MountPoints            map[string]interface{}
	SecretReferences       interface{}
	AppArmorProfile        string
	HostnamePath           string
	HostsPath              string
	ShmPath                string
	ResolvConfPath         string
	SeccompProfile         string
	NoNewPrivileges        bool
}

ConfigFile represents docker config.v2.json structure

type ImageName

type ImageName map[string]string

type ImageRepository

type ImageRepository struct {
	Repositories map[string]ImageName
}

type NetworkSettings

type NetworkSettings struct {
	Bridge                 string
	SandboxID              string
	HairpinMode            bool
	LinkLocalIPv6Address   string
	LinkLocalIPv6PrefixLen int
	Networks               map[string]interface{}
	Service                map[string]interface{}
	Ports                  map[string]interface{}
	SandboxKey             string
	SecondaryIPAddresses   interface{}
	SecondaryIPv6Addresses interface{}
	IsAnonymousEndpoint    bool
	HasSwarmEndpoint       bool
}

NetworkSettings represents docker network settings

type State

type State struct {
	Running           bool
	Paused            bool
	Resarting         bool
	OOMKilled         bool
	RemovalInProgress bool
	Dead              bool
	Pid               int64
	ExitCode          int64
	Error             string
	StartedAt         time.Time
	FinishedAt        time.Time
	Health            interface{}
}

State holds attribute about docker container state

Jump to

Keyboard shortcuts

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