config

package
v0.0.0-...-070089e Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CollectionMethodEBPF    = "ebpf"
	CollectionMethodCoreBPF = "core-bpf"
)

Variables

This section is empty.

Functions

func CollectionMethod

func CollectionMethod() string

func LogPath

func LogPath() string

func ReadBoolEnvVar

func ReadBoolEnvVar(env string) bool

ReadBoolEnvVar safely reads a boolean value from the environment, parsed into a bool type. If the variable does not exist, the result is false

func ReadEnvVar

func ReadEnvVar(env string) string

ReadEnvVar safely reads a variable from the environment. If the variable does not exist, an empty string is returned.

func ReadEnvVarWithDefault

func ReadEnvVarWithDefault(env string, def string) string

ReadEnvVarWithDefault safely reads a variable from the environment. If the variable does not exist, the provided default is returned.

func StopTimeout

func StopTimeout() string

Types

type Benchmarks

type Benchmarks struct {
	BccCommand      string
	BpftraceCommand string
	PerfCommand     string
	SkipInit        bool
}

Benchmarks contains options related to interacting with the benchmarks

func BenchmarksInfo

func BenchmarksInfo() *Benchmarks

type CollectorOptions

type CollectorOptions struct {
	// The collector log level, e.g. DEBUG, TRACE
	LogLevel string
}

CollectorOptions contains options related to running collector itself

func CollectorInfo

func CollectorInfo() *CollectorOptions

type ContainerStartConfig

type ContainerStartConfig struct {
	Name        string
	Image       string
	Privileged  bool
	NetworkMode string
	Mounts      map[string]string
	Env         map[string]string
	Command     []string
	Entrypoint  []string
	Ports       []uint16
}

type Host

type Host struct {
	Kind string
}

Host contains information about how to connect to the host upon which the tests are running

func HostInfo

func HostInfo() *Host

func (*Host) IsK8s

func (h *Host) IsK8s() bool

func (*Host) IsLocal

func (h *Host) IsLocal() bool

type ImageStore

type ImageStore struct {
	Qa    map[string]string
	NonQa map[string]string `yaml:"non_qa"`
	// contains filtered or unexported fields
}

func Images

func Images() *ImageStore

func (*ImageStore) CollectorImage

func (i *ImageStore) CollectorImage() string

func (*ImageStore) ImageByKey

func (i *ImageStore) ImageByKey(key string) string

ImageByKey looks up an image from the store, and panics if the image does not exist.

func (*ImageStore) QaImageByKey

func (i *ImageStore) QaImageByKey(key string) string

QaImageByKey looks up an image from the store, and appends the QA tag. If the image does not exist in the store, this function will panic.

type Runtime

type Runtime struct {
	// The command used to interact with the runtime. e.g. docker
	Command string
	// The path to the the runtime socket e.g. /var/run/docker.sock
	Socket string
	// Whether or not interactions with this runtime should be run
	// as root
	RunAsRoot bool
	// Which local paths to search for container registry credentials
	ConfigPaths []string
}

Runtime contains information related to the container runtime.

func RuntimeInfo

func RuntimeInfo() *Runtime

type VM

type VM struct {
	Config string
}

VM contains metadata about the machine upon which the tests are running.

func VMInfo

func VMInfo() *VM

Jump to

Keyboard shortcuts

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