tunnel

package
v0.175.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate added in v0.175.0

func Validate(service Service, name string, owner string, filter Filter, dryRun bool, timeout time.Duration) error

Types

type Filter added in v0.106.0

type Filter string

Filter filters tunnels by type when fetching a user's tunnels.

const (
	// NoneFilter is a noop and does no filtering.
	NoneFilter Filter = ""
	// V2AlphaFilter filters down to only tunnels with vm-version: v2alpha when requesting a user's tunnels.
	// NOTE: We use this filter when checking tunnel readiness for api tests. The response when
	// requesting a user's tunnel does not include vm-version metadata so we need to use the
	// filter to ensure the correct type of tunnel has been started for an api test.
	V2AlphaFilter Filter = "v2alpha"
)

type Service

type Service interface {
	IsTunnelRunning(ctx context.Context, id, parent string, filter Filter, wait time.Duration) error
}

Service represents an interface for interacting with Sauce Connect tunnels.

Jump to

Keyboard shortcuts

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