Documentation ¶
Index ¶
- func OpenBucket(ctx context.Context, urlstr *url.URL) (*gcblob.Bucket, error)
- func SupportedSchemes() []string
- func WithPollOptions(opts ...containers.Option[storagefs.Poller]) containers.Option[SnapshotStore]
- func WithPrefix(prefix string) containers.Option[SnapshotStore]
- type File
- type FileInfo
- func (fi *FileInfo) Etag() string
- 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 ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OpenBucket ¶ added in v1.41.0
OpenBucket opens the bucket identified by the URL given.
See the URLOpener documentation in driver subpackages for details on supported URL formats, and https://gocloud.dev/concepts/urls/ for more information.
func SupportedSchemes ¶ added in v1.41.0
func SupportedSchemes() []string
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.