patches

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePatchOperation

func CreatePatchOperation(app core.App, userID string, req types.PatchRequest) (*types.PatchResponse, error)

CreatePatchOperation creates a new patch operation record

func GetPatchOperation

func GetPatchOperation(app core.App, userID, operationID string) (*types.PatchResponse, error)

GetPatchOperation retrieves a single patch operation by ID

func GetPatchOperations

func GetPatchOperations(app core.App, userID string) ([]*types.PatchResponse, error)

GetPatchOperations retrieves all patch operations for a user

func HandlePatchOperations

func HandlePatchOperations(app core.App, c *core.RequestEvent) error

HandlePatchOperations handles patch operation API endpoints

func HandlePatchResult

func HandlePatchResult(app core.App, c *core.RequestEvent) error

HandlePatchResult handles upload of patch execution results (stdout, stderr, exit code)

func HandleValidateScript

func HandleValidateScript(app core.App, c *core.RequestEvent) error

HandleValidateScript validates script SHA256

func UpdatePatchStatus

func UpdatePatchStatus(
	app core.App,
	userID, operationID string,
	status types.PatchStatus,
	outputPath string,
	errorMsg string,
) error

UpdatePatchStatus updates patch operation status

Types

This section is empty.

Jump to

Keyboard shortcuts

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