Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidConfigToManyDefault = errors.New("datasource.yaml config is invalid. Only one datasource can be marked as default")
)
Functions ¶
Types ¶
type DataSourceFromConfig ¶
type DataSourceFromConfig struct { OrgId int64 `json:"org_id" yaml:"org_id"` Version int `json:"version" yaml:"version"` Name string `json:"name" yaml:"name"` Type string `json:"type" yaml:"type"` Access string `json:"access" yaml:"access"` Url string `json:"url" yaml:"url"` Password string `json:"password" yaml:"password"` User string `json:"user" yaml:"user"` Database string `json:"database" yaml:"database"` BasicAuth bool `json:"basic_auth" yaml:"basic_auth"` BasicAuthUser string `json:"basic_auth_user" yaml:"basic_auth_user"` BasicAuthPassword string `json:"basic_auth_password" yaml:"basic_auth_password"` WithCredentials bool `json:"with_credentials" yaml:"with_credentials"` IsDefault bool `json:"is_default" yaml:"is_default"` JsonData map[string]interface{} `json:"json_data" yaml:"json_data"` SecureJsonData map[string]string `json:"secure_json_data" yaml:"secure_json_data"` Editable bool `json:"editable" yaml:"editable"` }
type DatasourceProvisioner ¶
type DatasourceProvisioner struct {
// contains filtered or unexported fields
}
type DatasourcesAsConfig ¶
type DatasourcesAsConfig struct { Datasources []*DataSourceFromConfig `json:"datasources" yaml:"datasources"` DeleteDatasources []*DeleteDatasourceConfig `json:"delete_datasources" yaml:"delete_datasources"` }
type DeleteDatasourceConfig ¶
Click to show internal directories.
Click to hide internal directories.