link

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimFailure

type ClaimFailure string
const (
	ClaimInvalid ClaimFailure = "No such claim"
	ClaimRefused ClaimFailure = "Claim refused"
)

type CreateTester

type CreateTester struct {
	TokenFile       string
	Name            string
	Cost            int
	PolicyProhibits bool
}

CreateTester runs `skupper link create` and asserts output contains what is expected by the user.

func (*CreateTester) Command

func (l *CreateTester) Command(cluster *base.ClusterContext) []string

func (*CreateTester) Run

func (l *CreateTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

type DeleteTester

type DeleteTester struct {
	Name string
}

DeleteTester runs `skupper link delete` and asserts output contains what is expected by the user.

func (*DeleteTester) Command

func (l *DeleteTester) Command(cluster *base.ClusterContext) []string

func (*DeleteTester) Run

func (l *DeleteTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

type StatusTester

type StatusTester struct {
	Name    string
	Wait    int
	Active  bool
	Failure ClaimFailure
	Timeout time.Duration
}

StatusTester runs `skupper link status` based on given attributes and waits till output matches expected content or until it times out

func (*StatusTester) Command

func (l *StatusTester) Command(cluster *base.ClusterContext) []string

func (*StatusTester) Run

func (l *StatusTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

Jump to

Keyboard shortcuts

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