runner

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagType is the flag for defining the profile type.
	FlagType string = "type"

	// FlagProfile is the flag for defining the input file location.
	FlagProfile string = "profile"
)

Variables

View Source
var DefaultInputFile = cli.DefaultFile

DefaultInputFile defines the default input location for the runner.

Functions

This section is empty.

Types

type Options

type Options struct {
	// contains filtered or unexported fields
}

Options define all possible options for the runner.

func Default

func Default() *Options

Default returns a default options instance.

func FromContext

func FromContext(ctx *cli.Context) (*Options, error)

FromContext can be used to create Options from an CLI context.

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

Runner is the main structure of this package.

func New

func New(options *Options) *Runner

New returns a new Runner instance.

func (*Runner) Run

func (r *Runner) Run() error

Run the Runner.

type Type

type Type string

Type is the enum for all available profile types.

const (
	// TypeSeccomp is the type indicating that we should run using a seccomp
	// profile.
	TypeSeccomp Type = "seccomp"
)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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