Documentation
¶
Index ¶
Constants ¶
View Source
const ( NameSecrets = "secrets" NameCache = "cache" NameUser = "user" NameJobs = "jobs" NameLogs = "logs" NameReport = "report" NameTest = "test" NameKvs = "kvs" JobIdFormat = "20060102-150405" )
Variables ¶
This section is empty.
Functions ¶
func DefaultAppPath ¶
Types ¶
type Application ¶
type Application interface {
// Toolbox home path
Home() string
}
type Bundle ¶
type Bundle interface {
io.Closer
// Workspace
Workspace() Workspace
// Logger
Logger() esl_container.Logger
// REST logger
Capture() esl_container.Logger
// Summary logger
Summary() esl_container.Logger
// Storage budget
Budget() app_budget.Budget
// Log level for console logs
ConsoleLogLevel() esl.Level
// True when the workspace bundle is transient.
IsTransient() bool
}
Workspace bundle
func ForkBundleWithLevel ¶
type Job ¶
type Job interface {
// Path for job
Job() string
// Time of the job started
JobStartTime() time.Time
// Job ID
JobId() string
// Log path for job
Log() string
// Test
Test() string
// Report path for job
Report() string
// Path for KVS storage
KVS() string
// Create or get child folder of job folder
Descendant(name string) (path string, err error)
}
type Workspace ¶
type Workspace interface {
Application
User
Job
}
func NewWorkspaceByJobPath ¶
func NewWorkspaceByJobPath(home Application, jobId string) (ws Workspace, err error)
Create workspace instance by job path. This will not create directories. Just matches to existing folder structure. Returns error if a
Click to show internal directories.
Click to hide internal directories.