apiv1

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultStreamCycleDuration is the default duration before a watch stream closes and prompts the client to reconnect.
	DefaultStreamCycleDuration = 30 * time.Second
	// DefaultUpdateInterval is the default interval between task graph snapshot emissions.
	DefaultUpdateInterval = 1 * time.Second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CELValidationServer

type CELValidationServer struct{}

CELValidationServer implements the CELValidationServiceHandler interface.

func NewCELValidationServer

func NewCELValidationServer() *CELValidationServer

NewCELValidationServer creates a new instance of CELValidationServer.

func (*CELValidationServer) ValidateLogQuery

ValidateLogQuery validates a CEL log expression syntax and schema types.

func (*CELValidationServer) ValidateTimelineQuery

ValidateTimelineQuery validates a CEL timeline expression syntax and schema types.

type FileParameterUploadServiceServer

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

FileParameterUploadServiceServer implements the apiv1connect.FileParameterUploadServiceHandler interface.

func NewFileParameterUploadServiceServer

func NewFileParameterUploadServiceServer(manager *upload.FileParameterUploadManager) *FileParameterUploadServiceServer

NewFileParameterUploadServiceServer creates a new FileParameterUploadServiceServer backed by the given manager.

func (*FileParameterUploadServiceServer) AbortFileUpload

AbortFileUpload cancels the upload session and deletes temporary chunks.

func (*FileParameterUploadServiceServer) CompleteFileUpload

CompleteFileUpload finalizes the upload session and prepares the uploaded file for task execution.

func (*FileParameterUploadServiceServer) StartFileUpload

StartFileUpload initializes a chunked file parameter upload session.

func (*FileParameterUploadServiceServer) UploadFileChunk

UploadFileChunk receives and appends a single chunk of data for the active upload session.

type ImportInspectionServiceServer

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

ImportInspectionServiceServer implements the apiv1connect.ImportInspectionServiceHandler interface.

func NewImportInspectionServiceServer

func NewImportInspectionServiceServer(manager *importinspection.ImportSessionManager, indexManager *workbench.InspectionIndexManager) *ImportInspectionServiceServer

NewImportInspectionServiceServer creates a new ImportInspectionServiceServer backed by the given manager.

func (*ImportInspectionServiceServer) AbortImportInspection

AbortImportInspection aborts an in-progress import session and cleans up temporary resources.

func (*ImportInspectionServiceServer) CompleteImportInspection

CompleteImportInspection finalizes the upload, validates the KHI file, and registers the inspection.

func (*ImportInspectionServiceServer) StartImportInspection

StartImportInspection initializes an import session and returns an upload token and suggested chunk size.

func (*ImportInspectionServiceServer) UploadInspectionChunk

UploadInspectionChunk receives and appends a single chunk of data to the session's temporary file.

type InspectionServiceServer

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

InspectionServiceServer implements the apiv1connect.InspectionServiceHandler interface.

func NewInspectionServiceServer

func NewInspectionServiceServer(inspectionServer *coreinspection.InspectionTaskServer) *InspectionServiceServer

NewInspectionServiceServer creates a new InspectionServiceServer with default 30s stream cycle and 1s interval.

func NewInspectionServiceServerWithIntervals

func NewInspectionServiceServerWithIntervals(
	inspectionServer *coreinspection.InspectionTaskServer,
	streamCycleDuration time.Duration,
	updateInterval time.Duration,
) *InspectionServiceServer

NewInspectionServiceServerWithIntervals creates a new InspectionServiceServer with configurable stream intervals.

func (*InspectionServiceServer) CancelInspection

CancelInspection aborts an in-progress inspection run.

func (*InspectionServiceServer) CreateInspection

CreateInspection instantiates a new inspection runner session for a given inspection type.

func (*InspectionServiceServer) DryRunInspection

DryRunInspection dry-runs an inspection task graph and evaluates form fields with the given parameters.

func (*InspectionServiceServer) GetInspectionDataChunk

GetInspectionDataChunk downloads a slice of binary data from the generated .khi archive.

func (*InspectionServiceServer) GetInspectionFeatures

GetInspectionFeatures retrieves the list of toggleable features for an inspection runner.

func (*InspectionServiceServer) GetInspectionMetadata

GetInspectionMetadata returns serializable metadata for a completed inspection run.

func (*InspectionServiceServer) GetInspectionTypes

GetInspectionTypes returns all supported inspection types registered on the server.

func (*InspectionServiceServer) GetInspections

GetInspections returns the current snapshot of active inspection runner sessions.

func (*InspectionServiceServer) PullInspections

PullInspections pulls active inspection runner sessions snapshot without opening a persistent stream.

func (*InspectionServiceServer) RunInspection

RunInspection kicks off asynchronous execution of an inspection task graph with the given parameters.

func (*InspectionServiceServer) UpdateInspection

UpdateInspection updates metadata of an inspection runner session.

func (*InspectionServiceServer) UpdateInspectionFeatures

UpdateInspectionFeatures updates the enabled states of features for an inspection runner.

func (*InspectionServiceServer) WatchInspections

WatchInspections streams active inspection runner session updates and closes after streamCycleDuration.

type InspectionTaskGraphServer added in v0.59.0

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

InspectionTaskGraphServer implements the apiv1connect.InspectionTaskGraphServiceHandler interface.

func NewInspectionTaskGraphServer added in v0.59.0

func NewInspectionTaskGraphServer(
	inspectionServer *coreinspection.InspectionTaskServer,
	streamCycleDuration time.Duration,
	updateInterval time.Duration,
) *InspectionTaskGraphServer

NewInspectionTaskGraphServer creates a new InspectionTaskGraphServer with the given stream intervals.

func (*InspectionTaskGraphServer) GetInspectionTaskRegistry added in v0.59.0

GetInspectionTaskRegistry returns all registered tasks grouped by reference identifier and all inspection types.

func (*InspectionTaskGraphServer) PullInspectionRunTaskGraph added in v0.59.0

PullInspectionRunTaskGraph returns a single progress snapshot of an inspection run without opening a stream.

func (*InspectionTaskGraphServer) ResolveInspectionTaskGraph added in v0.59.0

ResolveInspectionTaskGraph resolves task filtering against an inspection type and feature configuration, and returns step-by-step filtering results alongside the resolved execution DAG.

func (*InspectionTaskGraphServer) WatchInspectionRunTaskGraph added in v0.59.0

WatchInspectionRunTaskGraph streams progress snapshots of an inspection run. The stream closes when the run reaches its terminal state, or after streamCycleDuration to prompt the client to reconnect.

type PopupServer

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

PopupServer implements the PopupService Connect-RPC handler.

func NewPopupServer

func NewPopupServer(manager *popup.PopupManager) *PopupServer

NewPopupServer creates a new instance of PopupServer.

func (*PopupServer) PullPopup

PullPopup returns the currently active popup form snapshot.

func (*PopupServer) SubmitPopupAnswer

SubmitPopupAnswer submits the finalized answer for the active popup.

func (*PopupServer) ValidatePopupAnswer

ValidatePopupAnswer validates in-progress input against the active popup.

func (*PopupServer) WatchPopup

WatchPopup streams real-time popup events and closes every 30s to prevent proxy timeouts.

type ServerStatusServiceServer

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

ServerStatusServiceServer implements the apiv1connect.ServerStatusServiceHandler interface.

func NewServerStatusServiceServer

func NewServerStatusServiceServer(monitor server.ResourceMonitor) *ServerStatusServiceServer

NewServerStatusServiceServer creates a new ServerStatusServiceServer with default 30s stream cycle and 1s interval.

func NewServerStatusServiceServerWithIntervals

func NewServerStatusServiceServerWithIntervals(
	monitor server.ResourceMonitor,
	streamCycleDuration time.Duration,
	updateInterval time.Duration,
) *ServerStatusServiceServer

NewServerStatusServiceServerWithIntervals creates a new ServerStatusServiceServer with custom intervals for testing.

func (*ServerStatusServiceServer) PullServerStat

PullServerStat pulls current server resource usage statistics as a one-off snapshot.

func (*ServerStatusServiceServer) WatchServerStat

WatchServerStat streams real-time server resource usage statistics, terminating after streamCycleDuration.

type WorkbenchServiceServer

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

WorkbenchServiceServer implements the apiv1connect.WorkbenchServiceHandler interface.

func NewWorkbenchServiceServer

func NewWorkbenchServiceServer(manager *workbench.WorkbenchManager) *WorkbenchServiceServer

NewWorkbenchServiceServer creates a new WorkbenchServiceServer backed by the given manager.

func (*WorkbenchServiceServer) CancelFilterTimelineSync

CancelFilterTimelineSync cancels an in-progress synchronous timeline filtering task.

func (*WorkbenchServiceServer) CancelOpenWorkbenchSync

CancelOpenWorkbenchSync cancels an in-progress synchronous workbench open task.

func (*WorkbenchServiceServer) CloseWorkbench

CloseWorkbench explicitly closes and frees the specified Workbench session.

func (*WorkbenchServiceServer) FilterTimeline

FilterTimeline executes a timeline and log filtering pipeline on the server and streams progress updates followed by the final matched ID sets.

func (*WorkbenchServiceServer) FilterTimelineSync

FilterTimelineSync evaluates a timeline and log filtering pipeline synchronously or polls its in-progress status.

func (*WorkbenchServiceServer) GetArchitectureGraph

GetArchitectureGraph builds and returns the architecture graph for the specified workbench session and timestamp.

func (*WorkbenchServiceServer) GetTimelineIDsForLogs added in v0.58.4

GetTimelineIDsForLogs retrieves timeline IDs associated with specified log IDs.

func (*WorkbenchServiceServer) HeartbeatWorkbench

HeartbeatWorkbench refreshes the lease expiration time for an active Workbench session.

func (*WorkbenchServiceServer) OpenWorkbench

OpenWorkbench opens or attaches to an in-memory Workbench session, streaming progress stages back to the client.

func (*WorkbenchServiceServer) OpenWorkbenchSync

OpenWorkbenchSync opens or polls loading progress of a Workbench session without streaming.

func (*WorkbenchServiceServer) PullIndexProgress

PullIndexProgress retrieves the current search index construction progress and status snapshot for an active Workbench session.

func (*WorkbenchServiceServer) ReadStructYAMLs

ReadStructYAMLs decodes interned structs by IDs and returns their YAML representations.

func (*WorkbenchServiceServer) WatchIndexProgress

WatchIndexProgress streams the search index construction progress and status for an active Workbench session. The server terminates the stream every 30s to accommodate proxy timeouts, and clients are expected to reconnect.

Jump to

Keyboard shortcuts

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