Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithEndpoint ¶
func WithEndpoint(endpoint string) containers.Option[SnapshotStore]
WithEndpoint configures the endpoint
func WithPollOptions ¶
func WithPollOptions(opts ...containers.Option[storagefs.Poller]) containers.Option[SnapshotStore]
WithPollOptions configures the poller options used when periodically updating snapshot state
Types ¶
type FS ¶
type FS struct {
// contains filtered or unexported fields
}
FS is only for accessing files in a single bucket. The directory entries are cached. It is specifically intended for use by a source that calls fs.WalkDir and does not fully implement all fs operations
type SnapshotStore ¶
SnapshotStore represents an implementation of storage.SnapshotStore This implementation is backed by an S3 bucket
func NewSnapshotStore ¶
func NewSnapshotStore(ctx context.Context, logger *zap.Logger, container string, opts ...containers.Option[SnapshotStore]) (*SnapshotStore, error)
NewSnapshotStore constructs a Store
func (*SnapshotStore) String ¶
func (s *SnapshotStore) String() string
String returns an identifier string for the store type.
func (*SnapshotStore) View ¶
func (s *SnapshotStore) View(fn func(storage.ReadOnlyStore) error) error
View accepts a function which takes a *StoreSnapshot. The SnapshotStore will supply a snapshot which is valid for the lifetime of the provided function call.