plumber

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.2.1

type Config struct {
	Address string
	Token   string
	Timeout int
}

type Filter

type Filter struct {
	Name   string
	Values []string
}

func (*Filter) String

func (f *Filter) String() string

type Plumber

type Plumber struct {
	Token  string
	Client protos.PlumberServerClient
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Plumber, error)

func (*Plumber) Close

func (p *Plumber) Close() error

func (*Plumber) GetConnection

func (p *Plumber) GetConnection(filters []*Filter) (map[string]interface{}, diag.Diagnostics)

GetConnection obtains a connection for a data source

func (*Plumber) GetRelay

func (p *Plumber) GetRelay(filters []*Filter) (map[string]interface{}, diag.Diagnostics)

GetRelay obtains a relay for a data source

func (*Plumber) GetTunnel

func (p *Plumber) GetTunnel(filters []*Filter) (map[string]interface{}, diag.Diagnostics)

GetTunnel obtains a tunnel config for a data source

Jump to

Keyboard shortcuts

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