gateway

package
v1.2.8 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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSkupperDataHome

func GetSkupperDataHome() string

func GetSystemdUserHome

func GetSystemdUserHome() string

func IsDockerContainerRunning

func IsDockerContainerRunning(containerName string) (bool, error)

func IsPodmanContainerRunning

func IsPodmanContainerRunning(containerName string) (bool, error)

func SystemdUnitAvailable

func SystemdUnitAvailable(gatewayName string) bool

func SystemdUnitEnabled

func SystemdUnitEnabled(gatewayName string) bool

Types

type BindTester

type BindTester struct {
	Address         string
	Host            string
	EgressPort      []string
	IsGatewayActive bool
}

BindTester runs `skupper gateway bind` and asserts that the gateway service is bound to a cluster service

func (*BindTester) Command

func (b *BindTester) Command(cluster *base.ClusterContext) []string

func (*BindTester) Run

func (b *BindTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

type DeleteTester

type DeleteTester struct {
}

func (*DeleteTester) Command

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

func (*DeleteTester) Run

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

type ForwardTester

type ForwardTester struct {
	Address         string
	Port            []string
	Loopback        bool
	IsGatewayActive bool
}

ForwardTester runs `skupper gateway forward` and asserts that the a local port is now forwarding requests to the cluster

func (*ForwardTester) Command

func (f *ForwardTester) Command(cluster *base.ClusterContext) []string

func (*ForwardTester) Run

func (f *ForwardTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

type InitTester

type InitTester struct {
	GeneratedName *string
	Type          string
}

InitTester runs `skupper gateway init` and asserts that the gateway is defined accordingly

func (*InitTester) Command

func (i *InitTester) Command(cluster *base.ClusterContext) []string

func (*InitTester) Run

func (i *InitTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

type UnbindTester

type UnbindTester struct {
	Address string
}

UnbindTester runs `skupper gateway unbind` and asserts that the gateway service is no longer bound to a cluster service

func (*UnbindTester) Command

func (b *UnbindTester) Command(cluster *base.ClusterContext) []string

func (*UnbindTester) Run

func (b *UnbindTester) Run(cluster *base.ClusterContext) (stdout string, stderr string, err error)

type UnforwardTester

type UnforwardTester struct {
	Address string
}

UnforwardTester runs `skupper gateway unforward` and asserts that the a local port is no longer forwarding requests to the cluster

func (*UnforwardTester) Command

func (f *UnforwardTester) Command(cluster *base.ClusterContext) []string

func (*UnforwardTester) Run

func (f *UnforwardTester) 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