discovery

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package discovery is the GET /.well-known/grc-store-configuration document — the coordinates a client reads to talk to a hub (registry, OIDC, CI audience) instead of hard-coding them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	RegistryURL     string `json:"registry_url"`
	HubURL          string `json:"hub_url"`
	UIURL           string `json:"ui_url"`
	APIVersion      string `json:"api_version"`
	OIDCIssuer      string `json:"oidc_issuer,omitempty"`
	OIDCCLIClientID string `json:"oidc_cli_client_id,omitempty"`
	// CIAudience is the audience a publisher must request on its GitHub Actions
	// OIDC token for trusted publishing; omitted when CI publishing is
	// unconfigured.
	CIAudience string `json:"ci_audience,omitempty"`
}

Document is the discovery response. Clients should prefer these advertised values over deriving hosts from hub_url (ADR-0026/0028/0032).

Jump to

Keyboard shortcuts

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