scratch

package
v0.0.0-...-3015c2b Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScratchDir   = ".ij"
	WorkspaceDir = "workspace"
	ScriptsDir   = "scripts"
	LogsDir      = "logs"
	OutLogSuffix = ".out.log"
	ErrLogSuffix = ".err.log"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ScratchSpace

type ScratchSpace struct {
	// contains filtered or unexported fields
}

func NewScratchSpace

func NewScratchSpace(runID, projectDir, scratchRoot string, keepWorkspace bool) *ScratchSpace

func (*ScratchSpace) MakeLogFiles

func (s *ScratchSpace) MakeLogFiles(prefix string) (*os.File, *os.File, error)

func (*ScratchSpace) Project

func (s *ScratchSpace) Project() string

func (*ScratchSpace) Prune

func (s *ScratchSpace) Prune(logger logging.Logger) error

func (*ScratchSpace) Runpath

func (s *ScratchSpace) Runpath() string

func (*ScratchSpace) Scratch

func (s *ScratchSpace) Scratch() string

func (*ScratchSpace) Setup

func (s *ScratchSpace) Setup() error

func (*ScratchSpace) Teardown

func (s *ScratchSpace) Teardown() error

func (*ScratchSpace) Workspace

func (s *ScratchSpace) Workspace() string

func (*ScratchSpace) WriteScript

func (s *ScratchSpace) WriteScript(script string) (string, error)

Jump to

Keyboard shortcuts

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