repo

package
v1.1.6-rc1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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 NewFS

func NewFS(path string) (*FsRepo, error)

func (*FsRepo) Exists

func (fsr *FsRepo) Exists() (bool, error)

func (*FsRepo) Init

func (fsr *FsRepo) Init() error

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

func (fsr *FsRepo) InitJobStore(ctx context.Context, prefix string) (jobstore.Store, error)

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`

func (*FsRepo) Open

func (fsr *FsRepo) Open() error

func (*FsRepo) Path

func (fsr *FsRepo) Path() (string, error)

func (*FsRepo) WriteRunInfo

func (fsr *FsRepo) WriteRunInfo(ctx context.Context, summaryShellVariablesString string) (string, error)

type RepoVersion

type RepoVersion struct {
	Version int
}

Jump to

Keyboard shortcuts

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