utils

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2017 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run added in v0.7.10

func Run(cmdStr string) error

Run with given command with stdout and stderr connected

func RunCombined added in v0.7.10

func RunCombined(cmdStr string) ([]byte, error)

RunCombined is used to run the given command with combined stdout and stderr outputs

func RunNoStderr added in v0.7.10

func RunNoStderr(cmdStr string) error

RunNoStderr runs the given command with no output to stderr

func RunNoStdoutNoStderr added in v0.7.10

func RunNoStdoutNoStderr(cmdStr string) error

RunNoStdoutNoStderr runs the given command with no output to stdout and stderr

func RunOutput added in v0.7.10

func RunOutput(cmdStr string) ([]byte, error)

RunOutput is used to run the given command and return output from stdout

func UpdateCNIConfigByKeywords

func UpdateCNIConfigByKeywords(config interface{}, host metadata.Host) interface{}

UpdateCNIConfigByKeywords takes in the given CNI config, replaces the rancher specific keywords with the appropriate values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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