actions

package
v1.18.0-beta34 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

README

Actions

Actions are intended to mirror actions that users of the product can take.

If you intend to introduce a new action, please follow this approach:

  • We want to avoid writing custom code that is just used by our tests. The core action should live in a utility package (utils, cli-utils, ...etc)

Example: If you expanded the functionality that a user would perform via kubectl

  1. Introduce that logic into the kubectl package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is the entity that creates actions. These actions are executed against a running installation of Gloo Gateway, within a Kubernetes Cluster. This provider is just a wrapper around sub-providers, so it exposes methods to access those providers

func NewActionsProvider

func NewActionsProvider() *Provider

NewActionsProvider returns an Provider

func (*Provider) Glooctl

func (p *Provider) Glooctl() *testutils.GlooCli

func (*Provider) Helm added in v1.18.0

func (p *Provider) Helm() *helmutils.Client

func (*Provider) Kubectl

func (p *Provider) Kubectl() *kubectl.Cli

func (*Provider) WithClusterContext

func (p *Provider) WithClusterContext(clusterContext *cluster.Context) *Provider

WithClusterContext sets the provider to point to the provided cluster

func (*Provider) WithGlooGatewayContext

func (p *Provider) WithGlooGatewayContext(ggContext *gloogateway.Context) *Provider

WithGlooGatewayContext sets the provider to point to the provided Gloo Gateway installation

Jump to

Keyboard shortcuts

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