models

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginSettings

type PluginSettings struct {
	URL        string                `json:"url"`
	TrialMode  bool                  `json:"trialMode"`
	PgHost     string                `json:"pgHost"`
	PgPort     int                   `json:"pgPort"`
	PgDatabase string                `json:"pgDatabase"`
	PgUser     string                `json:"pgUser"`
	PgSSLMode  string                `json:"pgSSLMode"`
	Secrets    *SecretPluginSettings `json:"-"`
}

func LoadPluginSettings

func LoadPluginSettings(source backend.DataSourceInstanceSettings) (*PluginSettings, error)

func (*PluginSettings) PgDSN added in v0.2.4

func (s *PluginSettings) PgDSN() string

PgDSN returns a PostgreSQL connection string built from the plugin settings.

type SecretPluginSettings

type SecretPluginSettings struct {
	ApiToken   string `json:"apiToken"`
	PgPassword string `json:"pgPassword"`
}

Jump to

Keyboard shortcuts

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