validation

package
v0.0.0-...-3bfe646 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// FieldLogger specifies the logger to use for the server
	log.FieldLogger
}

Server is a validation server. Implements pb.ValidationServer

func NewServer

func NewServer(log log.FieldLogger) *Server

NewServer creates a new validation server

func (*Server) CheckBandwidth

func (r *Server) CheckBandwidth(ctx context.Context, req *pb.CheckBandwidthRequest) (*pb.CheckBandwidthResponse, error)

CheckBandwidth launches a special type of a ping-pong game that measures network bandwidth between servers specified in the request

func (*Server) CheckDisks

CheckDisks executes the disk performance test using fio tool with the provided configuration and returns the test results.

func (*Server) CheckPorts

func (r *Server) CheckPorts(ctx context.Context, req *pb.CheckPortsRequest) (*pb.CheckPortsResponse, error)

CheckPorts executes a network ports test

func (*Server) Validate

func (*Server) Validate(ctx context.Context, req *pb.ValidateRequest) (resp *pb.ValidateResponse, err error)

Validate validatest this node against the requirements from a manifest.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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