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 the options used periodically invoke the update procedure
Types ¶
type SnapshotStore ¶ added in v1.34.0
SnapshotStore is an implementation storage.SnapshotStore backed by OCI repositories. It fetches instances of OCI manifests and uses them to build snapshots from their contents.
func NewSnapshotStore ¶ added in v1.34.0
func NewSnapshotStore(ctx context.Context, logger *zap.Logger, store *oci.Store, ref oci.Reference, opts ...containers.Option[SnapshotStore]) (_ *SnapshotStore, err error)
NewSnapshotStore constructs and configures a Store. The store uses the connection and credential details provided to build *storagefs.StoreSnapshot implementations around a target OCI repository.
func (*SnapshotStore) String ¶ added in v1.34.0
func (s *SnapshotStore) String() string
func (*SnapshotStore) View ¶ added in v1.34.0
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.