do not expose OpenAPI unless it exists

This commit is contained in:
Ryan McKinley
2025-07-29 13:29:28 +02:00
parent 4b44a83802
commit f5e649183b
2 changed files with 19 additions and 5 deletions
@@ -18,10 +18,10 @@ import (
// Authorization checks will happen within each function, and the user in ctx will
// limit which namespace/tenant/org we are talking to
type PluginDatasourceProvider interface {
// Get a single datasurce
// Get a single data source (any type)
GetDataSource(ctx context.Context, uid string) (*datasourceV0.DataSource, error)
// List all datasources
// List all datasources (any type)
ListDataSource(ctx context.Context) (*datasourceV0.DataSourceList, error)
// Create a data source
@@ -30,7 +30,7 @@ type PluginDatasourceProvider interface {
// Update a data source
UpdateDataSource(ctx context.Context, ds *datasourceV0.DataSource) (*datasourceV0.DataSource, error)
// Delete datasurce
// Delete a data source (any type)
Delete(ctx context.Context, uid string) error
// Return settings (decrypted!) for a specific plugin