Documentation
¶
Overview ¶
Package opendpi provides OpenDPI specification types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // JSON parses OpenDPI specs from JSON. JSON = Parser{parseJSON} // YAML parses OpenDPI specs from YAML. YAML = Parser{parseYAML} )
var ( // JSONWriter writes OpenDPI specs as JSON. JSONWriter = Writer{writeJSON, ".json"} // YAMLWriter writes OpenDPI specs as YAML. YAMLWriter = Writer{writeYaml, ".yaml"} )
Functions ¶
This section is empty.
Types ¶
type Connection ¶
Connection represents an infrastructure endpoint where data resides.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser decodes an OpenDPI spec from an io.Reader.
type Port ¶
type Port struct {
Description string
Connections []PortConnection
Schema *jsonschema.Schema
}
Port represents a data output interface exposed by the data product.
type PortConnection ¶
type PortConnection struct {
Connection *Connection
Location string
}
PortConnection represents a connection-location pair for a port.