validationv1

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller handles validation-related HTTP requests including streaming validation events over Server-Sent Events (SSE).

func NewController

func NewController(
	validationRetentionPeriod time.Duration,
	deps *typesv1.Dependencies,
) *Controller

NewController creates a new validation Controller instance with the provided dependencies.

func (*Controller) CleanupBlueprintValidationsHandler

func (c *Controller) CleanupBlueprintValidationsHandler(
	w http.ResponseWriter,
	r *http.Request,
)

CleanupBlueprintValidationsHandler is the handler for the POST /validation/cleanup endpoint that cleans up blueprint validations that are older than the configured retention period.

func (*Controller) CreateBlueprintValidationHandler

func (c *Controller) CreateBlueprintValidationHandler(
	w http.ResponseWriter,
	r *http.Request,
)

CreateBlueprintValidationHandler is the handler for the POST /validation endpoint that creates a new validation for a blueprint.

func (*Controller) GetBlueprintValidationHandler

func (c *Controller) GetBlueprintValidationHandler(
	w http.ResponseWriter,
	r *http.Request,
)

GetBlueprintValidationHandler is the handler for the GET /validation/{id} endpoint that retrieves metadata and status of a blueprint validation.

func (*Controller) StreamEventsHandler

func (c *Controller) StreamEventsHandler(w http.ResponseWriter, r *http.Request)

StreamEventsHandler is the handler for the GET /validation/{id}/stream endpoint that streams validation events to the client using Server-Sent Events (SSE).

type CreateValidationRequestPayload

type CreateValidationRequestPayload struct {
	resolve.BlueprintDocumentInfo
	// Config values for the validation process
	// that will be used in plugins and passed into the blueprint.
	Config *types.BlueprintOperationConfig `json:"config"`
}

CreateValidationRequestPayload represents the payload for creating a new blueprint validation.

Jump to

Keyboard shortcuts

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