github.com/turbot/steampipe@v1.7.0-rc.0.0.20240517123944-7cef272d4458/pkg/connection/interface.go (about)

     1  package connection
     2  
     3  import (
     4  	"context"
     5  	"github.com/jackc/pgx/v5/pgxpool"
     6  	"github.com/turbot/steampipe-plugin-sdk/v5/grpc/proto"
     7  	"github.com/turbot/steampipe/pkg/error_helpers"
     8  	"github.com/turbot/steampipe/pkg/pluginmanager_service/grpc/shared"
     9  	"github.com/turbot/steampipe/pkg/steampipeconfig/modconfig"
    10  )
    11  
    12  type pluginManager interface {
    13  	shared.PluginManager
    14  	OnConnectionConfigChanged(context.Context, ConnectionConfigMap, map[string]*modconfig.Plugin)
    15  	GetConnectionConfig() ConnectionConfigMap
    16  	HandlePluginLimiterChanges(PluginLimiterMap) error
    17  	Pool() *pgxpool.Pool
    18  	ShouldFetchRateLimiterDefs() bool
    19  	LoadPluginRateLimiters(map[string]string) (PluginLimiterMap, error)
    20  	SendPostgresSchemaNotification(context.Context) error
    21  	SendPostgresErrorsAndWarningsNotification(context.Context, error_helpers.ErrorAndWarnings)
    22  	UpdatePluginColumnsTable(context.Context, map[string]*proto.Schema, []string) error
    23  }