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 ¶
- func New() resource.Driver
- type T
- func (t *T) DriverID() driver.ID
- func (t *T) Full(ctx context.Context) error
- func (t *T) Info(ctx context.Context) (resource.InfoKeys, error)
- func (t *T) Label(_ context.Context) string
- func (t *T) Manifest() *manifest.T
- func (t *T) Provisioned(ctx context.Context) (provisioned.T, error)
- func (t *T) Restore(ctx context.Context) error
- func (t *T) RestoredConfig(ctx context.Context) ([]byte, []string, error)
- func (t *T) ScheduleOptions() resource.ScheduleOptions
- func (t *T) Snapshots(ctx context.Context) ([]resource.Snapshot, error)
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) Provisioned ¶
func (*T) Restore ¶
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 ¶
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 ¶
Snapshots implements resource.SnapshotLister: the runs of the object the store holds.