Documentation ¶
Index ¶
- Constants
- Variables
- type DBGetter
- type Job
- func (j *Job) Collect(ctx context.Context, docker *client.Client) error
- func (j *Job) Complete(ctx context.Context, dbGetter DBGetter, docker *client.Client) error
- func (j *Job) RunNow(ctx context.Context, dbGetter DBGetter, docker *client.Client) error
- func (j *Job) Save(ctx context.Context, db *bbolt.DB) error
- func (j *Job) Status() (status string)
- func (j *Job) Teardown(ctx context.Context, docker *client.Client) error
Constants ¶
View Source
const ( ServerImage = "ghcr.io/schattian/bencher:master" ServerRootPath = "/bencher" ContainersLabel = "bencher" RunnerRootPath = "/bencher" )
Variables ¶
View Source
var ( // host paths HostRootPath = fmt.Sprintf("%s/.bencher", os.Getenv("HOME")) HostVersionsPath = fmt.Sprintf("%s/versions", HostRootPath) HostServerRootPath = fmt.Sprintf("%s/server", HostRootPath) HostDBFilename = fmt.Sprintf("%s/%s", HostServerRootPath, db) HostPIDFilename = fmt.Sprintf("%s/%s", HostServerRootPath, pid) // server paths ServerDBFilename = fmt.Sprintf("%s/%s", ServerRootPath, db) ServerPIDFilename = fmt.Sprintf("%s/%s", ServerRootPath, pid) )
View Source
var KeyJob = []byte("jobs")
View Source
var (
KeySched = []byte("sched")
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.