Documentation ¶
Index ¶
- Constants
- func Dash2DigitsList(dashedstr string) ([]string, error)
- func DelItemInSlice(slice interface{}, idx int)
- func ExpressionEvaluate(e string, ps ...Parameter) (interface{}, error)
- func FiveTimeIntToOneChar(i int64) string
- func GetGRPCConn(ctx context.Context, endpoint string) (*grpc.ClientConn, error)
- func GetKVsFromBashResult(rstr string) *map[string]string
- func OneCharToFiveTimeInt(c string) int
- func UnitStrToBytes(s string) (int64, error)
- type BashOutput
- type Parameter
- type ParameterType
Constants ¶
View Source
const ( KiB = 1 << (10 * iota) MiB GiB TiB PiB BASHResultBegin = `:RsjSixT:` BASHResultEnd = `:RjaSmeT:` KVDelimiter = `:KdfgV:` ItemDelimiter = `:IiajT:` )
View Source
const ( PTInt = iota PTFloat PTBool PTString )
Variables ¶
This section is empty.
Functions ¶
func Dash2DigitsList ¶
func DelItemInSlice ¶
func DelItemInSlice(slice interface{}, idx int)
func ExpressionEvaluate ¶
func FiveTimeIntToOneChar ¶
func GetGRPCConn ¶
func GetKVsFromBashResult ¶
func OneCharToFiveTimeInt ¶
func UnitStrToBytes ¶
Types ¶
type BashOutput ¶
func LocalBashRun ¶
func LocalBashRun(script string, timeout_s int) (*BashOutput, error)
type Parameter ¶
type Parameter struct { Name string Ptype ParameterType Value interface{} }
type ParameterType ¶
type ParameterType byte
Click to show internal directories.
Click to hide internal directories.