Documentation ¶
Index ¶
- type Logger
- func (log *Logger) Add(ctx context.Context, export models.Export) error
- func (logger *Logger) Fetch(ctx context.Context, flags component.FetcherFlags, target *status.Distillery) (err error)
- func (log *Logger) For(ctx context.Context, slug string) (exports []models.Export, err error)
- func (log *Logger) Log(ctx context.Context) ([]models.Export, error)
- func (*Logger) TableInfo() component.TableInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger is responsible for logging backups and snapshots
func (*Logger) Fetch ¶
func (logger *Logger) Fetch(ctx context.Context, flags component.FetcherFlags, target *status.Distillery) (err error)
Fetch writes the SnapshotLog into the given observation
func (*Logger) For ¶
For retrieves (and prunes) the ExportLog. Slug determines if entries for Backups (empty slug) or a specific Instance (non-empty slug) are returned.
Click to show internal directories.
Click to hide internal directories.