local

package
v1.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

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

type SnapshotStore struct {
	*storagefs.Poller
	// contains filtered or unexported fields
}

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

View passes the current snapshot to the provided function while holding a read lock.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL