Documentation
¶
Index ¶
- Variables
- func New() resource.Driver
- type T
- func (t *T) DriverID() driver.ID
- 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) ScheduleOptions() resource.ScheduleOptions
- func (t *T) SortKey() string
- func (t *T) Status(ctx context.Context) status.T
- func (t *T) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
var ( Keywords = []*keywords.Keyword{ { Attr: "Name", Example: "weekly", Option: "name", Group: ressync.GroupSnapshots.ID, Scopable: true, Text: keywords.NewText(fs, "text/kw/name"), }, { Attr: "Dataset", Converter: converters.List, Example: "svc1fs/data svc1fs/log", Option: "dataset", Group: ressync.GroupSnapshots.ID, Required: true, Scopable: true, Text: keywords.NewText(fs, "text/kw/dataset"), }, { Attr: "Keep", Converter: converters.Int, Default: "3", Example: "3", Option: "keep", Group: ressync.GroupRetention.ID, Scopable: true, Text: keywords.NewText(fs, "text/kw/keep"), }, { Attr: "Recursive", Converter: converters.Bool, Default: "true", Option: "recursive", Group: ressync.GroupSnapshots.ID, Scopable: true, Text: keywords.NewText(fs, "text/kw/recursive"), }, } )
Functions ¶
Types ¶
type T ¶
T is the driver structure.
func (*T) Label ¶
Label implements Label from resource.Driver interface, it returns a formatted short description of the Resource
func (*T) Provisioned ¶
func (*T) ScheduleOptions ¶
func (t *T) ScheduleOptions() resource.ScheduleOptions
func (*T) Status ¶
Status reports the snapshots of each dataset.
On the node taking them, the newest is judged by the delay of this resource. On another node, the snapshots are the ones a sync resource replicated, and the newest is judged by the delay of this resource plus the one of that replication: both on time, it is not older. A node taking no snapshot and receiving none has none to judge.