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, servoNexusAddr string, 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 (ps *ProvisionServer) Install(ctx context.Context, req *api.InstallRequest) (*longrunning.Operation, error)
func (*ProvisionServer) Start ¶
func (ps *ProvisionServer) Start() error
func (*ProvisionServer) StartUp ¶
func (ps *ProvisionServer) StartUp(ctx context.Context, req *api.ProvisionStartupRequest) (*api.ProvisionStartupResponse, error)
StartUp handles the initialization of the GenericProvisionService by passing in parameters through the ProvisionStartupRequest.
Click to show internal directories.
Click to hide internal directories.