Documentation ¶
Overview ¶
Package dsutil includes dataset util funcs, placed here to avoid dataset package bloat TODO - consider merging this package with the dsfs package, as most of the functions in here rely on a Filestore argument
Index ¶
- func FormFileDataset(r *http.Request, ds *dataset.Dataset) (err error)
- func UnmarshalYAMLDataset(data []byte, ds *dataset.Dataset) error
- func UnzipDataset(r io.ReaderAt, size int64, ds *dataset.Dataset) error
- func UnzipDatasetBytes(zipData []byte, ds *dataset.Dataset) error
- func UnzipGetContents(data []byte) (map[string]string, error)
- func WriteDir(ctx context.Context, store cafs.Filestore, ds *dataset.Dataset, path string) error
- func WriteZipArchive(ctx context.Context, store cafs.Filestore, ds *dataset.Dataset, format string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormFileDataset ¶
FormFileDataset extracts a dataset document from a http Request
func UnmarshalYAMLDataset ¶
UnmarshalYAMLDataset reads yaml bytes into a Dataset, dealing with the issue that YAML likes to unmarshal unknown values to map[interface{}]interface{} instead of map[string]interface{}
func UnzipDataset ¶
UnzipDataset reads a zip file from a filename and returns a full dataset with components
func UnzipDatasetBytes ¶
UnzipDatasetBytes is a convenince wrapper for UnzipDataset
func UnzipGetContents ¶
UnzipGetContents is a generic zip-unpack to a map of filename: contents with contents represented as strings
Types ¶
This section is empty.