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 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 ¶
func (s *MemoryStorage) List() ([]dataconnector.DataConnector, *dataconnector.Error)
List all dataconnector stored in memory
func (*MemoryStorage) Store ¶
func (s *MemoryStorage) Store(m *dataconnector.DataConnector) *dataconnector.Error
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 ¶
func (pdpf SQLDataPingerFactory) New(url string) dataconnector.DataPinger
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 (YAMLStorage) List ¶
func (s YAMLStorage) List() ([]dataconnector.DataConnector, *dataconnector.Error)
List all dataconnector stored in the YAML file
func (YAMLStorage) Store ¶
func (s YAMLStorage) Store(m *dataconnector.DataConnector) *dataconnector.Error
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 ¶
Click to show internal directories.
Click to hide internal directories.