Documentation ¶
Overview ¶
Package datasource declares the data source interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigProvider ¶ added in v0.14.8
ConfigProvider returns the value of the supplied variable as a JSON string. A config provider is used at the time of data source creation to allow the data source to be correctly configured.
type DataSource ¶
type DataSource interface { // Name returns the name of this data source and is used to determine if // an import path should be processed by the data source importer. Name() string // Resolve resolves the absolute path defined for the data source to a string. Resolve(path string) (string, error) }
DataSource is a named delegate that can resolve import paths. Multiple VMs may access a single instance of a data source. Thus, data source implementations must be safe for concurrent use.
Click to show internal directories.
Click to hide internal directories.