Documentation
¶
Index ¶
- Constants
- func CollectionMethod() string
- func LogPath() string
- func ReadBoolEnvVar(env string) bool
- func ReadEnvVar(env string) string
- func ReadEnvVarWithDefault(env string, def string) string
- func StopTimeout() string
- type Benchmarks
- type CollectorOptions
- type ContainerStartConfig
- type Host
- type ImageStore
- type Runtime
- type VM
Constants ¶
const ( CollectionMethodEBPF = "ebpf" CollectionMethodCoreBPF = "core-bpf" )
Variables ¶
This section is empty.
Functions ¶
func CollectionMethod ¶
func CollectionMethod() string
func ReadBoolEnvVar ¶
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 ¶
ReadEnvVar safely reads a variable from the environment. If the variable does not exist, an empty string is returned.
func ReadEnvVarWithDefault ¶
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 Host ¶
type Host struct {
Kind string
}
Host contains information about how to connect to the host upon which the tests are running
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