loader

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetResolver

type DatasetResolver struct {
	Dscache *dscache.Dscache
	Store   cafs.Filestore
}

DatasetResolver is a high-level component that can resolve dataset references

func NewDatasetResolver

func NewDatasetResolver(d *dscache.Dscache, store cafs.Filestore) *DatasetResolver

NewDatasetResolver returns a new DatasetResolver from dscache and a filestore

func (*DatasetResolver) GetInfo

func (dr *DatasetResolver) GetInfo(initID string) *dsref.VersionInfo

GetInfo looks up a VersionInfo from an initID

func (*DatasetResolver) GetInfoByDsref

func (dr *DatasetResolver) GetInfoByDsref(ref dsref.Ref) *dsref.VersionInfo

GetInfoByDsref looks up a VersionInfo from a dataset ref

func (*DatasetResolver) LoadDsref

LoadDsref will parse a ref string, resolve it using dscache and fsi, and return the dataset along with additional info. TODO(dustmop): Remove the info return value after fixing callers that currently rely on it

Jump to

Keyboard shortcuts

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