e2e

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MPL-2.0 Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDockerImage

func BuildDockerImage(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func ClusterName

func ClusterName(ctx context.Context) string

func ConsulCA

func ConsulCA(ctx context.Context) []byte

func ConsulClient

func ConsulClient(ctx context.Context) *api.Client

func ConsulGRPCPort

func ConsulGRPCPort(ctx context.Context) int

func ConsulHTTPPort

func ConsulHTTPPort(ctx context.Context) int

func ConsulIP

func ConsulIP(ctx context.Context) string

func ConsulInitialManagementToken

func ConsulInitialManagementToken(ctx context.Context) string

func ConsulNamespace

func ConsulNamespace(ctx context.Context) string

func CreateConsulACLPolicy

func CreateConsulACLPolicy(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func CreateConsulAuthMethod

func CreateConsulAuthMethod(namespace string) env.Func

func CreateConsulNamespace

func CreateConsulNamespace(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func CreateServiceAccount

func CreateServiceAccount(namespace string) env.Func

func CreateTestConsulContainer

func CreateTestConsulContainer(name, namespace string) env.Func

func CreateTestGatewayServer

func CreateTestGatewayServer(namespace string) env.Func

func CrossCompileProject

func CrossCompileProject(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func DeployHTTPMeshService

func DeployHTTPMeshService(ctx context.Context, cfg *envconf.Config, consulNamespace ...string) (*core.Service, error)

DeployHTTPMeshService deploys an envoy proxy with roughly the same logic that consul-k8s uses in its connect-inject registration

func DeployTCPMeshService

func DeployTCPMeshService(ctx context.Context, cfg *envconf.Config, consulNamespace ...string) (*core.Service, error)

DeployTCPMeshService deploys an envoy proxy with roughly the same logic that consul-k8s uses in its connect-inject registration

func DestroyTestGatewayServer

func DestroyTestGatewayServer(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func DockerImage

func DockerImage(ctx context.Context) string

func ExtraDockerImages

func ExtraDockerImages() []string

func ExtraTCPTLSPort

func ExtraTCPTLSPort(ctx context.Context) int

func HTTPPort

func HTTPPort(ctx context.Context) int

func HostRoute

func HostRoute(ctx context.Context) string

func InstallConsulAPIGatewayCRDs

func InstallConsulAPIGatewayCRDs(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func InstallGatewayCRDs

func InstallGatewayCRDs(ctx context.Context, cfg *envconf.Config) (context.Context, error)

func IsEnterprise

func IsEnterprise() bool

func K8sServiceToken

func K8sServiceToken(ctx context.Context) string

func LoadKindDockerImage

func LoadKindDockerImage(clusterName string) env.Func

func Namespace

func Namespace(ctx context.Context) string

func SetClusterName

func SetClusterName(name string) env.Func

func SetHostRoute

func SetHostRoute(ctx context.Context, hostRoute string) context.Context

func SetNamespace

func SetNamespace(namespace string) env.Func

func SetUpStack

func SetUpStack(hostRoute string) env.Func

func TCPPort

func TCPPort(ctx context.Context) int

func TCPTLSPort

func TCPTLSPort(ctx context.Context) int

func TearDownStack

func TearDownStack(ctx context.Context, cfg *envconf.Config) (context.Context, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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