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.
Click to show internal directories.
Click to hide internal directories.