container

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Probe

type Probe struct {
	Detected bool            `json:"detected"`
	Name     string          `json:"name"`
	Results  map[string]bool `json:"results"`
	// contains filtered or unexported fields
}

Probe struct for containres. Used to store the results of the probe and the name of the container discovered.

func New

func New() (*Probe, error)

New initializes new probe struct and probes the system.

func (*Probe) Docker

func (p *Probe) Docker() bool

Docker detects if a system is on the Docker.

func (*Probe) JSON

func (p *Probe) JSON() string

JSON representation of the struct.

func (*Probe) LXC

func (p *Probe) LXC() bool

LXC detects if a system is on the LXC.

func (*Probe) Podman

func (p *Probe) Podman() bool

Podman detects if a system is on the Podman.

func (*Probe) String

func (p *Probe) String() string

String representation of the struct.

func (*Probe) WSL

func (p *Probe) WSL() bool

WSL detects if a system is on the WSL.

Jump to

Keyboard shortcuts

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