host

package
v0.0.0-...-5ea79ae Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureCoverage = iota
	FeatureComparisons
	FeatureSandboxSetuid
	FeatureSandboxNamespace
	FeatureFaultInjection
	FeatureLeakChecking
	FeatureNetworkInjection
	FeatureNetworkDevices
)

Variables

This section is empty.

Functions

func DetectSupportedSyscalls

func DetectSupportedSyscalls(target *prog.Target, sandbox string) (
	map[*prog.Syscall]bool, map[*prog.Syscall]string, error)

DetectSupportedSyscalls returns list on supported and unsupported syscalls on the host. For unsupported syscalls it also returns reason as to why it is unsupported.

func Setup

func Setup(target *prog.Target, features *Features) (func(), error)

Setup enables and does any one-time setup for the requested features on the host. Note: this can be called multiple times and must be idempotent.

Types

type Feature

type Feature struct {
	Name    string
	Enabled bool
	Reason  string
}

type Features

type Features [numFeatures]Feature

func Check

func Check(target *prog.Target) (*Features, error)

Check detects features supported on the host. Empty string for a feature means the feature is supported, otherwise the string contains the reason why the feature is not supported.

Jump to

Keyboard shortcuts

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