istio: istio.io/istio/istioctl/pkg/clioptions Index | Files

package clioptions

import "istio.io/istio/istioctl/pkg/clioptions"

Package clioptions contains flags which can be added to istiocl commands.

Index

Package Files

central.go control_plane.go doc.go

type CentralControlPlaneOptions Uses

type CentralControlPlaneOptions struct {
    // Xds is XDS endpoint, e.g. localhost:15010.
    Xds string

    // XdsPodLabel is a Kubernetes label on the Istiod pods
    XdsPodLabel string

    // XdsPodPort is a port exposing XDS (typically 15010 or 15012)
    XdsPodPort int

    // CertDir is the local directory containing certificates
    CertDir string

    // Timeout is how long to wait before giving up on XDS
    Timeout time.Duration

    // InsecureSkipVerify skips client verification the server's certificate chain and host name.
    InsecureSkipVerify bool

    // XDSSAN is the expected Subject Alternative Name of the XDS server
    XDSSAN string

    // Plaintext forces plain text communication (for talking to port 15010)
    Plaintext bool
}

CentralControlPlaneOptions holds options common to all subcommands that invoke Istiod via xDS REST endpoint

func (*CentralControlPlaneOptions) AttachControlPlaneFlags Uses

func (o *CentralControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command)

AttachControlPlaneFlags attaches control-plane flags to a Cobra command. (Currently just --endpoint)

func (*CentralControlPlaneOptions) ValidateControlPlaneFlags Uses

func (o *CentralControlPlaneOptions) ValidateControlPlaneFlags() error

ValidateControlPlaneFlags checks arguments for valid values and combinations

type ControlPlaneOptions Uses

type ControlPlaneOptions struct {
    // Revision is the istio.io/rev control plane revision
    Revision string
}

ControlPlaneOptions defines common options used by istioctl.

func (*ControlPlaneOptions) AttachControlPlaneFlags Uses

func (o *ControlPlaneOptions) AttachControlPlaneFlags(cmd *cobra.Command)

AttachControlPlaneFlags attaches control-plane flags to a Cobra command. (Currently just --revision)

Package clioptions imports 4 packages (graph) and is imported by 10 packages. Updated 2020-10-20. Refresh now. Tools for package owners.