Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommitStatusIdle = iota CommitStatusFinished )
View Source
const MinTimestamp = -62135596800
Variables ¶
This section is empty.
Functions ¶
func WithTransactionContext ¶
WithTransactionContext returns a new context holding the provided bolt transaction. Functions which require a bolt transaction will first check to see if a transaction is already created on the context before creating their own.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB represents a metadata database backed by a bolt database. The database is fully namespaced and stores image, container, namespace, snapshot, and content data while proxying data shared across namespaces to backend datastores for content and snapshots.
type JudgeSessionStore ¶
type JudgeSessionStore interface { SetJudgeSession(ctx context.Context, key []byte, meta *tarus.OCIJudgeSession) error GetJudgeSession(ctx context.Context, key []byte) (*tarus.OCIJudgeSession, error) // FinishSession requires transactionCb is idempotent FinishSession(ctx context.Context, key []byte, transactionCb func() error) error }
func NewJudgeSessionStore ¶
func NewJudgeSessionStore(db *DB) JudgeSessionStore
Click to show internal directories.
Click to hide internal directories.