Documentation ¶
Index ¶
- Constants
- func HtmlTablePrint(serverKeyMap map[string][]CSKey, statisMap map[CSKey]IperfClientStatis) string
- func Round2DataStr(data float64, isBW bool) string
- type CSKey
- type ClientConfig
- type Connect
- type ConnectTo
- type CpuUtilPercent
- type EndStream
- type IntervalSum
- type IperfClientStatis
- type IperfEnd
- type IperfInterval
- type IperfJob
- type IperfJson
- type IperfStart
- type IperfTaskDeployer
- type IperfTaskInfo
- type Receiver
- type Sender
- type SocketStatis
- type Stream
- type Sum
- type SumReceived
- type SumSent
- type TestStart
- type Timestamp
- type Udp
- type UdpStatis
Constants ¶
View Source
const ( ServicePrefix = "service" ServerPrefix = "iperf-server" ClientPrefix = "iperf-client" RoleLabel = "role" AppLabel = "app" )
View Source
const ( JobPrefix = "job-" JobLable = "job" )
View Source
const ( GB = 1000 * 1000 * 1000 MB = 1000 * 1000 KB = 1000 GbitsSec = "Gbits/sec" MbitsSec = "Mbits/sec" KbitsSec = "Kbits/sec" BitsSec = "bits/sec" GBytes = "GBytes" MBytes = "MBytes" KBytes = "KBytes" Bytes = "Bytes" )
Variables ¶
This section is empty.
Functions ¶
func HtmlTablePrint ¶
func HtmlTablePrint(serverKeyMap map[string][]CSKey, statisMap map[CSKey]IperfClientStatis) string
func Round2DataStr ¶
Types ¶
type ClientConfig ¶
type CpuUtilPercent ¶
type IntervalSum ¶
type IperfClientStatis ¶
type IperfEnd ¶
type IperfEnd struct { Streams []EndStream `json:"streams"` SumSent SumSent `json:"sum_sent,omitempty"` SumReceived SumReceived `json:"sum_received,omitempty"` Sum Sum `json:"sum,omitempty"` CpuUtilPercent CpuUtilPercent `json:"cpu_utilization_percent"` }
type IperfInterval ¶
type IperfInterval struct { Streams []Stream `json:"streams"` Sum IntervalSum `json:"sum"` }
type IperfJob ¶
type IperfJob struct { Namespace string Name string JobNode string Image string ServerIp string ServerPort int32 ClientConfig ClientConfig // contains filtered or unexported fields }
func NewIperfJob ¶
func NewIperfJob(namespace, jobNode, image, serverIp string, serverPort int32, config ClientConfig, ownerRef metav1.OwnerReference) *IperfJob
type IperfJson ¶
type IperfJson struct { Start IperfStart `json:"start"` Intervals []IperfInterval `json:"intervals"` End IperfEnd `json:"end"` }
func (*IperfJson) Analyse ¶
func (j *IperfJson) Analyse() IperfClientStatis
type IperfStart ¶
type IperfStart struct { Connected []Connect `json:"connected,omitempty"` Version string `json:"version"` SystemInfo string `json:"system_info"` Timestamp Timestamp `json:"timestamp,omitempty"` ConnectTo ConnectTo `json:"connecting_to,omitempty"` Cookie string `json:"cookie,omitempty"` TcpMssDefault int `json:"tcp_mss_default,omitempty"` TestStart TestStart `json:"test_start,omitempty"` }
type IperfTaskDeployer ¶
type IperfTaskDeployer struct {
// contains filtered or unexported fields
}
func NewIperfTaskDeployer ¶
func NewIperfTaskDeployer(k8sClient kubernetes.Interface, iperfClient iperfalpha1clientset.Interface, info *IperfTaskInfo) *IperfTaskDeployer
func (*IperfTaskDeployer) Run ¶
func (deployer *IperfTaskDeployer) Run() (string, error)
type IperfTaskInfo ¶
type IperfTaskInfo struct { Namespace string Name string Uid string ToEmail string Image string Port int32 ClientConfig ClientConfig // contains filtered or unexported fields }
func NewIperfTaskInfo ¶
func NewIperfTaskInfo(iperfTask *iperfalpha1.IperfTask, namespace, name, uid string) *IperfTaskInfo
func (*IperfTaskInfo) GetIperfTask ¶
func (info *IperfTaskInfo) GetIperfTask() *iperfalpha1.IperfTask
type SocketStatis ¶
type Sum ¶
type Sum struct { Start float64 `json:"start"` End float64 `json:"end"` Seconds float64 `json:"seconds"` Bytes float64 `json:"bytes"` BitsPerSecond float64 `json:"bits_per_second"` JitterMs float64 `json:"jitter_ms"` LostPackets int `json:"lost_packets"` Packets int `json:"packets"` LostPercent float64 `json:"lost_percent"` }
type SumReceived ¶
Click to show internal directories.
Click to hide internal directories.