23 lines
456 B
Go
23 lines
456 B
Go
package info
|
|
|
|
import (
|
|
"github.com/FAU-CDI/wisski-distillery/internal/status"
|
|
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
|
|
)
|
|
|
|
type SnapshotsFetcher struct {
|
|
ingredient.Base
|
|
}
|
|
|
|
var (
|
|
_ ingredient.WissKIFetcher = (*SnapshotsFetcher)(nil)
|
|
)
|
|
|
|
func (lbr *SnapshotsFetcher) Fetch(flags ingredient.FetcherFlags, info *status.WissKI) (err error) {
|
|
if flags.Quick {
|
|
return
|
|
}
|
|
|
|
info.Snapshots, _ = lbr.Snapshots(flags.Context)
|
|
return
|
|
}
|