utils

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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

EchoScsiCommand Used to echo strings to scsi subsystem

func ExecIscsiadm

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

ExecIscsiadm exec a iscsiadm shell command

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)

UpdateIscsiadm update iscsiadm shell command

Types

This section is empty.

Jump to

Keyboard shortcuts

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