inputrequests

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Package inputrequests owns bounded text staging and Pinax input preview.

Index

Constants

View Source
const MaxBytes = 2 << 20

Variables

This section is empty.

Functions

This section is empty.

Types

type Preview

type Preview struct {
	InputRef string `json:"input_ref"`
	Digest   string `json:"preview_digest"`
	State    string `json:"state"`
	Plan     any    `json:"plan,omitempty"`
}

type Service

type Service struct {
	*intake.Service
	// contains filtered or unexported fields
}

func Open

func Open(root, base string, application *app.Service) (*Service, func(), error)

func (*Service) AttachmentApply added in v0.3.1

func (s *Service) AttachmentApply(ctx context.Context, who intake.Identity, request inputcontract.AttachmentApply) (operation.View, error)

func (*Service) AttachmentOperation added in v0.3.1

func (s *Service) AttachmentOperation(ctx context.Context, who intake.Identity, id string, reconcile bool) (operation.View, error)

AttachmentOperation works after the upload ticket expires. It checks the original actor/project scope and never replays the adoption or upload.

func (*Service) AttachmentPreview added in v0.3.1

func (*Service) Preview

func (s *Service) Preview(ctx context.Context, who intake.Identity, id, conflict, note string, confirm bool, expected string) (Preview, error)

Jump to

Keyboard shortcuts

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