inspector

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerInspector

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

DockerInspector implements Inspector for Docker CE.

func (*DockerInspector) GetAllValues

func (di *DockerInspector) GetAllValues(containerId string) (map[string]string, error)

func (*DockerInspector) GetValue

func (di *DockerInspector) GetValue(containerId, varName string) (string, error)

GetValue implements Inspector.

type Inspector

type Inspector interface {
	// GetAll returns a map of all environment vars for a container.
	GetAllValues(containerId string) (map[string]string, error)

	// Returns the raw string value of the variable
	GetValue(containerId, varName string) (string, error)
}

func New

func New() (Inspector, error)

Jump to

Keyboard shortcuts

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