startup

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: CC0-1.0 Imports: 5 Imported by: 0

Documentation

Overview

Package startup exposes the fixed startup action through the existing authenticated gRPC server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedStartupServiceServer
	Controller *startup.Controller
}

Server delegates startup lifecycle to the application controller.

Example: register this service on the server with the normal mTLS and ACL interceptors.

func (*Server) Apply

func (s *Server) Apply(
	ctx context.Context,
	_ *pb.ApplyRequest,
) (*pb.Status, error)

Apply starts a new asynchronous discovery-and-command attempt using the configured key.

Example: GetStatus subsequently reports the actual shell exit result.

func (*Server) Configure

func (s *Server) Configure(
	ctx context.Context,
	req *pb.ConfigureRequest,
) (*pb.Status, error)

Configure persists opt-in and an optional replacement key without returning key material.

Example: Enabled false cancels pending retries without disabling current fixed-performance mode.

func (*Server) GetStatus

func (s *Server) GetStatus(
	_ context.Context,
	_ *pb.GetStatusRequest,
) (*pb.Status, error)

GetStatus reports configuration and last execution without modifying either.

Example: a waiting state is expected while trusted Wi-Fi or wireless debugging is unavailable.

Jump to

Keyboard shortcuts

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