environment

package
v0.0.1-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...option) types.Environment

func WithLabels

func WithLabels(labels Labels) option

func WithLabelsFromEnv

func WithLabelsFromEnv(env string) option

Types

type ClaimedPort

type ClaimedPort struct {
	Free func()
	Port int
}

type ErrTestSkipped

type ErrTestSkipped struct {
	FeatureName   string
	FeatureLabels Labels
	CheckedLabels Labels
}

func (*ErrTestSkipped) Error

func (e *ErrTestSkipped) Error() string

type Labels

type Labels map[string]string

func (Labels) Includes

func (l Labels) Includes(got Labels) bool

type PortAllocator

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

func NewPortAllocator

func NewPortAllocator() *PortAllocator

func (*PortAllocator) Allocate

func (p *PortAllocator) Allocate() (*ClaimedPort, error)

Jump to

Keyboard shortcuts

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