tsn

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Condition

type Condition = func(*ipnstate.Status) bool

func Connected

func Connected() Condition

func HasCapability

func HasCapability(capability tailcfg.NodeCapability) Condition

func HasExpiredPeer added in v0.14.0

func HasExpiredPeer(name string) Condition

func HasName added in v0.14.0

func HasName(name string) Condition

func HasTag

func HasTag(tag string) Condition

func HasTailnet

func HasTailnet(tailnet string) Condition

func HasUser

func HasUser(email string) Condition

func IsMissingCapability

func IsMissingCapability(capability tailcfg.NodeCapability) Condition

func IsRunning

func IsRunning() Condition

func NeedsMachineAuth

func NeedsMachineAuth() Condition

func PeerCount

func PeerCount(expected int) Condition

type TailscaleNode

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

func New

func New(t *testing.T, name, loginServer string, resource *dockertest.Resource, retry func(func() error) error) *TailscaleNode

func (*TailscaleNode) Check

func (t *TailscaleNode) Check(c Condition, additional ...Condition) error

func (*TailscaleNode) Hostname

func (t *TailscaleNode) Hostname() string

func (*TailscaleNode) IPv4

func (t *TailscaleNode) IPv4() string

func (*TailscaleNode) IPv6

func (t *TailscaleNode) IPv6() string

func (*TailscaleNode) LoginWithOidc

func (t *TailscaleNode) LoginWithOidc(flags ...UpFlag) (int, error)

func (*TailscaleNode) NetCheck added in v0.15.0

func (t *TailscaleNode) NetCheck() (*netcheck.Report, error)

func (*TailscaleNode) Ping

func (t *TailscaleNode) Ping(target string) error

func (*TailscaleNode) Up

func (t *TailscaleNode) Up(authkey string) error

func (*TailscaleNode) WaitFor

func (t *TailscaleNode) WaitFor(c Condition, additional ...Condition) error

type UpFlag

type UpFlag = []string

func WithAdvertiseTags

func WithAdvertiseTags(tags string) UpFlag

Jump to

Keyboard shortcuts

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