utils

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoScsiCommand

func EchoScsiCommand(path, content string) error

func ExecIscsiadm

func ExecIscsiadm(portalIP string, iqn string, args []string) (string, error)

func Execute

func Execute(command string, arg ...string) (string, error)

Execute a shell command

func ToBool

func ToBool(i interface{}) bool

func ToInt

func ToInt(i interface{}) int

func ToIntSlice

func ToIntSlice(i interface{}) []int

func ToString

func ToString(i interface{}) string

func ToStringSlice

func ToStringSlice(i interface{}) []string

func UpdateIscsiadm

func UpdateIscsiadm(portalIP, targetIQN, key, value string, args []string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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