environment

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SkipIfNoEnvironment

func SkipIfNoEnvironment(t *testing.T)

Types

type Info

type Info struct {
	TestRunName string
	Location    string
	VlanID      string
	Prefix      Prefix
}

func GetEnvInfo

func GetEnvInfo(t *testing.T) Info

func InitEnvironment

func InitEnvironment() (*Info, error)

func (*Info) CleanUp

func (i *Info) CleanUp() error

type Prefix

type Prefix struct {
	ID   string
	CIDR net.IPNet
	// contains filtered or unexported fields
}

func CreateTestPrefix

func CreateTestPrefix(ctx context.Context, environment Info) (Prefix, error)

func (*Prefix) GetNextIP

func (p *Prefix) GetNextIP() string

Jump to

Keyboard shortcuts

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