policy

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 5 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 policy resolves the governance of a registry into the set of skills a given developer must have.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deprecation

type Deprecation struct {
	Message    string
	ReplacedBy string
}

Deprecation is the notice attached to a deprecated skill.

type Entry

type Entry struct {
	Skill       registry.Skill
	InstallName string
	// Status is one of Available, Recommended, Deprecated, Required or
	// Blocked. Deprecation is also reported by a stricter status.
	Status      registry.Status
	Deprecation *Deprecation
	Install     bool
	Ref, SHA    string
}

Entry is the resolved state of one registry skill.

type Plan

type Plan struct {
	Entries  []Entry
	Warnings []string
}

Plan is the resolution result, one entry per registry skill.

func Resolve

func Resolve(reg *registry.Registry, prefs Prefs) Plan

Resolve computes the plan for a developer.

func (Plan) Wanted

func (p Plan) Wanted() []Entry

Wanted returns the entries that must be installed.

type Prefs

type Prefs struct {
	Teams     []string
	Disabled  []string // recommended skills turned off
	Installed []string // available skills turned on
	Present   []string // skills currently installed on the machine
}

Prefs are the developer's choices.

Jump to

Keyboard shortcuts

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