dataconnector

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const Version string = "v1"

Version of the YAML strcuture

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPDataPinger added in v1.7.0

type HTTPDataPinger struct {
	// contains filtered or unexported fields
}

func NewHTTPDataPinger added in v1.7.0

func NewHTTPDataPinger(url string) HTTPDataPinger

func (HTTPDataPinger) Ping added in v1.7.0

func (pdp HTTPDataPinger) Ping() *dataconnector.Error

type HTTPDataPingerFactory added in v1.7.0

type HTTPDataPingerFactory struct{}

func NewHTTPDataPingerFactory added in v1.7.0

func NewHTTPDataPingerFactory() *HTTPDataPingerFactory

NewHTTPDataPinger creates a new HTTP pinger.

func (HTTPDataPingerFactory) New added in v1.7.0

type MemoryStorage

type MemoryStorage struct {
	// contains filtered or unexported fields
}

MemoryStorage provides storage in memory

func NewMemoryStorage

func NewMemoryStorage() *MemoryStorage

NewMemoryStorage allocates a new in-memory storage

func (*MemoryStorage) List

List all dataconnector stored in memory

func (*MemoryStorage) Store

Store a dataconnector in memory

type SQLDataPinger

type SQLDataPinger struct {
	// contains filtered or unexported fields
}

func NewSQLDataPinger

func NewSQLDataPinger(url string) SQLDataPinger

func (SQLDataPinger) Ping

func (pdp SQLDataPinger) Ping() *dataconnector.Error

type SQLDataPingerFactory

type SQLDataPingerFactory struct{}

func NewSQLDataPingerFactory

func NewSQLDataPingerFactory() *SQLDataPingerFactory

NewSQLDataPinger creates a new SQL pinger.

func (SQLDataPingerFactory) New

type YAMLDataConnector

type YAMLDataConnector struct {
	Name     string           `yaml:"name"`
	URL      string           `yaml:"url"`
	ReadOnly bool             `yaml:"readonly"`
	Schema   string           `yaml:"schema,omitempty"`
	User     *YAMLValueHolder `yaml:"user,omitempty"`
	Password *YAMLValueHolder `yaml:"password,omitempty"`
}

YAMLDataConnector defines how to store a dataconnector in YAML format

type YAMLStorage

type YAMLStorage struct{}

YAMLStorage provides storage in a local YAML file

func NewYAMLStorage

func NewYAMLStorage() *YAMLStorage

NewYAMLStorage create a new YAML storage

func (YAMLStorage) List

List all dataconnector stored in the YAML file

func (YAMLStorage) Store

Store a dataconnector in the YAML file

type YAMLStructure

type YAMLStructure struct {
	Version        string              `yaml:"version"`
	DataConnectors []YAMLDataConnector `yaml:"dataconnectors,omitempty"`
}

YAMLStructure of the file

type YAMLValueHolder

type YAMLValueHolder struct {
	Value        *string `yaml:"value,omitempty"`
	ValueFromEnv *string `yaml:"valueFromEnv,omitempty"`
}

Jump to

Keyboard shortcuts

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