Documentation ¶
Index ¶
- Constants
- type FsRepo
- func (fsr *FsRepo) Exists() (bool, error)
- func (fsr *FsRepo) Init() error
- func (fsr *FsRepo) InitExecutionStore(ctx context.Context, prefix string) (store.ExecutionStore, error)
- func (fsr *FsRepo) InitJobStore(ctx context.Context, prefix string) (jobstore.Store, error)
- func (fsr *FsRepo) Open() error
- func (fsr *FsRepo) Path() (string, error)
- func (fsr *FsRepo) WriteRunInfo(ctx context.Context, summaryShellVariablesString string) (string, error)
- type RepoVersion
Constants ¶
const ( // RepoVersion2 is the current repo versioning. RepoVersion2 = 2 // RepoVersion1 is the current repo versioning for v1-v1.1.4 RepoVersion1 = 1 // RepoVersionFile is the name of the repo file containing the repo version. RepoVersionFile = "repo.version" )
const (
// UpdateCheckStatePath is the update check paths.
UpdateCheckStatePath = "update.json"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FsRepo ¶
type FsRepo struct {
// contains filtered or unexported fields
}
func (*FsRepo) InitExecutionStore ¶
func (fsr *FsRepo) InitExecutionStore(ctx context.Context, prefix string) (store.ExecutionStore, error)
InitExecutionStore must be called after Init and uses the configuration to create a new ExecutionStore. Where BoltDB is chosen, and no path is specified, then the database will be created in the repo in a folder labeledafter the node ID. For example: `~/.bacalhau/Qmd1BEyR4RsLdYTEym1YxxaeXFdwWCMANYN7XCcpPYbTRs-compute/executions.db`
func (*FsRepo) InitJobStore ¶
InitJobStore must be called after Init and uses the configuration to create a new JobStore for the requester node. Where BoltDB is chosen, and no path is specified, then the database will be created in the repo in a folder labeledafter the node ID. For example: `~/.bacalhau/Qmd1BEyR4RsLdYTEym1YxxaeXFdwWCMANYN7XCcpPYbTRs-requester/jobs.db`
type RepoVersion ¶
type RepoVersion struct {
Version int
}