github.com/qri-io/qri@v0.10.1-0.20220104210721-c771715036cb/dsref/load.go (about)

     1  package dsref
     2  
     3  import (
     4  	"context"
     5  	"fmt"
     6  
     7  	"github.com/qri-io/dataset"
     8  )
     9  
    10  // ErrNoHistory indicates a resolved reference has no HEAD path
    11  var ErrNoHistory = fmt.Errorf("no history")
    12  
    13  // Loader loads datasets
    14  type Loader interface {
    15  	// LoadDataset will parse the ref string, resolve it, and load the dataset
    16  	// from whatever store contains it
    17  	LoadDataset(ctx context.Context, refstr string) (*dataset.Dataset, error)
    18  }