Documentation ¶
Index ¶
- Constants
- func WithPollOptions(opts ...containers.Option[storagefs.Poller]) containers.Option[SnapshotStore]
- func WithPrefix(prefix string) containers.Option[SnapshotStore]
- type File
- type FileInfo
- func (fi *FileInfo) Info() (fs.FileInfo, error)
- func (fi *FileInfo) IsDir() bool
- func (fi *FileInfo) ModTime() time.Time
- func (fi *FileInfo) Mode() fs.FileMode
- func (fi *FileInfo) Name() string
- func (fi *FileInfo) SetDir(v bool)
- func (fi *FileInfo) Size() int64
- func (fi *FileInfo) Sys() any
- func (fi *FileInfo) Type() fs.FileMode
- type SnapshotStore
Constants ¶
View Source
const S3Schema = "s3i"
S3Schema is a custom scheme for gocloud blob which works with how we interact with s3 (supports interfacing with minio)
Variables ¶
This section is empty.
Functions ¶
func WithPollOptions ¶
func WithPollOptions(opts ...containers.Option[storagefs.Poller]) containers.Option[SnapshotStore]
WithPollOptions configures the poller options used when periodically updating snapshot state
func WithPrefix ¶
func WithPrefix(prefix string) containers.Option[SnapshotStore]
WithPrefix configures the prefix for object store
Types ¶
type SnapshotStore ¶
func NewSnapshotStore ¶
func NewSnapshotStore(ctx context.Context, logger *zap.Logger, scheme string, bucket *gcblob.Bucket, opts ...containers.Option[SnapshotStore]) (*SnapshotStore, error)
func (*SnapshotStore) String ¶
func (s *SnapshotStore) String() string
func (*SnapshotStore) View ¶
func (s *SnapshotStore) View(_ context.Context, 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.
Click to show internal directories.
Click to hide internal directories.