reviewinput

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package reviewinput composes the immutable root-review input boundary.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

Factory captures review input before it can be exposed to a provider.

func NewImmutableInputSourceFactory

func NewImmutableInputSourceFactory(
	capturer ports.ReviewTargetCapturer,
	detector ports.ReviewInputContentDetector,
	leases ports.WorkspaceSnapshotLeaseFactory,
) (*Factory, error)

NewImmutableInputSourceFactory constructs the root-review immutable input factory.

func (*Factory) CaptureArchived

func (factory *Factory) CaptureArchived(ctx context.Context, archive []byte, objective []byte, hasObjective bool) (reviewrun.CapturedRunInput, error)

CaptureArchived reconstructs a P2-verified capture without consulting the current project filesystem. The archive itself carries no root authority.

func (*Factory) NewImmutableInputSource

func (factory *Factory) NewImmutableInputSource(ctx context.Context, request reviewrun.InputCaptureRequest) (reviewrun.ImmutableInputSource, error)

NewImmutableInputSource validates a capture request and returns a source that can transfer exactly one captured input and workspace lease.

Jump to

Keyboard shortcuts

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