Documentation
¶
Overview ¶
Package flowdocs produces bounded source observations, never accepted intent or witnessed runtime behavior, from immutable native-index source bytes.
Index ¶
- Constants
- func CompareOutput(destination string, files map[string][]byte) ([]string, error)
- func Encode(v any) ([]byte, error)
- func Finalize(ctx context.Context, root string, r *Result, revision, providerPath string) (doccorpus.Manifest, error)
- func Materialize(destination string, r *Result) error
- func MaterializeCoverage(destination string, files map[string][]byte) error
- func ReadCorpusFile(name string) ([]byte, error)
- func ReadFile(name string) ([]byte, error)
- type AnchorCheck
- type BindingCheck
- type Call
- type Check
- type Flow
- type Manifest
- type OpaqueChange
- type OpaqueGitlink
- type Options
- type Output
- type Paragraph
- type Result
Constants ¶
View Source
const MaxBytes = 64 << 20
View Source
const MaxFlows = 256
View Source
const MaxManifestBytes = 256 << 20
View Source
const MaxOutputBytes = MaxManifestBytes + MaxBytes
View Source
const Schema = "corvint-flow-documentation/1"
View Source
const Version = "1"
Variables ¶
This section is empty.
Functions ¶
func CompareOutput ¶
func Finalize ¶
func Finalize(ctx context.Context, root string, r *Result, revision, providerPath string) (doccorpus.Manifest, error)
Finalize is read-only: after the caller commits provider.json, it binds that later provider commit while preserving the original source revision.
func Materialize ¶
func MaterializeCoverage ¶
MaterializeCoverage shares the confined writer with the bounded coverage descendant.
func ReadCorpusFile ¶
Types ¶
type AnchorCheck ¶
type BindingCheck ¶
type Check ¶
type Check struct {
OpaqueChanges []OpaqueChange `json:"opaque_changes"`
Source doccorpus.Repository `json:"source"`
Target doccorpus.Repository `json:"target"`
Bindings []BindingCheck `json:"bindings"`
Added []string `json:"added"`
Retired []string `json:"retired"`
OutputDifferences []string `json:"output_differences"`
Clean bool `json:"clean"`
}
type Manifest ¶
type Manifest struct {
OpaqueGitlinks []OpaqueGitlink `json:"opaque_gitlinks"`
Schema string `json:"schema"`
Version string `json:"version"`
Source doccorpus.Repository `json:"source"`
Scope string `json:"scope"`
Flows []Flow `json:"flows"`
Provider doccorpus.ProviderRecord `json:"provider"`
Corpus *doccorpus.Artifact `json:"corpus,omitempty"`
Gaps []string `json:"gaps"`
Outputs []Output `json:"outputs"`
}
type OpaqueChange ¶
type OpaqueGitlink ¶
Click to show internal directories.
Click to hide internal directories.