cri

package
v0.0.0-...-028f1de Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 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 {
	TaskId string
	// Fundamental properties of command process
	ContainerIdentifier string
	ContainerName       string
	CommandType         string
	CommandContent      string
	Timeout             int
	// contains filtered or unexported fields
}

func (*CRIProcessor) Cancel

func (p *CRIProcessor) Cancel()

func (*CRIProcessor) Cleanup

func (p *CRIProcessor) Cleanup(removeScriptFile bool) error

func (*CRIProcessor) ExtraLubanParams

func (p *CRIProcessor) ExtraLubanParams() string

func (*CRIProcessor) PreCheck

func (p *CRIProcessor) PreCheck() (string, error)

func (*CRIProcessor) Prepare

func (p *CRIProcessor) Prepare(commandContent string) error

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