sc

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTargetVersion = "1.56.0"

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, f func(s Scenario))

Types

type Scenario

type Scenario interface {
	NewTailscaleNode(hostname string) TailscaleNode

	ListMachines(tailnetID uint64) []*api.Machine
	CreateAuthKey(tailnetID uint64, ephemeral bool) string
	CreateTailnet(name string) *api.Tailnet
}

type TailscaleNode

type TailscaleNode interface {
	Hostname() string
	Up(authkey string) ipnstate.Status
	IPv4() string
	IPv6() string
	WaitForPeers(expected int)
	Ping(target string)
}

Jump to

Keyboard shortcuts

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