Help us shape the future of Go! Take the 2026 Go Developer Survey

exec

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MPL-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunExec

func RunExec(config ExecConfig) (ret int)

Types

type AuthConfig

type AuthConfig struct {
	Method    string
	Namespace string
	Token     string
}

type Command

type Command struct {
	UI cli.Ui
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, ui cli.Ui, logOutput io.Writer) *Command

New returns a new exec command

func (*Command) Help

func (c *Command) Help() string

func (*Command) Run

func (c *Command) Run(args []string) (ret int)

func (*Command) Synopsis

func (c *Command) Synopsis() string

type EnvoyConfig

type EnvoyConfig struct {
	CACertificateFile    string
	XDSAddress           string
	XDSPort              int
	SDSAddress           string
	SDSPort              int
	BootstrapFile        string
	CertificateDirectory string
	Binary               string
	ExtraArgs            []string
	Output               io.Writer
}

type ExecConfig

type ExecConfig struct {
	Context            context.Context
	Logger             hclog.Logger
	LogLevel           string
	ConsulClient       *api.Client
	ConsulConfig       api.Config
	AuthConfig         AuthConfig
	GatewayConfig      GatewayConfig
	EnvoyConfig        EnvoyConfig
	ConsulClientConfig consul.ClientConfig
	PrimaryDatacenter  string
	// contains filtered or unexported fields
}

type GatewayConfig

type GatewayConfig struct {
	Host      string
	Name      string
	Namespace string
	Partition string
}

Jump to

Keyboard shortcuts

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