istioctl

package
v0.0.0-...-df2d30a Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config is structured config for the istioctl component

func (*Config) String

func (c *Config) String() string

type Filenamer

type Filenamer interface {
	Filename() string
}

Filenamer is an interface to avoid importing kubecluster package, instead build our own interface to extract kube context

type Instance

type Instance interface {
	// WaitForConfig will wait until all passed in config has been distributed
	WaitForConfig(defaultNamespace string, configs string) error

	// 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 test.Failer, 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 resource.ContextFailer, config Config) Instance

NewOrFail returns a new instance of "istioctl".

Jump to

Keyboard shortcuts

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