datasources

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	Kind     string             `json:"kind"`
	Metadata DatasourceMetadata `json:"metadata"`
	Spec     DatasourceSpec     `json:"spec"`
}

type DataSourceMap

type DataSourceMap = map[string]*DataSource

type DatasourceManager

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

func NewDatasourceManager

func NewDatasourceManager() *DatasourceManager

func (*DatasourceManager) Delete

func (manager *DatasourceManager) Delete(datasourceName string)

func (*DatasourceManager) GetDatasource

func (manager *DatasourceManager) GetDatasource(datasourceName string) *DataSource

func (*DatasourceManager) GetProxy

func (manager *DatasourceManager) GetProxy(datasourceName string) *httputil.ReverseProxy

func (*DatasourceManager) SetDatasource

func (manager *DatasourceManager) SetDatasource(datasourceName string, datasource *DataSource)

func (*DatasourceManager) SetProxy

func (manager *DatasourceManager) SetProxy(datasourceName string, proxy *httputil.ReverseProxy)

func (*DatasourceManager) WatchDatasources

func (manager *DatasourceManager) WatchDatasources(namespace string) error

type DatasourceMetadata

type DatasourceMetadata struct {
	Name      string `json:"name"`
	Namespace string `json:"namespace,omitempty"`
}

type DatasourcePlugin

type DatasourcePlugin struct {
	Kind string               `json:"kind"`
	Spec DatasourcePluginSpec `json:"spec"`
}

type DatasourcePluginSpec

type DatasourcePluginSpec struct {
	DirectURL string `json:"direct_url"`
}

type DatasourceSpec

type DatasourceSpec struct {
	Plugin DatasourcePlugin `json:"plugin"`
}

type ProxiesMap

type ProxiesMap = map[string]*httputil.ReverseProxy

Jump to

Keyboard shortcuts

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