api

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package api defines the data source interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigProvider

type ConfigProvider func(varName string) (string, error)

ConfigProvider returns the value of the supplied variable as a JSON string.

type DataSource

type DataSource interface {
	Init(c ConfigProvider) error
	datasource.DataSource
	io.Closer
}

DataSource represents an external data source that implements the methods needed by the data source importer as well as lifecycle methods to handle clean up of temporary resources.

Jump to

Keyboard shortcuts

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