hostruntime

package
v0.1.45 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeNotFoundError

type FakeNotFoundError struct{}

func (FakeNotFoundError) Error

func (err FakeNotFoundError) Error() string

func (FakeNotFoundError) NotFound

func (err FakeNotFoundError) NotFound() bool

type HostPathMap

type HostPathMap map[string]string

func (HostPathMap) ToHostPath

func (m HostPathMap) ToHostPath(localPath string) string

type RuntimeInfo

type RuntimeInfo struct {
	// InAContainer indicates if opctl is running on and spinning up new containers on same docker engine host
	InAContainer bool
	// DockerID is ID of opctl's container
	DockerID string
	// HostPathMap provides remapping of paths inside opctl container to paths on docker engine host
	HostPathMap HostPathMap
}

RuntimeInfo provides relation between opctl and docker engine host

func New

func New(cli containerInspector) (RuntimeInfo, error)

Directories

Path Synopsis
internal
fakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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