podtracer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const HostProcPath string = "/host/proc/"

Variables

This section is empty.

Functions

func Execute

func Execute(r Runner, pid PID) error

func Log

func Log(msgLogLevel string, msg string, args ...interface{})

Types

type ContainerContext

type ContainerContext struct {

	// This client should use only pod's token credentials
	// With the service account being able to list but not
	// change objects.
	client.Client

	// targetPod is the complete pod object for now
	// It may be de-scoped to less information distributed
	// on multiple smaller fields
	TargetPod corev1.Pod

	// InspectInfo is the complete json blob coming from the
	// inspect information from the container engine response
	InspectInfo []map[string]interface{}
}

Podtracer struct holds information about current podtracer or podtracers task(s) running and all interesting pieces of information that may be added to the os/exec write operation to enrich data passed along to central data collection endpoints

func (*ContainerContext) GetContainerPID

func (cctx *ContainerContext) GetContainerPID() string

func (*ContainerContext) Init

func (cctx *ContainerContext) Init(podName string, Namespace string) error

type PID

type PID interface {
	GetContainerPID() string
}

type Runner

type Runner interface {
	Run() error
}

type Streamer

type Streamer struct {
	PodName string
	// contains filtered or unexported fields
}

func (*Streamer) Init

func (s *Streamer) Init(destination string, port string, podName string) error

func (Streamer) Write

func (s Streamer) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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