linux

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutor

func NewExecutor(verbose bool) components.OperatorExecutor

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

func (*Executor) CurlOpenFunction

func (e *Executor) CurlOpenFunction(ctx context.Context, endpoint string) (string, error)

func (*Executor) DownloadDaprClient

func (e *Executor) DownloadDaprClient(daprVersion string, inRegionCN bool) error

func (*Executor) DownloadKind

func (e *Executor) DownloadKind(ctx context.Context) error

func (*Executor) Exec

func (e *Executor) Exec(cmd string) (string, string, error)

func (*Executor) GetInventoryRecord

func (e *Executor) GetInventoryRecord(ctx context.Context) (*inventory.Record, error)

func (*Executor) GetNodeIP

func (e *Executor) GetNodeIP(ctx context.Context) (string, error)

func (*Executor) KubectlExec

func (e *Executor) KubectlExec(
	ctx context.Context,
	cmd string,
	wait bool,
) error

func (*Executor) RecordInventory

func (e *Executor) RecordInventory(ctx context.Context, inventoryMap map[string]string) error

Jump to

Keyboard shortcuts

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