registry

package
v0.38.7 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectGraderRefs

func CollectGraderRefs(spec *models.EvalSpec) []string

func DefaultCacheRoot

func DefaultCacheRoot() (string, error)

func DigestDirectory

func DigestDirectory(dir string) (string, error)

func IsProgramGraderTrustError

func IsProgramGraderTrustError(err error) bool

func MergeGraderConfig

func MergeGraderConfig(preset models.GraderConfig, override models.GraderConfig) (models.GraderConfig, error)

Types

type GitURLFunc

type GitURLFunc func(Ref) string

type ProgramGraderTrustError

type ProgramGraderTrustError struct {
	Path string
}

func (*ProgramGraderTrustError) Error

func (e *ProgramGraderTrustError) Error() string

type Ref

type Ref struct {
	Raw     string
	Host    string
	Owner   string
	Repo    string
	Path    string
	Export  string
	Version string
}

Ref is a Go-module-style Waza registry reference.

func ParseRef

func ParseRef(raw string) (Ref, error)

func (Ref) ModulePath

func (r Ref) ModulePath() string

type ResolveOptions

type ResolveOptions struct {
	AllowProgram bool
}

ResolveOptions controls trust-sensitive remote grader resolution.

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func NewResolver

func NewResolver(opts ...ResolverOption) (*Resolver, error)

func (*Resolver) ExpandLockedGraders

func (r *Resolver) ExpandLockedGraders(ctx context.Context, spec *models.EvalSpec, evalPath string) error

func (*Resolver) LoadLockedGrader

func (r *Resolver) LoadLockedGrader(ctx context.Context, ref Ref, entry models.LockfileGrader) (models.GraderConfig, error)

func (*Resolver) ResolveEvalLock

func (r *Resolver) ResolveEvalLock(ctx context.Context, evalPath string) (*models.Lockfile, []models.LockfileGrader, error)

func (*Resolver) ResolveRef

func (r *Resolver) ResolveRef(ctx context.Context, raw string) (models.LockfileGrader, error)

func (*Resolver) ResolveRefWithOptions

func (r *Resolver) ResolveRefWithOptions(ctx context.Context, raw string, opts ResolveOptions) (models.LockfileGrader, error)

func (*Resolver) ResolveRefs

func (r *Resolver) ResolveRefs(ctx context.Context, refs []string) ([]models.LockfileGrader, error)

type ResolverOption

type ResolverOption func(*Resolver)

func WithCacheRoot

func WithCacheRoot(path string) ResolverOption

func WithGitURLFunc

func WithGitURLFunc(fn GitURLFunc) ResolverOption

Jump to

Keyboard shortcuts

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