process

package
v0.3.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ProcessDriverID common.LoadDriverID = "process"

Variables

This section is empty.

Functions

func NewProcessDriver

func NewProcessDriver(c any) (common.LoadDriver, error)

Types

type ProcessConfig

type ProcessConfig struct {
	StartCmd       string  `json:"start_cmd"`
	StartArgs      *string `json:"start_args,omitempty"`
	WorkingDir     *string `json:"working_dir,omitempty"`
	StopSignal     *string `json:"stop_signal,omitempty"`
	UseProcessName *bool   `json:"use_process_name,omitempty"`
}

type ProcessDriver

type ProcessDriver struct {
	StopSignal *int
	// contains filtered or unexported fields
}

func (*ProcessDriver) Config

func (*ProcessDriver) Deprovision

func (p *ProcessDriver) Deprovision(repository common.DeploymentsRepository, deployment common.Deployment) error

func (ProcessDriver) ID

func (ProcessDriver) Info

func (*ProcessDriver) Kill

func (p *ProcessDriver) Kill(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ProcessDriver) Provision

func (p *ProcessDriver) Provision(nodeDriver common.NodeDriver, repository common.DeploymentsRepository, loadName string) (common.DeploymentID, error)

func (*ProcessDriver) ReadStderr

func (p *ProcessDriver) ReadStderr(repository common.DeploymentsRepository, deployment common.Deployment, offset int64) ([]byte, int64, error)

func (*ProcessDriver) ReadStdout

func (p *ProcessDriver) ReadStdout(repository common.DeploymentsRepository, deployment common.Deployment, offset int64) ([]byte, int64, error)

func (*ProcessDriver) Start

func (p *ProcessDriver) Start(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ProcessDriver) Stop

func (p *ProcessDriver) Stop(repository common.DeploymentsRepository, deployment common.Deployment) error

func (*ProcessDriver) StreamStderr

func (p *ProcessDriver) StreamStderr(repository common.DeploymentsRepository, deployment common.Deployment, w io.Writer) error

func (*ProcessDriver) StreamStdout

func (p *ProcessDriver) StreamStdout(repository common.DeploymentsRepository, deployment common.Deployment, w io.Writer) error

func (*ProcessDriver) UpdateStatus

type ProcessEntryMetadata

type ProcessEntryMetadata struct {
	Pid        int    `json:"pid,omitempty"`
	StdoutPath string `json:"stdout_path,omitempty"`
	StderrPath string `json:"stderr_path,omitempty"`
}

Jump to

Keyboard shortcuts

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