util

package
v0.0.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TimeDateFormat used for ancientt outputs
	TimeDateFormat = "2006-01-02T15:04:05-0700"
)

Variables

This section is empty.

Functions

func BoolPointer

func BoolPointer(in bool) *bool

BoolPointer return the given bool as a pointer

func CastToString

func CastToString(val interface{}) string

CastToString cast interface{} to string

func GetPNameFromTask

func GetPNameFromTask(round int, hostname string, command string, args []string, role PNameRole) string

GetPNameFromTask get a "persistent" name for a task This is done by calculating the checksums of the used names.

func GetTaskName

func GetTaskName(tester string, testStartTime time.Time) string

GetTaskName get a task name

func IntToChar

func IntToChar(i int) string

IntToChar This function is converting integer to a rune character

func WriteNewTruncFile

func WriteNewTruncFile(filename string, buffer []byte) error

WriteNewTruncFile write new or truncate existing file

Types

type PNameRole

type PNameRole string

PNameRole task role names type

const (
	// PNameRoleClient Client role name
	PNameRoleClient PNameRole = "client"
	// PNameRoleServer Server role name
	PNameRoleServer PNameRole = "server"
)

Jump to

Keyboard shortcuts

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