util

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

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

func ContainerFileSystem

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

func ContainerPID

func ContainerPID(job *job.ProfilingJob) (string, error)

func ExecuteCommand

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

func NormalizeContainerID

func NormalizeContainerID(containerID string) string

func Publish

func Publish(compressorType compressor.Type, file string, eventType api.EventType) error

func SilentCommand

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

Types

type Container

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

Directories

Path Synopsis
runtime

Jump to

Keyboard shortcuts

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