datasource

package
v0.4.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 15 modules, 17 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPDatasourceSpec added in v0.2.0

type HTTPDatasourceSpec struct {
	DirectURL string      `json:"directUrl,omitempty" yaml:"directUrl,omitempty"`
	Proxy     *http.Proxy `json:"proxy,omitempty" yaml:"proxy,omitempty"`
}

HTTPDatasourceSpec is the struct that can be used to define an HTTP Datasource plugin. To be used when implementing a plugin, and you want to provide the associated go-sdk. This struct is just here to avoid developer to redefine the same struct in their own plugin implementation, because most of the time developers do not need more field than the two proposed. If you need more, define your own struct and use it in your plugin implementation.

func (*HTTPDatasourceSpec) UnmarshalJSON added in v0.2.0

func (s *HTTPDatasourceSpec) UnmarshalJSON(data []byte) error

func (*HTTPDatasourceSpec) UnmarshalYAML added in v0.2.0

func (s *HTTPDatasourceSpec) UnmarshalYAML(unmarshal func(interface{}) error) error

type SQLDatasourceSpec added in v0.2.0

type SQLDatasourceSpec struct {
	Proxy *sql.Proxy
}

SQLDatasourceSpec is the struct that can be used to define an SQL Datasource plugin. To be used when implementing a plugin, and you want to provide the associated go-sdk. This struct is just here to avoid developer to redefine the same struct in their own plugin implementation, because most of the time developers do not need more field than the two proposed. If you need more, define your own struct and use it in your plugin implementation.

func (*SQLDatasourceSpec) UnmarshalJSON added in v0.2.0

func (s *SQLDatasourceSpec) UnmarshalJSON(data []byte) error

func (*SQLDatasourceSpec) UnmarshalYAML added in v0.2.0

func (s *SQLDatasourceSpec) UnmarshalYAML(unmarshal func(interface{}) error) error

type Spec

type Spec struct {
	Display *common.Display `json:"display,omitempty" yaml:"display,omitempty"`
	Default bool            `json:"default" yaml:"default"`
	// Plugin will contain the datasource configuration.
	// The data typed is available in Cue.
	Plugin plugin.Plugin `json:"plugin" yaml:"plugin"`
}

Directories

Path Synopsis
sql

Jump to

Keyboard shortcuts

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