devsource

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package devsource verifies local development SDK source identities without importing native, plugin-process, profile or workspace orchestration packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	Directory    string
	Revision     string
	SourceDigest string
}

func Verify

func Verify(ctx context.Context, directory string) (Identity, error)

Verify identifies the selected checkout by its HEAD and dirty source digest. This local-builder identity is not a sandbox or proof of a binary's source.

func (Identity) Validate added in v0.32.0

func (i Identity) Validate() error

Validate reports whether the identity is complete: an absolute clean checkout directory, a full lowercase commit hash and a SHA-256 source digest. Verify returns only identities that satisfy it; consumers that accept an identity from elsewhere use it to reject partial evidence.

Jump to

Keyboard shortcuts

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