datasource

package
v0.2.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPDatasourceSpec

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

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

func (*HTTPDatasourceSpec) UnmarshalYAML

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

type SQLDatasourceSpec

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

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

func (*SQLDatasourceSpec) UnmarshalYAML

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