store

package
v0.0.0-...-b9bb202 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UnknownResourceType describes an error where the resource type is
	// not oci-image or file.
	UnknownResourceType = errors.ConstError("unknown resource type")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ResourceStoreFactory

type ResourceStoreFactory struct {
	// contains filtered or unexported fields
}

ResourceStoreFactory contains the information to provide the required ResourceStore.

func NewResourceStoreFactory

func NewResourceStoreFactory(
	objectStore objectstore.ModelObjectStoreGetter,
	containerImageStore store.ResourceStoreGetter,
) *ResourceStoreFactory

NewResourceStoreFactory returns a factory which provides the appropriate Resource Store for the resource type.

func (*ResourceStoreFactory) GetResourceStore

func (f *ResourceStoreFactory) GetResourceStore(ctx context.Context, t resource.Type) (store.ResourceStore, error)

GetResourceStore returns the appropriate ResourceStore for the given resource type.

Jump to

Keyboard shortcuts

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