drivers

package
v0.3.38 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package drivers implements Backplane drivers (e.g Docker, Kubernetes, etc.)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForwardTCP

func ForwardTCP(
	stopCh <-chan struct{},
	cname string,
	localPort, remotePort int,
) error

ForwardTCP forwards locaPort on host to a remotePort on a container cname.

Types

type Driver

type Driver interface {
	// Deploy deploys the proxy.
	Start(ctx context.Context, orgID uuid.UUID, proxyName string, opts ...Option) (string, error)
}

func GetDriver

func GetDriver(driver string) (Driver, error)

GetDriver returns a driver by name.

type Option

type Option func(*options)

func WithArgs

func WithArgs(args ...string) Option

WithArgs sets the arguments for the driver.

Jump to

Keyboard shortcuts

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