Back to godoc.org
istio.io/istio/pkg/test/framework/components/istioctl

package istioctl

v0.0.0 (7af0740)
Latest Go to latest
Published: 1 hour ago | License: Apache-2.0 | Module: istio.io/istio

Index

type Config

type Config struct {
	// Cluster to be used in a multicluster environment
	Cluster resource.Cluster
}

Config is structured config for the istioctl component

func (*Config) String

func (c *Config) String() string

type Instance

type Instance interface {
	// Invoke invokes an istioctl command and returns the output and exception.
	// stdout and stderr will be returned as different strings
	Invoke(args []string) (string, string, error)

	// InvokeOrFail calls Invoke and fails tests if it returns en err
	InvokeOrFail(t *testing.T, args []string) (string, string)
}

Instance represents "istioctl"

func New

func New(ctx resource.Context, cfg Config) (i Instance, err error)

New returns a new instance of "istioctl".

func NewOrFail

func NewOrFail(t test.Failer, c resource.Context, config Config) Instance

NewOrFail returns a new instance of "istioctl".

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier