apiwrappers

package
v0.0.0-...-92a1719 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

Command - a wrapper for a command to be run

func NewCommand

func NewCommand(runner Runnable, name string, args ...string) *Command

NewCommand - create a new command

func NewExecRunner

func NewExecRunner(name string, args ...string) *Command

NewExecRunner - create a new exec runner

func (*Command) Run

func (c *Command) Run() error

Run - run the command

func (*Command) SetStderr

func (c *Command) SetStderr(writer io.Writer)

SetStderr - set the stderr for the command and the underlying runner, if applicable

func (*Command) SetStdin

func (c *Command) SetStdin(reader io.Reader)

SetStdin - set the stdin for the command and the underlying runner, if applicable

func (*Command) SetStdout

func (c *Command) SetStdout(writer io.Writer)

SetStdout - set the stdout for the command and the underlying runner, if applicable

type Commandable

type Commandable interface {
	Runnable
	Streamable
}

Commandable - describes a thing that can be run and have its stdout and stderr set

type ExecCommand

type ExecCommand struct {
	Command
	// contains filtered or unexported fields
}

ExecCommand - a wrapper for an `*exec.cmd` to be run

func (*ExecCommand) Run

func (c *ExecCommand) Run() error

Run - run the command

func (*ExecCommand) SetStderr

func (c *ExecCommand) SetStderr(writer io.Writer)

SetStderr - set the stderr for the command

func (*ExecCommand) SetStdin

func (c *ExecCommand) SetStdin(reader io.Reader)

SetStdin - set the stdin for the command

func (*ExecCommand) SetStdout

func (c *ExecCommand) SetStdout(writer io.Writer)

SetStdout - set the stdout for the command

type IstioClientset

type IstioClientset interface {
	NetworkingV1beta1() v1Beta1.NetworkingV1beta1Interface
}

IstioClientset interface

type Runnable

type Runnable interface {
	Run() error
}

Runnable - describes a thing that can be run

type Streamable

type Streamable interface {
	SetStdout(writer io.Writer)
	SetStderr(writer io.Writer)
	SetStdin(reader io.Reader)
}

Streamable - describes a thing that can have its stdout and stderr set

Jump to

Keyboard shortcuts

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