istio: Index | Files

package istioctl

import ""


Package Files

istioctl.go kube.go

type Config Uses

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 Uses

func (c *Config) String() string

type Instance Uses

type Instance interface {
    // WaitForConfigs will wait until all passed in config has been distributed
    WaitForConfigs(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 *testing.T, args []string) (string, string)

Instance represents "istioctl"

func New Uses

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

New returns a new instance of "istioctl".

func NewOrFail Uses

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

NewOrFail returns a new instance of "istioctl".

Package istioctl imports 9 packages (graph) and is imported by 3 packages. Updated 2020-11-14. Refresh now. Tools for package owners.