datatypes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultMetadataFile   = "_metadata.json"
	DefaultImpressionFile = "_impression.json"
	DefaultProvenanceFile = "_prov.json"
	DefaultOperationFile  = "_operation.json"
)
View Source
const (
	GraphType = "Graph"
)

Variables

View Source
var (
	ErrTypeNotSupported = errors.New("data type not supported")
)

Functions

func RegisterRenderer

func RegisterRenderer(metaType string, ctor rendererConstructor)

func RegisterUploader

func RegisterUploader(metaType string, ctor uploaderConstructor)

func SetDefaultType

func SetDefaultType(metaType string)

func SupportedDataTypes

func SupportedDataTypes() []string

Types

type Renderer

type Renderer interface {
	Print() error
	ExportToDisk(path string, includeMetaData bool) error
}

func NewRenderer

func NewRenderer(ds model.DataSet) (Renderer, error)

type Uploader

type Uploader interface {
	Write(b dataset.Builder) error
}

func NewUploader

func NewUploader(metaType, sourcePath, vaultName string, mapping map[string]string) (Uploader, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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