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 GenerateHostsFile ¶
func PrepareConfigDir ¶
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 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)
Click to show internal directories.
Click to hide internal directories.