agentsconfigapi

package
v1.0.0-rc.15 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: Apache-2.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

Index

Constants

View Source
const (
	ScopeHome      = "home"
	ScopeWorkspace = "workspace"
)

Variables

This section is empty.

Functions

func AddRoutes

func AddRoutes(mux *http.ServeMux, deps Deps)

Types

type Deleted

type Deleted struct {
	Section  string `json:"section"`
	Name     string `json:"name,omitempty"`
	Revision string `json:"revision"`
}

type Deps

type Deps struct {
	Home    string
	Roots   func() []string
	Applied func(ctx context.Context, scope, workspaceRoot string)
}

type Document

type Document struct {
	Scope     string         `json:"scope"`
	Workspace string         `json:"workspace,omitempty"`
	Path      string         `json:"path"`
	Exists    bool           `json:"exists"`
	Revision  string         `json:"revision"`
	Raw       string         `json:"raw"`
	Layer     map[string]any `json:"layer"`
	Problems  []string       `json:"problems"`
	Sections  []SectionInfo  `json:"sections"`
}

type Item

type Item struct {
	Section   string `json:"section"`
	Name      string `json:"name"`
	Scope     string `json:"scope"`
	Workspace string `json:"workspace,omitempty"`
	InLayer   bool   `json:"inLayer"`
	Layer     any    `json:"layer"`
	Effective any    `json:"effective"`
	Revision  string `json:"revision"`
}

type SectionInfo

type SectionInfo struct {
	Name string                `json:"name"`
	Kind agentdecl.SectionKind `json:"kind"`
}

type SectionView

type SectionView struct {
	Section   string                `json:"section"`
	Kind      agentdecl.SectionKind `json:"kind"`
	Scope     string                `json:"scope"`
	Workspace string                `json:"workspace,omitempty"`
	InLayer   bool                  `json:"inLayer"`
	Layer     any                   `json:"layer"`
	Effective any                   `json:"effective"`
	Items     []Item                `json:"items,omitempty"`
	Revision  string                `json:"revision"`
}

Jump to

Keyboard shortcuts

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