server

package
v0.0.0-...-19f3ddf Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Executor defines a state initializer for each state. Usable by server to start. Under normal conditions this would be part of service, but go being go, it would create an impossible cycle

GRPC Server impl

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProvisionExecutor

type ProvisionExecutor interface {
	GetFirstState(dut *lab_api.Dut, dutClient api.DutServiceClient, req *api.InstallRequest) (common_utils.ServiceState, error)
	Validate(req *api.ProvisionStartupRequest) error
}

type ProvisionServer

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

func NewProvisionServer

func NewProvisionServer(options *metadata.ServerMetadata, executor ProvisionExecutor) (*ProvisionServer, func(), error)

func (*ProvisionServer) Install

func (*ProvisionServer) Start

func (ps *ProvisionServer) Start() error

func (*ProvisionServer) StartUp

StartUp handles the initialization of the GenericProvisionService by passing in parameters through the ProvisionStartupRequest.

Jump to

Keyboard shortcuts

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