gait

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyEmbeddedSignedJSON

func VerifyEmbeddedSignedJSON(raw []byte, pub ed25519.PublicKey) error

Types

type PackEntry

type PackEntry struct {
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
	Type   string `json:"type"`
}

type PackManifest

type PackManifest struct {
	SchemaID      string      `json:"schema_id"`
	SchemaVersion string      `json:"schema_version"`
	CreatedAt     string      `json:"created_at"`
	PackID        string      `json:"pack_id"`
	PackType      string      `json:"pack_type"`
	Contents      []PackEntry `json:"contents"`
	Signatures    []Signature `json:"signatures,omitempty"`
}

type Result

type Result struct {
	PackID               string `json:"pack_id"`
	PackType             string `json:"pack_type"`
	FilesVerified        int    `json:"files_verified"`
	SignaturesVerified   int    `json:"signatures_verified"`
	ProofRecordsVerified int    `json:"proof_records_verified,omitempty"`
}

func VerifyPack

func VerifyPack(path string, verifySignatures bool, pub ed25519.PublicKey) (*Result, error)

func VerifyPackWithOptions

func VerifyPackWithOptions(path string, opts VerifyOpts) (*Result, error)

type RunpackFile

type RunpackFile struct {
	Path   string `json:"path"`
	SHA256 string `json:"sha256"`
}

type RunpackManifest

type RunpackManifest struct {
	SchemaID       string        `json:"schema_id"`
	SchemaVersion  string        `json:"schema_version"`
	RunID          string        `json:"run_id"`
	Files          []RunpackFile `json:"files"`
	ManifestDigest string        `json:"manifest_digest"`
	Signatures     []Signature   `json:"signatures,omitempty"`
}

type RunpackResult

type RunpackResult struct {
	RunID              string `json:"run_id"`
	ManifestDigest     string `json:"manifest_digest"`
	FilesVerified      int    `json:"files_verified"`
	SignaturesVerified int    `json:"signatures_verified"`
}

func VerifyRunpack

func VerifyRunpack(path string, verifySignatures bool, pub ed25519.PublicKey) (*RunpackResult, error)

func VerifyRunpackWithOptions

func VerifyRunpackWithOptions(path string, opts VerifyOpts) (*RunpackResult, error)

type Signature

type Signature struct {
	Alg          string `json:"alg"`
	KeyID        string `json:"key_id"`
	Sig          string `json:"sig"`
	SignedDigest string `json:"signed_digest"`
}

type VerifyOpts

type VerifyOpts struct {
	VerifySignatures bool
	PublicKey        ed25519.PublicKey
	Cosign           signing.CosignVerifyOpts
}

Jump to

Keyboard shortcuts

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