app_specific_connection

package
v1.6.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseConnectionCtyType = cty.Capsule("BaseConnectionCtyType", reflect.TypeOf(&connection.ConnectionImpl{}))
View Source
var ConnectionTypeRegistry map[string]ConnectionFunc
View Source
var DefaultConnections = map[string]connection.PipelingConnection{}

DefaultConnections should be populated with any default connections which require specific configuration

Functions

func ConnectionCtyType

func ConnectionCtyType(connectionType string) cty.Type

func ConnectionStringFromConnectionName

func ConnectionStringFromConnectionName(evalContext *hcl.EvalContext, longName string) (string, error)

ConnectionStringFromConnectionName resolves the connection name to a conneciton onbject in the eval context and return the connection string

func ConnectionTypeSupported

func ConnectionTypeSupported(connectionType string) bool

func CtyValueToConnection

func CtyValueToConnection(value cty.Value) (_ connection.PipelingConnection, err error)

func DefaultPipelingConnections

func DefaultPipelingConnections() (map[string]connection.PipelingConnection, error)

func NewPipelingConnection

func NewPipelingConnection(connectionType, shortName string, declRange hcl.Range) (connection.PipelingConnection, error)

func RegisterConnections

func RegisterConnections(funcs ...ConnectionFunc)

Types

type ConnectionFunc

type ConnectionFunc func(string, hcl.Range) connection.PipelingConnection

Jump to

Keyboard shortcuts

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