oci

package
v1.38.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

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

type SnapshotStore struct {
	*storagefs.Poller
	// contains filtered or unexported fields
}

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL