Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithPollOptions ¶ added in v1.34.0
func WithPollOptions(opts ...containers.Option[storagefs.Poller]) containers.Option[SnapshotStore]
WithPollOptions configures poller options on the store.
Types ¶
type SnapshotStore ¶ added in v1.34.0
SnapshotStore implements storagefs.SnapshotStore which is backed by the local filesystem through os.DirFS
func NewSnapshotStore ¶ added in v1.34.0
func NewSnapshotStore(ctx context.Context, logger *zap.Logger, dir string, opts ...containers.Option[SnapshotStore]) (*SnapshotStore, error)
NewSnapshotStore constructs a new SnapshotStore
func (*SnapshotStore) String ¶ added in v1.34.0
func (s *SnapshotStore) String() string
String returns an identifier string for the store type.
func (*SnapshotStore) View ¶ added in v1.34.0
func (s *SnapshotStore) View(_ context.Context, fn func(storage.ReadOnlyStore) error) error
View passes the current snapshot to the provided function while holding a read lock.
Click to show internal directories.
Click to hide internal directories.