runner

package
v0.0.0-...-d691e2b Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package runner

Package runner

Index

Constants

View Source
const (
	SpecConfig       = "config.json"
	DefaultDNSConfig = "/etc/resolv.conf"
	RUNTIMEUID       = "CFC_RUNTIME_UID=1001"
	RUNTIMEGID       = "CFC_RUNTIME_GID=1001"
)

Variables

This section is empty.

Functions

func AppendHostsFile

func AppendHostsFile(path, containerID string) error

func GenerateHostsFile

func GenerateHostsFile(path string) error

func PrepareConfigDir

func PrepareConfigDir(containerID string, path string) error

Types

type Manager

type Manager struct {
	Mode    string
	Options *RunnerSpecOption
	// contains filtered or unexported fields
}

func NewRunnerManager

func NewRunnerManager(o *RunnerSpecOption, config *api.ResourceConfig, mode string) *Manager

func (*Manager) GenerateRunnerConfig

func (m *Manager) GenerateRunnerConfig(c *RunnerConfig) *RunnerSpec

type RunnerConfig

type RunnerConfig struct {
	HostName          string
	HostsPath         string
	ConfigPath        string
	CodePath          string
	RuntimePath       string
	TmpPath           string
	RuncConfigPath    string
	RuntimeSocketPath string
	ResourceConfig    *api.ResourceConfig
}

type RunnerManagerInterface

type RunnerManagerInterface interface {
	GenerateRunnerConfig(c *RunnerConfig) *RunnerSpec
}

type RunnerSpec

type RunnerSpec = specs.Spec

type RunnerSpecOption

type RunnerSpecOption struct {
	RunnerCmd               string
	RootfsPath              string
	EtcPath                 string
	CodePath                string
	ConfPath                string
	RuntimePath             string
	InvokerSocketPath       string
	RuntimeSocketPath       string
	TargetHostsPath         string
	TargetConfPath          string
	TargetCodePath          string
	TargetRuntimePath       string
	TargetTmpPath           string
	TargetInvokerSocketPath string
	TargetRuntimeSocketPath string
	VscodeManagerSocketPath string
}

func NewRunnerSpecOption

func NewRunnerSpecOption() *RunnerSpecOption

func (*RunnerSpecOption) AddFlags

func (s *RunnerSpecOption) AddFlags(fs *pflag.FlagSet)

Jump to

Keyboard shortcuts

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