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.
Click to show internal directories.
Click to hide internal directories.