e2e

package
v0.1.0-techpreview Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2021 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 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 ConsulMasterToken

func ConsulMasterToken(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 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 DeployMeshService

func DeployMeshService(ctx context.Context, cfg *envconf.Config) (*core.Service, error)

DeployMeshService 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 ExtraPort

func ExtraPort(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 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 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