context

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandRef

func ExpandRef(ctx *Context, ref executable.Ref) executable.Ref

Types

type Context

type Context struct {
	Ctx                  context.Context
	CancelFunc           context.CancelFunc
	Logger               io.Logger
	Config               *config.Config
	CurrentWorkspace     *workspace.Workspace
	InteractiveContainer *components.ContainerView
	WorkspacesCache      cache.WorkspaceCache
	ExecutableCache      cache.ExecutableCache

	// ProcessTmpDir is the temporary directory for the current process. If set, it will be
	// used to store temporary files all executable runs when the tmpDir value is specified.
	ProcessTmpDir string
	// contains filtered or unexported fields
}

func NewContext

func NewContext(ctx context.Context, stdIn, stdOut *os.File) *Context

func (*Context) Finalize added in v0.1.0

func (ctx *Context) Finalize()

func (*Context) SetIO added in v0.1.6

func (ctx *Context) SetIO(stdIn, stdOut *os.File)

SetIO sets the standard input and output for the context This function should NOT be used outside of tests! The standard input and output should be set when creating the context.

func (*Context) StdIn added in v0.1.6

func (ctx *Context) StdIn() *os.File

func (*Context) StdOut added in v0.1.6

func (ctx *Context) StdOut() *os.File

Jump to

Keyboard shortcuts

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