daemonv1

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DaemonService_Initialize_FullMethodName   = "/iperf.daemon.v1.DaemonService/Initialize"
	DaemonService_PrepareTest_FullMethodName  = "/iperf.daemon.v1.DaemonService/PrepareTest"
	DaemonService_StartServers_FullMethodName = "/iperf.daemon.v1.DaemonService/StartServers"
	DaemonService_StartClients_FullMethodName = "/iperf.daemon.v1.DaemonService/StartClients"
	DaemonService_StopAll_FullMethodName      = "/iperf.daemon.v1.DaemonService/StopAll"
	DaemonService_GetResults_FullMethodName   = "/iperf.daemon.v1.DaemonService/GetResults"
	DaemonService_GetStatus_FullMethodName    = "/iperf.daemon.v1.DaemonService/GetStatus"
)

Variables

View Source
var (
	Protocol_name = map[int32]string{
		0: "PROTOCOL_UNSPECIFIED",
		1: "PROTOCOL_TCP",
		2: "PROTOCOL_UDP",
	}
	Protocol_value = map[string]int32{
		"PROTOCOL_UNSPECIFIED": 0,
		"PROTOCOL_TCP":         1,
		"PROTOCOL_UDP":         2,
	}
)

Enum value maps for Protocol.

View Source
var (
	TestStatus_name = map[int32]string{
		0: "TEST_STATUS_UNSPECIFIED",
		1: "TEST_STATUS_PENDING",
		2: "TEST_STATUS_RUNNING",
		3: "TEST_STATUS_COMPLETED",
		4: "TEST_STATUS_FAILED",
	}
	TestStatus_value = map[string]int32{
		"TEST_STATUS_UNSPECIFIED": 0,
		"TEST_STATUS_PENDING":     1,
		"TEST_STATUS_RUNNING":     2,
		"TEST_STATUS_COMPLETED":   3,
		"TEST_STATUS_FAILED":      4,
	}
)

Enum value maps for TestStatus.

View Source
var DaemonService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "iperf.daemon.v1.DaemonService",
	HandlerType: (*DaemonServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Initialize",
			Handler:    _DaemonService_Initialize_Handler,
		},
		{
			MethodName: "PrepareTest",
			Handler:    _DaemonService_PrepareTest_Handler,
		},
		{
			MethodName: "StartServers",
			Handler:    _DaemonService_StartServers_Handler,
		},
		{
			MethodName: "StartClients",
			Handler:    _DaemonService_StartClients_Handler,
		},
		{
			MethodName: "StopAll",
			Handler:    _DaemonService_StopAll_Handler,
		},
		{
			MethodName: "GetResults",
			Handler:    _DaemonService_GetResults_Handler,
		},
		{
			MethodName: "GetStatus",
			Handler:    _DaemonService_GetStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/proto/daemon.proto",
}

DaemonService_ServiceDesc is the grpc.ServiceDesc for DaemonService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_proto_daemon_proto protoreflect.FileDescriptor

Functions

func RegisterDaemonServiceServer

func RegisterDaemonServiceServer(s grpc.ServiceRegistrar, srv DaemonServiceServer)

Types

type ClientTarget

type ClientTarget struct {
	TestId          string       `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	DestinationIp   string       `protobuf:"bytes,2,opt,name=destination_ip,json=destinationIp,proto3" json:"destination_ip,omitempty"`
	DestinationPort int32        `protobuf:"varint,3,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
	Profile         *TestProfile `protobuf:"bytes,4,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

func (*ClientTarget) Descriptor deprecated

func (*ClientTarget) Descriptor() ([]byte, []int)

Deprecated: Use ClientTarget.ProtoReflect.Descriptor instead.

func (*ClientTarget) GetDestinationIp

func (x *ClientTarget) GetDestinationIp() string

func (*ClientTarget) GetDestinationPort

func (x *ClientTarget) GetDestinationPort() int32

func (*ClientTarget) GetProfile

func (x *ClientTarget) GetProfile() *TestProfile

func (*ClientTarget) GetTestId

func (x *ClientTarget) GetTestId() string

func (*ClientTarget) ProtoMessage

func (*ClientTarget) ProtoMessage()

func (*ClientTarget) ProtoReflect

func (x *ClientTarget) ProtoReflect() protoreflect.Message

func (*ClientTarget) Reset

func (x *ClientTarget) Reset()

func (*ClientTarget) String

func (x *ClientTarget) String() string

type DaemonServiceClient

type DaemonServiceClient interface {
	// Initialize prepares the daemon with configuration
	Initialize(ctx context.Context, in *InitializeRequest, opts ...grpc.CallOption) (*InitializeResponse, error)
	// PrepareTest validates if the daemon can handle the test topology
	PrepareTest(ctx context.Context, in *PrepareTestRequest, opts ...grpc.CallOption) (*PrepareTestResponse, error)
	// StartServers starts iperf3 servers on allocated ports
	StartServers(ctx context.Context, in *StartServersRequest, opts ...grpc.CallOption) (*StartServersResponse, error)
	// StartClients starts iperf3 clients to connect to targets
	StartClients(ctx context.Context, in *StartClientsRequest, opts ...grpc.CallOption) (*StartClientsResponse, error)
	// StopAll stops all running iperf3 processes
	StopAll(ctx context.Context, in *StopAllRequest, opts ...grpc.CallOption) (*StopAllResponse, error)
	// GetResults retrieves test results from completed runs
	GetResults(ctx context.Context, in *GetResultsRequest, opts ...grpc.CallOption) (*GetResultsResponse, error)
	// GetStatus returns current daemon health and resource usage
	GetStatus(ctx context.Context, in *GetStatusRequest, opts ...grpc.CallOption) (*GetStatusResponse, error)
}

DaemonServiceClient is the client API for DaemonService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

DaemonService is the main gRPC service for the iperf daemon

type DaemonServiceServer

type DaemonServiceServer interface {
	// Initialize prepares the daemon with configuration
	Initialize(context.Context, *InitializeRequest) (*InitializeResponse, error)
	// PrepareTest validates if the daemon can handle the test topology
	PrepareTest(context.Context, *PrepareTestRequest) (*PrepareTestResponse, error)
	// StartServers starts iperf3 servers on allocated ports
	StartServers(context.Context, *StartServersRequest) (*StartServersResponse, error)
	// StartClients starts iperf3 clients to connect to targets
	StartClients(context.Context, *StartClientsRequest) (*StartClientsResponse, error)
	// StopAll stops all running iperf3 processes
	StopAll(context.Context, *StopAllRequest) (*StopAllResponse, error)
	// GetResults retrieves test results from completed runs
	GetResults(context.Context, *GetResultsRequest) (*GetResultsResponse, error)
	// GetStatus returns current daemon health and resource usage
	GetStatus(context.Context, *GetStatusRequest) (*GetStatusResponse, error)
	// contains filtered or unexported methods
}

DaemonServiceServer is the server API for DaemonService service. All implementations must embed UnimplementedDaemonServiceServer for forward compatibility.

DaemonService is the main gRPC service for the iperf daemon

type DaemonStatus

type DaemonStatus struct {
	Healthy          bool             `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
	RunningProcesses int32            `protobuf:"varint,2,opt,name=running_processes,json=runningProcesses,proto3" json:"running_processes,omitempty"`
	CompletedTests   int32            `protobuf:"varint,3,opt,name=completed_tests,json=completedTests,proto3" json:"completed_tests,omitempty"`
	FailedTests      int32            `protobuf:"varint,4,opt,name=failed_tests,json=failedTests,proto3" json:"failed_tests,omitempty"`
	CurrentCapacity  *ProcessCapacity `protobuf:"bytes,5,opt,name=current_capacity,json=currentCapacity,proto3" json:"current_capacity,omitempty"`
	UptimeSeconds    int64            `protobuf:"varint,6,opt,name=uptime_seconds,json=uptimeSeconds,proto3" json:"uptime_seconds,omitempty"`
	Version          string           `protobuf:"bytes,7,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

DaemonStatus represents daemon health and resource usage

func (*DaemonStatus) Descriptor deprecated

func (*DaemonStatus) Descriptor() ([]byte, []int)

Deprecated: Use DaemonStatus.ProtoReflect.Descriptor instead.

func (*DaemonStatus) GetCompletedTests

func (x *DaemonStatus) GetCompletedTests() int32

func (*DaemonStatus) GetCurrentCapacity

func (x *DaemonStatus) GetCurrentCapacity() *ProcessCapacity

func (*DaemonStatus) GetFailedTests

func (x *DaemonStatus) GetFailedTests() int32

func (*DaemonStatus) GetHealthy

func (x *DaemonStatus) GetHealthy() bool

func (*DaemonStatus) GetRunningProcesses

func (x *DaemonStatus) GetRunningProcesses() int32

func (*DaemonStatus) GetUptimeSeconds

func (x *DaemonStatus) GetUptimeSeconds() int64

func (*DaemonStatus) GetVersion

func (x *DaemonStatus) GetVersion() string

func (*DaemonStatus) ProtoMessage

func (*DaemonStatus) ProtoMessage()

func (*DaemonStatus) ProtoReflect

func (x *DaemonStatus) ProtoReflect() protoreflect.Message

func (*DaemonStatus) Reset

func (x *DaemonStatus) Reset()

func (*DaemonStatus) String

func (x *DaemonStatus) String() string

type GetResultsRequest

type GetResultsRequest struct {
	TestIds             []string `protobuf:"bytes,1,rep,name=test_ids,json=testIds,proto3" json:"test_ids,omitempty"` // Empty means all results
	ClearAfterRetrieval bool     `protobuf:"varint,2,opt,name=clear_after_retrieval,json=clearAfterRetrieval,proto3" json:"clear_after_retrieval,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResultsRequest) Descriptor deprecated

func (*GetResultsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetResultsRequest.ProtoReflect.Descriptor instead.

func (*GetResultsRequest) GetClearAfterRetrieval

func (x *GetResultsRequest) GetClearAfterRetrieval() bool

func (*GetResultsRequest) GetTestIds

func (x *GetResultsRequest) GetTestIds() []string

func (*GetResultsRequest) ProtoMessage

func (*GetResultsRequest) ProtoMessage()

func (*GetResultsRequest) ProtoReflect

func (x *GetResultsRequest) ProtoReflect() protoreflect.Message

func (*GetResultsRequest) Reset

func (x *GetResultsRequest) Reset()

func (*GetResultsRequest) String

func (x *GetResultsRequest) String() string

type GetResultsResponse

type GetResultsResponse struct {
	Results    []*TestResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	TotalCount int32         `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResultsResponse) Descriptor deprecated

func (*GetResultsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetResultsResponse.ProtoReflect.Descriptor instead.

func (*GetResultsResponse) GetResults

func (x *GetResultsResponse) GetResults() []*TestResult

func (*GetResultsResponse) GetTotalCount

func (x *GetResultsResponse) GetTotalCount() int32

func (*GetResultsResponse) ProtoMessage

func (*GetResultsResponse) ProtoMessage()

func (*GetResultsResponse) ProtoReflect

func (x *GetResultsResponse) ProtoReflect() protoreflect.Message

func (*GetResultsResponse) Reset

func (x *GetResultsResponse) Reset()

func (*GetResultsResponse) String

func (x *GetResultsResponse) String() string

type GetStatusRequest

type GetStatusRequest struct {
	// contains filtered or unexported fields
}

func (*GetStatusRequest) Descriptor deprecated

func (*GetStatusRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead.

func (*GetStatusRequest) ProtoMessage

func (*GetStatusRequest) ProtoMessage()

func (*GetStatusRequest) ProtoReflect

func (x *GetStatusRequest) ProtoReflect() protoreflect.Message

func (*GetStatusRequest) Reset

func (x *GetStatusRequest) Reset()

func (*GetStatusRequest) String

func (x *GetStatusRequest) String() string

type GetStatusResponse

type GetStatusResponse struct {
	Status *DaemonStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*GetStatusResponse) Descriptor deprecated

func (*GetStatusResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead.

func (*GetStatusResponse) GetStatus

func (x *GetStatusResponse) GetStatus() *DaemonStatus

func (*GetStatusResponse) ProtoMessage

func (*GetStatusResponse) ProtoMessage()

func (*GetStatusResponse) ProtoReflect

func (x *GetStatusResponse) ProtoReflect() protoreflect.Message

func (*GetStatusResponse) Reset

func (x *GetStatusResponse) Reset()

func (*GetStatusResponse) String

func (x *GetStatusResponse) String() string

type InitializeRequest

type InitializeRequest struct {
	PortRangeStart int32  `protobuf:"varint,1,opt,name=port_range_start,json=portRangeStart,proto3" json:"port_range_start,omitempty"`
	PortRangeEnd   int32  `protobuf:"varint,2,opt,name=port_range_end,json=portRangeEnd,proto3" json:"port_range_end,omitempty"`
	MaxProcesses   int32  `protobuf:"varint,3,opt,name=max_processes,json=maxProcesses,proto3" json:"max_processes,omitempty"`
	CpuAffinity    bool   `protobuf:"varint,4,opt,name=cpu_affinity,json=cpuAffinity,proto3" json:"cpu_affinity,omitempty"`
	LogLevel       string `protobuf:"bytes,5,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	ResultDir      string `protobuf:"bytes,6,opt,name=result_dir,json=resultDir,proto3" json:"result_dir,omitempty"`
	SaveResults    bool   `protobuf:"varint,7,opt,name=save_results,json=saveResults,proto3" json:"save_results,omitempty"` // Whether to save results to timestamped files
	// contains filtered or unexported fields
}

func (*InitializeRequest) Descriptor deprecated

func (*InitializeRequest) Descriptor() ([]byte, []int)

Deprecated: Use InitializeRequest.ProtoReflect.Descriptor instead.

func (*InitializeRequest) GetCpuAffinity

func (x *InitializeRequest) GetCpuAffinity() bool

func (*InitializeRequest) GetLogLevel

func (x *InitializeRequest) GetLogLevel() string

func (*InitializeRequest) GetMaxProcesses

func (x *InitializeRequest) GetMaxProcesses() int32

func (*InitializeRequest) GetPortRangeEnd

func (x *InitializeRequest) GetPortRangeEnd() int32

func (*InitializeRequest) GetPortRangeStart

func (x *InitializeRequest) GetPortRangeStart() int32

func (*InitializeRequest) GetResultDir

func (x *InitializeRequest) GetResultDir() string

func (*InitializeRequest) GetSaveResults added in v0.1.6

func (x *InitializeRequest) GetSaveResults() bool

func (*InitializeRequest) ProtoMessage

func (*InitializeRequest) ProtoMessage()

func (*InitializeRequest) ProtoReflect

func (x *InitializeRequest) ProtoReflect() protoreflect.Message

func (*InitializeRequest) Reset

func (x *InitializeRequest) Reset()

func (*InitializeRequest) String

func (x *InitializeRequest) String() string

type InitializeResponse

type InitializeResponse struct {
	Success  bool      `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message  string    `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	NodeInfo *NodeInfo `protobuf:"bytes,3,opt,name=node_info,json=nodeInfo,proto3" json:"node_info,omitempty"`
	// contains filtered or unexported fields
}

func (*InitializeResponse) Descriptor deprecated

func (*InitializeResponse) Descriptor() ([]byte, []int)

Deprecated: Use InitializeResponse.ProtoReflect.Descriptor instead.

func (*InitializeResponse) GetMessage

func (x *InitializeResponse) GetMessage() string

func (*InitializeResponse) GetNodeInfo

func (x *InitializeResponse) GetNodeInfo() *NodeInfo

func (*InitializeResponse) GetSuccess

func (x *InitializeResponse) GetSuccess() bool

func (*InitializeResponse) ProtoMessage

func (*InitializeResponse) ProtoMessage()

func (*InitializeResponse) ProtoReflect

func (x *InitializeResponse) ProtoReflect() protoreflect.Message

func (*InitializeResponse) Reset

func (x *InitializeResponse) Reset()

func (*InitializeResponse) String

func (x *InitializeResponse) String() string

type NodeInfo

type NodeInfo struct {
	Id       string           `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Hostname string           `protobuf:"bytes,2,opt,name=hostname,proto3" json:"hostname,omitempty"`
	Ip       string           `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
	Port     int32            `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
	Capacity *ProcessCapacity `protobuf:"bytes,5,opt,name=capacity,proto3" json:"capacity,omitempty"`
	// contains filtered or unexported fields
}

NodeInfo represents information about a node in the cluster

func (*NodeInfo) Descriptor deprecated

func (*NodeInfo) Descriptor() ([]byte, []int)

Deprecated: Use NodeInfo.ProtoReflect.Descriptor instead.

func (*NodeInfo) GetCapacity

func (x *NodeInfo) GetCapacity() *ProcessCapacity

func (*NodeInfo) GetHostname

func (x *NodeInfo) GetHostname() string

func (*NodeInfo) GetId

func (x *NodeInfo) GetId() string

func (*NodeInfo) GetIp

func (x *NodeInfo) GetIp() string

func (*NodeInfo) GetPort

func (x *NodeInfo) GetPort() int32

func (*NodeInfo) ProtoMessage

func (*NodeInfo) ProtoMessage()

func (*NodeInfo) ProtoReflect

func (x *NodeInfo) ProtoReflect() protoreflect.Message

func (*NodeInfo) Reset

func (x *NodeInfo) Reset()

func (*NodeInfo) String

func (x *NodeInfo) String() string

type PrepareTestRequest

type PrepareTestRequest struct {
	Topology *TestTopology `protobuf:"bytes,1,opt,name=topology,proto3" json:"topology,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareTestRequest) Descriptor deprecated

func (*PrepareTestRequest) Descriptor() ([]byte, []int)

Deprecated: Use PrepareTestRequest.ProtoReflect.Descriptor instead.

func (*PrepareTestRequest) GetTopology

func (x *PrepareTestRequest) GetTopology() *TestTopology

func (*PrepareTestRequest) ProtoMessage

func (*PrepareTestRequest) ProtoMessage()

func (*PrepareTestRequest) ProtoReflect

func (x *PrepareTestRequest) ProtoReflect() protoreflect.Message

func (*PrepareTestRequest) Reset

func (x *PrepareTestRequest) Reset()

func (*PrepareTestRequest) String

func (x *PrepareTestRequest) String() string

type PrepareTestResponse

type PrepareTestResponse struct {
	CanHandle         bool             `protobuf:"varint,1,opt,name=can_handle,json=canHandle,proto3" json:"can_handle,omitempty"`
	Message           string           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	RequiredCapacity  *ProcessCapacity `protobuf:"bytes,3,opt,name=required_capacity,json=requiredCapacity,proto3" json:"required_capacity,omitempty"`
	AvailableCapacity *ProcessCapacity `protobuf:"bytes,4,opt,name=available_capacity,json=availableCapacity,proto3" json:"available_capacity,omitempty"`
	// contains filtered or unexported fields
}

func (*PrepareTestResponse) Descriptor deprecated

func (*PrepareTestResponse) Descriptor() ([]byte, []int)

Deprecated: Use PrepareTestResponse.ProtoReflect.Descriptor instead.

func (*PrepareTestResponse) GetAvailableCapacity

func (x *PrepareTestResponse) GetAvailableCapacity() *ProcessCapacity

func (*PrepareTestResponse) GetCanHandle

func (x *PrepareTestResponse) GetCanHandle() bool

func (*PrepareTestResponse) GetMessage

func (x *PrepareTestResponse) GetMessage() string

func (*PrepareTestResponse) GetRequiredCapacity

func (x *PrepareTestResponse) GetRequiredCapacity() *ProcessCapacity

func (*PrepareTestResponse) ProtoMessage

func (*PrepareTestResponse) ProtoMessage()

func (*PrepareTestResponse) ProtoReflect

func (x *PrepareTestResponse) ProtoReflect() protoreflect.Message

func (*PrepareTestResponse) Reset

func (x *PrepareTestResponse) Reset()

func (*PrepareTestResponse) String

func (x *PrepareTestResponse) String() string

type ProcessCapacity

type ProcessCapacity struct {
	MaxProcesses         int32    `protobuf:"varint,1,opt,name=max_processes,json=maxProcesses,proto3" json:"max_processes,omitempty"`
	AvailableProcesses   int32    `protobuf:"varint,2,opt,name=available_processes,json=availableProcesses,proto3" json:"available_processes,omitempty"`
	CpuCores             int32    `protobuf:"varint,3,opt,name=cpu_cores,json=cpuCores,proto3" json:"cpu_cores,omitempty"`
	AvailableMemoryBytes int64    `protobuf:"varint,4,opt,name=available_memory_bytes,json=availableMemoryBytes,proto3" json:"available_memory_bytes,omitempty"`
	NetworkInterfaces    []string `protobuf:"bytes,5,rep,name=network_interfaces,json=networkInterfaces,proto3" json:"network_interfaces,omitempty"`
	// contains filtered or unexported fields
}

ProcessCapacity represents the daemon's ability to run processes

func (*ProcessCapacity) Descriptor deprecated

func (*ProcessCapacity) Descriptor() ([]byte, []int)

Deprecated: Use ProcessCapacity.ProtoReflect.Descriptor instead.

func (*ProcessCapacity) GetAvailableMemoryBytes

func (x *ProcessCapacity) GetAvailableMemoryBytes() int64

func (*ProcessCapacity) GetAvailableProcesses

func (x *ProcessCapacity) GetAvailableProcesses() int32

func (*ProcessCapacity) GetCpuCores

func (x *ProcessCapacity) GetCpuCores() int32

func (*ProcessCapacity) GetMaxProcesses

func (x *ProcessCapacity) GetMaxProcesses() int32

func (*ProcessCapacity) GetNetworkInterfaces

func (x *ProcessCapacity) GetNetworkInterfaces() []string

func (*ProcessCapacity) ProtoMessage

func (*ProcessCapacity) ProtoMessage()

func (*ProcessCapacity) ProtoReflect

func (x *ProcessCapacity) ProtoReflect() protoreflect.Message

func (*ProcessCapacity) Reset

func (x *ProcessCapacity) Reset()

func (*ProcessCapacity) String

func (x *ProcessCapacity) String() string

type Protocol added in v0.1.5

type Protocol int32

Protocol represents the transport protocol for iperf3 tests

const (
	Protocol_PROTOCOL_UNSPECIFIED Protocol = 0
	Protocol_PROTOCOL_TCP         Protocol = 1
	Protocol_PROTOCOL_UDP         Protocol = 2
)

func (Protocol) Descriptor added in v0.1.5

func (Protocol) Descriptor() protoreflect.EnumDescriptor

func (Protocol) Enum added in v0.1.5

func (x Protocol) Enum() *Protocol

func (Protocol) EnumDescriptor deprecated added in v0.1.5

func (Protocol) EnumDescriptor() ([]byte, []int)

Deprecated: Use Protocol.Descriptor instead.

func (Protocol) Number added in v0.1.5

func (x Protocol) Number() protoreflect.EnumNumber

func (Protocol) String added in v0.1.5

func (x Protocol) String() string

func (Protocol) Type added in v0.1.5

type StartClientsRequest

type StartClientsRequest struct {
	Targets []*ClientTarget `protobuf:"bytes,1,rep,name=targets,proto3" json:"targets,omitempty"`
	// contains filtered or unexported fields
}

func (*StartClientsRequest) Descriptor deprecated

func (*StartClientsRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartClientsRequest.ProtoReflect.Descriptor instead.

func (*StartClientsRequest) GetTargets

func (x *StartClientsRequest) GetTargets() []*ClientTarget

func (*StartClientsRequest) ProtoMessage

func (*StartClientsRequest) ProtoMessage()

func (*StartClientsRequest) ProtoReflect

func (x *StartClientsRequest) ProtoReflect() protoreflect.Message

func (*StartClientsRequest) Reset

func (x *StartClientsRequest) Reset()

func (*StartClientsRequest) String

func (x *StartClientsRequest) String() string

type StartClientsResponse

type StartClientsResponse struct {
	Success        bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message        string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	StartedTestIds []string `protobuf:"bytes,3,rep,name=started_test_ids,json=startedTestIds,proto3" json:"started_test_ids,omitempty"`
	Errors         []string `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*StartClientsResponse) Descriptor deprecated

func (*StartClientsResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartClientsResponse.ProtoReflect.Descriptor instead.

func (*StartClientsResponse) GetErrors

func (x *StartClientsResponse) GetErrors() []string

func (*StartClientsResponse) GetMessage

func (x *StartClientsResponse) GetMessage() string

func (*StartClientsResponse) GetStartedTestIds

func (x *StartClientsResponse) GetStartedTestIds() []string

func (*StartClientsResponse) GetSuccess

func (x *StartClientsResponse) GetSuccess() bool

func (*StartClientsResponse) ProtoMessage

func (*StartClientsResponse) ProtoMessage()

func (*StartClientsResponse) ProtoReflect

func (x *StartClientsResponse) ProtoReflect() protoreflect.Message

func (*StartClientsResponse) Reset

func (x *StartClientsResponse) Reset()

func (*StartClientsResponse) String

func (x *StartClientsResponse) String() string

type StartServersRequest

type StartServersRequest struct {
	Ports          []int32 `protobuf:"varint,1,rep,packed,name=ports,proto3" json:"ports,omitempty"`
	TimeoutSeconds int32   `protobuf:"varint,2,opt,name=timeout_seconds,json=timeoutSeconds,proto3" json:"timeout_seconds,omitempty"`
	// contains filtered or unexported fields
}

func (*StartServersRequest) Descriptor deprecated

func (*StartServersRequest) Descriptor() ([]byte, []int)

Deprecated: Use StartServersRequest.ProtoReflect.Descriptor instead.

func (*StartServersRequest) GetPorts

func (x *StartServersRequest) GetPorts() []int32

func (*StartServersRequest) GetTimeoutSeconds

func (x *StartServersRequest) GetTimeoutSeconds() int32

func (*StartServersRequest) ProtoMessage

func (*StartServersRequest) ProtoMessage()

func (*StartServersRequest) ProtoReflect

func (x *StartServersRequest) ProtoReflect() protoreflect.Message

func (*StartServersRequest) Reset

func (x *StartServersRequest) Reset()

func (*StartServersRequest) String

func (x *StartServersRequest) String() string

type StartServersResponse

type StartServersResponse struct {
	Success      bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message      string   `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	StartedPorts []int32  `protobuf:"varint,3,rep,packed,name=started_ports,json=startedPorts,proto3" json:"started_ports,omitempty"`
	Errors       []string `protobuf:"bytes,4,rep,name=errors,proto3" json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*StartServersResponse) Descriptor deprecated

func (*StartServersResponse) Descriptor() ([]byte, []int)

Deprecated: Use StartServersResponse.ProtoReflect.Descriptor instead.

func (*StartServersResponse) GetErrors

func (x *StartServersResponse) GetErrors() []string

func (*StartServersResponse) GetMessage

func (x *StartServersResponse) GetMessage() string

func (*StartServersResponse) GetStartedPorts

func (x *StartServersResponse) GetStartedPorts() []int32

func (*StartServersResponse) GetSuccess

func (x *StartServersResponse) GetSuccess() bool

func (*StartServersResponse) ProtoMessage

func (*StartServersResponse) ProtoMessage()

func (*StartServersResponse) ProtoReflect

func (x *StartServersResponse) ProtoReflect() protoreflect.Message

func (*StartServersResponse) Reset

func (x *StartServersResponse) Reset()

func (*StartServersResponse) String

func (x *StartServersResponse) String() string

type StopAllRequest

type StopAllRequest struct {
	Force bool `protobuf:"varint,1,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*StopAllRequest) Descriptor deprecated

func (*StopAllRequest) Descriptor() ([]byte, []int)

Deprecated: Use StopAllRequest.ProtoReflect.Descriptor instead.

func (*StopAllRequest) GetForce

func (x *StopAllRequest) GetForce() bool

func (*StopAllRequest) ProtoMessage

func (*StopAllRequest) ProtoMessage()

func (*StopAllRequest) ProtoReflect

func (x *StopAllRequest) ProtoReflect() protoreflect.Message

func (*StopAllRequest) Reset

func (x *StopAllRequest) Reset()

func (*StopAllRequest) String

func (x *StopAllRequest) String() string

type StopAllResponse

type StopAllResponse struct {
	Success          bool   `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	Message          string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	StoppedProcesses int32  `protobuf:"varint,3,opt,name=stopped_processes,json=stoppedProcesses,proto3" json:"stopped_processes,omitempty"`
	// contains filtered or unexported fields
}

func (*StopAllResponse) Descriptor deprecated

func (*StopAllResponse) Descriptor() ([]byte, []int)

Deprecated: Use StopAllResponse.ProtoReflect.Descriptor instead.

func (*StopAllResponse) GetMessage

func (x *StopAllResponse) GetMessage() string

func (*StopAllResponse) GetStoppedProcesses

func (x *StopAllResponse) GetStoppedProcesses() int32

func (*StopAllResponse) GetSuccess

func (x *StopAllResponse) GetSuccess() bool

func (*StopAllResponse) ProtoMessage

func (*StopAllResponse) ProtoMessage()

func (*StopAllResponse) ProtoReflect

func (x *StopAllResponse) ProtoReflect() protoreflect.Message

func (*StopAllResponse) Reset

func (x *StopAllResponse) Reset()

func (*StopAllResponse) String

func (x *StopAllResponse) String() string

type TestPair

type TestPair struct {
	SourceId        string       `protobuf:"bytes,1,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	DestinationId   string       `protobuf:"bytes,2,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`
	DestinationIp   string       `protobuf:"bytes,3,opt,name=destination_ip,json=destinationIp,proto3" json:"destination_ip,omitempty"`
	DestinationPort int32        `protobuf:"varint,4,opt,name=destination_port,json=destinationPort,proto3" json:"destination_port,omitempty"`
	Profile         *TestProfile `protobuf:"bytes,5,opt,name=profile,proto3" json:"profile,omitempty"`
	// contains filtered or unexported fields
}

TestPair represents a source-destination pair for testing

func (*TestPair) Descriptor deprecated

func (*TestPair) Descriptor() ([]byte, []int)

Deprecated: Use TestPair.ProtoReflect.Descriptor instead.

func (*TestPair) GetDestinationId

func (x *TestPair) GetDestinationId() string

func (*TestPair) GetDestinationIp

func (x *TestPair) GetDestinationIp() string

func (*TestPair) GetDestinationPort

func (x *TestPair) GetDestinationPort() int32

func (*TestPair) GetProfile

func (x *TestPair) GetProfile() *TestProfile

func (*TestPair) GetSourceId

func (x *TestPair) GetSourceId() string

func (*TestPair) ProtoMessage

func (*TestPair) ProtoMessage()

func (*TestPair) ProtoReflect

func (x *TestPair) ProtoReflect() protoreflect.Message

func (*TestPair) Reset

func (x *TestPair) Reset()

func (*TestPair) String

func (x *TestPair) String() string

type TestProfile

type TestProfile struct {
	Name              string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	DurationSeconds   int32             `protobuf:"varint,2,opt,name=duration_seconds,json=durationSeconds,proto3" json:"duration_seconds,omitempty"`
	Protocol          Protocol          `protobuf:"varint,3,opt,name=protocol,proto3,enum=iperf.daemon.v1.Protocol" json:"protocol,omitempty"` // TCP or UDP
	Bandwidth         string            `protobuf:"bytes,4,opt,name=bandwidth,proto3" json:"bandwidth,omitempty"`                              // e.g., "10G", "100M", "0" for unlimited
	WindowSize        string            `protobuf:"bytes,5,opt,name=window_size,json=windowSize,proto3" json:"window_size,omitempty"`          // e.g., "416K"
	ParallelStreams   int32             `protobuf:"varint,6,opt,name=parallel_streams,json=parallelStreams,proto3" json:"parallel_streams,omitempty"`
	Bidirectional     bool              `protobuf:"varint,7,opt,name=bidirectional,proto3" json:"bidirectional,omitempty"`
	Reverse           bool              `protobuf:"varint,8,opt,name=reverse,proto3" json:"reverse,omitempty"`
	BufferLength      int32             `protobuf:"varint,9,opt,name=buffer_length,json=bufferLength,proto3" json:"buffer_length,omitempty"`
	CongestionControl string            `protobuf:"bytes,10,opt,name=congestion_control,json=congestionControl,proto3" json:"congestion_control,omitempty"` // e.g., "cubic", "bbr" (TCP only)
	Mss               int32             `protobuf:"varint,11,opt,name=mss,proto3" json:"mss,omitempty"`                                                     // Maximum segment size (TCP only)
	NoDelay           bool              `protobuf:"varint,12,opt,name=no_delay,json=noDelay,proto3" json:"no_delay,omitempty"`                              // TCP no delay (TCP only)
	Tos               int32             `protobuf:"varint,13,opt,name=tos,proto3" json:"tos,omitempty"`                                                     // Type of service
	Zerocopy          bool              `protobuf:"varint,14,opt,name=zerocopy,proto3" json:"zerocopy,omitempty"`
	OmitSeconds       int32             `protobuf:"varint,15,opt,name=omit_seconds,json=omitSeconds,proto3" json:"omit_seconds,omitempty"` // Seconds to omit at start
	JsonOutput        string            `protobuf:"bytes,16,opt,name=json_output,json=jsonOutput,proto3" json:"json_output,omitempty"`     // JSON output mode
	ExtraFlags        map[string]string ``                                                                                                 // Additional iperf3 flags
	/* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

TestProfile contains all iperf3 parameters for a test

func (*TestProfile) Descriptor deprecated

func (*TestProfile) Descriptor() ([]byte, []int)

Deprecated: Use TestProfile.ProtoReflect.Descriptor instead.

func (*TestProfile) GetBandwidth

func (x *TestProfile) GetBandwidth() string

func (*TestProfile) GetBidirectional

func (x *TestProfile) GetBidirectional() bool

func (*TestProfile) GetBufferLength

func (x *TestProfile) GetBufferLength() int32

func (*TestProfile) GetCongestionControl

func (x *TestProfile) GetCongestionControl() string

func (*TestProfile) GetDurationSeconds

func (x *TestProfile) GetDurationSeconds() int32

func (*TestProfile) GetExtraFlags

func (x *TestProfile) GetExtraFlags() map[string]string

func (*TestProfile) GetJsonOutput

func (x *TestProfile) GetJsonOutput() string

func (*TestProfile) GetMss

func (x *TestProfile) GetMss() int32

func (*TestProfile) GetName

func (x *TestProfile) GetName() string

func (*TestProfile) GetNoDelay

func (x *TestProfile) GetNoDelay() bool

func (*TestProfile) GetOmitSeconds

func (x *TestProfile) GetOmitSeconds() int32

func (*TestProfile) GetParallelStreams

func (x *TestProfile) GetParallelStreams() int32

func (*TestProfile) GetProtocol added in v0.1.5

func (x *TestProfile) GetProtocol() Protocol

func (*TestProfile) GetReverse

func (x *TestProfile) GetReverse() bool

func (*TestProfile) GetTos

func (x *TestProfile) GetTos() int32

func (*TestProfile) GetWindowSize

func (x *TestProfile) GetWindowSize() string

func (*TestProfile) GetZerocopy

func (x *TestProfile) GetZerocopy() bool

func (*TestProfile) ProtoMessage

func (*TestProfile) ProtoMessage()

func (*TestProfile) ProtoReflect

func (x *TestProfile) ProtoReflect() protoreflect.Message

func (*TestProfile) Reset

func (x *TestProfile) Reset()

func (*TestProfile) String

func (x *TestProfile) String() string

type TestResult

type TestResult struct {
	TestId        string     `protobuf:"bytes,1,opt,name=test_id,json=testId,proto3" json:"test_id,omitempty"`
	SourceId      string     `protobuf:"bytes,2,opt,name=source_id,json=sourceId,proto3" json:"source_id,omitempty"`
	DestinationId string     `protobuf:"bytes,3,opt,name=destination_id,json=destinationId,proto3" json:"destination_id,omitempty"`
	Status        TestStatus `protobuf:"varint,4,opt,name=status,proto3,enum=iperf.daemon.v1.TestStatus" json:"status,omitempty"`
	IperfJson     string     `protobuf:"bytes,5,opt,name=iperf_json,json=iperfJson,proto3" json:"iperf_json,omitempty"` // Raw iperf3 JSON output
	ErrorMessage  string     `protobuf:"bytes,6,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	StartTimeUnix int64      `protobuf:"varint,7,opt,name=start_time_unix,json=startTimeUnix,proto3" json:"start_time_unix,omitempty"`
	EndTimeUnix   int64      `protobuf:"varint,8,opt,name=end_time_unix,json=endTimeUnix,proto3" json:"end_time_unix,omitempty"`
	ExitCode      int32      `protobuf:"varint,9,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// contains filtered or unexported fields
}

TestResult contains the output from an iperf3 run

func (*TestResult) Descriptor deprecated

func (*TestResult) Descriptor() ([]byte, []int)

Deprecated: Use TestResult.ProtoReflect.Descriptor instead.

func (*TestResult) GetDestinationId

func (x *TestResult) GetDestinationId() string

func (*TestResult) GetEndTimeUnix

func (x *TestResult) GetEndTimeUnix() int64

func (*TestResult) GetErrorMessage

func (x *TestResult) GetErrorMessage() string

func (*TestResult) GetExitCode

func (x *TestResult) GetExitCode() int32

func (*TestResult) GetIperfJson

func (x *TestResult) GetIperfJson() string

func (*TestResult) GetSourceId

func (x *TestResult) GetSourceId() string

func (*TestResult) GetStartTimeUnix

func (x *TestResult) GetStartTimeUnix() int64

func (*TestResult) GetStatus

func (x *TestResult) GetStatus() TestStatus

func (*TestResult) GetTestId

func (x *TestResult) GetTestId() string

func (*TestResult) ProtoMessage

func (*TestResult) ProtoMessage()

func (*TestResult) ProtoReflect

func (x *TestResult) ProtoReflect() protoreflect.Message

func (*TestResult) Reset

func (x *TestResult) Reset()

func (*TestResult) String

func (x *TestResult) String() string

type TestStatus

type TestStatus int32

TestStatus represents the current state of a test

const (
	TestStatus_TEST_STATUS_UNSPECIFIED TestStatus = 0
	TestStatus_TEST_STATUS_PENDING     TestStatus = 1
	TestStatus_TEST_STATUS_RUNNING     TestStatus = 2
	TestStatus_TEST_STATUS_COMPLETED   TestStatus = 3
	TestStatus_TEST_STATUS_FAILED      TestStatus = 4
)

func (TestStatus) Descriptor

func (TestStatus) Descriptor() protoreflect.EnumDescriptor

func (TestStatus) Enum

func (x TestStatus) Enum() *TestStatus

func (TestStatus) EnumDescriptor deprecated

func (TestStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use TestStatus.Descriptor instead.

func (TestStatus) Number

func (x TestStatus) Number() protoreflect.EnumNumber

func (TestStatus) String

func (x TestStatus) String() string

func (TestStatus) Type

type TestTopology

type TestTopology struct {
	ServerAssignments []*TestPair `protobuf:"bytes,1,rep,name=server_assignments,json=serverAssignments,proto3" json:"server_assignments,omitempty"` // Tests where this node is server
	ClientAssignments []*TestPair `protobuf:"bytes,2,rep,name=client_assignments,json=clientAssignments,proto3" json:"client_assignments,omitempty"` // Tests where this node is client
	// contains filtered or unexported fields
}

TestTopology contains all test pairs for a node

func (*TestTopology) Descriptor deprecated

func (*TestTopology) Descriptor() ([]byte, []int)

Deprecated: Use TestTopology.ProtoReflect.Descriptor instead.

func (*TestTopology) GetClientAssignments

func (x *TestTopology) GetClientAssignments() []*TestPair

func (*TestTopology) GetServerAssignments

func (x *TestTopology) GetServerAssignments() []*TestPair

func (*TestTopology) ProtoMessage

func (*TestTopology) ProtoMessage()

func (*TestTopology) ProtoReflect

func (x *TestTopology) ProtoReflect() protoreflect.Message

func (*TestTopology) Reset

func (x *TestTopology) Reset()

func (*TestTopology) String

func (x *TestTopology) String() string

type UnimplementedDaemonServiceServer

type UnimplementedDaemonServiceServer struct{}

UnimplementedDaemonServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedDaemonServiceServer) GetResults

func (UnimplementedDaemonServiceServer) GetStatus

func (UnimplementedDaemonServiceServer) Initialize

func (UnimplementedDaemonServiceServer) PrepareTest

func (UnimplementedDaemonServiceServer) StartClients

func (UnimplementedDaemonServiceServer) StartServers

func (UnimplementedDaemonServiceServer) StopAll

type UnsafeDaemonServiceServer

type UnsafeDaemonServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDaemonServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DaemonServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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