Documentation
¶
Overview ¶
Package extensioncommand shares the model-extension maintenance command grammar and bounded page output. Orphan inspection is read-only; re-scoping writes only with an explicit --apply. Feature commands borrow managers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunRescope ¶
func RunRescope(ctx context.Context, options Options, out io.Writer, rescope func(context.Context, extensions.OwnerName, extensionmaintenance.Cursor, int, bool) (extensionmaintenance.RescopePage, error)) error
RunRescope pages through stale rows, moving them only for --apply. Output contains opaque row keys only; rows left in place are listed with a "conflict", "missing" (subject no longer exists) or "undeclared" (recorded under a model the owner does not declare) marker.
func RunUndeclared ¶
func RunUndeclared(ctx context.Context, options Options, out io.Writer, inspect func(context.Context, extensions.OwnerName) (extensionmaintenance.Undeclared, error)) error
RunUndeclared prints stored names of the owner's scope that no current registration declares, one per line, and a final "(truncated)" marker, which no stored name can equal, when the bounded read stopped early. It reads names only and modifies nothing.
Types ¶
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func ParseMaintenance ¶
ParseMaintenance also accepts the re-scope form for features that support it.
func (Options) Rescope ¶
Rescope reports whether the parsed command is the re-scope maintenance form.
func (Options) Undeclared ¶
Undeclared reports whether the parsed command lists undeclared stored names.