connection

package
v0.21.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: AGPL-3.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RefreshConnections

func RefreshConnections(ctx context.Context, pluginManager pluginManager, forceUpdateConnectionNames ...string) (res *steampipeconfig.RefreshConnectionResult)

Types

type ConnectionConfigMap

type ConnectionConfigMap map[string]*sdkproto.ConnectionConfig

func NewConnectionConfigMap

func NewConnectionConfigMap(connectionMap map[string]*modconfig.Connection) ConnectionConfigMap

NewConnectionConfigMap creates a map of sdkproto.ConnectionConfig keyed by connection name NOTE: connections in error are EXCLUDED

func (ConnectionConfigMap) Diff

func (m ConnectionConfigMap) Diff(otherMap ConnectionConfigMap) (addedConnections, deletedConnections, changedConnections map[string][]*sdkproto.ConnectionConfig)

type ConnectionWatcher

type ConnectionWatcher struct {
	// contains filtered or unexported fields
}

func NewConnectionWatcher

func NewConnectionWatcher(pluginManager pluginManager) (*ConnectionWatcher, error)

func (*ConnectionWatcher) Close

func (w *ConnectionWatcher) Close()

type LimiterMap added in v0.21.0

type LimiterMap map[string]*modconfig.RateLimiter

LimiterMap is a map of limiter name to limiter definition

func NewLimiterMap added in v0.21.0

func NewLimiterMap(limiters []*modconfig.RateLimiter) LimiterMap

func (LimiterMap) Equals added in v0.21.0

func (l LimiterMap) Equals(other LimiterMap) bool

func (LimiterMap) ToPluginLimiterMap added in v0.21.0

func (l LimiterMap) ToPluginLimiterMap() PluginLimiterMap

ToPluginLimiterMap converts limiter map keyed by limiter name to a map of limiter maps keyed by plugin image ref

type PluginLimiterMap added in v0.21.0

type PluginLimiterMap map[string]LimiterMap

PluginLimiterMap map of plugin image ref to Limiter map for the plugin

func (PluginLimiterMap) Equals added in v0.21.0

func (l PluginLimiterMap) Equals(other PluginLimiterMap) bool

type PluginMap added in v0.21.0

type PluginMap map[string]*modconfig.Plugin

func (PluginMap) ToPluginLimiterMap added in v0.21.0

func (p PluginMap) ToPluginLimiterMap() PluginLimiterMap

Jump to

Keyboard shortcuts

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