oapi

package
v0.0.0-...-0c72368 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 10 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 oapi is generated from api/openapi.yaml: the API types and the strict server interface.

Package oapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.2 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func TimeOrNil

func TimeOrNil(t time.Time) *time.Time

TimeOrNil returns nil for the zero time and the UTC time otherwise.

Types

type Activity

type Activity struct {
	// Ai People's commits with an AI in the last 30 days: an AI co-author, or a coding agent as the author
	Ai int `json:"ai"`

	// Assistants The AI assistants of the last 30 days by family ("Claude", "Copilot"), most commits first, at most 3
	Assistants []string `json:"assistants"`

	// AuthorCount How many people made the work that counts in the last 30 days
	AuthorCount int `json:"authorCount"`

	// Authors The people who made the work that counts in the last 30 days (automation names none), most commits first, at most 5
	Authors []Person `json:"authors"`

	// Automation Commits by automation in the last 30 days
	Automation int `json:"automation"`

	// Hand People's commits by hand in the last 30 days
	Hand int `json:"hand"`

	// LastAuthoredAt The newest commit of the work that counts; null when none is read
	LastAuthoredAt *time.Time `json:"lastAuthoredAt"`

	// Recent The repositories the work that counts changed last, at most 3
	Recent []RecentRepo `json:"recent"`

	// Sweeps Commits of sweeps in the last 30 days
	Sweeps int `json:"sweeps"`

	// WeeklyAi People's commits with an AI per 7 days, the oldest of the last 12 first
	WeeklyAi []int `json:"weeklyAi"`

	// WeeklyAutomation Commits by automation and of sweeps per 7 days, the oldest of the last 12 first
	WeeklyAutomation []int `json:"weeklyAutomation"`

	// WeeklyHand People's commits by hand per 7 days, the oldest of the last 12 first
	WeeklyHand []int `json:"weeklyHand"`
}

Activity Work on the default branches. People's work is every commit not made by automation (CI, dependency and release bots) and not part of a sweep: a subject that landed in more than 10 repositories on one day (UTC). A coding agent's commit is people's work: someone set the agent to it. People's work is by hand or with an AI (an AI co-author or footer, or a coding agent as the author); AI use leaves no trace in some tools (inline completion), so ai is a lower bound. Automation and sweeps are maintenance. The counts give every kind; the people (of people's work that counts), the last change and the recent repositories follow the work that counts (Dashboard.work).

type ActivityLevel

type ActivityLevel string

ActivityLevel How recently the work that counts changed a repository; the ages are in /rules

const (
	ActivityLevelActive   ActivityLevel = "active"
	ActivityLevelArchived ActivityLevel = "archived"
	ActivityLevelDormant  ActivityLevel = "dormant"
	ActivityLevelQuiet    ActivityLevel = "quiet"
	ActivityLevelRecent   ActivityLevel = "recent"
)

Defines values for ActivityLevel.

func (ActivityLevel) Valid

func (e ActivityLevel) Valid() bool

Valid indicates whether the value is a known member of the ActivityLevel enum.

type ActivityRule

type ActivityRule struct {
	About string `json:"about"`
	Label string `json:"label"`

	// Level How recently the work that counts changed a repository; the ages are in /rules
	Level ActivityLevel `json:"level"`

	// WithinDays The age of the last change it covers; null: no bound
	WithinDays *int `json:"withinDays"`
}

ActivityRule defines model for ActivityRule.

type Announcement

type Announcement struct {
	EndsAt *time.Time `json:"endsAt,omitempty"`
	Id     string     `json:"id"`

	// Lang The language of its text, a BCP 47 tag
	Lang  *string           `json:"lang,omitempty"`
	Link  *AnnouncementLink `json:"link,omitempty"`
	Place *string           `json:"place,omitempty"`

	// Qr The link as a QR code: an SVG path over a square of size modules, the quiet zone not included
	Qr *QRCode `json:"qr,omitempty"`

	// Revision The digest of its fields: a reader's dismissal holds for this revision
	Revision string           `json:"revision"`
	StartsAt *time.Time       `json:"startsAt,omitempty"`
	Text     *string          `json:"text,omitempty"`
	Title    string           `json:"title"`
	Tone     AnnouncementTone `json:"tone"`

	// Until Shown until this time
	Until time.Time `json:"until"`
}

Announcement A short notice from the portal's admins or its deployment (design/announcements.md): plain text, one https link, a tone. Times keep the offset they were written with and are shown as written.

type AnnouncementLink struct {
	Label string `json:"label"`
	Url   string `json:"url"`
}

AnnouncementLink defines model for AnnouncementLink.

type AnnouncementTone

type AnnouncementTone string

AnnouncementTone defines model for Announcement.Tone.

const (
	Event  AnnouncementTone = "event"
	Info   AnnouncementTone = "info"
	Notice AnnouncementTone = "notice"
)

Defines values for AnnouncementTone.

func (AnnouncementTone) Valid

func (e AnnouncementTone) Valid() bool

Valid indicates whether the value is a known member of the AnnouncementTone enum.

type ArchiveCounts

type ArchiveCounts struct {
	Archived   int `json:"archived"`
	Deprecated int `json:"deprecated"`
	Total      int `json:"total"`

	// Used Those another repository still depends on
	Used int `json:"used"`
}

ArchiveCounts defines model for ArchiveCounts.

type ArchiveEntry

type ArchiveEntry struct {
	// Authors Authors of its newest default-branch commits, people's work only; counted, never named
	Authors int `json:"authors"`

	// LastActive The newest default-branch commit the portal holds, else the last push
	LastActive time.Time `json:"lastActive"`

	// Reason Archived on GitHub, or `lifecycle: deprecated` in scp.yaml
	Reason ArchiveReason `json:"reason"`
	Repo   Repo          `json:"repo"`

	// UsedBy Other repositories whose manifests still depend on a package it provides; archived ones are not counted
	UsedBy int `json:"usedBy"`
}

ArchiveEntry defines model for ArchiveEntry.

type ArchivePage

type ArchivePage struct {
	Archive   []ArchiveEntry `json:"archive"`
	Counts    ArchiveCounts  `json:"counts"`
	Freshness Freshness      `json:"freshness"`
	Page      Page           `json:"page"`
}

ArchivePage defines model for ArchivePage.

type ArchiveReason

type ArchiveReason string

ArchiveReason Archived on GitHub, or `lifecycle: deprecated` in scp.yaml

const (
	ArchiveReasonArchived   ArchiveReason = "archived"
	ArchiveReasonDeprecated ArchiveReason = "deprecated"
)

Defines values for ArchiveReason.

func (ArchiveReason) Valid

func (e ArchiveReason) Valid() bool

Valid indicates whether the value is a known member of the ArchiveReason enum.

type ArchiveSort

type ArchiveSort string

ArchiveSort active: last active first (default); name; group; used: most dependants first

const (
	ArchiveSortActive ArchiveSort = "active"
	ArchiveSortGroup  ArchiveSort = "group"
	ArchiveSortName   ArchiveSort = "name"
	ArchiveSortUsed   ArchiveSort = "used"
)

Defines values for ArchiveSort.

func (ArchiveSort) Valid

func (e ArchiveSort) Valid() bool

Valid indicates whether the value is a known member of the ArchiveSort enum.

type AssistantStatus

type AssistantStatus struct {
	// Access Who may ask
	Access AssistantStatusAccess `json:"access"`

	// Allowed This viewer may ask
	Allowed bool `json:"allowed"`

	// Enabled The operator configured a provider
	Enabled bool `json:"enabled"`

	// Model The model; empty when off
	Model string `json:"model"`

	// Provider The provider; empty when off
	Provider string `json:"provider"`
}

AssistantStatus defines model for AssistantStatus.

type AssistantStatusAccess

type AssistantStatusAccess string

AssistantStatusAccess Who may ask

const (
	Admin    AssistantStatusAccess = "admin"
	Everyone AssistantStatusAccess = "everyone"
	SignedIn AssistantStatusAccess = "signed-in"
)

Defines values for AssistantStatusAccess.

func (AssistantStatusAccess) Valid

func (e AssistantStatusAccess) Valid() bool

Valid indicates whether the value is a known member of the AssistantStatusAccess enum.

type BadRequest

type BadRequest = Problem

BadRequest defines model for BadRequest.

type BadRequestApplicationProblemPlusJSONResponse

type BadRequestApplicationProblemPlusJSONResponse Problem

type Commit

type Commit struct {
	// Assistant The AI named by the commit, as named ("Claude Opus 5", "Copilot"); empty for none
	Assistant string `json:"assistant"`

	// AuthorLogin GitHub login; empty when unknown
	AuthorLogin string    `json:"authorLogin"`
	AuthorName  string    `json:"authorName"`
	CommittedAt time.Time `json:"committedAt"`

	// Kind Who made it: a person with no trace of an AI; a person with an AI co-author (a Co-authored-by trailer or an AI tool's footer); a coding agent as the author; automation (CI, dependency and release bots, or a bot's pull request merged)
	Kind CommitKind `json:"kind"`

	// Parents SHAs of the parent commits, first parent first; empty for a root commit, two or more for a merge
	Parents []string `json:"parents"`

	// Repo Repository address
	Repo string `json:"repo"`
	Sha  string `json:"sha"`

	// Stats What a commit changed (design/diffstat.md); absent on a commit older than 90 days or not asked yet
	Stats *CommitStats `json:"stats,omitempty"`

	// Subject First line of the message
	Subject string `json:"subject"`

	// Url Commit page; empty when unknown
	Url string `json:"url"`
}

Commit defines model for Commit.

type CommitKind

type CommitKind string

CommitKind Who made it: a person with no trace of an AI; a person with an AI co-author (a Co-authored-by trailer or an AI tool's footer); a coding agent as the author; automation (CI, dependency and release bots, or a bot's pull request merged)

const (
	CommitKindAgent      CommitKind = "agent"
	CommitKindAssisted   CommitKind = "assisted"
	CommitKindAutomation CommitKind = "automation"
	CommitKindPerson     CommitKind = "person"
)

Defines values for CommitKind.

func (CommitKind) Valid

func (e CommitKind) Valid() bool

Valid indicates whether the value is a known member of the CommitKind enum.

type CommitPage

type CommitPage struct {
	Commits   []Commit  `json:"commits"`
	Freshness Freshness `json:"freshness"`
	Page      Page      `json:"page"`
}

CommitPage defines model for CommitPage.

type CommitStats

type CommitStats struct {
	// Additions Lines added
	Additions int `json:"additions"`

	// Deletions Lines removed
	Deletions int `json:"deletions"`

	// Files Files changed; absent when GitHub does not say
	Files *int `json:"files,omitempty"`
}

CommitStats What a commit changed (design/diffstat.md); absent on a commit older than 90 days or not asked yet

type Dashboard

type Dashboard struct {
	// Activity Work on the default branches. People's work is every commit not made by automation (CI, dependency and release bots) and not part of a sweep: a subject that landed in more than 10 repositories on one day (UTC). A coding agent's commit is people's work: someone set the agent to it. People's work is by hand or with an AI (an AI co-author or footer, or a coding agent as the author); AI use leaves no trace in some tools (inline completion), so ai is a lower bound. Automation and sweeps are maintenance. The counts give every kind; the people (of people's work that counts), the last change and the recent repositories follow the work that counts (Dashboard.work).
	Activity Activity `json:"activity"`

	// Freshness Repositories by the freshness of their commits
	Freshness FreshnessCounts  `json:"freshness"`
	Groups    []DashboardGroup `json:"groups"`

	// Health Every repository weighed as one product; the first 5 findings
	Health *ProductHealth `json:"health"`

	// HiddenForks Forks left out of this view unless asked for with forks=show: no source shows them and no group names one as its default repository or with an exact matcher
	HiddenForks int `json:"hiddenForks"`

	// Latest The 10 newest commits of the work that counts (Dashboard.work); /commits lists all of them
	Latest []Commit `json:"latest"`

	// Pulls Every open pull request of the view; automation's only when the work that counts holds it
	Pulls     PullCounts `json:"pulls"`
	RepoCount int        `json:"repoCount"`

	// UngroupedCount Repositories in no group
	UngroupedCount int `json:"ungroupedCount"`

	// Work The work that counts: one or more kinds
	Work Work `json:"work"`
}

Dashboard defines model for Dashboard.

type DashboardGroup

type DashboardGroup struct {
	// Activity Work on the default branches. People's work is every commit not made by automation (CI, dependency and release bots) and not part of a sweep: a subject that landed in more than 10 repositories on one day (UTC). A coding agent's commit is people's work: someone set the agent to it. People's work is by hand or with an AI (an AI co-author or footer, or a coding agent as the author); AI use leaves no trace in some tools (inline completion), so ai is a lower bound. Automation and sweeps are maintenance. The counts give every kind; the people (of people's work that counts), the last change and the recent repositories follow the work that counts (Dashboard.work).
	Activity Activity `json:"activity"`

	// DefaultRepo Address of the group's main repository
	DefaultRepo *string `json:"defaultRepo"`
	Description string  `json:"description"`

	// Health Null when no repository is counted
	Health *ProductHealth `json:"health"`
	Id     string         `json:"id"`

	// LastActivity Time of the group's newest commit
	LastActivity *time.Time `json:"lastActivity"`

	// Members Every member, by address, for the fleet map
	Members []DashboardMember `json:"members"`
	Name    string            `json:"name"`

	// Pulls The members' open pull requests; automation's only when the work that counts holds it
	Pulls     PullCounts `json:"pulls"`
	RepoCount int        `json:"repoCount"`

	// Summary What most members share, said once instead of on every repository; null where fewer than 80% share it
	Summary GroupSummaryFacts `json:"summary"`
}

DashboardGroup defines model for DashboardGroup.

type DashboardMember

type DashboardMember struct {
	// Activity How recently the work that counts changed a repository; the ages are in /rules
	Activity ActivityLevel `json:"activity"`
	Address  string        `json:"address"`
	Archived bool          `json:"archived"`

	// LastAuthoredAt As Repo.lastAuthoredAt, of the work that counts (Dashboard.work)
	LastAuthoredAt *time.Time `json:"lastAuthoredAt"`

	// Level Null when not counted
	Level *HealthLevel `json:"level"`
	Name  string       `json:"name"`
}

DashboardMember defines model for DashboardMember.

type Dependency

type Dependency struct {
	Name string `json:"name"`

	// Repos Addresses of the catalogued repositories that declare this name
	Repos []string        `json:"repos"`
	Scope DependencyScope `json:"scope"`

	// Version The requirement as written; empty when none
	Version string `json:"version"`
}

Dependency defines model for Dependency.

type DependencyScope

type DependencyScope string

DependencyScope defines model for Dependency.Scope.

const (
	DependencyScopeDev      DependencyScope = "dev"
	DependencyScopeImport   DependencyScope = "import"
	DependencyScopeIndirect DependencyScope = "indirect"
	DependencyScopeOptional DependencyScope = "optional"
	DependencyScopeParent   DependencyScope = "parent"
	DependencyScopePeer     DependencyScope = "peer"
	DependencyScopeProvided DependencyScope = "provided"
	DependencyScopeRuntime  DependencyScope = "runtime"
	DependencyScopeTest     DependencyScope = "test"
	DependencyScopeTool     DependencyScope = "tool"
)

Defines values for DependencyScope.

func (DependencyScope) Valid

func (e DependencyScope) Valid() bool

Valid indicates whether the value is a known member of the DependencyScope enum.

type Descriptor

type Descriptor struct {
	Description string `json:"description"`

	// File Path of the file read; empty when none
	File      string              `json:"file"`
	Freshness Freshness           `json:"freshness"`
	Lifecycle DescriptorLifecycle `json:"lifecycle"`
	Links     []Link              `json:"links"`

	// Owners Claimed owners
	Owners   []string      `json:"owners"`
	Present  bool          `json:"present"`
	Problems []FileProblem `json:"problems"`
	Tags     []string      `json:"tags"`
	Title    string        `json:"title"`
}

Descriptor The repository's own scp.yaml. It changes display only.

type DescriptorLifecycle

type DescriptorLifecycle string

DescriptorLifecycle defines model for Descriptor.Lifecycle.

const (
	DescriptorLifecycleDeprecated   DescriptorLifecycle = "deprecated"
	DescriptorLifecycleEmpty        DescriptorLifecycle = ""
	DescriptorLifecycleExperimental DescriptorLifecycle = "experimental"
	DescriptorLifecycleProduction   DescriptorLifecycle = "production"
)

Defines values for DescriptorLifecycle.

func (DescriptorLifecycle) Valid

func (e DescriptorLifecycle) Valid() bool

Valid indicates whether the value is a known member of the DescriptorLifecycle enum.

type Doc

type Doc struct {
	BlobSha     string    `json:"blobSha"`
	Description string    `json:"description"`
	Format      DocFormat `json:"format"`
	Freshness   Freshness `json:"freshness"`

	// Html Sanitised HTML
	Html   string `json:"html"`
	Id     string `json:"id"`
	Path   string `json:"path"`
	Readme bool   `json:"readme"`

	// SourceUrl The file on GitHub
	SourceUrl string    `json:"sourceUrl"`
	State     DocState  `json:"state"`
	Title     string    `json:"title"`
	Toc       []Heading `json:"toc"`
	Truncated bool      `json:"truncated"`
}

Doc defines model for Doc.

type DocFormat

type DocFormat string

DocFormat defines model for Doc.Format.

const (
	DocFormatMarkdown DocFormat = "markdown"
	DocFormatText     DocFormat = "text"
)

Defines values for DocFormat.

func (DocFormat) Valid

func (e DocFormat) Valid() bool

Valid indicates whether the value is a known member of the DocFormat enum.

type DocList

type DocList struct {
	Docs      []DocSummary `json:"docs"`
	Freshness Freshness    `json:"freshness"`
}

DocList defines model for DocList.

type DocState

type DocState string

DocState defines model for Doc.State.

const (
	DocStateOk          DocState = "ok"
	DocStateTooLarge    DocState = "too_large"
	DocStateUnsupported DocState = "unsupported"
)

Defines values for DocState.

func (DocState) Valid

func (e DocState) Valid() bool

Valid indicates whether the value is a known member of the DocState enum.

type DocSummary

type DocSummary struct {
	Description string           `json:"description"`
	Format      DocSummaryFormat `json:"format"`

	// Id Path parameter of the document
	Id     string `json:"id"`
	Path   string `json:"path"`
	Readme bool   `json:"readme"`

	// State too_large and unsupported have no HTML
	State DocSummaryState `json:"state"`
	Title string          `json:"title"`

	// Truncated Only the first part of the file is rendered
	Truncated bool `json:"truncated"`
}

DocSummary defines model for DocSummary.

type DocSummaryFormat

type DocSummaryFormat string

DocSummaryFormat defines model for DocSummary.Format.

const (
	DocSummaryFormatMarkdown DocSummaryFormat = "markdown"
	DocSummaryFormatText     DocSummaryFormat = "text"
)

Defines values for DocSummaryFormat.

func (DocSummaryFormat) Valid

func (e DocSummaryFormat) Valid() bool

Valid indicates whether the value is a known member of the DocSummaryFormat enum.

type DocSummaryState

type DocSummaryState string

DocSummaryState too_large and unsupported have no HTML

const (
	DocSummaryStateOk          DocSummaryState = "ok"
	DocSummaryStateTooLarge    DocSummaryState = "too_large"
	DocSummaryStateUnsupported DocSummaryState = "unsupported"
)

Defines values for DocSummaryState.

func (DocSummaryState) Valid

func (e DocSummaryState) Valid() bool

Valid indicates whether the value is a known member of the DocSummaryState enum.

type FileProblem

type FileProblem struct {
	Code    string `json:"code"`
	Message string `json:"message"`

	// Pointer JSON pointer into the file, /line/12 for a line; empty for the whole file
	Pointer string `json:"pointer"`
}

FileProblem defines model for FileProblem.

type Finding

type Finding struct {
	// Code The kind of finding; /rules names and explains every kind, so a new one needs no change here
	Code    string `json:"code"`
	Message string `json:"message"`

	// Penalty Points the finding costs
	Penalty int `json:"penalty"`
}

Finding defines model for Finding.

type FindingAction

type FindingAction struct {
	// Label What to do: Draft a release
	Label string `json:"label"`

	// Path Below the repository's GitHub page (releases/new); empty: the page itself
	Path string `json:"path"`
}

FindingAction The next step on a finding of this kind, on the repository's GitHub page

type FindingKind

type FindingKind struct {
	About string `json:"about"`

	// Action The next step on a finding of this kind, on the repository's GitHub page
	Action FindingAction `json:"action"`
	Code   string        `json:"code"`
	Label  string        `json:"label"`

	// Penalties When it costs how much, the most costly first
	Penalties []Penalty `json:"penalties"`
}

FindingKind defines model for FindingKind.

type Freshness

type Freshness struct {
	// CheckedAt Last time the content was confirmed
	CheckedAt *time.Time `json:"checkedAt"`

	// FetchedAt Last time the content was read
	FetchedAt *time.Time      `json:"fetchedAt"`
	Status    FreshnessStatus `json:"status"`
}

Freshness defines model for Freshness.

func FreshnessOf

func FreshnessOf(f snapshot.Freshness, now time.Time) Freshness

FreshnessOf converts a stored freshness to its API form, deriving the status at now.

type FreshnessCounts

type FreshnessCounts struct {
	Error   int `json:"error"`
	Fresh   int `json:"fresh"`
	Stale   int `json:"stale"`
	Unknown int `json:"unknown"`
}

FreshnessCounts Repositories by the freshness of their commits

type FreshnessStatus

type FreshnessStatus string

FreshnessStatus defines model for Freshness.Status.

const (
	FreshnessStatusError   FreshnessStatus = "error"
	FreshnessStatusFresh   FreshnessStatus = "fresh"
	FreshnessStatusStale   FreshnessStatus = "stale"
	FreshnessStatusUnknown FreshnessStatus = "unknown"
)

Defines values for FreshnessStatus.

func (FreshnessStatus) Valid

func (e FreshnessStatus) Valid() bool

Valid indicates whether the value is a known member of the FreshnessStatus enum.

type GetAssistant200JSONResponse

type GetAssistant200JSONResponse AssistantStatus

func (GetAssistant200JSONResponse) VisitGetAssistantResponse

func (response GetAssistant200JSONResponse) VisitGetAssistantResponse(w http.ResponseWriter) error

type GetAssistantRequestObject

type GetAssistantRequestObject struct {
}

type GetAssistantResponseObject

type GetAssistantResponseObject interface {
	VisitGetAssistantResponse(w http.ResponseWriter) error
}

type GetDashboard200JSONResponse

type GetDashboard200JSONResponse struct {
	Body    Dashboard
	Headers GetDashboard200ResponseHeaders
}

func (GetDashboard200JSONResponse) VisitGetDashboardResponse

func (response GetDashboard200JSONResponse) VisitGetDashboardResponse(w http.ResponseWriter) error

type GetDashboard200ResponseHeaders

type GetDashboard200ResponseHeaders struct {
	ETag *string
}

type GetDashboard304Response

type GetDashboard304Response = NotModifiedResponse

func (GetDashboard304Response) VisitGetDashboardResponse

func (response GetDashboard304Response) VisitGetDashboardResponse(w http.ResponseWriter) error

type GetDashboardParams

type GetDashboardParams struct {
	// Work The work that counts (the reader's lens), comma-separated kinds: hand (people's commits with no trace of an AI), ai (an AI co-author or a coding agent) and automation (CI, dependency and release bots, and sweeps). /dashboard counts every kind without it, as /commits lists every commit
	Work *Work `form:"work,omitempty" json:"work,omitempty"`
}

GetDashboardParams defines parameters for GetDashboard.

type GetDashboardRequestObject

type GetDashboardRequestObject struct {
	Params GetDashboardParams
}

type GetDashboardResponseObject

type GetDashboardResponseObject interface {
	VisitGetDashboardResponse(w http.ResponseWriter) error
}

type GetDoc200JSONResponse

type GetDoc200JSONResponse struct {
	Body    Doc
	Headers GetDoc200ResponseHeaders
}

func (GetDoc200JSONResponse) VisitGetDocResponse

func (response GetDoc200JSONResponse) VisitGetDocResponse(w http.ResponseWriter) error

type GetDoc200ResponseHeaders

type GetDoc200ResponseHeaders struct {
	ETag *string
}

type GetDoc304Response

type GetDoc304Response = NotModifiedResponse

func (GetDoc304Response) VisitGetDocResponse

func (response GetDoc304Response) VisitGetDocResponse(w http.ResponseWriter) error

type GetDoc308Response

type GetDoc308Response = MovedResponse

func (GetDoc308Response) VisitGetDocResponse

func (response GetDoc308Response) VisitGetDocResponse(w http.ResponseWriter) error

type GetDoc404ApplicationProblemPlusJSONResponse

type GetDoc404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetDoc404ApplicationProblemPlusJSONResponse) VisitGetDocResponse

func (response GetDoc404ApplicationProblemPlusJSONResponse) VisitGetDocResponse(w http.ResponseWriter) error

type GetDocRequestObject

type GetDocRequestObject struct {
	Owner string `json:"owner"`
	Name  string `json:"name"`
	DocId string `json:"docId"`
}

type GetDocResponseObject

type GetDocResponseObject interface {
	VisitGetDocResponse(w http.ResponseWriter) error
}

type GetGroup200JSONResponse

type GetGroup200JSONResponse struct {
	Body    Group
	Headers GetGroup200ResponseHeaders
}

func (GetGroup200JSONResponse) VisitGetGroupResponse

func (response GetGroup200JSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroup200ResponseHeaders

type GetGroup200ResponseHeaders struct {
	ETag *string
}

type GetGroup304Response

type GetGroup304Response = NotModifiedResponse

func (GetGroup304Response) VisitGetGroupResponse

func (response GetGroup304Response) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroup404ApplicationProblemPlusJSONResponse

type GetGroup404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetGroup404ApplicationProblemPlusJSONResponse) VisitGetGroupResponse

func (response GetGroup404ApplicationProblemPlusJSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroupRequestObject

type GetGroupRequestObject struct {
	Group string `json:"group"`
}

type GetGroupResponseObject

type GetGroupResponseObject interface {
	VisitGetGroupResponse(w http.ResponseWriter) error
}

type GetHistory200JSONResponse

type GetHistory200JSONResponse struct {
	Body    HistoryPage
	Headers GetHistory200ResponseHeaders
}

func (GetHistory200JSONResponse) VisitGetHistoryResponse

func (response GetHistory200JSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory200ResponseHeaders

type GetHistory200ResponseHeaders struct {
	ETag *string
}

type GetHistory304Response

type GetHistory304Response = NotModifiedResponse

func (GetHistory304Response) VisitGetHistoryResponse

func (response GetHistory304Response) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory308Response

type GetHistory308Response = MovedResponse

func (GetHistory308Response) VisitGetHistoryResponse

func (response GetHistory308Response) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory400ApplicationProblemPlusJSONResponse

type GetHistory400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetHistory400ApplicationProblemPlusJSONResponse) VisitGetHistoryResponse

func (response GetHistory400ApplicationProblemPlusJSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistory404ApplicationProblemPlusJSONResponse

type GetHistory404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetHistory404ApplicationProblemPlusJSONResponse) VisitGetHistoryResponse

func (response GetHistory404ApplicationProblemPlusJSONResponse) VisitGetHistoryResponse(w http.ResponseWriter) error

type GetHistoryParams

type GetHistoryParams struct {
	// Ref A branch or tag of the history
	Ref *string `form:"ref,omitempty" json:"ref,omitempty"`

	// Author Login or name
	Author *string `form:"author,omitempty" json:"author,omitempty"`

	// Q Text in the subject or body, or a SHA prefix
	Q *string `form:"q,omitempty" json:"q,omitempty"`

	// Automation false leaves out commits made by automation
	Automation *bool `form:"automation,omitempty" json:"automation,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`

	// At A SHA or a prefix of at least 4 hex digits: the page holding it
	At *string `form:"at,omitempty" json:"at,omitempty"`
}

GetHistoryParams defines parameters for GetHistory.

type GetHistoryRequestObject

type GetHistoryRequestObject struct {
	Owner  string `json:"owner"`
	Name   string `json:"name"`
	Params GetHistoryParams
}

type GetHistoryResponseObject

type GetHistoryResponseObject interface {
	VisitGetHistoryResponse(w http.ResponseWriter) error
}

type GetInsights200JSONResponse

type GetInsights200JSONResponse struct {
	Body    Insights
	Headers GetInsights200ResponseHeaders
}

func (GetInsights200JSONResponse) VisitGetInsightsResponse

func (response GetInsights200JSONResponse) VisitGetInsightsResponse(w http.ResponseWriter) error

type GetInsights200ResponseHeaders

type GetInsights200ResponseHeaders struct {
	ETag *string
}

type GetInsights304Response

type GetInsights304Response = NotModifiedResponse

func (GetInsights304Response) VisitGetInsightsResponse

func (response GetInsights304Response) VisitGetInsightsResponse(w http.ResponseWriter) error

type GetInsights400ApplicationProblemPlusJSONResponse

type GetInsights400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (GetInsights400ApplicationProblemPlusJSONResponse) VisitGetInsightsResponse

func (response GetInsights400ApplicationProblemPlusJSONResponse) VisitGetInsightsResponse(w http.ResponseWriter) error

type GetInsights404ApplicationProblemPlusJSONResponse

type GetInsights404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetInsights404ApplicationProblemPlusJSONResponse) VisitGetInsightsResponse

func (response GetInsights404ApplicationProblemPlusJSONResponse) VisitGetInsightsResponse(w http.ResponseWriter) error

type GetInsightsParams

type GetInsightsParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`

	// Repo owner/name
	Repo *string `form:"repo,omitempty" json:"repo,omitempty"`
}

GetInsightsParams defines parameters for GetInsights.

type GetInsightsRequestObject

type GetInsightsRequestObject struct {
	Params GetInsightsParams
}

type GetInsightsResponseObject

type GetInsightsResponseObject interface {
	VisitGetInsightsResponse(w http.ResponseWriter) error
}

type GetManifests200JSONResponse

type GetManifests200JSONResponse struct {
	Body    Manifests
	Headers GetManifests200ResponseHeaders
}

func (GetManifests200JSONResponse) VisitGetManifestsResponse

func (response GetManifests200JSONResponse) VisitGetManifestsResponse(w http.ResponseWriter) error

type GetManifests200ResponseHeaders

type GetManifests200ResponseHeaders struct {
	ETag *string
}

type GetManifests304Response

type GetManifests304Response = NotModifiedResponse

func (GetManifests304Response) VisitGetManifestsResponse

func (response GetManifests304Response) VisitGetManifestsResponse(w http.ResponseWriter) error

type GetManifests308Response

type GetManifests308Response = MovedResponse

func (GetManifests308Response) VisitGetManifestsResponse

func (response GetManifests308Response) VisitGetManifestsResponse(w http.ResponseWriter) error

type GetManifests404ApplicationProblemPlusJSONResponse

type GetManifests404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetManifests404ApplicationProblemPlusJSONResponse) VisitGetManifestsResponse

func (response GetManifests404ApplicationProblemPlusJSONResponse) VisitGetManifestsResponse(w http.ResponseWriter) error

type GetManifestsRequestObject

type GetManifestsRequestObject struct {
	Owner string `json:"owner"`
	Name  string `json:"name"`
}

type GetManifestsResponseObject

type GetManifestsResponseObject interface {
	VisitGetManifestsResponse(w http.ResponseWriter) error
}

type GetMe200JSONResponse

type GetMe200JSONResponse Me

func (GetMe200JSONResponse) VisitGetMeResponse

func (response GetMe200JSONResponse) VisitGetMeResponse(w http.ResponseWriter) error

type GetMeRequestObject

type GetMeRequestObject struct {
}

type GetMeResponseObject

type GetMeResponseObject interface {
	VisitGetMeResponse(w http.ResponseWriter) error
}

type GetPage200JSONResponse

type GetPage200JSONResponse struct {
	Body    PageLayout
	Headers GetPage200ResponseHeaders
}

func (GetPage200JSONResponse) VisitGetPageResponse

func (response GetPage200JSONResponse) VisitGetPageResponse(w http.ResponseWriter) error

type GetPage200ResponseHeaders

type GetPage200ResponseHeaders struct {
	ETag *string
}

type GetPage304Response

type GetPage304Response = NotModifiedResponse

func (GetPage304Response) VisitGetPageResponse

func (response GetPage304Response) VisitGetPageResponse(w http.ResponseWriter) error

type GetPage404ApplicationProblemPlusJSONResponse

type GetPage404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetPage404ApplicationProblemPlusJSONResponse) VisitGetPageResponse

func (response GetPage404ApplicationProblemPlusJSONResponse) VisitGetPageResponse(w http.ResponseWriter) error

type GetPageParamsPage

type GetPageParamsPage string

GetPageParamsPage defines parameters for GetPage.

const (
	GetPageParamsPageDashboard GetPageParamsPage = "dashboard"
	GetPageParamsPagePresent   GetPageParamsPage = "present"
)

Defines values for GetPageParamsPage.

func (GetPageParamsPage) Valid

func (e GetPageParamsPage) Valid() bool

Valid indicates whether the value is a known member of the GetPageParamsPage enum.

type GetPageRequestObject

type GetPageRequestObject struct {
	Page GetPageParamsPage `json:"page"`
}

type GetPageResponseObject

type GetPageResponseObject interface {
	VisitGetPageResponse(w http.ResponseWriter) error
}

type GetPrerequisites200JSONResponse

type GetPrerequisites200JSONResponse PrerequisiteList

func (GetPrerequisites200JSONResponse) VisitGetPrerequisitesResponse

func (response GetPrerequisites200JSONResponse) VisitGetPrerequisitesResponse(w http.ResponseWriter) error

type GetPrerequisitesRequestObject

type GetPrerequisitesRequestObject struct {
}

type GetPrerequisitesResponseObject

type GetPrerequisitesResponseObject interface {
	VisitGetPrerequisitesResponse(w http.ResponseWriter) error
}

type GetRepo200JSONResponse

type GetRepo200JSONResponse struct {
	Body    RepoDetail
	Headers GetRepo200ResponseHeaders
}

func (GetRepo200JSONResponse) VisitGetRepoResponse

func (response GetRepo200JSONResponse) VisitGetRepoResponse(w http.ResponseWriter) error

type GetRepo200ResponseHeaders

type GetRepo200ResponseHeaders struct {
	ETag *string
}

type GetRepo304Response

type GetRepo304Response = NotModifiedResponse

func (GetRepo304Response) VisitGetRepoResponse

func (response GetRepo304Response) VisitGetRepoResponse(w http.ResponseWriter) error

type GetRepo308Response

type GetRepo308Response = MovedResponse

func (GetRepo308Response) VisitGetRepoResponse

func (response GetRepo308Response) VisitGetRepoResponse(w http.ResponseWriter) error

type GetRepo404ApplicationProblemPlusJSONResponse

type GetRepo404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (GetRepo404ApplicationProblemPlusJSONResponse) VisitGetRepoResponse

func (response GetRepo404ApplicationProblemPlusJSONResponse) VisitGetRepoResponse(w http.ResponseWriter) error

type GetRepoRequestObject

type GetRepoRequestObject struct {
	Owner string `json:"owner"`
	Name  string `json:"name"`
}

type GetRepoResponseObject

type GetRepoResponseObject interface {
	VisitGetRepoResponse(w http.ResponseWriter) error
}

type GetRules200JSONResponse

type GetRules200JSONResponse struct {
	Body    Rules
	Headers GetRules200ResponseHeaders
}

func (GetRules200JSONResponse) VisitGetRulesResponse

func (response GetRules200JSONResponse) VisitGetRulesResponse(w http.ResponseWriter) error

type GetRules200ResponseHeaders

type GetRules200ResponseHeaders struct {
	ETag *string
}

type GetRules304Response

type GetRules304Response = NotModifiedResponse

func (GetRules304Response) VisitGetRulesResponse

func (response GetRules304Response) VisitGetRulesResponse(w http.ResponseWriter) error

type GetRulesRequestObject

type GetRulesRequestObject struct {
}

type GetRulesResponseObject

type GetRulesResponseObject interface {
	VisitGetRulesResponse(w http.ResponseWriter) error
}

type GetSnapshot200JSONResponse

type GetSnapshot200JSONResponse struct {
	Body    SnapshotInfo
	Headers GetSnapshot200ResponseHeaders
}

func (GetSnapshot200JSONResponse) VisitGetSnapshotResponse

func (response GetSnapshot200JSONResponse) VisitGetSnapshotResponse(w http.ResponseWriter) error

type GetSnapshot200ResponseHeaders

type GetSnapshot200ResponseHeaders struct {
	ETag *string
}

type GetSnapshot304Response

type GetSnapshot304Response = NotModifiedResponse

func (GetSnapshot304Response) VisitGetSnapshotResponse

func (response GetSnapshot304Response) VisitGetSnapshotResponse(w http.ResponseWriter) error

type GetSnapshotRequestObject

type GetSnapshotRequestObject struct {
}

type GetSnapshotResponseObject

type GetSnapshotResponseObject interface {
	VisitGetSnapshotResponse(w http.ResponseWriter) error
}

type GraphEdge

type GraphEdge struct {
	// Color The lane's colour, 0 to 5
	Color int `json:"color"`
	From  int `json:"from"`

	// Open The line leads to a parent older than the stored history
	Open bool `json:"open"`
	To   int  `json:"to"`
}

GraphEdge A line through a row, from a lane at its top (or its node) to a lane at its bottom (or its node)

type GraphRow

type GraphRow struct {
	Above []GraphEdge `json:"above"`
	Below []GraphEdge `json:"below"`

	// Color 0 to 5
	Color int  `json:"color"`
	Lane  int  `json:"lane"`
	Merge bool `json:"merge"`
}

GraphRow How a commit's row of the git graph draws, like git log --graph: its node, the lines in from above and out below. Lanes never shift; draw at most 8, a lane beyond them in the last

type Group

type Group struct {
	DefaultRepo      *string               `json:"defaultRepo"`
	DefaultRepoState GroupDefaultRepoState `json:"defaultRepoState"`
	Description      string                `json:"description"`

	// Health Every finding
	Health *ProductHealth `json:"health"`

	// HiddenForks The group's forks left out of this view unless asked for with forks=show
	HiddenForks int    `json:"hiddenForks"`
	Id          string `json:"id"`
	Name        string `json:"name"`
	RepoCount   int    `json:"repoCount"`
	Repos       []Repo `json:"repos"`
}

Group defines model for Group.

type GroupDefaultRepoState

type GroupDefaultRepoState string

GroupDefaultRepoState defines model for Group.DefaultRepoState.

const (
	GroupDefaultRepoStateMissing GroupDefaultRepoState = "missing"
	GroupDefaultRepoStateOk      GroupDefaultRepoState = "ok"
)

Defines values for GroupDefaultRepoState.

func (GroupDefaultRepoState) Valid

func (e GroupDefaultRepoState) Valid() bool

Valid indicates whether the value is a known member of the GroupDefaultRepoState enum.

type GroupList

type GroupList struct {
	Groups []GroupSummary `json:"groups"`
}

GroupList defines model for GroupList.

type GroupRef

type GroupRef struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

GroupRef defines model for GroupRef.

type GroupSummary

type GroupSummary struct {
	// DefaultRepo Address of the group's main repository
	DefaultRepo      *string                      `json:"defaultRepo"`
	DefaultRepoState GroupSummaryDefaultRepoState `json:"defaultRepoState"`
	Description      string                       `json:"description"`
	Id               string                       `json:"id"`
	Name             string                       `json:"name"`
	RepoCount        int                          `json:"repoCount"`
}

GroupSummary defines model for GroupSummary.

type GroupSummaryDefaultRepoState

type GroupSummaryDefaultRepoState string

GroupSummaryDefaultRepoState defines model for GroupSummary.DefaultRepoState.

const (
	GroupSummaryDefaultRepoStateMissing GroupSummaryDefaultRepoState = "missing"
	GroupSummaryDefaultRepoStateOk      GroupSummaryDefaultRepoState = "ok"
)

Defines values for GroupSummaryDefaultRepoState.

func (GroupSummaryDefaultRepoState) Valid

Valid indicates whether the value is a known member of the GroupSummaryDefaultRepoState enum.

type GroupSummaryFacts

type GroupSummaryFacts struct {
	// Language The language at least 80% of the members have
	Language *string `json:"language"`

	// License The licence at least 80% of the members have
	License *string `json:"license"`

	// Released Members with a release
	Released int `json:"released"`
}

GroupSummaryFacts What most members share, said once instead of on every repository; null where fewer than 80% share it

type Heading

type Heading struct {
	Id    string `json:"id"`
	Level int    `json:"level"`
	Text  string `json:"text"`
}

Heading defines model for Heading.

type Health

type Health struct {
	Findings []Finding `json:"findings"`

	// Level Where each starts is in /rules
	Level HealthLevel `json:"level"`
	Score int         `json:"score"`
}

Health defines model for Health.

type HealthLevel

type HealthLevel string

HealthLevel Where each starts is in /rules

const (
	Attention HealthLevel = "attention"
	Good      HealthLevel = "good"
	Watch     HealthLevel = "watch"
)

Defines values for HealthLevel.

func (HealthLevel) Valid

func (e HealthLevel) Valid() bool

Valid indicates whether the value is a known member of the HealthLevel enum.

type HistoryCommit

type HistoryCommit struct {
	// Assistant The AI named by the commit, as named ("Claude Opus 5", "Copilot"); empty for none
	Assistant string `json:"assistant"`

	// AuthorLogin GitHub login; empty when unknown
	AuthorLogin string `json:"authorLogin"`
	AuthorName  string `json:"authorName"`

	// Automated Made by automation: kind automation
	Automated bool `json:"automated"`

	// Beyond The parents older than the stored history
	Beyond []string `json:"beyond"`

	// Body The message after its subject line; empty when there is none
	Body          string    `json:"body"`
	CommittedAt   time.Time `json:"committedAt"`
	CommitterName string    `json:"committerName"`

	// Graph The commit's row of the git graph; null on a filtered page
	Graph *GraphRow `json:"graph"`

	// Kind Who made it: a person with no trace of an AI; a person with an AI co-author (a Co-authored-by trailer or an AI tool's footer); a coding agent as the author; automation (CI, dependency and release bots, or a bot's pull request merged)
	Kind HistoryCommitKind `json:"kind"`

	// Labels The branches and tags at this commit, the default branch first
	Labels []Label `json:"labels"`

	// Parents SHAs of the parent commits, first parent first; empty for a root commit, two or more for a merge
	Parents []string `json:"parents"`

	// Repo Repository address
	Repo string `json:"repo"`
	Sha  string `json:"sha"`

	// Stats What a commit changed (design/diffstat.md); absent on a commit older than 90 days or not asked yet
	Stats *CommitStats `json:"stats,omitempty"`

	// Subject First line of the message
	Subject string `json:"subject"`

	// Url Commit page; empty when unknown
	Url string `json:"url"`
}

HistoryCommit defines model for HistoryCommit.

type HistoryCommitKind

type HistoryCommitKind string

HistoryCommitKind Who made it: a person with no trace of an AI; a person with an AI co-author (a Co-authored-by trailer or an AI tool's footer); a coding agent as the author; automation (CI, dependency and release bots, or a bot's pull request merged)

const (
	HistoryCommitKindAgent      HistoryCommitKind = "agent"
	HistoryCommitKindAssisted   HistoryCommitKind = "assisted"
	HistoryCommitKindAutomation HistoryCommitKind = "automation"
	HistoryCommitKindPerson     HistoryCommitKind = "person"
)

Defines values for HistoryCommitKind.

func (HistoryCommitKind) Valid

func (e HistoryCommitKind) Valid() bool

Valid indicates whether the value is a known member of the HistoryCommitKind enum.

type HistoryPage

type HistoryPage struct {
	// At The commit `at` named, when it is on this page
	At      *string         `json:"at"`
	Commits []HistoryCommit `json:"commits"`

	// Filtered author, q or automation left commits out: the page is a list, not a graph
	Filtered  bool      `json:"filtered"`
	Freshness Freshness `json:"freshness"`

	// Labels Every branch and tag of the history
	Labels []Label `json:"labels"`

	// Lanes The graph's width over this page's rows, at most 8; 0 on a filtered page
	Lanes int  `json:"lanes"`
	Page  Page `json:"page"`
}

HistoryPage defines model for HistoryPage.

type InsightActivity

type InsightActivity struct {
	Active  int    `json:"active"`
	Dormant int    `json:"dormant"`
	Group   string `json:"group"`
	Name    string `json:"name"`
	Quiet   int    `json:"quiet"`
	Recent  int    `json:"recent"`
}

InsightActivity defines model for InsightActivity.

type InsightAgeing

type InsightAgeing struct {
	Active  int `json:"active"`
	Dormant int `json:"dormant"`

	// DormantRepos The longest dormant first
	DormantRepos []InsightDormant `json:"dormantRepos"`

	// Products Each product's repositories by activity
	Products []InsightActivity `json:"products"`
	Quiet    int               `json:"quiet"`
	Recent   int               `json:"recent"`
}

InsightAgeing defines model for InsightAgeing.

type InsightBand

type InsightBand struct {
	// From Percent
	From  int `json:"from"`
	Repos int `json:"repos"`

	// To Percent, exclusive except for the last band
	To int `json:"to"`
}

InsightBand defines model for InsightBand.

type InsightCadence

type InsightCadence struct {
	// Months The last months
	Months   []InsightMonth   `json:"months"`
	Products []InsightProduct `json:"products"`
}

InsightCadence defines model for InsightCadence.

type InsightCount

type InsightCount struct {
	Name  string `json:"name"`
	Repos int    `json:"repos"`

	// Share Of the repositories in scope, 0 to 1
	Share float32 `json:"share"`
}

InsightCount defines model for InsightCount.

type InsightDormant

type InsightDormant struct {
	LastChange *time.Time `json:"lastChange"`

	// Repo owner/name
	Repo string `json:"repo"`
}

InsightDormant defines model for InsightDormant.

type InsightLibrary

type InsightLibrary struct {
	// DependantRepos The first ten
	DependantRepos []string `json:"dependantRepos"`

	// Dependants Live repositories that depend on it
	Dependants int `json:"dependants"`

	// Release Its latest stable release
	Release *string `json:"release,omitempty"`

	// Repo owner/name
	Repo string `json:"repo"`

	// Retired Archived on GitHub, or `lifecycle: deprecated` in scp.yaml
	Retired *ArchiveReason `json:"retired,omitempty"`
}

InsightLibrary defines model for InsightLibrary.

type InsightMatrix

type InsightMatrix struct {
	// Libraries The listed libraries
	Libraries []string `json:"libraries"`

	// Repos The repositories using most of them, at most 24
	Repos []InsightMatrixRow `json:"repos"`
}

InsightMatrix defines model for InsightMatrix.

type InsightMatrixRow

type InsightMatrixRow struct {
	// Repo owner/name
	Repo string `json:"repo"`

	// Uses Indexes into the matrix's libraries that this repository depends on
	Uses []int `json:"uses"`
}

InsightMatrixRow defines model for InsightMatrixRow.

type InsightMonth

type InsightMonth struct {
	// Month YYYY-MM (UTC)
	Month    string `json:"month"`
	Releases int    `json:"releases"`
}

InsightMonth defines model for InsightMonth.

type InsightProduct

type InsightProduct struct {
	Group string `json:"group"`

	// Last Its newest stable release
	Last *time.Time `json:"last,omitempty"`

	// MedianDays Median days between its last stable releases; null with fewer than two
	MedianDays *int   `json:"medianDays,omitempty"`
	Name       string `json:"name"`

	// Releases Stable releases held across the product
	Releases int `json:"releases"`

	// Weekly Stable releases of each of the last 52 weeks, oldest first (the week starts on Monday, UTC)
	Weekly []int `json:"weekly"`
}

InsightProduct defines model for InsightProduct.

type InsightRepo

type InsightRepo struct {
	// Commits People's commits held
	Commits int `json:"commits"`

	// Repo owner/name
	Repo string `json:"repo"`
}

InsightRepo defines model for InsightRepo.

type InsightRuntime

type InsightRuntime struct {
	// Name go, node or java
	Name   string `json:"name"`
	Newest string `json:"newest"`
	Oldest string `json:"oldest"`
	Repos  int    `json:"repos"`

	// Versions Every version named, oldest first
	Versions []InsightVersion `json:"versions"`
}

InsightRuntime defines model for InsightRuntime.

type InsightTechnology

type InsightTechnology struct {
	BuildTools []InsightCount   `json:"buildTools"`
	Languages  []InsightCount   `json:"languages"`
	Runtimes   []InsightRuntime `json:"runtimes"`

	// Unknown Repositories whose manifests name no language
	Unknown int `json:"unknown"`
}

InsightTechnology defines model for InsightTechnology.

type InsightThresholds

type InsightThresholds struct {
	// Months Months of releases counted
	Months int `json:"months"`

	// Releases Stable releases a product's median interval reads
	Releases int `json:"releases"`

	// SharedLibraries Libraries listed
	SharedLibraries int `json:"sharedLibraries"`

	// SingleAuthorCommits People's commits that must be held
	SingleAuthorCommits int `json:"singleAuthorCommits"`

	// SingleAuthorShare Percent of people's commits one author wrote
	SingleAuthorShare int `json:"singleAuthorShare"`
}

InsightThresholds defines model for InsightThresholds.

type InsightVersion

type InsightVersion struct {
	Repos int `json:"repos"`

	// Version The version as a manifest states it
	Version string `json:"version"`
}

InsightVersion defines model for InsightVersion.

type Insights

type Insights struct {
	Ageing  InsightAgeing  `json:"ageing"`
	Cadence InsightCadence `json:"cadence"`

	// Concentration How much of the people's recent commits the busiest author wrote, in ten bands, over the repositories with enough commits held
	Concentration []InsightBand    `json:"concentration"`
	Freshness     Freshness        `json:"freshness"`
	Libraries     []InsightLibrary `json:"libraries"`
	Matrix        InsightMatrix    `json:"matrix"`

	// Repos Repositories in scope
	Repos        int               `json:"repos"`
	SingleAuthor []InsightRepo     `json:"singleAuthor"`
	Technology   InsightTechnology `json:"technology"`
	Thresholds   InsightThresholds `json:"thresholds"`
}

Insights defines model for Insights.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type Issue

type Issue struct {
	// Assigned Every assignee counted
	Assigned int `json:"assigned"`

	// Assignees The first assignees' logins
	Assignees []string `json:"assignees"`

	// Author GitHub login
	Author string `json:"author"`

	// Bot Opened by automation (Renovate's dependency dashboard, a [bot] or bot-like login)
	Bot       bool      `json:"bot"`
	Comments  int       `json:"comments"`
	CreatedAt time.Time `json:"createdAt"`

	// Kind GitHub's issue type when set, else read from the labels
	Kind   IssueKind    `json:"kind"`
	Labels []IssueLabel `json:"labels"`

	// Milestone The milestone's title; absent when none
	Milestone *string `json:"milestone,omitempty"`
	Number    int     `json:"number"`

	// Repo Repository address
	Repo string `json:"repo"`

	// State Where an issue stands, the first that holds: assigned (someone has it); triage (no label, milestone or issue type: a maintainer has not looked at it); unassigned (triaged, nobody took it)
	State IssueState `json:"state"`
	Title string     `json:"title"`

	// Type GitHub's issue type; absent when none
	Type *string `json:"type,omitempty"`

	// UpdatedAt The last activity
	UpdatedAt time.Time `json:"updatedAt"`

	// Url The issue on GitHub
	Url string `json:"url"`
}

Issue defines model for Issue.

type IssueCounts

type IssueCounts struct {
	Automation int `json:"automation"`
	Kinds      struct {
		Bug      int `json:"bug"`
		Feature  int `json:"feature"`
		Other    int `json:"other"`
		Question int `json:"question"`
	} `json:"kinds"`

	// OldestTriage When the person's issue waiting longest for triage was opened; null when none waits
	OldestTriage *time.Time `json:"oldestTriage"`
	Open         int        `json:"open"`
	People       int        `json:"people"`
	States       struct {
		Assigned   int `json:"assigned"`
		Triage     int `json:"triage"`
		Unassigned int `json:"unassigned"`
	} `json:"states"`
}

IssueCounts Open issues by state, kind and by whom

type IssueKind

type IssueKind string

IssueKind GitHub's issue type when set, else read from the labels

const (
	Bug      IssueKind = "bug"
	Feature  IssueKind = "feature"
	Other    IssueKind = "other"
	Question IssueKind = "question"
)

Defines values for IssueKind.

func (IssueKind) Valid

func (e IssueKind) Valid() bool

Valid indicates whether the value is a known member of the IssueKind enum.

type IssueLabel

type IssueLabel struct {
	// Color Six hex digits; empty when unknown
	Color string `json:"color"`
	Name  string `json:"name"`
}

IssueLabel defines model for IssueLabel.

type IssuePage

type IssuePage struct {
	// Counts Open issues by state, kind and by whom
	Counts    IssueCounts `json:"counts"`
	Freshness Freshness   `json:"freshness"`
	Issues    []Issue     `json:"issues"`
	Page      Page        `json:"page"`
}

IssuePage defines model for IssuePage.

type IssueState

type IssueState string

IssueState Where an issue stands, the first that holds: assigned (someone has it); triage (no label, milestone or issue type: a maintainer has not looked at it); unassigned (triaged, nobody took it)

const (
	Assigned   IssueState = "assigned"
	Triage     IssueState = "triage"
	Unassigned IssueState = "unassigned"
)

Defines values for IssueState.

func (IssueState) Valid

func (e IssueState) Valid() bool

Valid indicates whether the value is a known member of the IssueState enum.

type Label

type Label struct {
	// Default The default branch
	Default bool      `json:"default"`
	Kind    LabelKind `json:"kind"`
	Name    string    `json:"name"`

	// Sha The commit it points at
	Sha string `json:"sha"`
}

Label defines model for Label.

type LabelKind

type LabelKind string

LabelKind defines model for Label.Kind.

const (
	Branch LabelKind = "branch"
	Tag    LabelKind = "tag"
)

Defines values for LabelKind.

func (LabelKind) Valid

func (e LabelKind) Valid() bool

Valid indicates whether the value is a known member of the LabelKind enum.

type LayoutElement

type LayoutElement struct {
	// Color What colours the fleet map's tiles: the last change's age (the default) or the health level
	Color *LayoutElementColor `json:"color,omitempty"`

	// Count How many commits or pull requests
	Count *int `json:"count,omitempty"`

	// Groups Group ids in display order
	Groups *[]string         `json:"groups,omitempty"`
	Kind   LayoutElementKind `json:"kind"`
	Note   *string           `json:"note,omitempty"`
	Text   *string           `json:"text,omitempty"`

	// View How products are drawn until the reader switches; tiles: compact, for the presentation page
	View *LayoutElementView `json:"view,omitempty"`
}

LayoutElement One block of a page. Each kind reads only its own fields: products and fleet-map take groups (absent: every group), products takes view, fleet-map takes color, latest-commits, pulls and issues take count, heading takes text and note (plain text).

type LayoutElementColor

type LayoutElementColor string

LayoutElementColor What colours the fleet map's tiles: the last change's age (the default) or the health level

const (
	LayoutElementColorActivity LayoutElementColor = "activity"
	LayoutElementColorHealth   LayoutElementColor = "health"
)

Defines values for LayoutElementColor.

func (LayoutElementColor) Valid

func (e LayoutElementColor) Valid() bool

Valid indicates whether the value is a known member of the LayoutElementColor enum.

type LayoutElementKind

type LayoutElementKind string

LayoutElementKind defines model for LayoutElement.Kind.

const (
	LayoutElementKindAnnouncements LayoutElementKind = "announcements"
	LayoutElementKindFleetMap      LayoutElementKind = "fleet-map"
	LayoutElementKindHeading       LayoutElementKind = "heading"
	LayoutElementKindIssues        LayoutElementKind = "issues"
	LayoutElementKindLatestCommits LayoutElementKind = "latest-commits"
	LayoutElementKindProducts      LayoutElementKind = "products"
	LayoutElementKindPulls         LayoutElementKind = "pulls"
	LayoutElementKindTelemetry     LayoutElementKind = "telemetry"
)

Defines values for LayoutElementKind.

func (LayoutElementKind) Valid

func (e LayoutElementKind) Valid() bool

Valid indicates whether the value is a known member of the LayoutElementKind enum.

type LayoutElementView

type LayoutElementView string

LayoutElementView How products are drawn until the reader switches; tiles: compact, for the presentation page

const (
	Cards LayoutElementView = "cards"
	Table LayoutElementView = "table"
	Tiles LayoutElementView = "tiles"
)

Defines values for LayoutElementView.

func (LayoutElementView) Valid

func (e LayoutElementView) Valid() bool

Valid indicates whether the value is a known member of the LayoutElementView enum.

type LevelRule

type LevelRule struct {
	// From The score it starts at
	From  int    `json:"from"`
	Label string `json:"label"`

	// Level Where each starts is in /rules
	Level HealthLevel `json:"level"`
}

LevelRule defines model for LevelRule.

type Link struct {
	Title string `json:"title"`
	Url   string `json:"url"`
}

Link defines model for Link.

type ListArchive200JSONResponse

type ListArchive200JSONResponse struct {
	Body    ArchivePage
	Headers ListArchive200ResponseHeaders
}

func (ListArchive200JSONResponse) VisitListArchiveResponse

func (response ListArchive200JSONResponse) VisitListArchiveResponse(w http.ResponseWriter) error

type ListArchive200ResponseHeaders

type ListArchive200ResponseHeaders struct {
	ETag *string
}

type ListArchive304Response

type ListArchive304Response = NotModifiedResponse

func (ListArchive304Response) VisitListArchiveResponse

func (response ListArchive304Response) VisitListArchiveResponse(w http.ResponseWriter) error

type ListArchive400ApplicationProblemPlusJSONResponse

type ListArchive400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListArchive400ApplicationProblemPlusJSONResponse) VisitListArchiveResponse

func (response ListArchive400ApplicationProblemPlusJSONResponse) VisitListArchiveResponse(w http.ResponseWriter) error

type ListArchive404ApplicationProblemPlusJSONResponse

type ListArchive404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListArchive404ApplicationProblemPlusJSONResponse) VisitListArchiveResponse

func (response ListArchive404ApplicationProblemPlusJSONResponse) VisitListArchiveResponse(w http.ResponseWriter) error

type ListArchiveParams

type ListArchiveParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`

	// Q Part of the repository's name
	Q      *string        `form:"q,omitempty" json:"q,omitempty"`
	Reason *ArchiveReason `form:"reason,omitempty" json:"reason,omitempty"`

	// Used Only those another repository still depends on
	Used *bool        `form:"used,omitempty" json:"used,omitempty"`
	Sort *ArchiveSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`
}

ListArchiveParams defines parameters for ListArchive.

type ListArchiveRequestObject

type ListArchiveRequestObject struct {
	Params ListArchiveParams
}

type ListArchiveResponseObject

type ListArchiveResponseObject interface {
	VisitListArchiveResponse(w http.ResponseWriter) error
}

type ListCommits200JSONResponse

type ListCommits200JSONResponse struct {
	Body    CommitPage
	Headers ListCommits200ResponseHeaders
}

func (ListCommits200JSONResponse) VisitListCommitsResponse

func (response ListCommits200JSONResponse) VisitListCommitsResponse(w http.ResponseWriter) error

type ListCommits200ResponseHeaders

type ListCommits200ResponseHeaders struct {
	ETag *string
}

type ListCommits304Response

type ListCommits304Response = NotModifiedResponse

func (ListCommits304Response) VisitListCommitsResponse

func (response ListCommits304Response) VisitListCommitsResponse(w http.ResponseWriter) error

type ListCommits400ApplicationProblemPlusJSONResponse

type ListCommits400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListCommits400ApplicationProblemPlusJSONResponse) VisitListCommitsResponse

func (response ListCommits400ApplicationProblemPlusJSONResponse) VisitListCommitsResponse(w http.ResponseWriter) error

type ListCommits404ApplicationProblemPlusJSONResponse

type ListCommits404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListCommits404ApplicationProblemPlusJSONResponse) VisitListCommitsResponse

func (response ListCommits404ApplicationProblemPlusJSONResponse) VisitListCommitsResponse(w http.ResponseWriter) error

type ListCommitsParams

type ListCommitsParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`

	// Repo owner/name
	Repo *string `form:"repo,omitempty" json:"repo,omitempty"`

	// Automation false leaves out commits made by automation
	Automation *bool `form:"automation,omitempty" json:"automation,omitempty"`

	// Work The work that counts (the reader's lens), comma-separated kinds: hand (people's commits with no trace of an AI), ai (an AI co-author or a coding agent) and automation (CI, dependency and release bots, and sweeps). /dashboard counts every kind without it, as /commits lists every commit
	Work *Work `form:"work,omitempty" json:"work,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`
}

ListCommitsParams defines parameters for ListCommits.

type ListCommitsRequestObject

type ListCommitsRequestObject struct {
	Params ListCommitsParams
}

type ListCommitsResponseObject

type ListCommitsResponseObject interface {
	VisitListCommitsResponse(w http.ResponseWriter) error
}

type ListDocs200JSONResponse

type ListDocs200JSONResponse struct {
	Body    DocList
	Headers ListDocs200ResponseHeaders
}

func (ListDocs200JSONResponse) VisitListDocsResponse

func (response ListDocs200JSONResponse) VisitListDocsResponse(w http.ResponseWriter) error

type ListDocs200ResponseHeaders

type ListDocs200ResponseHeaders struct {
	ETag *string
}

type ListDocs304Response

type ListDocs304Response = NotModifiedResponse

func (ListDocs304Response) VisitListDocsResponse

func (response ListDocs304Response) VisitListDocsResponse(w http.ResponseWriter) error

type ListDocs308Response

type ListDocs308Response = MovedResponse

func (ListDocs308Response) VisitListDocsResponse

func (response ListDocs308Response) VisitListDocsResponse(w http.ResponseWriter) error

type ListDocs404ApplicationProblemPlusJSONResponse

type ListDocs404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListDocs404ApplicationProblemPlusJSONResponse) VisitListDocsResponse

func (response ListDocs404ApplicationProblemPlusJSONResponse) VisitListDocsResponse(w http.ResponseWriter) error

type ListDocsRequestObject

type ListDocsRequestObject struct {
	Owner string `json:"owner"`
	Name  string `json:"name"`
}

type ListDocsResponseObject

type ListDocsResponseObject interface {
	VisitListDocsResponse(w http.ResponseWriter) error
}

type ListGroups200JSONResponse

type ListGroups200JSONResponse struct {
	Body    GroupList
	Headers ListGroups200ResponseHeaders
}

func (ListGroups200JSONResponse) VisitListGroupsResponse

func (response ListGroups200JSONResponse) VisitListGroupsResponse(w http.ResponseWriter) error

type ListGroups200ResponseHeaders

type ListGroups200ResponseHeaders struct {
	ETag *string
}

type ListGroups304Response

type ListGroups304Response = NotModifiedResponse

func (ListGroups304Response) VisitListGroupsResponse

func (response ListGroups304Response) VisitListGroupsResponse(w http.ResponseWriter) error

type ListGroupsRequestObject

type ListGroupsRequestObject struct {
}

type ListGroupsResponseObject

type ListGroupsResponseObject interface {
	VisitListGroupsResponse(w http.ResponseWriter) error
}

type ListIssues200JSONResponse

type ListIssues200JSONResponse struct {
	Body    IssuePage
	Headers ListIssues200ResponseHeaders
}

func (ListIssues200JSONResponse) VisitListIssuesResponse

func (response ListIssues200JSONResponse) VisitListIssuesResponse(w http.ResponseWriter) error

type ListIssues200ResponseHeaders

type ListIssues200ResponseHeaders struct {
	ETag *string
}

type ListIssues304Response

type ListIssues304Response = NotModifiedResponse

func (ListIssues304Response) VisitListIssuesResponse

func (response ListIssues304Response) VisitListIssuesResponse(w http.ResponseWriter) error

type ListIssues400ApplicationProblemPlusJSONResponse

type ListIssues400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListIssues400ApplicationProblemPlusJSONResponse) VisitListIssuesResponse

func (response ListIssues400ApplicationProblemPlusJSONResponse) VisitListIssuesResponse(w http.ResponseWriter) error

type ListIssues404ApplicationProblemPlusJSONResponse

type ListIssues404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListIssues404ApplicationProblemPlusJSONResponse) VisitListIssuesResponse

func (response ListIssues404ApplicationProblemPlusJSONResponse) VisitListIssuesResponse(w http.ResponseWriter) error

type ListIssuesParams

type ListIssuesParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`

	// Repo owner/name
	Repo  *string     `form:"repo,omitempty" json:"repo,omitempty"`
	State *IssueState `form:"state,omitempty" json:"state,omitempty"`
	Kind  *IssueKind  `form:"kind,omitempty" json:"kind,omitempty"`

	// By people or automation; absent: both
	By *ListIssuesParamsBy `form:"by,omitempty" json:"by,omitempty"`

	// Author A GitHub login: only the issues that person opened (the counts cover them)
	Author *string `form:"author,omitempty" json:"author,omitempty"`

	// Assignee A GitHub login: only the issues assigned to that person
	Assignee *string    `form:"assignee,omitempty" json:"assignee,omitempty"`
	Sort     *QueueSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`
}

ListIssuesParams defines parameters for ListIssues.

type ListIssuesParamsBy

type ListIssuesParamsBy string

ListIssuesParamsBy defines parameters for ListIssues.

const (
	ListIssuesParamsByAutomation ListIssuesParamsBy = "automation"
	ListIssuesParamsByPeople     ListIssuesParamsBy = "people"
)

Defines values for ListIssuesParamsBy.

func (ListIssuesParamsBy) Valid

func (e ListIssuesParamsBy) Valid() bool

Valid indicates whether the value is a known member of the ListIssuesParamsBy enum.

type ListIssuesRequestObject

type ListIssuesRequestObject struct {
	Params ListIssuesParams
}

type ListIssuesResponseObject

type ListIssuesResponseObject interface {
	VisitListIssuesResponse(w http.ResponseWriter) error
}

type ListPulls200JSONResponse

type ListPulls200JSONResponse struct {
	Body    PullPage
	Headers ListPulls200ResponseHeaders
}

func (ListPulls200JSONResponse) VisitListPullsResponse

func (response ListPulls200JSONResponse) VisitListPullsResponse(w http.ResponseWriter) error

type ListPulls200ResponseHeaders

type ListPulls200ResponseHeaders struct {
	ETag *string
}

type ListPulls304Response

type ListPulls304Response = NotModifiedResponse

func (ListPulls304Response) VisitListPullsResponse

func (response ListPulls304Response) VisitListPullsResponse(w http.ResponseWriter) error

type ListPulls400ApplicationProblemPlusJSONResponse

type ListPulls400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListPulls400ApplicationProblemPlusJSONResponse) VisitListPullsResponse

func (response ListPulls400ApplicationProblemPlusJSONResponse) VisitListPullsResponse(w http.ResponseWriter) error

type ListPulls404ApplicationProblemPlusJSONResponse

type ListPulls404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListPulls404ApplicationProblemPlusJSONResponse) VisitListPullsResponse

func (response ListPulls404ApplicationProblemPlusJSONResponse) VisitListPullsResponse(w http.ResponseWriter) error

type ListPullsParams

type ListPullsParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`

	// Repo owner/name
	Repo  *string    `form:"repo,omitempty" json:"repo,omitempty"`
	State *PullState `form:"state,omitempty" json:"state,omitempty"`

	// By people or automation; absent: both
	By     *ListPullsParamsBy `form:"by,omitempty" json:"by,omitempty"`
	Drafts *bool              `form:"drafts,omitempty" json:"drafts,omitempty"`

	// Author A GitHub login: only the pull requests that person opened (the counts cover them)
	Author *string `form:"author,omitempty" json:"author,omitempty"`

	// Reviewer A GitHub login: only the pull requests that ask that person to review (teams are not expanded)
	Reviewer *string    `form:"reviewer,omitempty" json:"reviewer,omitempty"`
	Sort     *QueueSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`
}

ListPullsParams defines parameters for ListPulls.

type ListPullsParamsBy

type ListPullsParamsBy string

ListPullsParamsBy defines parameters for ListPulls.

const (
	ListPullsParamsByAutomation ListPullsParamsBy = "automation"
	ListPullsParamsByPeople     ListPullsParamsBy = "people"
)

Defines values for ListPullsParamsBy.

func (ListPullsParamsBy) Valid

func (e ListPullsParamsBy) Valid() bool

Valid indicates whether the value is a known member of the ListPullsParamsBy enum.

type ListPullsRequestObject

type ListPullsRequestObject struct {
	Params ListPullsParams
}

type ListPullsResponseObject

type ListPullsResponseObject interface {
	VisitListPullsResponse(w http.ResponseWriter) error
}

type ListReleases200JSONResponse

type ListReleases200JSONResponse struct {
	Body    ReleasePage
	Headers ListReleases200ResponseHeaders
}

func (ListReleases200JSONResponse) VisitListReleasesResponse

func (response ListReleases200JSONResponse) VisitListReleasesResponse(w http.ResponseWriter) error

type ListReleases200ResponseHeaders

type ListReleases200ResponseHeaders struct {
	ETag *string
}

type ListReleases304Response

type ListReleases304Response = NotModifiedResponse

func (ListReleases304Response) VisitListReleasesResponse

func (response ListReleases304Response) VisitListReleasesResponse(w http.ResponseWriter) error

type ListReleases400ApplicationProblemPlusJSONResponse

type ListReleases400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (ListReleases400ApplicationProblemPlusJSONResponse) VisitListReleasesResponse

func (response ListReleases400ApplicationProblemPlusJSONResponse) VisitListReleasesResponse(w http.ResponseWriter) error

type ListReleases404ApplicationProblemPlusJSONResponse

type ListReleases404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListReleases404ApplicationProblemPlusJSONResponse) VisitListReleasesResponse

func (response ListReleases404ApplicationProblemPlusJSONResponse) VisitListReleasesResponse(w http.ResponseWriter) error

type ListReleasesParams

type ListReleasesParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`

	// Repo owner/name
	Repo    *string         `form:"repo,omitempty" json:"repo,omitempty"`
	Variant *ReleaseVariant `form:"variant,omitempty" json:"variant,omitempty"`
	Source  *ReleaseSource  `form:"source,omitempty" json:"source,omitempty"`

	// Since An RFC 3339 time or days such as 30d
	Since *string      `form:"since,omitempty" json:"since,omitempty"`
	Sort  *ReleaseSort `form:"sort,omitempty" json:"sort,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`
}

ListReleasesParams defines parameters for ListReleases.

type ListReleasesRequestObject

type ListReleasesRequestObject struct {
	Params ListReleasesParams
}

type ListReleasesResponseObject

type ListReleasesResponseObject interface {
	VisitListReleasesResponse(w http.ResponseWriter) error
}

type ListRepos200JSONResponse

type ListRepos200JSONResponse struct {
	Body    RepoList
	Headers ListRepos200ResponseHeaders
}

func (ListRepos200JSONResponse) VisitListReposResponse

func (response ListRepos200JSONResponse) VisitListReposResponse(w http.ResponseWriter) error

type ListRepos200ResponseHeaders

type ListRepos200ResponseHeaders struct {
	ETag *string
}

type ListRepos304Response

type ListRepos304Response = NotModifiedResponse

func (ListRepos304Response) VisitListReposResponse

func (response ListRepos304Response) VisitListReposResponse(w http.ResponseWriter) error

type ListRepos404ApplicationProblemPlusJSONResponse

type ListRepos404ApplicationProblemPlusJSONResponse struct {
	NotFoundApplicationProblemPlusJSONResponse
}

func (ListRepos404ApplicationProblemPlusJSONResponse) VisitListReposResponse

func (response ListRepos404ApplicationProblemPlusJSONResponse) VisitListReposResponse(w http.ResponseWriter) error

type ListReposParams

type ListReposParams struct {
	Group *string `form:"group,omitempty" json:"group,omitempty"`
}

ListReposParams defines parameters for ListRepos.

type ListReposRequestObject

type ListReposRequestObject struct {
	Params ListReposParams
}

type ListReposResponseObject

type ListReposResponseObject interface {
	VisitListReposResponse(w http.ResponseWriter) error
}

type ListTools200JSONResponse

type ListTools200JSONResponse ToolList

func (ListTools200JSONResponse) VisitListToolsResponse

func (response ListTools200JSONResponse) VisitListToolsResponse(w http.ResponseWriter) error

type ListToolsRequestObject

type ListToolsRequestObject struct {
}

type ListToolsResponseObject

type ListToolsResponseObject interface {
	VisitListToolsResponse(w http.ResponseWriter) error
}

type Manifest

type Manifest struct {
	BuildTool    string            `json:"buildTool"`
	Dependencies []Dependency      `json:"dependencies"`
	Ecosystem    ManifestEcosystem `json:"ecosystem"`
	Language     string            `json:"language"`

	// Name Go module path, npm package name, Maven groupId:artifactId, crate or Python project name; empty when the file names none
	Name      string        `json:"name"`
	Path      string        `json:"path"`
	Problems  []FileProblem `json:"problems"`
	Toolchain []Toolchain   `json:"toolchain"`
	Version   string        `json:"version"`
}

Manifest defines model for Manifest.

type ManifestEcosystem

type ManifestEcosystem string

ManifestEcosystem defines model for Manifest.Ecosystem.

const (
	ManifestEcosystemCargo ManifestEcosystem = "cargo"
	ManifestEcosystemGo    ManifestEcosystem = "go"
	ManifestEcosystemMaven ManifestEcosystem = "maven"
	ManifestEcosystemNpm   ManifestEcosystem = "npm"
	ManifestEcosystemPypi  ManifestEcosystem = "pypi"
)

Defines values for ManifestEcosystem.

func (ManifestEcosystem) Valid

func (e ManifestEcosystem) Valid() bool

Valid indicates whether the value is a known member of the ManifestEcosystem enum.

type Manifests

type Manifests struct {
	Freshness Freshness `json:"freshness"`

	// Manifests By path
	Manifests  []Manifest `json:"manifests"`
	Technology Technology `json:"technology"`

	// UsedBy Catalogued repositories that depend on this one
	UsedBy []RepoLink `json:"usedBy"`

	// Uses Catalogued repositories this one depends on
	Uses []RepoLink `json:"uses"`
}

Manifests defines model for Manifests.

type Me

type Me struct {
	// Admin Sees the operator surfaces
	Admin bool `json:"admin"`

	// Login The viewer's GitHub login when the credential knows it (a token configured with `login`); absent otherwise. The lists use it for what is the viewer's own.
	Login *string `json:"login,omitempty"`

	// Name The viewer's name; empty when anonymous
	Name string `json:"name"`

	// Private Sees private and internal repositories
	Private bool `json:"private"`
	SignIn  struct {
		// Oidc GET /auth/login signs in at the provider
		Oidc bool `json:"oidc"`

		// Token POST /auth/token exchanges a token for a session
		Token bool `json:"token"`
	} `json:"signIn"`
	SignedIn bool `json:"signedIn"`

	// Via How the viewer is identified; none when anonymous
	Via MeVia `json:"via"`
}

Me defines model for Me.

type MeVia

type MeVia string

MeVia How the viewer is identified; none when anonymous

const (
	MeViaNone  MeVia = "none"
	MeViaOidc  MeVia = "oidc"
	MeViaProxy MeVia = "proxy"
	MeViaToken MeVia = "token"
)

Defines values for MeVia.

func (MeVia) Valid

func (e MeVia) Valid() bool

Valid indicates whether the value is a known member of the MeVia enum.

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type MovedResponse

type MovedResponse struct {
	Headers MovedResponseHeaders
}

type MovedResponseHeaders

type MovedResponseHeaders struct {
	Location string
}

type NotFound

type NotFound = Problem

NotFound defines model for NotFound.

type NotFoundApplicationProblemPlusJSONResponse

type NotFoundApplicationProblemPlusJSONResponse Problem

type NotModifiedResponse

type NotModifiedResponse struct {
}

type Package

type Package struct {
	// Ecosystem The package manager: maven, npm, ...
	Ecosystem string `json:"ecosystem"`

	// Name group:artifact for Maven, the package name elsewhere
	Name string `json:"name"`

	// PublishedAt When the registry says it was published; null when it does not say
	PublishedAt *time.Time `json:"publishedAt"`

	// Registry The configured registry's id
	Registry string `json:"registry"`

	// Url The package at its registry, https; empty when the registry gave no address
	Url string `json:"url"`

	// Version The newest release at the registry
	Version string `json:"version"`
}

Package defines model for Package.

type Page

type Page struct {
	// Number This page
	Number int `json:"number"`

	// Pages Pages in all, at least 1
	Pages int `json:"pages"`

	// Size Items per page (the limit)
	Size int `json:"size"`

	// Total Items matching the filter
	Total int `json:"total"`
}

Page defines model for Page.

type PageLayout

type PageLayout struct {
	// Announcements The announcements this viewer may see on this page now, in display order; the announcements element places them
	Announcements []Announcement  `json:"announcements"`
	Elements      []LayoutElement `json:"elements"`
	Page          string          `json:"page"`

	// Stored An admin's layout; false: the built-in one
	Stored bool `json:"stored"`
}

PageLayout defines model for PageLayout.

type PageNumber

type PageNumber = int

PageNumber defines model for PageNumber.

type Penalty

type Penalty struct {
	Points int    `json:"points"`
	When   string `json:"when"`
}

Penalty defines model for Penalty.

type Person

type Person struct {
	// Login The GitHub login, when GitHub links the commits to an account; the short form to show
	Login *string `json:"login,omitempty"`

	// Name The name in the commits (the login when they carry none)
	Name string `json:"name"`
}

Person defines model for Person.

type Prerequisite

type Prerequisite struct {
	// Effect What a reader sees without it
	Effect string `json:"effect"`

	// Events The missing webhook events as GitHub's settings name them; administrators only
	Events  *[]string           `json:"events,omitempty"`
	Feature PrerequisiteFeature `json:"feature"`

	// Fix What to do about it; administrators only
	Fix *string `json:"fix,omitempty"`

	// Owners The accounts whose installation lacks it; administrators only
	Owners *[]string `json:"owners,omitempty"`

	// Permissions The missing read permissions as GitHub's settings name them; administrators only
	Permissions *[]string `json:"permissions,omitempty"`

	// Refused A token GitHub refused, whose permissions cannot be asked; administrators only
	Refused *bool `json:"refused,omitempty"`

	// Source The configured source; administrators only
	Source *string `json:"source,omitempty"`
	Title  string  `json:"title"`
}

Prerequisite defines model for Prerequisite.

type PrerequisiteFeature

type PrerequisiteFeature string

PrerequisiteFeature defines model for Prerequisite.Feature.

const (
	PrerequisiteFeatureCatalogue PrerequisiteFeature = "catalogue"
	PrerequisiteFeatureIssues    PrerequisiteFeature = "issues"
	PrerequisiteFeaturePulls     PrerequisiteFeature = "pulls"
)

Defines values for PrerequisiteFeature.

func (PrerequisiteFeature) Valid

func (e PrerequisiteFeature) Valid() bool

Valid indicates whether the value is a known member of the PrerequisiteFeature enum.

type PrerequisiteList

type PrerequisiteList struct {
	Unmet []Prerequisite `json:"unmet"`
}

PrerequisiteList defines model for PrerequisiteList.

type Problem

type Problem struct {
	Code   string  `json:"code"`
	Detail *string `json:"detail,omitempty"`

	// Instance urn:scp:request:<request id>
	Instance *string `json:"instance,omitempty"`
	Status   int     `json:"status"`
	Title    string  `json:"title"`
	Type     string  `json:"type"`
}

Problem defines model for Problem.

func NewProblem

func NewProblem(status int, code, title, detail string) Problem

NewProblem returns an RFC 9457 problem with the portal's type URN for code.

type ProductHealth

type ProductHealth struct {
	// Attention Repositories at attention
	Attention int `json:"attention"`

	// Counted Repositories with a score
	Counted      int `json:"counted"`
	FindingCount int `json:"findingCount"`

	// Findings Most costly first; the dashboard carries the first 5
	Findings []RepoFinding `json:"findings"`

	// Level Where each starts is in /rules
	Level HealthLevel `json:"level"`
	Score int         `json:"score"`

	// Watch Repositories at watch
	Watch int `json:"watch"`
}

ProductHealth The weighted health of a group's repositories; archived and deprecated ones are not counted

type PullCounts

type PullCounts struct {
	Automation int `json:"automation"`

	// OldestReview The last activity of the person's pull request that waits longest for a review; null when none waits
	OldestReview *time.Time `json:"oldestReview"`

	// Open Every open pull request counted
	Open   int `json:"open"`
	People int `json:"people"`
	States struct {
		Changes   int `json:"changes"`
		Checks    int `json:"checks"`
		Conflicts int `json:"conflicts"`
		Draft     int `json:"draft"`
		Failing   int `json:"failing"`
		Ready     int `json:"ready"`
		Review    int `json:"review"`
		Unknown   int `json:"unknown"`
	} `json:"states"`
}

PullCounts Open pull requests by state and by whom

type PullPage

type PullPage struct {
	// Counts Open pull requests by state and by whom
	Counts    PullCounts    `json:"counts"`
	Freshness Freshness     `json:"freshness"`
	Page      Page          `json:"page"`
	Pulls     []PullRequest `json:"pulls"`
}

PullPage defines model for PullPage.

type PullRequest

type PullRequest struct {
	// Author GitHub login
	Author string `json:"author"`

	// Base The branch it merges into
	Base string `json:"base"`

	// Bot Opened by automation (Dependabot, Renovate, a [bot] or bot-like login)
	Bot bool `json:"bot"`

	// Checks The head commit's checks
	Checks    PullRequestChecks `json:"checks"`
	CreatedAt time.Time         `json:"createdAt"`
	Draft     bool              `json:"draft"`

	// Fork From another repository
	Fork bool `json:"fork"`

	// Head Its branch
	Head   string       `json:"head"`
	Labels []IssueLabel `json:"labels"`
	Number int          `json:"number"`

	// Repo Repository address
	Repo string `json:"repo"`

	// Requested Reviewers and teams asked for a review
	Requested int `json:"requested"`

	// State Whose turn a pull request is, the first that holds: draft, conflicts (it does not merge), failing (its checks) and changes (a reviewer asked) wait for the author; review (a review is required, or none approved yet) for reviewers; checks (running) for CI; ready (approved or no review required, checks passing) for a maintainer to merge; unknown until GitHub's state is read
	State PullState `json:"state"`

	// Stats What a commit changed (design/diffstat.md); absent on a commit older than 90 days or not asked yet
	Stats *CommitStats `json:"stats,omitempty"`
	Title string       `json:"title"`

	// UpdatedAt The last activity
	UpdatedAt time.Time `json:"updatedAt"`

	// Url The pull request on GitHub
	Url      string              `json:"url"`
	WaitsFor PullRequestWaitsFor `json:"waitsFor"`
}

PullRequest defines model for PullRequest.

type PullRequestChecks

type PullRequestChecks string

PullRequestChecks The head commit's checks

const (
	PullRequestChecksFailing PullRequestChecks = "failing"
	PullRequestChecksNone    PullRequestChecks = "none"
	PullRequestChecksPassing PullRequestChecks = "passing"
	PullRequestChecksRunning PullRequestChecks = "running"
)

Defines values for PullRequestChecks.

func (PullRequestChecks) Valid

func (e PullRequestChecks) Valid() bool

Valid indicates whether the value is a known member of the PullRequestChecks enum.

type PullRequestWaitsFor

type PullRequestWaitsFor string

PullRequestWaitsFor defines model for PullRequest.WaitsFor.

const (
	PullRequestWaitsForAuthor     PullRequestWaitsFor = "author"
	PullRequestWaitsForCi         PullRequestWaitsFor = "ci"
	PullRequestWaitsForMaintainer PullRequestWaitsFor = "maintainer"
	PullRequestWaitsForReviewers  PullRequestWaitsFor = "reviewers"
	PullRequestWaitsForUnknown    PullRequestWaitsFor = "unknown"
)

Defines values for PullRequestWaitsFor.

func (PullRequestWaitsFor) Valid

func (e PullRequestWaitsFor) Valid() bool

Valid indicates whether the value is a known member of the PullRequestWaitsFor enum.

type PullState

type PullState string

PullState Whose turn a pull request is, the first that holds: draft, conflicts (it does not merge), failing (its checks) and changes (a reviewer asked) wait for the author; review (a review is required, or none approved yet) for reviewers; checks (running) for CI; ready (approved or no review required, checks passing) for a maintainer to merge; unknown until GitHub's state is read

const (
	PullStateChanges   PullState = "changes"
	PullStateChecks    PullState = "checks"
	PullStateConflicts PullState = "conflicts"
	PullStateDraft     PullState = "draft"
	PullStateFailing   PullState = "failing"
	PullStateReady     PullState = "ready"
	PullStateReview    PullState = "review"
	PullStateUnknown   PullState = "unknown"
)

Defines values for PullState.

func (PullState) Valid

func (e PullState) Valid() bool

Valid indicates whether the value is a known member of the PullState enum.

type QRCode

type QRCode struct {
	Path string `json:"path"`
	Size int    `json:"size"`
}

QRCode The link as a QR code: an SVG path over a square of size modules, the quiet zone not included

type QueueSort

type QueueSort string

QueueSort The order of a list of open pull requests or issues: whose turn first (waiting), newest first, updated last first

const (
	QueueSortNewest  QueueSort = "newest"
	QueueSortUpdated QueueSort = "updated"
	QueueSortWaiting QueueSort = "waiting"
)

Defines values for QueueSort.

func (QueueSort) Valid

func (e QueueSort) Valid() bool

Valid indicates whether the value is a known member of the QueueSort enum.

type RecentRepo

type RecentRepo struct {
	At time.Time `json:"at"`

	// Repo Address
	Repo string `json:"repo"`
}

RecentRepo defines model for RecentRepo.

type Release

type Release struct {
	PublishedAt time.Time `json:"publishedAt"`
	Tag         string    `json:"tag"`
	Url         string    `json:"url"`
}

Release defines model for Release.

type ReleaseCounts

type ReleaseCounts struct {
	All int `json:"all"`

	// Github The rows the chosen variant lists that are GitHub releases
	Github int `json:"github"`

	// Latest Repositories with a stable release of the chosen source
	Latest int `json:"latest"`

	// Packages The rows the chosen variant lists that are published packages
	Packages int `json:"packages"`
	Pre      int `json:"pre"`
	Stable   int `json:"stable"`
}

ReleaseCounts defines model for ReleaseCounts.

type ReleaseEntry

type ReleaseEntry struct {
	Assets int `json:"assets"`

	// Author Empty when GitHub names none
	Author string `json:"author"`

	// Bot Published by automation
	Bot bool `json:"bot"`

	// Groups Group ids in configuration order
	Groups []string `json:"groups"`

	// Name The repository's name
	Name string `json:"name"`

	// Notes The release's notes as sanitised HTML (headings as bold paragraphs, images as their alt text); empty when it has none
	Notes string `json:"notes"`

	// NotesCut The notes were cut; the rest is on the release's page
	NotesCut bool `json:"notesCut"`

	// NotesFrom release: the GitHub release's own notes; changelog: the section of the repository's changelog for the version; empty with no notes
	NotesFrom ReleaseEntryNotesFrom `json:"notesFrom"`

	// Package The package's name; empty for a GitHub release
	Package     string    `json:"package"`
	Prerelease  bool      `json:"prerelease"`
	PublishedAt time.Time `json:"publishedAt"`

	// Repo Lower-case owner/name, used in URLs
	Repo string `json:"repo"`

	// Source github for a GitHub release, else the package manager's ecosystem (maven, npm, pypi, cargo, go, swift, cocoapods, nuget, rubygems, packagist)
	Source string `json:"source"`

	// Summary The first line of its notes, cleaned; empty when it has none
	Summary string `json:"summary"`

	// Tag The release's tag; a package's version
	Tag string `json:"tag"`

	// Title The release's name; empty when it has none
	Title string `json:"title"`
	Url   string `json:"url"`
}

ReleaseEntry defines model for ReleaseEntry.

type ReleaseEntryNotesFrom

type ReleaseEntryNotesFrom string

ReleaseEntryNotesFrom release: the GitHub release's own notes; changelog: the section of the repository's changelog for the version; empty with no notes

const (
	ReleaseEntryNotesFromChangelog ReleaseEntryNotesFrom = "changelog"
	ReleaseEntryNotesFromEmpty     ReleaseEntryNotesFrom = ""
	ReleaseEntryNotesFromRelease   ReleaseEntryNotesFrom = "release"
)

Defines values for ReleaseEntryNotesFrom.

func (ReleaseEntryNotesFrom) Valid

func (e ReleaseEntryNotesFrom) Valid() bool

Valid indicates whether the value is a known member of the ReleaseEntryNotesFrom enum.

type ReleasePage

type ReleasePage struct {
	Counts    ReleaseCounts  `json:"counts"`
	Freshness Freshness      `json:"freshness"`
	Page      Page           `json:"page"`
	Releases  []ReleaseEntry `json:"releases"`
}

ReleasePage defines model for ReleasePage.

type ReleaseSort

type ReleaseSort string

ReleaseSort newest first (default); oldest first; by repository; by product, then newest

const (
	ReleaseSortGroup  ReleaseSort = "group"
	ReleaseSortNewest ReleaseSort = "newest"
	ReleaseSortOldest ReleaseSort = "oldest"
	ReleaseSortRepo   ReleaseSort = "repo"
)

Defines values for ReleaseSort.

func (ReleaseSort) Valid

func (e ReleaseSort) Valid() bool

Valid indicates whether the value is a known member of the ReleaseSort enum.

type ReleaseSource

type ReleaseSource string

ReleaseSource all: GitHub releases and published packages (default); github; packages (the newest release of each package a repository publishes)

const (
	ReleaseSourceAll      ReleaseSource = "all"
	ReleaseSourceGithub   ReleaseSource = "github"
	ReleaseSourcePackages ReleaseSource = "packages"
)

Defines values for ReleaseSource.

func (ReleaseSource) Valid

func (e ReleaseSource) Valid() bool

Valid indicates whether the value is a known member of the ReleaseSource enum.

type ReleaseVariant

type ReleaseVariant string

ReleaseVariant latest: one row per repository, its newest stable release (default); all; stable; pre

const (
	ReleaseVariantAll    ReleaseVariant = "all"
	ReleaseVariantLatest ReleaseVariant = "latest"
	ReleaseVariantPre    ReleaseVariant = "pre"
	ReleaseVariantStable ReleaseVariant = "stable"
)

Defines values for ReleaseVariant.

func (ReleaseVariant) Valid

func (e ReleaseVariant) Valid() bool

Valid indicates whether the value is a known member of the ReleaseVariant enum.

type Repo

type Repo struct {
	// Address Lower-case owner/name, used in URLs
	Address       string    `json:"address"`
	Archived      bool      `json:"archived"`
	DefaultBranch string    `json:"defaultBranch"`
	Description   string    `json:"description"`
	Fork          bool      `json:"fork"`
	Freshness     Freshness `json:"freshness"`

	// Groups Group ids in configuration order
	Groups []string `json:"groups"`

	// Health Null for an archived or deprecated repository
	Health *Health `json:"health"`

	// Homepage Empty when not set
	Homepage string `json:"homepage"`
	HtmlUrl  string `json:"htmlUrl"`

	// Language Language of the first package manifest; empty when there is none
	Language string `json:"language"`

	// LastAuthoredAt The newest default-branch commit of people's work (by hand or with AI), not automation (bots, release plugins) or a sweep; when no read commit is, the oldest read one (people's is older); null until read
	LastAuthoredAt *time.Time `json:"lastAuthoredAt"`

	// LastCommitAt The newest default-branch commit; null until read
	LastCommitAt *time.Time `json:"lastCommitAt"`

	// License SPDX id; empty when unknown
	License string `json:"license"`
	Name    string `json:"name"`

	// NotPublic Public on GitHub, but an administrator chose that only signed-in viewers see it here (Admin › Who sees what); only such a viewer reads it
	NotPublic bool `json:"notPublic"`

	// OpenIssues Open issues, the best count held: the issues read, else GitHub's count less the open pull requests read, else GitHub's count of both (openIssuesWithPulls)
	OpenIssues int `json:"openIssues"`

	// OpenIssuesWithPulls openIssues counts the open pull requests too: neither is read (switched off, or not yet)
	OpenIssuesWithPulls bool `json:"openIssuesWithPulls"`

	// OpenPulls Open pull requests; null until read
	OpenPulls *int   `json:"openPulls"`
	Owner     string `json:"owner"`

	// Packages The packages it publishes to a registry with their newest release, the newest first; empty when none is known
	Packages []Package `json:"packages"`
	PushedAt time.Time `json:"pushedAt"`

	// Release The latest release; null when there is none or it is not read yet
	Release    *Release `json:"release"`
	Stars      int      `json:"stars"`
	Topics     []string `json:"topics"`
	Visibility string   `json:"visibility"`
}

Repo defines model for Repo.

type RepoDetail

type RepoDetail struct {
	// Commits The latest default-branch commits
	Commits          []Commit  `json:"commits"`
	CommitsFreshness Freshness `json:"commitsFreshness"`

	// Descriptor The repository's own scp.yaml. It changes display only.
	Descriptor Descriptor `json:"descriptor"`

	// Group The first of its groups in configuration order, the page above it; null when it is in none
	Group *GroupRef `json:"group"`
	Repo  Repo      `json:"repo"`

	// Title The descriptor title
	Title string `json:"title"`
}

RepoDetail defines model for RepoDetail.

type RepoFinding

type RepoFinding struct {
	// Code The kind of finding; /rules names and explains every kind, so a new one needs no change here
	Code    string `json:"code"`
	Message string `json:"message"`

	// Penalty Points the finding costs
	Penalty int `json:"penalty"`

	// Repo Address of the repository
	Repo string `json:"repo"`
}

RepoFinding defines model for RepoFinding.

type RepoLink struct {
	Address string `json:"address"`
	Name    string `json:"name"`
	Owner   string `json:"owner"`

	// Via The dependency names that link the two repositories
	Via []string `json:"via"`
}

RepoLink defines model for RepoLink.

type RepoList

type RepoList struct {
	Repos []Repo `json:"repos"`
}

RepoList defines model for RepoList.

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type Rules

type Rules struct {
	Activity []ActivityRule `json:"activity"`

	// Features The parts an operator may switch off (features in scp.yaml); a switched-off one has no pages, data, tools or findings
	Features struct {
		// Issues The open issues
		Issues bool `json:"issues"`

		// People Each viewer reads with GitHub tokens of their own, linked at /github (scp enterprise)
		People bool `json:"people"`

		// Pulls The open pull requests
		Pulls bool `json:"pulls"`
	} `json:"features"`
	Findings   []FindingKind  `json:"findings"`
	Levels     []LevelRule    `json:"levels"`
	Severities []SeverityRule `json:"severities"`

	// WindowDays The days the activity counts cover
	WindowDays int `json:"windowDays"`
}

Rules defines model for Rules.

type Search200JSONResponse

type Search200JSONResponse struct {
	Body    SearchResult
	Headers Search200ResponseHeaders
}

func (Search200JSONResponse) VisitSearchResponse

func (response Search200JSONResponse) VisitSearchResponse(w http.ResponseWriter) error

type Search200ResponseHeaders

type Search200ResponseHeaders struct {
	ETag *string
}

type Search304Response

type Search304Response = NotModifiedResponse

func (Search304Response) VisitSearchResponse

func (response Search304Response) VisitSearchResponse(w http.ResponseWriter) error

type Search400ApplicationProblemPlusJSONResponse

type Search400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (Search400ApplicationProblemPlusJSONResponse) VisitSearchResponse

func (response Search400ApplicationProblemPlusJSONResponse) VisitSearchResponse(w http.ResponseWriter) error

type SearchCorrection

type SearchCorrection struct {
	From string `json:"from"`
	To   string `json:"to"`
}

SearchCorrection defines model for SearchCorrection.

type SearchCounts

type SearchCounts struct {
	Commit int `json:"commit"`
	Dep    int `json:"dep"`
	Doc    int `json:"doc"`
	Group  int `json:"group"`

	// Issue Open issues
	Issue   int `json:"issue"`
	Package int `json:"package"`

	// Pull Open pull requests
	Pull int `json:"pull"`

	// Release Releases held
	Release int `json:"release"`
	Repo    int `json:"repo"`
}

SearchCounts defines model for SearchCounts.

type SearchHit

type SearchHit struct {
	// At When it happened (a commit)
	At   *time.Time `json:"at,omitempty"`
	Kind SearchKind `json:"kind"`

	// Repo The repository's address owner/name; absent for a group
	Repo *string `json:"repo,omitempty"`

	// Snippet Up to 240 characters around the first match, one line
	Snippet []TextPart `json:"snippet"`
	Title   []TextPart `json:"title"`

	// Url The portal page the hit opens
	Url string `json:"url"`
}

SearchHit defines model for SearchHit.

type SearchKind

type SearchKind string

SearchKind defines model for SearchKind.

const (
	SearchKindCommit  SearchKind = "commit"
	SearchKindDep     SearchKind = "dep"
	SearchKindDoc     SearchKind = "doc"
	SearchKindGroup   SearchKind = "group"
	SearchKindIssue   SearchKind = "issue"
	SearchKindPackage SearchKind = "package"
	SearchKindPull    SearchKind = "pull"
	SearchKindRelease SearchKind = "release"
	SearchKindRepo    SearchKind = "repo"
)

Defines values for SearchKind.

func (SearchKind) Valid

func (e SearchKind) Valid() bool

Valid indicates whether the value is a known member of the SearchKind enum.

type SearchParams

type SearchParams struct {
	Q string `form:"q" json:"q"`

	// In One kind's hits on the page; the counts stay every kind's
	In *SearchKind `form:"in,omitempty" json:"in,omitempty"`

	// Page The page, from 1
	Page  *PageNumber `form:"page,omitempty" json:"page,omitempty"`
	Limit *int        `form:"limit,omitempty" json:"limit,omitempty"`
}

SearchParams defines parameters for Search.

type SearchRequestObject

type SearchRequestObject struct {
	Params SearchParams
}

type SearchResponseObject

type SearchResponseObject interface {
	VisitSearchResponse(w http.ResponseWriter) error
}

type SearchResult

type SearchResult struct {
	Corrections []SearchCorrection `json:"corrections"`
	Counts      SearchCounts       `json:"counts"`
	Hits        []SearchHit        `json:"hits"`
	Page        Page               `json:"page"`

	// Query The query as searched
	Query string `json:"query"`
}

SearchResult defines model for SearchResult.

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	http.Handler
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {
	// ListArchive The retired repositories, newest activity first, one page at a time
	// (GET /archive)
	ListArchive(w http.ResponseWriter, r *http.Request, params ListArchiveParams)
	// GetAssistant Whether the assistant is on and the viewer may ask it
	// (GET /assistant)
	GetAssistant(w http.ResponseWriter, r *http.Request)
	// ListCommits Default-branch commits merged across repositories, newest first, one page at a time
	// (GET /commits)
	ListCommits(w http.ResponseWriter, r *http.Request, params ListCommitsParams)
	// GetDashboard Groups with counts and latest activity, the latest commits and data health
	// (GET /dashboard)
	GetDashboard(w http.ResponseWriter, r *http.Request, params GetDashboardParams)
	// ListGroups All groups in configuration order, with member counts
	// (GET /groups)
	ListGroups(w http.ResponseWriter, r *http.Request)
	// GetGroup One group with its repositories
	// (GET /groups/{group})
	GetGroup(w http.ResponseWriter, r *http.Request, group string)
	// GetInsights What the held data says about the fleet, derived on request
	// (GET /insights)
	GetInsights(w http.ResponseWriter, r *http.Request, params GetInsightsParams)
	// ListIssues Open issues across repositories, where each stands, one page at a time
	// (GET /issues)
	ListIssues(w http.ResponseWriter, r *http.Request, params ListIssuesParams)
	// GetMe The viewer, its roles and how one signs in
	// (GET /me)
	GetMe(w http.ResponseWriter, r *http.Request)
	// GetPage A page's layout, its elements resolved against the viewer's view
	// (GET /pages/{page})
	GetPage(w http.ResponseWriter, r *http.Request, page GetPageParamsPage)
	// GetPrerequisites The features whose GitHub prerequisites do not hold, and how to fix them
	// (GET /prerequisites)
	GetPrerequisites(w http.ResponseWriter, r *http.Request)
	// ListPulls Open pull requests across repositories, whose turn first, one page at a time
	// (GET /pulls)
	ListPulls(w http.ResponseWriter, r *http.Request, params ListPullsParams)
	// ListReleases Recent releases across repositories, newest first, one page at a time
	// (GET /releases)
	ListReleases(w http.ResponseWriter, r *http.Request, params ListReleasesParams)
	// ListRepos All repositories sorted by address, optionally of one group
	// (GET /repos)
	ListRepos(w http.ResponseWriter, r *http.Request, params ListReposParams)
	// GetRepo One repository; an old address redirects to the current one
	// (GET /repos/{owner}/{name})
	GetRepo(w http.ResponseWriter, r *http.Request, owner string, name string)
	// ListDocs The repository's documents, README first, then docs/ in navigation order
	// (GET /repos/{owner}/{name}/docs)
	ListDocs(w http.ResponseWriter, r *http.Request, owner string, name string)
	// GetDoc One rendered document
	// (GET /repos/{owner}/{name}/docs/{docId})
	GetDoc(w http.ResponseWriter, r *http.Request, owner string, name string, docId string)
	// GetHistory The repository's stored history in graph order, one page at a time
	// (GET /repos/{owner}/{name}/history)
	GetHistory(w http.ResponseWriter, r *http.Request, owner string, name string, params GetHistoryParams)
	// GetManifests The repository's package manifests, the technology they state and its internal dependencies
	// (GET /repos/{owner}/{name}/manifests)
	GetManifests(w http.ResponseWriter, r *http.Request, owner string, name string)
	// GetRules The rules the portal judges by, in their current terms
	// (GET /rules)
	GetRules(w http.ResponseWriter, r *http.Request)
	// Search Search what the portal holds, best first, one page at a time
	// (GET /search)
	Search(w http.ResponseWriter, r *http.Request, params SearchParams)
	// Suggest Up to 8 repositories, groups and documents whose names or titles start with the words, for a search box
	// (GET /search/suggest)
	Suggest(w http.ResponseWriter, r *http.Request, params SuggestParams)
	// GetSnapshot Data health; the web UI reads it to learn about new data
	// (GET /snapshot)
	GetSnapshot(w http.ResponseWriter, r *http.Request)
	// ListTools The read-only tools agents call, the same for every viewer
	// (GET /tools)
	ListTools(w http.ResponseWriter, r *http.Request)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) GetAssistant

func (siw *ServerInterfaceWrapper) GetAssistant(w http.ResponseWriter, r *http.Request)

GetAssistant operation middleware

func (*ServerInterfaceWrapper) GetDashboard

func (siw *ServerInterfaceWrapper) GetDashboard(w http.ResponseWriter, r *http.Request)

GetDashboard operation middleware

func (*ServerInterfaceWrapper) GetDoc

GetDoc operation middleware

func (*ServerInterfaceWrapper) GetGroup

func (siw *ServerInterfaceWrapper) GetGroup(w http.ResponseWriter, r *http.Request)

GetGroup operation middleware

func (*ServerInterfaceWrapper) GetHistory

func (siw *ServerInterfaceWrapper) GetHistory(w http.ResponseWriter, r *http.Request)

GetHistory operation middleware

func (*ServerInterfaceWrapper) GetInsights

func (siw *ServerInterfaceWrapper) GetInsights(w http.ResponseWriter, r *http.Request)

GetInsights operation middleware

func (*ServerInterfaceWrapper) GetManifests

func (siw *ServerInterfaceWrapper) GetManifests(w http.ResponseWriter, r *http.Request)

GetManifests operation middleware

func (*ServerInterfaceWrapper) GetMe

GetMe operation middleware

func (*ServerInterfaceWrapper) GetPage

GetPage operation middleware

func (*ServerInterfaceWrapper) GetPrerequisites

func (siw *ServerInterfaceWrapper) GetPrerequisites(w http.ResponseWriter, r *http.Request)

GetPrerequisites operation middleware

func (*ServerInterfaceWrapper) GetRepo

GetRepo operation middleware

func (*ServerInterfaceWrapper) GetRules

func (siw *ServerInterfaceWrapper) GetRules(w http.ResponseWriter, r *http.Request)

GetRules operation middleware

func (*ServerInterfaceWrapper) GetSnapshot

func (siw *ServerInterfaceWrapper) GetSnapshot(w http.ResponseWriter, r *http.Request)

GetSnapshot operation middleware

func (*ServerInterfaceWrapper) ListArchive

func (siw *ServerInterfaceWrapper) ListArchive(w http.ResponseWriter, r *http.Request)

ListArchive operation middleware

func (*ServerInterfaceWrapper) ListCommits

func (siw *ServerInterfaceWrapper) ListCommits(w http.ResponseWriter, r *http.Request)

ListCommits operation middleware

func (*ServerInterfaceWrapper) ListDocs

func (siw *ServerInterfaceWrapper) ListDocs(w http.ResponseWriter, r *http.Request)

ListDocs operation middleware

func (*ServerInterfaceWrapper) ListGroups

func (siw *ServerInterfaceWrapper) ListGroups(w http.ResponseWriter, r *http.Request)

ListGroups operation middleware

func (*ServerInterfaceWrapper) ListIssues

func (siw *ServerInterfaceWrapper) ListIssues(w http.ResponseWriter, r *http.Request)

ListIssues operation middleware

func (*ServerInterfaceWrapper) ListPulls

func (siw *ServerInterfaceWrapper) ListPulls(w http.ResponseWriter, r *http.Request)

ListPulls operation middleware

func (*ServerInterfaceWrapper) ListReleases

func (siw *ServerInterfaceWrapper) ListReleases(w http.ResponseWriter, r *http.Request)

ListReleases operation middleware

func (*ServerInterfaceWrapper) ListRepos

func (siw *ServerInterfaceWrapper) ListRepos(w http.ResponseWriter, r *http.Request)

ListRepos operation middleware

func (*ServerInterfaceWrapper) ListTools

func (siw *ServerInterfaceWrapper) ListTools(w http.ResponseWriter, r *http.Request)

ListTools operation middleware

func (*ServerInterfaceWrapper) Search

Search operation middleware

func (*ServerInterfaceWrapper) Suggest

Suggest operation middleware

type SeverityRule

type SeverityRule struct {
	// From The penalty it starts at
	From     int                  `json:"from"`
	Label    string               `json:"label"`
	Severity SeverityRuleSeverity `json:"severity"`
}

SeverityRule defines model for SeverityRule.

type SeverityRuleSeverity

type SeverityRuleSeverity string

SeverityRuleSeverity defines model for SeverityRule.Severity.

const (
	High   SeverityRuleSeverity = "high"
	Low    SeverityRuleSeverity = "low"
	Medium SeverityRuleSeverity = "medium"
)

Defines values for SeverityRuleSeverity.

func (SeverityRuleSeverity) Valid

func (e SeverityRuleSeverity) Valid() bool

Valid indicates whether the value is a known member of the SeverityRuleSeverity enum.

type SnapshotInfo

type SnapshotInfo struct {
	BuiltAt *time.Time `json:"builtAt"`

	// Ready A catalogue is loaded
	Ready   bool         `json:"ready"`
	Sources []SourceInfo `json:"sources"`

	// Version Identifies the content; equal on every instance for equal data. Compare for equality only.
	Version int64 `json:"version"`
}

SnapshotInfo defines model for SnapshotInfo.

type SourceInfo

type SourceInfo struct {
	Freshness Freshness `json:"freshness"`
	Id        string    `json:"id"`
	Repos     int       `json:"repos"`
}

SourceInfo defines model for SourceInfo.

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHandlerFunc

type StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, request any) (any, error)

type StrictMiddlewareFunc

type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc

type StrictServerInterface

type StrictServerInterface interface {
	// ListArchive The retired repositories, newest activity first, one page at a time
	// (GET /archive)
	ListArchive(ctx context.Context, request ListArchiveRequestObject) (ListArchiveResponseObject, error)
	// GetAssistant Whether the assistant is on and the viewer may ask it
	// (GET /assistant)
	GetAssistant(ctx context.Context, request GetAssistantRequestObject) (GetAssistantResponseObject, error)
	// ListCommits Default-branch commits merged across repositories, newest first, one page at a time
	// (GET /commits)
	ListCommits(ctx context.Context, request ListCommitsRequestObject) (ListCommitsResponseObject, error)
	// GetDashboard Groups with counts and latest activity, the latest commits and data health
	// (GET /dashboard)
	GetDashboard(ctx context.Context, request GetDashboardRequestObject) (GetDashboardResponseObject, error)
	// ListGroups All groups in configuration order, with member counts
	// (GET /groups)
	ListGroups(ctx context.Context, request ListGroupsRequestObject) (ListGroupsResponseObject, error)
	// GetGroup One group with its repositories
	// (GET /groups/{group})
	GetGroup(ctx context.Context, request GetGroupRequestObject) (GetGroupResponseObject, error)
	// GetInsights What the held data says about the fleet, derived on request
	// (GET /insights)
	GetInsights(ctx context.Context, request GetInsightsRequestObject) (GetInsightsResponseObject, error)
	// ListIssues Open issues across repositories, where each stands, one page at a time
	// (GET /issues)
	ListIssues(ctx context.Context, request ListIssuesRequestObject) (ListIssuesResponseObject, error)
	// GetMe The viewer, its roles and how one signs in
	// (GET /me)
	GetMe(ctx context.Context, request GetMeRequestObject) (GetMeResponseObject, error)
	// GetPage A page's layout, its elements resolved against the viewer's view
	// (GET /pages/{page})
	GetPage(ctx context.Context, request GetPageRequestObject) (GetPageResponseObject, error)
	// GetPrerequisites The features whose GitHub prerequisites do not hold, and how to fix them
	// (GET /prerequisites)
	GetPrerequisites(ctx context.Context, request GetPrerequisitesRequestObject) (GetPrerequisitesResponseObject, error)
	// ListPulls Open pull requests across repositories, whose turn first, one page at a time
	// (GET /pulls)
	ListPulls(ctx context.Context, request ListPullsRequestObject) (ListPullsResponseObject, error)
	// ListReleases Recent releases across repositories, newest first, one page at a time
	// (GET /releases)
	ListReleases(ctx context.Context, request ListReleasesRequestObject) (ListReleasesResponseObject, error)
	// ListRepos All repositories sorted by address, optionally of one group
	// (GET /repos)
	ListRepos(ctx context.Context, request ListReposRequestObject) (ListReposResponseObject, error)
	// GetRepo One repository; an old address redirects to the current one
	// (GET /repos/{owner}/{name})
	GetRepo(ctx context.Context, request GetRepoRequestObject) (GetRepoResponseObject, error)
	// ListDocs The repository's documents, README first, then docs/ in navigation order
	// (GET /repos/{owner}/{name}/docs)
	ListDocs(ctx context.Context, request ListDocsRequestObject) (ListDocsResponseObject, error)
	// GetDoc One rendered document
	// (GET /repos/{owner}/{name}/docs/{docId})
	GetDoc(ctx context.Context, request GetDocRequestObject) (GetDocResponseObject, error)
	// GetHistory The repository's stored history in graph order, one page at a time
	// (GET /repos/{owner}/{name}/history)
	GetHistory(ctx context.Context, request GetHistoryRequestObject) (GetHistoryResponseObject, error)
	// GetManifests The repository's package manifests, the technology they state and its internal dependencies
	// (GET /repos/{owner}/{name}/manifests)
	GetManifests(ctx context.Context, request GetManifestsRequestObject) (GetManifestsResponseObject, error)
	// GetRules The rules the portal judges by, in their current terms
	// (GET /rules)
	GetRules(ctx context.Context, request GetRulesRequestObject) (GetRulesResponseObject, error)
	// Search Search what the portal holds, best first, one page at a time
	// (GET /search)
	Search(ctx context.Context, request SearchRequestObject) (SearchResponseObject, error)
	// Suggest Up to 8 repositories, groups and documents whose names or titles start with the words, for a search box
	// (GET /search/suggest)
	Suggest(ctx context.Context, request SuggestRequestObject) (SuggestResponseObject, error)
	// GetSnapshot Data health; the web UI reads it to learn about new data
	// (GET /snapshot)
	GetSnapshot(ctx context.Context, request GetSnapshotRequestObject) (GetSnapshotResponseObject, error)
	// ListTools The read-only tools agents call, the same for every viewer
	// (GET /tools)
	ListTools(ctx context.Context, request ListToolsRequestObject) (ListToolsResponseObject, error)
}

StrictServerInterface represents all server handlers.

type Suggest200JSONResponse

type Suggest200JSONResponse struct {
	Body    Suggestions
	Headers Suggest200ResponseHeaders
}

func (Suggest200JSONResponse) VisitSuggestResponse

func (response Suggest200JSONResponse) VisitSuggestResponse(w http.ResponseWriter) error

type Suggest200ResponseHeaders

type Suggest200ResponseHeaders struct {
	ETag *string
}

type Suggest304Response

type Suggest304Response = NotModifiedResponse

func (Suggest304Response) VisitSuggestResponse

func (response Suggest304Response) VisitSuggestResponse(w http.ResponseWriter) error

type Suggest400ApplicationProblemPlusJSONResponse

type Suggest400ApplicationProblemPlusJSONResponse struct {
	BadRequestApplicationProblemPlusJSONResponse
}

func (Suggest400ApplicationProblemPlusJSONResponse) VisitSuggestResponse

func (response Suggest400ApplicationProblemPlusJSONResponse) VisitSuggestResponse(w http.ResponseWriter) error

type SuggestParams

type SuggestParams struct {
	Q string `form:"q" json:"q"`
}

SuggestParams defines parameters for Suggest.

type SuggestRequestObject

type SuggestRequestObject struct {
	Params SuggestParams
}

type SuggestResponseObject

type SuggestResponseObject interface {
	VisitSuggestResponse(w http.ResponseWriter) error
}

type Suggestions

type Suggestions struct {
	Hits []SearchHit `json:"hits"`
}

Suggestions defines model for Suggestions.

type Technology

type Technology struct {
	BuildTools []string            `json:"buildTools"`
	Languages  []string            `json:"languages"`
	Toolchains []ToolchainVersions `json:"toolchains"`
}

Technology defines model for Technology.

type TextPart

type TextPart struct {
	// Mark The part matched the query
	Mark *bool  `json:"mark,omitempty"`
	Text string `json:"text"`
}

TextPart defines model for TextPart.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type Tool

type Tool struct {
	Annotations ToolAnnotations `json:"annotations"`

	// Description For a model
	Description string `json:"description"`

	// InputSchema The JSON Schema of the tool's input
	InputSchema map[string]interface{} `json:"inputSchema"`

	// Name The tool's name: a-z, 0-9 and _
	Name string `json:"name"`

	// Title For people
	Title string `json:"title"`
}

Tool defines model for Tool.

type ToolAnnotations

type ToolAnnotations struct {
	// ReadOnly The tool changes nothing (every tool)
	ReadOnly bool `json:"readOnly"`

	// UntrustedContent What it returns holds text repositories wrote (every tool)
	UntrustedContent bool `json:"untrustedContent"`
}

ToolAnnotations defines model for ToolAnnotations.

type ToolList

type ToolList struct {
	Tools []Tool `json:"tools"`
}

ToolList defines model for ToolList.

type Toolchain

type Toolchain struct {
	Name    ToolchainName `json:"name"`
	Version string        `json:"version"`
}

Toolchain defines model for Toolchain.

type ToolchainName

type ToolchainName string

ToolchainName defines model for Toolchain.Name.

const (
	ToolchainNameGo     ToolchainName = "go"
	ToolchainNameJava   ToolchainName = "java"
	ToolchainNameNode   ToolchainName = "node"
	ToolchainNamePython ToolchainName = "python"
	ToolchainNameRust   ToolchainName = "rust"
)

Defines values for ToolchainName.

func (ToolchainName) Valid

func (e ToolchainName) Valid() bool

Valid indicates whether the value is a known member of the ToolchainName enum.

type ToolchainVersions

type ToolchainVersions struct {
	Name ToolchainVersionsName `json:"name"`

	// Versions Every version the manifests state
	Versions []string `json:"versions"`
}

ToolchainVersions defines model for ToolchainVersions.

type ToolchainVersionsName

type ToolchainVersionsName string

ToolchainVersionsName defines model for ToolchainVersions.Name.

const (
	ToolchainVersionsNameGo     ToolchainVersionsName = "go"
	ToolchainVersionsNameJava   ToolchainVersionsName = "java"
	ToolchainVersionsNameNode   ToolchainVersionsName = "node"
	ToolchainVersionsNamePython ToolchainVersionsName = "python"
	ToolchainVersionsNameRust   ToolchainVersionsName = "rust"
)

Defines values for ToolchainVersionsName.

func (ToolchainVersionsName) Valid

func (e ToolchainVersionsName) Valid() bool

Valid indicates whether the value is a known member of the ToolchainVersionsName enum.

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type Work

type Work = []WorkKind

Work The work that counts: one or more kinds

func WorkOrDefault

func WorkOrDefault(w *Work, def Work) Work

WorkOrDefault is the known kinds w names, once each and in the contract's order (hand, ai, automation); def when it names none.

type WorkKind

type WorkKind string

WorkKind A kind of work: people's by hand, people's with an AI, or maintenance by automation (bots and sweeps)

const (
	WorkKindAi         WorkKind = "ai"
	WorkKindAutomation WorkKind = "automation"
	WorkKindHand       WorkKind = "hand"
)

Defines values for WorkKind.

func (WorkKind) Valid

func (e WorkKind) Valid() bool

Valid indicates whether the value is a known member of the WorkKind enum.

Jump to

Keyboard shortcuts

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