utils

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command added in v0.2.0

func Command(name string, arg ...string) *exec.Cmd

func ContainerFileSystem

func ContainerFileSystem(r api.ContainerRuntime, containerID string) (string, error)

func ContainerPID

func ContainerPID(job *config.ProfilingJob, PPID bool) (string, error)

func ExecuteCommand

func ExecuteCommand(cmd *exec.Cmd) (int, string, error)

func NormalizeContainerID

func NormalizeContainerID(containerID string) string

func Publish added in v0.4.0

func Publish(c api.Compressor, file string, eventType api.EventType) error

func PublishError added in v0.7.2

func PublishError(err error)

func PublishEvent added in v0.7.2

func PublishEvent(eventType api.EventType, data interface{}) error

func PublishLogEvent added in v0.7.2

func PublishLogEvent(level api.LogLevel, msg string)

Types

type Container added in v0.4.0

type Container interface {
	RootFileSystemLocation(containerID string) (string, error)
	PID(containerID string) (string, error)
}

Directories

Path Synopsis
runtimes

Jump to

Keyboard shortcuts

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