Versions in this module Expand all Collapse all v1 v1.34.0 Dec 28, 2023 Changes in this version + func WithEndpoint(endpoint string) containers.Option[SnapshotStore] + func WithPollOptions(opts ...containers.Option[storagefs.Poller]) containers.Option[SnapshotStore] + func WithPrefix(prefix string) containers.Option[SnapshotStore] + func WithRegion(region string) containers.Option[SnapshotStore] + type FS struct + func NewFS(logger *zap.Logger, s3Client S3ClientAPI, bucket string, prefix string) (*FS, error) + func (f *FS) Open(name string) (fs.File, error) + func (f *FS) ReadDir(name string) ([]fs.DirEntry, error) + func (f *FS) Stat(name string) (fs.FileInfo, error) + type S3ClientAPI interface + GetObject func(context.Context, *s3.GetObjectInput, ...func(*s3.Options)) (*s3.GetObjectOutput, error) + ListObjectsV2 func(context.Context, *s3.ListObjectsV2Input, ...func(*s3.Options)) (*s3.ListObjectsV2Output, error) + type SnapshotStore struct + func NewSnapshotStore(ctx context.Context, logger *zap.Logger, bucket string, ...) (*SnapshotStore, error) + func (s *SnapshotStore) String() string + func (s *SnapshotStore) View(fn func(storage.ReadOnlyStore) error) error