cri

package
v0.0.0-...-feb2835 Latest Latest
Warning

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

Go to latest
Published: May 9, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CRIProcessor

type CRIProcessor struct {
	SubmissionID string
	// Fundamental properties of command process
	ContainerIdentifier string
	ContainerName       string
	CommandType         string
	CommandContent      string
	Timeout             int
	// contains filtered or unexported fields
}

func DetectCriProcessor

func DetectCriProcessor(logger logrus.FieldLogger, runtimeType string, options *model.ContainerCommandOptions) (*CRIProcessor, error)

func NewProcessor

func NewProcessor(options *model.ContainerCommandOptions, connection *containerConnection) *CRIProcessor

func (*CRIProcessor) Cancel

func (p *CRIProcessor) Cancel() error

func (*CRIProcessor) Cleanup

func (p *CRIProcessor) Cleanup() error

func (*CRIProcessor) ExtraLubanParams

func (p *CRIProcessor) ExtraLubanParams() string

func (*CRIProcessor) PreCheck

func (p *CRIProcessor) PreCheck() (string, *taskerrors.TaskError)

func (*CRIProcessor) Prepare

func (p *CRIProcessor) Prepare(commandContent string) *taskerrors.TaskError

func (*CRIProcessor) SideEffect

func (p *CRIProcessor) SideEffect() error

func (*CRIProcessor) SyncRun

func (p *CRIProcessor) SyncRun(
	stdoutWriter io.Writer,
	stderrWriter io.Writer,
	stdinReader io.Reader) (exitCode int, status int, err error)

Jump to

Keyboard shortcuts

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