ressyncstore

package
v3.0.0-rc67 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0 Imports: 38 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ressyncstore is the sync.store driver: the resource backing an object up into a store, as a run of its heads and its configuration, and restoring it from one.

The driver decides what a run saves, when, and what is kept. The store driver behind the store keyword only writes, lists, restores and deletes what it is told to.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() resource.Driver

Types

type T

type T struct {
	ressync.T
	Store       string
	RIDs        []string
	Exclude     []string
	Keep        string
	IncludeRefs bool
	Snapshot    string
	ObjectID    uuid.UUID
}

T is the sync.store driver.

func (*T) DriverID

func (t *T) DriverID() driver.ID

func (*T) Full

func (t *T) Full(ctx context.Context) error

Full writes a run, then checks it.

func (*T) Info

func (t *T) Info(ctx context.Context) (resource.InfoKeys, error)

func (*T) Label

func (t *T) Label(_ context.Context) string

Label returns the store the runs go to.

func (*T) Manifest

func (t *T) Manifest() *manifest.T

Manifest exposes to the core the input expected by the driver.

func (*T) Provisioned

func (t *T) Provisioned(ctx context.Context) (provisioned.T, error)

func (*T) Restore

func (t *T) Restore(ctx context.Context) error

Restore writes back the members of a run: aside, into a directory per member, or in place, into the heads, every head emptied first but its excluded paths, so it holds what the run saved and nothing more.

func (*T) RestoredConfig

func (t *T) RestoredConfig(ctx context.Context) ([]byte, []string, error)

RestoredConfig implements resource.ConfigRestorer: the configuration of the run the restore options name, as the object restores it, and the keywords it changes. The api replaces the configuration with it itself, as the requester, whose grants its checks weigh.

func (*T) ScheduleOptions

func (t *T) ScheduleOptions() resource.ScheduleOptions

func (*T) Snapshots

func (t *T) Snapshots(ctx context.Context) ([]resource.Snapshot, error)

Snapshots implements resource.SnapshotLister: the runs of the object the store holds.

func (*T) Status

func (t *T) Status(ctx context.Context) status.T

Status judges the freshness of the last run written whole from this node, on the node holding the active instance.

func (*T) Update

func (t *T) Update(ctx context.Context) error

Update writes a run: every head, and the configuration of the object.

Jump to

Keyboard shortcuts

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