Documentation
¶
Overview ¶
Package api serves strata's HTTP API. The OpenAPI spec in api/openapi.yaml is the source of truth: types and the strict server interface are generated from it, and handlers here satisfy that interface by calling the service.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSpec() (swagger *openapi3.T, err error)
- func GetSpecJSON() ([]byte, error)
- func GetSwagger() (*openapi3.T, error)deprecated
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler
- func New(svc *service.Service, opts Options) (http.Handler, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type BadRequest
- type BadRequestJSONResponse
- type BaseVersion
- type BaseVersionConfidence
- type BaseVersionSource
- type Budget
- type BuiltFrom
- type BuiltFromStatus
- type Change
- type Cleanup
- type CleanupCandidate
- type CleanupRepo
- type CleanupScope
- type ConfigInfo
- type CrawlStats
- type DescendantResult
- type Edge
- type EdgeConfidence
- type EdgeSource
- type Error
- type ErrorJSONResponse
- type Explanation
- type Facet
- type FacetValue
- type Filter
- type GetAncestry200JSONResponse
- type GetAncestry404JSONResponse
- type GetAncestryParams
- type GetAncestryRequestObject
- type GetAncestryResponseObject
- type GetAncestrydefaultJSONResponse
- type GetCleanup200JSONResponse
- type GetCleanup200TextcsvResponse
- type GetCleanup400JSONResponse
- type GetCleanupParams
- type GetCleanupParamsFormat
- type GetCleanupParamsScope
- type GetCleanupRequestObject
- type GetCleanupResponseObject
- type GetCleanupdefaultJSONResponse
- type GetDescendants200JSONResponse
- type GetDescendants404JSONResponse
- type GetDescendantsParams
- type GetDescendantsRequestObject
- type GetDescendantsResponseObject
- type GetDescendantsdefaultJSONResponse
- type GetHealth200JSONResponse
- type GetHealthRequestObject
- type GetHealthResponseObject
- type GetHealthdefaultJSONResponse
- type GetImage200JSONResponse
- type GetImage404JSONResponse
- type GetImageParams
- type GetImageRequestObject
- type GetImageResponseObject
- type GetImagedefaultJSONResponse
- type GetLifecycles200JSONResponse
- type GetLifecycles400JSONResponse
- type GetLifecyclesParams
- type GetLifecyclesRequestObject
- type GetLifecyclesResponseObject
- type GetLifecyclesdefaultJSONResponse
- type GetMap200JSONResponse
- type GetMapParams
- type GetMapRequestObject
- type GetMapResponseObject
- type GetMapdefaultJSONResponse
- type GetOutline200JSONResponse
- type GetOutline400JSONResponse
- type GetOutlineParams
- type GetOutlineRequestObject
- type GetOutlineResponseObject
- type GetOutlinedefaultJSONResponse
- type GetOverview200JSONResponse
- type GetOverviewRequestObject
- type GetOverviewResponseObject
- type GetOverviewdefaultJSONResponse
- type GetQueryGraph200JSONResponse
- type GetQueryGraph400JSONResponse
- type GetQueryGraphParams
- type GetQueryGraphRequestObject
- type GetQueryGraphResponseObject
- type GetQueryGraphdefaultJSONResponse
- type GetRoots200JSONResponse
- type GetRootsRequestObject
- type GetRootsResponseObject
- type GetRootsdefaultJSONResponse
- type GetStale200JSONResponse
- type GetStale400JSONResponse
- type GetStaleParams
- type GetStaleRequestObject
- type GetStaleResponseObject
- type GetStaledefaultJSONResponse
- type GetStatus200JSONResponse
- type GetStatusRequestObject
- type GetStatusResponseObject
- type GetStatusdefaultJSONResponse
- type GetSummary200JSONResponse
- type GetSummary400JSONResponse
- type GetSummaryParams
- type GetSummaryRequestObject
- type GetSummaryResponseObject
- type GetSummarydefaultJSONResponse
- type Graph
- type GraphKind
- type GroupBy
- type GroupMetrics
- type Health
- type HealthStatus
- type HistoryEntry
- type ImageInfo
- type IndexStatus
- type InvalidParamFormatError
- type LayerInfo
- type Lifecycle
- type Limit
- type LineageInfo
- type LineageInfoStatus
- type MiddlewareFunc
- type Node
- type NodeKind
- type NotFound
- type NotFoundJSONResponse
- type Offset
- type Options
- type Outline
- type OutlineRow
- type OutlineRowKind
- type Overview
- type Platform
- type Ref
- type Referrer
- type ReferrerKind
- type RefreshStats
- type RequiredHeaderError
- type RequiredParamError
- type ResolveRef200JSONResponse
- type ResolveRef404JSONResponse
- type ResolveRefParams
- type ResolveRefRequestObject
- type ResolveRefResponseObject
- type ResolveRefdefaultJSONResponse
- type Resolved
- type Root
- type RootStat
- type RunQuery200JSONResponse
- type RunQuery400JSONResponse
- type RunQueryParams
- type RunQueryRequestObject
- type RunQueryResponseObject
- type RunQuerydefaultJSONResponse
- type Search200JSONResponse
- type Search400JSONResponse
- type SearchHit
- type SearchParams
- type SearchParamsAge
- type SearchParamsPushed
- type SearchRequestObject
- type SearchResponseObject
- type SearchResult
- type SearchdefaultJSONResponse
- type ServeMux
- type Server
- func (s *Server) GetAncestry(ctx context.Context, r GetAncestryRequestObject) (GetAncestryResponseObject, error)
- func (s *Server) GetCleanup(ctx context.Context, r GetCleanupRequestObject) (GetCleanupResponseObject, error)
- func (s *Server) GetDescendants(ctx context.Context, r GetDescendantsRequestObject) (GetDescendantsResponseObject, error)
- func (s *Server) GetHealth(ctx context.Context, _ GetHealthRequestObject) (GetHealthResponseObject, error)
- func (s *Server) GetImage(ctx context.Context, r GetImageRequestObject) (GetImageResponseObject, error)
- func (s *Server) GetLifecycles(ctx context.Context, r GetLifecyclesRequestObject) (GetLifecyclesResponseObject, error)
- func (s *Server) GetMap(ctx context.Context, r GetMapRequestObject) (GetMapResponseObject, error)
- func (s *Server) GetOutline(ctx context.Context, r GetOutlineRequestObject) (GetOutlineResponseObject, error)
- func (s *Server) GetOverview(ctx context.Context, _ GetOverviewRequestObject) (GetOverviewResponseObject, error)
- func (s *Server) GetQueryGraph(ctx context.Context, r GetQueryGraphRequestObject) (GetQueryGraphResponseObject, error)
- func (s *Server) GetRoots(ctx context.Context, _ GetRootsRequestObject) (GetRootsResponseObject, error)
- func (s *Server) GetStale(ctx context.Context, r GetStaleRequestObject) (GetStaleResponseObject, error)
- func (s *Server) GetStatus(_ context.Context, _ GetStatusRequestObject) (GetStatusResponseObject, error)
- func (s *Server) GetSummary(ctx context.Context, r GetSummaryRequestObject) (GetSummaryResponseObject, error)
- func (s *Server) ResolveRef(ctx context.Context, r ResolveRefRequestObject) (ResolveRefResponseObject, error)
- func (s *Server) RunQuery(ctx context.Context, r RunQueryRequestObject) (RunQueryResponseObject, error)
- func (s *Server) Search(ctx context.Context, r SearchRequestObject) (SearchResponseObject, error)
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) GetAncestry(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetCleanup(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetDescendants(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetImage(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetLifecycles(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetMap(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOutline(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetOverview(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetQueryGraph(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetRoots(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStale(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetStatus(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetSummary(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) ResolveRef(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) RunQuery(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) Search(w http.ResponseWriter, r *http.Request)
- type StalenessInfo
- type StdHTTPServerOptions
- type StrictHTTPServerOptions
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type Summary
- type Table
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshalingParamError
- type Verdict
- type VerdictCounts
Constants ¶
const ReadHeaderTimeout = 10 * time.Second
ReadHeaderTimeout bounds slow clients.
Variables ¶
This section is empty.
Functions ¶
func GetSpec ¶
GetSpec returns the OpenAPI specification corresponding to the generated code in this file. External references in the spec are resolved through PathToRawSpec; externally-referenced files must be embedded in their corresponding Go packages (via the import-mapping feature). URL-based external refs are not supported.
func GetSpecJSON ¶
GetSpecJSON returns the raw JSON bytes of the embedded OpenAPI specification: decompressed but not unmarshaled. External references are not resolved here; the bytes are the spec exactly as embedded by codegen. The result is cached at package init time, so repeated calls are cheap.
func GetSwagger
deprecated
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
Types ¶
type BadRequestJSONResponse ¶
type BadRequestJSONResponse Error
type BaseVersion ¶
type BaseVersion struct {
Children int `json:"children"`
Confidence BaseVersionConfidence `json:"confidence"`
Current bool `json:"current"`
Descendants int `json:"descendants"`
Digest string `json:"digest"`
Label string `json:"label"`
Source BaseVersionSource `json:"source"`
}
BaseVersion One digest a base tag has held, and how much is built on it
type BaseVersionConfidence ¶
type BaseVersionConfidence string
BaseVersionConfidence defines model for BaseVersion.Confidence.
const ( BaseVersionConfidenceDeclared BaseVersionConfidence = "declared" BaseVersionConfidenceExact BaseVersionConfidence = "exact" BaseVersionConfidenceInferred BaseVersionConfidence = "inferred" )
Defines values for BaseVersionConfidence.
func (BaseVersionConfidence) Valid ¶
func (e BaseVersionConfidence) Valid() bool
Valid indicates whether the value is a known member of the BaseVersionConfidence enum.
type BaseVersionSource ¶
type BaseVersionSource string
BaseVersionSource defines model for BaseVersion.Source.
const ( BaseVersionSourceFile BaseVersionSource = "file" BaseVersionSourceRepo BaseVersionSource = "repo" BaseVersionSourceTag BaseVersionSource = "tag" BaseVersionSourceTagHistory BaseVersionSource = "tag_history" )
Defines values for BaseVersionSource.
func (BaseVersionSource) Valid ¶
func (e BaseVersionSource) Valid() bool
Valid indicates whether the value is a known member of the BaseVersionSource enum.
type BuiltFrom ¶ added in v0.3.1
type BuiltFrom struct {
// Digest The digest the build resolved it to
Digest *string `json:"digest,omitempty"`
// Reason Why a missing base could not be fetched
Reason *string `json:"reason,omitempty"`
// Ref repo:tag as the build named it
Ref string `json:"ref"`
// Status parent: built on it; stage: another build stage's image; missing: could not be fetched; pending: the next index fetches it
Status BuiltFromStatus `json:"status"`
}
BuiltFrom An image a build pulled, by its BuildKit provenance
type BuiltFromStatus ¶ added in v0.3.1
type BuiltFromStatus string
BuiltFromStatus parent: built on it; stage: another build stage's image; missing: could not be fetched; pending: the next index fetches it
const ( Missing BuiltFromStatus = "missing" Parent BuiltFromStatus = "parent" Pending BuiltFromStatus = "pending" Stage BuiltFromStatus = "stage" )
Defines values for BuiltFromStatus.
func (BuiltFromStatus) Valid ¶ added in v0.3.1
func (e BuiltFromStatus) Valid() bool
Valid indicates whether the value is a known member of the BuiltFromStatus enum.
type Change ¶
type Change struct {
From float32 `json:"from"`
Group string `json:"group"`
Kind string `json:"kind"`
Metric *string `json:"metric,omitempty"`
To float32 `json:"to"`
}
Change One line of a diff between snapshots
type Cleanup ¶ added in v0.3.0
type Cleanup struct {
Candidates []CleanupCandidate `json:"candidates"`
// Held Matching images kept because kept images are built on them or share their index
Held int `json:"held"`
// Images Platform images in the candidates
Images int `json:"images"`
// ReclaimableBytes Layers freed, each once, none a kept image uses
ReclaimableBytes int64 `json:"reclaimable_bytes"`
// RepoCount Every repo with candidates
RepoCount int `json:"repo_count"`
// Repos Repos with candidates, most reclaimable first, capped by limit
Repos []CleanupRepo `json:"repos"`
Scope CleanupScope `json:"scope"`
// Size Sizes the manifests state, a shared layer counted per image
Size int64 `json:"size"`
// Total Candidates: manifests or whole indexes
Total int `json:"total"`
Where string `json:"where"`
}
Cleanup Deletion candidates and what deleting them frees
type CleanupCandidate ¶ added in v0.3.0
type CleanupCandidate struct {
Digest string `json:"digest"`
// ExclusiveBytes Freed by deleting this candidate alone
ExclusiveBytes int64 `json:"exclusive_bytes"`
Images int `json:"images"`
LastPulledDays *int `json:"last_pulled_days"`
PushedDays *int `json:"pushed_days"`
Reason string `json:"reason"`
Repo string `json:"repo"`
Size int64 `json:"size"`
Verdict string `json:"verdict"`
}
CleanupCandidate A manifest or index that can be deleted
type CleanupRepo ¶ added in v0.3.0
type CleanupRepo struct {
Candidates int `json:"candidates"`
ReclaimableBytes int64 `json:"reclaimable_bytes"`
Repo string `json:"repo"`
Size int64 `json:"size"`
}
CleanupRepo Candidates of one repo
type CleanupScope ¶ added in v0.3.0
type CleanupScope string
CleanupScope defines model for Cleanup.Scope.
const ( CleanupScopeRegistry CleanupScope = "registry" CleanupScopeRepo CleanupScope = "repo" )
Defines values for CleanupScope.
func (CleanupScope) Valid ¶ added in v0.3.0
func (e CleanupScope) Valid() bool
Valid indicates whether the value is a known member of the CleanupScope enum.
type ConfigInfo ¶
type ConfigInfo struct {
Cmd []string `json:"cmd"`
Entrypoint []string `json:"entrypoint"`
EnvKeys []string `json:"env_keys"`
EnvValues *map[string]string `json:"env_values,omitempty"`
Healthcheck bool `json:"healthcheck"`
Ports []string `json:"ports"`
StopSignal string `json:"stop_signal"`
User string `json:"user"`
Workdir string `json:"workdir"`
}
ConfigInfo Run-time fields from the image config; environment values are never stored except allowlisted ones
type CrawlStats ¶ added in v0.2.0
type CrawlStats struct {
// BasesFetched Bases fetched by digest because provenance named them
BasesFetched *int64 `json:"bases_fetched,omitempty"`
// BasesMissing Bases provenance named that could not be fetched
BasesMissing *int64 `json:"bases_missing,omitempty"`
ImagesFiltered int64 `json:"images_filtered"`
NewImages int64 `json:"new_images"`
// ProvenanceBackfilled Already indexed images whose provenance this crawl read
ProvenanceBackfilled *int64 `json:"provenance_backfilled,omitempty"`
Referrers int64 `json:"referrers"`
// Repos Repos crawled so far
Repos int64 `json:"repos"`
ReposFiltered int64 `json:"repos_filtered"`
// ReposResumed Repos an earlier run already finished
ReposResumed int64 `json:"repos_resumed"`
// ReposTotal Repos this crawl visits, once listed
ReposTotal int64 `json:"repos_total"`
Requests int64 `json:"requests"`
TagMoves int64 `json:"tag_moves"`
Tags int64 `json:"tags"`
TagsFiltered int64 `json:"tags_filtered"`
}
CrawlStats Running totals of a crawl
type DescendantResult ¶
type DescendantResult struct {
// Graph A lineage graph: an ancestry chain, a descendant tree, a query graph or the registry map
Graph Graph `json:"graph"`
Images int `json:"images"`
Versions []BaseVersion `json:"versions"`
}
DescendantResult A descendant graph and the base versions it starts from
type Edge ¶
type Edge struct {
Child string `json:"child"`
Confidence *EdgeConfidence `json:"confidence,omitempty"`
Conflict *bool `json:"conflict,omitempty"`
Parent string `json:"parent"`
Source EdgeSource `json:"source"`
}
Edge A child-to-parent lineage edge with how it was found
type EdgeConfidence ¶
type EdgeConfidence string
EdgeConfidence defines model for Edge.Confidence.
const ( EdgeConfidenceDeclared EdgeConfidence = "declared" EdgeConfidenceExact EdgeConfidence = "exact" EdgeConfidenceInferred EdgeConfidence = "inferred" )
Defines values for EdgeConfidence.
func (EdgeConfidence) Valid ¶
func (e EdgeConfidence) Valid() bool
Valid indicates whether the value is a known member of the EdgeConfidence enum.
type EdgeSource ¶
type EdgeSource string
EdgeSource defines model for Edge.Source.
const ( EdgeSourceAnnotation EdgeSource = "annotation" EdgeSourceAttestation EdgeSource = "attestation" EdgeSourceLabel EdgeSource = "label" EdgeSourceLayers EdgeSource = "layers" )
Defines values for EdgeSource.
func (EdgeSource) Valid ¶
func (e EdgeSource) Valid() bool
Valid indicates whether the value is a known member of the EdgeSource enum.
type ErrorJSONResponse ¶
type ErrorJSONResponse Error
type Explanation ¶
type Explanation struct {
Findings []string `json:"findings"`
History *[]HistoryEntry `json:"history,omitempty"`
// Image What the index knows about one image
Image ImageInfo `json:"image"`
Layers []LayerInfo `json:"layers"`
// Lineage Where an image sits in the lineage graph, with the evidence for its parent
Lineage LineageInfo `json:"lineage"`
Referrers []Referrer `json:"referrers"`
// Staleness A staleness verdict with the reasons behind it
Staleness StalenessInfo `json:"staleness"`
}
Explanation Everything known about one image
type Facet ¶
type Facet struct {
// Field The query-language field the facet filters
Field string `json:"field"`
Name string `json:"name"`
Values []FacetValue `json:"values"`
}
Facet A field the search can be narrowed by
type FacetValue ¶
type FacetValue struct {
Count int64 `json:"count"`
Selected bool `json:"selected"`
Value string `json:"value"`
}
FacetValue One value of a facet and how many images have it
type GetAncestry200JSONResponse ¶
type GetAncestry200JSONResponse Graph
func (GetAncestry200JSONResponse) VisitGetAncestryResponse ¶
func (response GetAncestry200JSONResponse) VisitGetAncestryResponse(w http.ResponseWriter) error
type GetAncestry404JSONResponse ¶
type GetAncestry404JSONResponse struct{ NotFoundJSONResponse }
func (GetAncestry404JSONResponse) VisitGetAncestryResponse ¶
func (response GetAncestry404JSONResponse) VisitGetAncestryResponse(w http.ResponseWriter) error
type GetAncestryParams ¶
type GetAncestryParams struct {
// Ref repo:tag, repo@digest, a digest or a digest prefix
Ref Ref `form:"ref" json:"ref"`
// Platform Platform to pick when the ref names a multi-platform index, such as linux/arm64
Platform *Platform `form:"platform,omitempty" json:"platform,omitempty"`
}
GetAncestryParams defines parameters for GetAncestry.
type GetAncestryRequestObject ¶
type GetAncestryRequestObject struct {
Params GetAncestryParams
}
type GetAncestryResponseObject ¶
type GetAncestryResponseObject interface {
VisitGetAncestryResponse(w http.ResponseWriter) error
}
type GetAncestrydefaultJSONResponse ¶
func (GetAncestrydefaultJSONResponse) VisitGetAncestryResponse ¶
func (response GetAncestrydefaultJSONResponse) VisitGetAncestryResponse(w http.ResponseWriter) error
type GetCleanup200JSONResponse ¶ added in v0.3.0
type GetCleanup200JSONResponse Cleanup
func (GetCleanup200JSONResponse) VisitGetCleanupResponse ¶ added in v0.3.0
func (response GetCleanup200JSONResponse) VisitGetCleanupResponse(w http.ResponseWriter) error
type GetCleanup200TextcsvResponse ¶ added in v0.3.0
func (GetCleanup200TextcsvResponse) VisitGetCleanupResponse ¶ added in v0.3.0
func (response GetCleanup200TextcsvResponse) VisitGetCleanupResponse(w http.ResponseWriter) error
type GetCleanup400JSONResponse ¶ added in v0.3.0
type GetCleanup400JSONResponse struct{ BadRequestJSONResponse }
func (GetCleanup400JSONResponse) VisitGetCleanupResponse ¶ added in v0.3.0
func (response GetCleanup400JSONResponse) VisitGetCleanupResponse(w http.ResponseWriter) error
type GetCleanupParams ¶ added in v0.3.0
type GetCleanupParams struct {
// Where Select candidates with the query language; empty means stale = "abandoned"
Where *string `form:"where,omitempty" json:"where,omitempty"`
// Scope Count a layer as freed when no kept image in the registry, or in the same repo, uses it
Scope *GetCleanupParamsScope `form:"scope,omitempty" json:"scope,omitempty"`
// Limit Most candidates and repos to list, largest first; totals count them all. 0 lists all.
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// Format json, or csv to export every candidate
Format *GetCleanupParamsFormat `form:"format,omitempty" json:"format,omitempty"`
}
GetCleanupParams defines parameters for GetCleanup.
type GetCleanupParamsFormat ¶ added in v0.3.0
type GetCleanupParamsFormat string
GetCleanupParamsFormat defines parameters for GetCleanup.
const ( Csv GetCleanupParamsFormat = "csv" Json GetCleanupParamsFormat = "json" )
Defines values for GetCleanupParamsFormat.
func (GetCleanupParamsFormat) Valid ¶ added in v0.3.0
func (e GetCleanupParamsFormat) Valid() bool
Valid indicates whether the value is a known member of the GetCleanupParamsFormat enum.
type GetCleanupParamsScope ¶ added in v0.3.0
type GetCleanupParamsScope string
GetCleanupParamsScope defines parameters for GetCleanup.
const ( GetCleanupParamsScopeRegistry GetCleanupParamsScope = "registry" GetCleanupParamsScopeRepo GetCleanupParamsScope = "repo" )
Defines values for GetCleanupParamsScope.
func (GetCleanupParamsScope) Valid ¶ added in v0.3.0
func (e GetCleanupParamsScope) Valid() bool
Valid indicates whether the value is a known member of the GetCleanupParamsScope enum.
type GetCleanupRequestObject ¶ added in v0.3.0
type GetCleanupRequestObject struct {
Params GetCleanupParams
}
type GetCleanupResponseObject ¶ added in v0.3.0
type GetCleanupResponseObject interface {
VisitGetCleanupResponse(w http.ResponseWriter) error
}
type GetCleanupdefaultJSONResponse ¶ added in v0.3.0
func (GetCleanupdefaultJSONResponse) VisitGetCleanupResponse ¶ added in v0.3.0
func (response GetCleanupdefaultJSONResponse) VisitGetCleanupResponse(w http.ResponseWriter) error
type GetDescendants200JSONResponse ¶
type GetDescendants200JSONResponse DescendantResult
func (GetDescendants200JSONResponse) VisitGetDescendantsResponse ¶
func (response GetDescendants200JSONResponse) VisitGetDescendantsResponse(w http.ResponseWriter) error
type GetDescendants404JSONResponse ¶
type GetDescendants404JSONResponse struct{ NotFoundJSONResponse }
func (GetDescendants404JSONResponse) VisitGetDescendantsResponse ¶
func (response GetDescendants404JSONResponse) VisitGetDescendantsResponse(w http.ResponseWriter) error
type GetDescendantsParams ¶
type GetDescendantsParams struct {
// Ref repo:tag, repo@digest, a digest or a digest prefix
Ref Ref `form:"ref" json:"ref"`
// Platform Platform to pick when the ref names a multi-platform index, such as linux/arm64
Platform *Platform `form:"platform,omitempty" json:"platform,omitempty"`
// Depth Levels below the base; 0 means the whole subtree
Depth *int `form:"depth,omitempty" json:"depth,omitempty"`
// AllVersions Match every digest the base tag has held
AllVersions *bool `form:"all_versions,omitempty" json:"all_versions,omitempty"`
// Budget Maximum graph nodes
Budget *Budget `form:"budget,omitempty" json:"budget,omitempty"`
}
GetDescendantsParams defines parameters for GetDescendants.
type GetDescendantsRequestObject ¶
type GetDescendantsRequestObject struct {
Params GetDescendantsParams
}
type GetDescendantsResponseObject ¶
type GetDescendantsResponseObject interface {
VisitGetDescendantsResponse(w http.ResponseWriter) error
}
type GetDescendantsdefaultJSONResponse ¶
func (GetDescendantsdefaultJSONResponse) VisitGetDescendantsResponse ¶
func (response GetDescendantsdefaultJSONResponse) VisitGetDescendantsResponse(w http.ResponseWriter) error
type GetHealth200JSONResponse ¶
type GetHealth200JSONResponse Health
func (GetHealth200JSONResponse) VisitGetHealthResponse ¶
func (response GetHealth200JSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error
type GetHealthRequestObject ¶
type GetHealthRequestObject struct {
}
type GetHealthResponseObject ¶
type GetHealthResponseObject interface {
VisitGetHealthResponse(w http.ResponseWriter) error
}
type GetHealthdefaultJSONResponse ¶
func (GetHealthdefaultJSONResponse) VisitGetHealthResponse ¶
func (response GetHealthdefaultJSONResponse) VisitGetHealthResponse(w http.ResponseWriter) error
type GetImage200JSONResponse ¶
type GetImage200JSONResponse Explanation
func (GetImage200JSONResponse) VisitGetImageResponse ¶
func (response GetImage200JSONResponse) VisitGetImageResponse(w http.ResponseWriter) error
type GetImage404JSONResponse ¶
type GetImage404JSONResponse struct{ NotFoundJSONResponse }
func (GetImage404JSONResponse) VisitGetImageResponse ¶
func (response GetImage404JSONResponse) VisitGetImageResponse(w http.ResponseWriter) error
type GetImageParams ¶
type GetImageParams struct {
// History Include the build steps from the config history
History *bool `form:"history,omitempty" json:"history,omitempty"`
}
GetImageParams defines parameters for GetImage.
type GetImageRequestObject ¶
type GetImageRequestObject struct {
Digest string `json:"digest"`
Params GetImageParams
}
type GetImageResponseObject ¶
type GetImageResponseObject interface {
VisitGetImageResponse(w http.ResponseWriter) error
}
type GetImagedefaultJSONResponse ¶
func (GetImagedefaultJSONResponse) VisitGetImageResponse ¶
func (response GetImagedefaultJSONResponse) VisitGetImageResponse(w http.ResponseWriter) error
type GetLifecycles200JSONResponse ¶ added in v0.3.0
type GetLifecycles200JSONResponse []Lifecycle
func (GetLifecycles200JSONResponse) VisitGetLifecyclesResponse ¶ added in v0.3.0
func (response GetLifecycles200JSONResponse) VisitGetLifecyclesResponse(w http.ResponseWriter) error
type GetLifecycles400JSONResponse ¶ added in v0.3.0
type GetLifecycles400JSONResponse struct{ BadRequestJSONResponse }
func (GetLifecycles400JSONResponse) VisitGetLifecyclesResponse ¶ added in v0.3.0
func (response GetLifecycles400JSONResponse) VisitGetLifecyclesResponse(w http.ResponseWriter) error
type GetLifecyclesParams ¶ added in v0.3.0
type GetLifecyclesParams struct {
// Repo Only repos matching these globs, with the host
Repo *[]string `form:"repo,omitempty" json:"repo,omitempty"`
// Days Expire untagged images pushed more than this many days ago; 0 uses the policy
Days *int `form:"days,omitempty" json:"days,omitempty"`
// IncludeConflicts Write a repo's rule even when it would expire images strata keeps
IncludeConflicts *bool `form:"include_conflicts,omitempty" json:"include_conflicts,omitempty"`
}
GetLifecyclesParams defines parameters for GetLifecycles.
type GetLifecyclesRequestObject ¶ added in v0.3.0
type GetLifecyclesRequestObject struct {
Params GetLifecyclesParams
}
type GetLifecyclesResponseObject ¶ added in v0.3.0
type GetLifecyclesResponseObject interface {
VisitGetLifecyclesResponse(w http.ResponseWriter) error
}
type GetLifecyclesdefaultJSONResponse ¶ added in v0.3.0
func (GetLifecyclesdefaultJSONResponse) VisitGetLifecyclesResponse ¶ added in v0.3.0
func (response GetLifecyclesdefaultJSONResponse) VisitGetLifecyclesResponse(w http.ResponseWriter) error
type GetMap200JSONResponse ¶
type GetMap200JSONResponse []OutlineRow
func (GetMap200JSONResponse) VisitGetMapResponse ¶
func (response GetMap200JSONResponse) VisitGetMapResponse(w http.ResponseWriter) error
type GetMapParams ¶
type GetMapParams struct {
// Depth Levels below the roots
Depth *int `form:"depth,omitempty" json:"depth,omitempty"`
}
GetMapParams defines parameters for GetMap.
type GetMapRequestObject ¶
type GetMapRequestObject struct {
Params GetMapParams
}
type GetMapResponseObject ¶
type GetMapResponseObject interface {
VisitGetMapResponse(w http.ResponseWriter) error
}
type GetMapdefaultJSONResponse ¶
func (GetMapdefaultJSONResponse) VisitGetMapResponse ¶
func (response GetMapdefaultJSONResponse) VisitGetMapResponse(w http.ResponseWriter) error
type GetOutline200JSONResponse ¶
type GetOutline200JSONResponse Outline
func (GetOutline200JSONResponse) VisitGetOutlineResponse ¶
func (response GetOutline200JSONResponse) VisitGetOutlineResponse(w http.ResponseWriter) error
type GetOutline400JSONResponse ¶
type GetOutline400JSONResponse struct{ BadRequestJSONResponse }
func (GetOutline400JSONResponse) VisitGetOutlineResponse ¶
func (response GetOutline400JSONResponse) VisitGetOutlineResponse(w http.ResponseWriter) error
type GetOutlineParams ¶
type GetOutlineParams struct {
// Parent Outline row id to expand; empty for the roots
Parent *string `form:"parent,omitempty" json:"parent,omitempty"`
// OnlyStale Only rows holding stale or abandoned images
OnlyStale *bool `form:"only_stale,omitempty" json:"only_stale,omitempty"`
// Offset Rows to skip
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Rows to return
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
GetOutlineParams defines parameters for GetOutline.
type GetOutlineRequestObject ¶
type GetOutlineRequestObject struct {
Params GetOutlineParams
}
type GetOutlineResponseObject ¶
type GetOutlineResponseObject interface {
VisitGetOutlineResponse(w http.ResponseWriter) error
}
type GetOutlinedefaultJSONResponse ¶
func (GetOutlinedefaultJSONResponse) VisitGetOutlineResponse ¶
func (response GetOutlinedefaultJSONResponse) VisitGetOutlineResponse(w http.ResponseWriter) error
type GetOverview200JSONResponse ¶
type GetOverview200JSONResponse Overview
func (GetOverview200JSONResponse) VisitGetOverviewResponse ¶
func (response GetOverview200JSONResponse) VisitGetOverviewResponse(w http.ResponseWriter) error
type GetOverviewRequestObject ¶
type GetOverviewRequestObject struct {
}
type GetOverviewResponseObject ¶
type GetOverviewResponseObject interface {
VisitGetOverviewResponse(w http.ResponseWriter) error
}
type GetOverviewdefaultJSONResponse ¶
func (GetOverviewdefaultJSONResponse) VisitGetOverviewResponse ¶
func (response GetOverviewdefaultJSONResponse) VisitGetOverviewResponse(w http.ResponseWriter) error
type GetQueryGraph200JSONResponse ¶
type GetQueryGraph200JSONResponse Graph
func (GetQueryGraph200JSONResponse) VisitGetQueryGraphResponse ¶
func (response GetQueryGraph200JSONResponse) VisitGetQueryGraphResponse(w http.ResponseWriter) error
type GetQueryGraph400JSONResponse ¶
type GetQueryGraph400JSONResponse struct{ BadRequestJSONResponse }
func (GetQueryGraph400JSONResponse) VisitGetQueryGraphResponse ¶
func (response GetQueryGraph400JSONResponse) VisitGetQueryGraphResponse(w http.ResponseWriter) error
type GetQueryGraphParams ¶
type GetQueryGraphParams struct {
// Filter A filter in strata's query language; empty matches every image
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
// Budget Maximum graph nodes
Budget *Budget `form:"budget,omitempty" json:"budget,omitempty"`
}
GetQueryGraphParams defines parameters for GetQueryGraph.
type GetQueryGraphRequestObject ¶
type GetQueryGraphRequestObject struct {
Params GetQueryGraphParams
}
type GetQueryGraphResponseObject ¶
type GetQueryGraphResponseObject interface {
VisitGetQueryGraphResponse(w http.ResponseWriter) error
}
type GetQueryGraphdefaultJSONResponse ¶
func (GetQueryGraphdefaultJSONResponse) VisitGetQueryGraphResponse ¶
func (response GetQueryGraphdefaultJSONResponse) VisitGetQueryGraphResponse(w http.ResponseWriter) error
type GetRoots200JSONResponse ¶
type GetRoots200JSONResponse []Root
func (GetRoots200JSONResponse) VisitGetRootsResponse ¶
func (response GetRoots200JSONResponse) VisitGetRootsResponse(w http.ResponseWriter) error
type GetRootsRequestObject ¶
type GetRootsRequestObject struct {
}
type GetRootsResponseObject ¶
type GetRootsResponseObject interface {
VisitGetRootsResponse(w http.ResponseWriter) error
}
type GetRootsdefaultJSONResponse ¶
func (GetRootsdefaultJSONResponse) VisitGetRootsResponse ¶
func (response GetRootsdefaultJSONResponse) VisitGetRootsResponse(w http.ResponseWriter) error
type GetStale200JSONResponse ¶
type GetStale200JSONResponse Table
func (GetStale200JSONResponse) VisitGetStaleResponse ¶
func (response GetStale200JSONResponse) VisitGetStaleResponse(w http.ResponseWriter) error
type GetStale400JSONResponse ¶
type GetStale400JSONResponse struct{ BadRequestJSONResponse }
func (GetStale400JSONResponse) VisitGetStaleResponse ¶
func (response GetStale400JSONResponse) VisitGetStaleResponse(w http.ResponseWriter) error
type GetStaleParams ¶
type GetStaleParams struct {
// GroupBy Field to group by, such as repo, root or label.team
GroupBy *GroupBy `form:"group_by,omitempty" json:"group_by,omitempty"`
}
GetStaleParams defines parameters for GetStale.
type GetStaleRequestObject ¶
type GetStaleRequestObject struct {
Params GetStaleParams
}
type GetStaleResponseObject ¶
type GetStaleResponseObject interface {
VisitGetStaleResponse(w http.ResponseWriter) error
}
type GetStaledefaultJSONResponse ¶
func (GetStaledefaultJSONResponse) VisitGetStaleResponse ¶
func (response GetStaledefaultJSONResponse) VisitGetStaleResponse(w http.ResponseWriter) error
type GetStatus200JSONResponse ¶ added in v0.2.0
type GetStatus200JSONResponse IndexStatus
func (GetStatus200JSONResponse) VisitGetStatusResponse ¶ added in v0.2.0
func (response GetStatus200JSONResponse) VisitGetStatusResponse(w http.ResponseWriter) error
type GetStatusRequestObject ¶ added in v0.2.0
type GetStatusRequestObject struct {
}
type GetStatusResponseObject ¶ added in v0.2.0
type GetStatusResponseObject interface {
VisitGetStatusResponse(w http.ResponseWriter) error
}
type GetStatusdefaultJSONResponse ¶ added in v0.2.0
func (GetStatusdefaultJSONResponse) VisitGetStatusResponse ¶ added in v0.2.0
func (response GetStatusdefaultJSONResponse) VisitGetStatusResponse(w http.ResponseWriter) error
type GetSummary200JSONResponse ¶
type GetSummary200JSONResponse Summary
func (GetSummary200JSONResponse) VisitGetSummaryResponse ¶
func (response GetSummary200JSONResponse) VisitGetSummaryResponse(w http.ResponseWriter) error
type GetSummary400JSONResponse ¶
type GetSummary400JSONResponse struct{ BadRequestJSONResponse }
func (GetSummary400JSONResponse) VisitGetSummaryResponse ¶
func (response GetSummary400JSONResponse) VisitGetSummaryResponse(w http.ResponseWriter) error
type GetSummaryParams ¶
type GetSummaryParams struct {
// GroupBy Field to group by, such as repo, root or label.team
GroupBy *GroupBy `form:"group_by,omitempty" json:"group_by,omitempty"`
}
GetSummaryParams defines parameters for GetSummary.
type GetSummaryRequestObject ¶
type GetSummaryRequestObject struct {
Params GetSummaryParams
}
type GetSummaryResponseObject ¶
type GetSummaryResponseObject interface {
VisitGetSummaryResponse(w http.ResponseWriter) error
}
type GetSummarydefaultJSONResponse ¶
func (GetSummarydefaultJSONResponse) VisitGetSummaryResponse ¶
func (response GetSummarydefaultJSONResponse) VisitGetSummaryResponse(w http.ResponseWriter) error
type Graph ¶
type Graph struct {
Edges []Edge `json:"edges"`
Hidden *int `json:"hidden,omitempty"`
Kind GraphKind `json:"kind"`
Nodes []Node `json:"nodes"`
Root *string `json:"root,omitempty"`
Title string `json:"title"`
}
Graph A lineage graph: an ancestry chain, a descendant tree, a query graph or the registry map
type GraphKind ¶
type GraphKind string
GraphKind defines model for Graph.Kind.
type GroupMetrics ¶
type GroupMetrics struct {
Abandoned int64 `json:"abandoned"`
ApparentBytes int64 `json:"apparent_bytes"`
DedupBytes int64 `json:"dedup_bytes"`
Drifting int64 `json:"drifting"`
ExclusiveBytes int64 `json:"exclusive_bytes"`
Fresh int64 `json:"fresh"`
Group string `json:"group"`
Manifests int64 `json:"manifests"`
Repos int64 `json:"repos"`
Stale int64 `json:"stale"`
Tags int64 `json:"tags"`
UniqueStacks int64 `json:"unique_stacks"`
UntaggedPct float32 `json:"untagged_pct"`
}
GroupMetrics Footprint metrics for one group of images
type Health ¶
type Health struct {
Images int64 `json:"images"`
Status HealthStatus `json:"status"`
Version string `json:"version"`
}
Health Server status and index size
type HealthStatus ¶
type HealthStatus string
HealthStatus defines model for Health.Status.
const (
Ok HealthStatus = "ok"
)
Defines values for HealthStatus.
func (HealthStatus) Valid ¶
func (e HealthStatus) Valid() bool
Valid indicates whether the value is a known member of the HealthStatus enum.
type HistoryEntry ¶
type HistoryEntry struct {
CreatedBy string `json:"created_by"`
EmptyLayer bool `json:"empty_layer"`
}
HistoryEntry One build step from the config history
type ImageInfo ¶
type ImageInfo struct {
AgeDays *int `json:"age_days,omitempty"`
// Config Run-time fields from the image config; environment values are never stored except allowlisted ones
Config ConfigInfo `json:"config"`
Created *time.Time `json:"created,omitempty"`
Digest string `json:"digest"`
External bool `json:"external"`
// FirstSeen When strata first indexed the image
FirstSeen *time.Time `json:"first_seen,omitempty"`
IndexDigest *string `json:"index_digest,omitempty"`
Label string `json:"label"`
Labels map[string]string `json:"labels"`
LayerCount int `json:"layer_count"`
Platform string `json:"platform"`
Platforms *[]string `json:"platforms,omitempty"`
// Pushed When the registry says the image was first pushed (ECR only)
Pushed *time.Time `json:"pushed,omitempty"`
Repo string `json:"repo"`
Size int64 `json:"size"`
Tags []string `json:"tags"`
TopChainId string `json:"top_chain_id"`
}
ImageInfo What the index knows about one image
type IndexStatus ¶ added in v0.2.0
type IndexStatus struct {
// Crawl Running totals of a crawl
Crawl CrawlStats `json:"crawl"`
// Error Why the last index failed
Error *string `json:"error,omitempty"`
FinishedAt *time.Time `json:"finished_at,omitempty"`
// LastRefresh What the last refresh rewrote; refreshes are incremental
LastRefresh *RefreshStats `json:"last_refresh,omitempty"`
// RefreshError Why the last refresh failed; cleared when one succeeds
RefreshError *string `json:"refresh_error,omitempty"`
// RefreshEverySeconds How often views refresh during a crawl; 0 means only at the end
RefreshEverySeconds int64 `json:"refresh_every_seconds"`
// RefreshedAt When lineage, staleness and the views were last recomputed; unset until the first refresh finishes
RefreshedAt *time.Time `json:"refreshed_at,omitempty"`
// Refreshing A refresh is running now
Refreshing bool `json:"refreshing"`
Registry *string `json:"registry,omitempty"`
Running bool `json:"running"`
StartedAt *time.Time `json:"started_at,omitempty"`
}
IndexStatus State of the running or last index
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type LayerInfo ¶
type LayerInfo struct {
BlobDigest string `json:"blob_digest"`
CreatedBy string `json:"created_by"`
DiffId string `json:"diff_id"`
Position int `json:"position"`
Size int64 `json:"size"`
}
LayerInfo One layer and the build step that created it
type Lifecycle ¶ added in v0.3.0
type Lifecycle struct {
// Agree Of those, images strata lists for cleanup
Agree int `json:"agree"`
Conflicts []struct {
Digest string `json:"digest"`
Reason string `json:"reason"`
} `json:"conflicts"`
Days int `json:"days"`
// Expires Images the rule would expire today
Expires int `json:"expires"`
// Name The repository name ECR uses, without the host
Name string `json:"name"`
// Policy The lifecycle policy document, or null when the repo is skipped
Policy *struct {
Rules []struct {
Action struct {
Type string `json:"type"`
} `json:"action"`
Description string `json:"description"`
RulePriority int `json:"rulePriority"`
Selection struct {
CountNumber int `json:"countNumber"`
CountType string `json:"countType"`
CountUnit *string `json:"countUnit,omitempty"`
TagStatus string `json:"tagStatus"`
} `json:"selection"`
} `json:"rules"`
} `json:"policy"`
Repo string `json:"repo"`
// Skipped Why the repo has no policy
Skipped *string `json:"skipped,omitempty"`
}
Lifecycle A generated ECR lifecycle policy for one repo, checked against the index
type LineageInfo ¶
type LineageInfo struct {
// Ancestry A lineage graph: an ancestry chain, a descendant tree, a query graph or the registry map
Ancestry Graph `json:"ancestry"`
// BuiltFrom Images the build's provenance says it pulled, and whether each is indexed
BuiltFrom *[]BuiltFrom `json:"built_from,omitempty"`
Children int `json:"children"`
Conflict bool `json:"conflict"`
Descendants int `json:"descendants"`
Edges []Edge `json:"edges"`
Generation int `json:"generation"`
Parent *string `json:"parent,omitempty"`
Root *string `json:"root,omitempty"`
Status LineageInfoStatus `json:"status"`
}
LineageInfo Where an image sits in the lineage graph, with the evidence for its parent
type LineageInfoStatus ¶
type LineageInfoStatus string
LineageInfoStatus defines model for LineageInfo.Status.
const ( LineageInfoStatusDerived LineageInfoStatus = "derived" LineageInfoStatusRoot LineageInfoStatus = "root" LineageInfoStatusUnknown LineageInfoStatus = "unknown" )
Defines values for LineageInfoStatus.
func (LineageInfoStatus) Valid ¶
func (e LineageInfoStatus) Valid() bool
Valid indicates whether the value is a known member of the LineageInfoStatus enum.
type Node ¶
type Node struct {
Count *int `json:"count,omitempty"`
Created *string `json:"created,omitempty"`
Depth int `json:"depth"`
Id string `json:"id"`
Kind NodeKind `json:"kind"`
Label string `json:"label"`
Layers *int `json:"layers,omitempty"`
Matched *bool `json:"matched,omitempty"`
Members *[]string `json:"members,omitempty"`
Note *string `json:"note,omitempty"`
Platform *string `json:"platform,omitempty"`
Reasons *[]string `json:"reasons,omitempty"`
Refs *[]string `json:"refs,omitempty"`
Repo *string `json:"repo,omitempty"`
Size *int64 `json:"size,omitempty"`
// Verdict A staleness verdict; empty when not computed yet
Verdict *Verdict `json:"verdict,omitempty"`
}
Node A graph node: an image, an external root, a phantom ancestor not in the registry, or a collapsed group
type NodeKind ¶
type NodeKind string
NodeKind defines model for Node.Kind.
type NotFoundJSONResponse ¶
type NotFoundJSONResponse Error
type Options ¶
type Options struct {
// Version is reported by /v1/healthz.
Version string
// AuthHeader, if set, is a header a trusted auth proxy sets on every
// request; requests without it are rejected.
AuthHeader string
// Logger records failed requests.
Logger *slog.Logger
}
Options configure the HTTP handler.
type Outline ¶
type Outline struct {
Offset int `json:"offset"`
Parent *string `json:"parent,omitempty"`
Rows []OutlineRow `json:"rows"`
// Total Rows at this level before paging
Total int64 `json:"total"`
}
Outline Children of an outline row
type OutlineRow ¶
type OutlineRow struct {
Depth int `json:"depth"`
Digest *string `json:"digest,omitempty"`
// Drift Generations the row's base is behind its tag; for repo rows, the most among its images
Drift *int `json:"drift,omitempty"`
HasChildren bool `json:"has_children"`
// Id Row id; pass it as parent to expand the row
Id string `json:"id"`
// Images Images in this row's subtree, itself included
Images int64 `json:"images"`
Kind OutlineRowKind `json:"kind"`
Name string `json:"name"`
// Newest Creation time of the newest image in the subtree
Newest *time.Time `json:"newest,omitempty"`
Parent *string `json:"parent,omitempty"`
Repo *string `json:"repo,omitempty"`
Tags *[]string `json:"tags,omitempty"`
Team *string `json:"team,omitempty"`
// Verdict A staleness verdict; empty when not computed yet
Verdict *Verdict `json:"verdict,omitempty"`
// Verdicts Images per verdict
Verdicts VerdictCounts `json:"verdicts"`
}
OutlineRow One row of the lineage outline: a base, a repo group or an image
type OutlineRowKind ¶
type OutlineRowKind string
OutlineRowKind defines model for OutlineRow.Kind.
const ( OutlineRowKindBase OutlineRowKind = "base" OutlineRowKindExternal OutlineRowKind = "external" OutlineRowKindImage OutlineRowKind = "image" OutlineRowKindPhantom OutlineRowKind = "phantom" OutlineRowKindRepo OutlineRowKind = "repo" OutlineRowKindUnrooted OutlineRowKind = "unrooted" )
Defines values for OutlineRowKind.
func (OutlineRowKind) Valid ¶
func (e OutlineRowKind) Valid() bool
Valid indicates whether the value is a known member of the OutlineRowKind enum.
type Overview ¶
type Overview struct {
ApparentBytes int64 `json:"apparent_bytes"`
Changes []Change `json:"changes"`
DedupBytes int64 `json:"dedup_bytes"`
// Host The registry host every image shares, if there is one
Host *string `json:"host,omitempty"`
Images int64 `json:"images"`
IndexedAt *time.Time `json:"indexed_at,omitempty"`
Repos int64 `json:"repos"`
Roots []RootStat `json:"roots"`
Stacks int64 `json:"stacks"`
Tags int64 `json:"tags"`
// Verdicts Images per verdict
Verdicts VerdictCounts `json:"verdicts"`
}
Overview Headline numbers for the web UI
type Referrer ¶
type Referrer struct {
ArtifactType string `json:"artifact_type"`
Digest string `json:"digest"`
Kind ReferrerKind `json:"kind"`
Subject string `json:"subject"`
}
Referrer An artifact attached to an image, such as an SBOM or a signature
type ReferrerKind ¶
type ReferrerKind string
ReferrerKind defines model for Referrer.Kind.
const ( ReferrerKindAttestation ReferrerKind = "attestation" ReferrerKindOther ReferrerKind = "other" ReferrerKindSbom ReferrerKind = "sbom" ReferrerKindSignature ReferrerKind = "signature" )
Defines values for ReferrerKind.
func (ReferrerKind) Valid ¶
func (e ReferrerKind) Valid() bool
Valid indicates whether the value is a known member of the ReferrerKind enum.
type RefreshStats ¶ added in v0.2.1
type RefreshStats struct {
// Duration Nanoseconds the refresh took
Duration int64 `json:"duration"`
// FactsRebuilt Image rows rebuilt in the query table; -1 when rebuilt in full
FactsRebuilt int `json:"facts_rebuilt"`
// Full Every derived table was rebuilt
Full bool `json:"full"`
// LineageChanged Lineage rows rewritten
LineageChanged int `json:"lineage_changed"`
// LineageSkipped No input to lineage changed
LineageSkipped bool `json:"lineage_skipped"`
// SnapshotRows Snapshot rows added, changed or removed
SnapshotRows int `json:"snapshot_rows"`
// SnapshotSkipped No image row changed since today's snapshot
SnapshotSkipped bool `json:"snapshot_skipped"`
// VerdictsChanged Staleness rows rewritten
VerdictsChanged int `json:"verdicts_changed"`
}
RefreshStats What the last refresh rewrote; refreshes are incremental
type RequiredHeaderError ¶
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 ResolveRef200JSONResponse ¶
type ResolveRef200JSONResponse Resolved
func (ResolveRef200JSONResponse) VisitResolveRefResponse ¶
func (response ResolveRef200JSONResponse) VisitResolveRefResponse(w http.ResponseWriter) error
type ResolveRef404JSONResponse ¶
type ResolveRef404JSONResponse struct{ NotFoundJSONResponse }
func (ResolveRef404JSONResponse) VisitResolveRefResponse ¶
func (response ResolveRef404JSONResponse) VisitResolveRefResponse(w http.ResponseWriter) error
type ResolveRefParams ¶
type ResolveRefParams struct {
// Ref repo:tag, repo@digest, a digest or a digest prefix
Ref Ref `form:"ref" json:"ref"`
// Platform Platform to pick when the ref names a multi-platform index, such as linux/arm64
Platform *Platform `form:"platform,omitempty" json:"platform,omitempty"`
}
ResolveRefParams defines parameters for ResolveRef.
type ResolveRefRequestObject ¶
type ResolveRefRequestObject struct {
Params ResolveRefParams
}
type ResolveRefResponseObject ¶
type ResolveRefResponseObject interface {
VisitResolveRefResponse(w http.ResponseWriter) error
}
type ResolveRefdefaultJSONResponse ¶
func (ResolveRefdefaultJSONResponse) VisitResolveRefResponse ¶
func (response ResolveRefdefaultJSONResponse) VisitResolveRefResponse(w http.ResponseWriter) error
type Root ¶
type Root struct {
Children int `json:"children"`
Descendants int `json:"descendants"`
Id string `json:"id"`
Kind string `json:"kind"`
Label string `json:"label"`
StalePct float32 `json:"stale_pct"`
}
Root A root base and how much descends from it
type RootStat ¶
type RootStat struct {
Id string `json:"id"`
Images int64 `json:"images"`
Kind string `json:"kind"`
Name string `json:"name"`
// Verdicts Images per verdict
Verdicts VerdictCounts `json:"verdicts"`
}
RootStat A root base and the stale images built on it
type RunQuery200JSONResponse ¶
type RunQuery200JSONResponse Table
func (RunQuery200JSONResponse) VisitRunQueryResponse ¶
func (response RunQuery200JSONResponse) VisitRunQueryResponse(w http.ResponseWriter) error
type RunQuery400JSONResponse ¶
type RunQuery400JSONResponse struct{ BadRequestJSONResponse }
func (RunQuery400JSONResponse) VisitRunQueryResponse ¶
func (response RunQuery400JSONResponse) VisitRunQueryResponse(w http.ResponseWriter) error
type RunQueryParams ¶
type RunQueryParams struct {
// Filter A filter in strata's query language; empty matches every image
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
// Fields Columns to return
Fields *[]string `form:"fields,omitempty" json:"fields,omitempty"`
// Sort Fields to sort by; a leading - sorts descending
Sort *[]string `form:"sort,omitempty" json:"sort,omitempty"`
// Limit Maximum rows; 0 means all
Limit *int `form:"limit,omitempty" json:"limit,omitempty"`
// GroupBy Field to group by, such as repo, root or label.team
GroupBy *GroupBy `form:"group_by,omitempty" json:"group_by,omitempty"`
}
RunQueryParams defines parameters for RunQuery.
type RunQueryRequestObject ¶
type RunQueryRequestObject struct {
Params RunQueryParams
}
type RunQueryResponseObject ¶
type RunQueryResponseObject interface {
VisitRunQueryResponse(w http.ResponseWriter) error
}
type RunQuerydefaultJSONResponse ¶
func (RunQuerydefaultJSONResponse) VisitRunQueryResponse ¶
func (response RunQuerydefaultJSONResponse) VisitRunQueryResponse(w http.ResponseWriter) error
type Search200JSONResponse ¶
type Search200JSONResponse SearchResult
func (Search200JSONResponse) VisitSearchResponse ¶
func (response Search200JSONResponse) VisitSearchResponse(w http.ResponseWriter) error
type Search400JSONResponse ¶
type Search400JSONResponse struct{ BadRequestJSONResponse }
func (Search400JSONResponse) VisitSearchResponse ¶
func (response Search400JSONResponse) VisitSearchResponse(w http.ResponseWriter) error
type SearchHit ¶
type SearchHit struct {
AgeDays *int `json:"age_days,omitempty"`
Digest string `json:"digest"`
Name string `json:"name"`
Platform string `json:"platform"`
Repo string `json:"repo"`
Root *string `json:"root,omitempty"`
Size int64 `json:"size"`
Tags []string `json:"tags"`
Team *string `json:"team,omitempty"`
// Verdict A staleness verdict; empty when not computed yet
Verdict Verdict `json:"verdict"`
}
SearchHit One image in search results
type SearchParams ¶
type SearchParams struct {
// Filter A filter in strata's query language; empty matches every image
Filter *Filter `form:"filter,omitempty" json:"filter,omitempty"`
// Team Selected label.team values
Team *[]string `form:"team,omitempty" json:"team,omitempty"`
// Root Selected root bases
Root *[]string `form:"root,omitempty" json:"root,omitempty"`
// Verdict Selected verdicts
Verdict *[]string `form:"verdict,omitempty" json:"verdict,omitempty"`
// Platform Selected platforms
Platform *[]string `form:"platform,omitempty" json:"platform,omitempty"`
// Age Selected age buckets
Age *[]SearchParamsAge `form:"age,omitempty" json:"age,omitempty"`
// Pushed Selected push-age buckets, from registries that report push times (ECR)
Pushed *[]SearchParamsPushed `form:"pushed,omitempty" json:"pushed,omitempty"`
// Offset Rows to skip
Offset *Offset `form:"offset,omitempty" json:"offset,omitempty"`
// Limit Rows to return
Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}
SearchParams defines parameters for Search.
type SearchParamsAge ¶
type SearchParamsAge string
SearchParamsAge defines parameters for Search.
const ( SearchParamsAgeGreaterThan1Year SearchParamsAge = "> 1 year" SearchParamsAgeLessThan30Days SearchParamsAge = "< 30 days" SearchParamsAgeN180Days1Year SearchParamsAge = "180 days–1 year" SearchParamsAgeN30180Days SearchParamsAge = "30–180 days" SearchParamsAgeUnknown SearchParamsAge = "unknown" )
Defines values for SearchParamsAge.
func (SearchParamsAge) Valid ¶
func (e SearchParamsAge) Valid() bool
Valid indicates whether the value is a known member of the SearchParamsAge enum.
type SearchParamsPushed ¶ added in v0.2.0
type SearchParamsPushed string
SearchParamsPushed defines parameters for Search.
const ( SearchParamsPushedGreaterThan1Year SearchParamsPushed = "> 1 year" SearchParamsPushedLessThan30Days SearchParamsPushed = "< 30 days" SearchParamsPushedN180Days1Year SearchParamsPushed = "180 days–1 year" SearchParamsPushedN30180Days SearchParamsPushed = "30–180 days" SearchParamsPushedUnknown SearchParamsPushed = "unknown" )
Defines values for SearchParamsPushed.
func (SearchParamsPushed) Valid ¶ added in v0.2.0
func (e SearchParamsPushed) Valid() bool
Valid indicates whether the value is a known member of the SearchParamsPushed enum.
type SearchRequestObject ¶
type SearchRequestObject struct {
Params SearchParams
}
type SearchResponseObject ¶
type SearchResponseObject interface {
VisitSearchResponse(w http.ResponseWriter) error
}
type SearchResult ¶
type SearchResult struct {
Facets []Facet `json:"facets"`
// Filter The filter with every facet selection folded in, as strata query takes it
Filter string `json:"filter"`
Hits []SearchHit `json:"hits"`
Offset int `json:"offset"`
Total int64 `json:"total"`
}
SearchResult A page of search hits with facet counts
type SearchdefaultJSONResponse ¶
func (SearchdefaultJSONResponse) VisitSearchResponse ¶
func (response SearchdefaultJSONResponse) VisitSearchResponse(w http.ResponseWriter) error
type ServeMux ¶
type ServeMux interface {
HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
http.Handler
}
ServeMux is an abstraction of http.ServeMux.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the generated strict server interface over a service.
func (*Server) GetAncestry ¶
func (s *Server) GetAncestry(ctx context.Context, r GetAncestryRequestObject) (GetAncestryResponseObject, error)
GetAncestry walks an image's ancestry.
func (*Server) GetCleanup ¶ added in v0.3.0
func (s *Server) GetCleanup(ctx context.Context, r GetCleanupRequestObject) (GetCleanupResponseObject, error)
GetCleanup lists deletion candidates, as JSON or as a CSV export.
func (*Server) GetDescendants ¶
func (s *Server) GetDescendants(ctx context.Context, r GetDescendantsRequestObject) (GetDescendantsResponseObject, error)
GetDescendants finds everything built on a base.
func (*Server) GetHealth ¶
func (s *Server) GetHealth(ctx context.Context, _ GetHealthRequestObject) (GetHealthResponseObject, error)
GetHealth reports the server version and index size.
func (*Server) GetImage ¶
func (s *Server) GetImage(ctx context.Context, r GetImageRequestObject) (GetImageResponseObject, error)
GetImage explains one image.
func (*Server) GetLifecycles ¶ added in v0.3.0
func (s *Server) GetLifecycles(ctx context.Context, r GetLifecyclesRequestObject) (GetLifecyclesResponseObject, error)
GetLifecycles generates ECR lifecycle policies.
func (*Server) GetMap ¶
func (s *Server) GetMap(ctx context.Context, r GetMapRequestObject) (GetMapResponseObject, error)
GetMap returns the aggregated registry map.
func (*Server) GetOutline ¶
func (s *Server) GetOutline(ctx context.Context, r GetOutlineRequestObject) (GetOutlineResponseObject, error)
GetOutline returns one level of the lineage outline.
func (*Server) GetOverview ¶
func (s *Server) GetOverview(ctx context.Context, _ GetOverviewRequestObject) (GetOverviewResponseObject, error)
GetOverview returns the headline numbers for the web UI.
func (*Server) GetQueryGraph ¶
func (s *Server) GetQueryGraph(ctx context.Context, r GetQueryGraphRequestObject) (GetQueryGraphResponseObject, error)
GetQueryGraph draws a filter's matches and their ancestry.
func (*Server) GetRoots ¶
func (s *Server) GetRoots(ctx context.Context, _ GetRootsRequestObject) (GetRootsResponseObject, error)
GetRoots lists root bases.
func (*Server) GetStale ¶
func (s *Server) GetStale(ctx context.Context, r GetStaleRequestObject) (GetStaleResponseObject, error)
GetStale reports the staleness mix.
func (*Server) GetStatus ¶ added in v0.2.0
func (s *Server) GetStatus(_ context.Context, _ GetStatusRequestObject) (GetStatusResponseObject, error)
GetStatus reports the running index.
func (*Server) GetSummary ¶
func (s *Server) GetSummary(ctx context.Context, r GetSummaryRequestObject) (GetSummaryResponseObject, error)
GetSummary reports footprint metrics.
func (*Server) ResolveRef ¶
func (s *Server) ResolveRef(ctx context.Context, r ResolveRefRequestObject) (ResolveRefResponseObject, error)
ResolveRef resolves a ref to a digest.
func (*Server) RunQuery ¶
func (s *Server) RunQuery(ctx context.Context, r RunQueryRequestObject) (RunQueryResponseObject, error)
RunQuery filters images.
func (*Server) Search ¶
func (s *Server) Search(ctx context.Context, r SearchRequestObject) (SearchResponseObject, error)
Search runs a filter with facet selections.
type ServerInterface ¶
type ServerInterface interface {
// GetAncestry Walk an image's ancestry to its root base
// (GET /v1/ancestry)
GetAncestry(w http.ResponseWriter, r *http.Request, params GetAncestryParams)
// GetCleanup Images safe to delete and the storage deleting them frees
// (GET /v1/cleanup)
GetCleanup(w http.ResponseWriter, r *http.Request, params GetCleanupParams)
// GetLifecycles ECR lifecycle policies that expire what strata calls abandoned
// (GET /v1/cleanup/lifecycle)
GetLifecycles(w http.ResponseWriter, r *http.Request, params GetLifecyclesParams)
// GetDescendants Find everything built on a base
// (GET /v1/descendants)
GetDescendants(w http.ResponseWriter, r *http.Request, params GetDescendantsParams)
// GetHealth Report server health and index size
// (GET /v1/healthz)
GetHealth(w http.ResponseWriter, r *http.Request)
// GetImage Explain one image
// (GET /v1/images/{digest})
GetImage(w http.ResponseWriter, r *http.Request, digest string, params GetImageParams)
// GetMap Aggregated registry map
// (GET /v1/map)
GetMap(w http.ResponseWriter, r *http.Request, params GetMapParams)
// GetOutline One level of the lineage outline
// (GET /v1/outline)
GetOutline(w http.ResponseWriter, r *http.Request, params GetOutlineParams)
// GetOverview Registry overview for the web UI
// (GET /v1/overview)
GetOverview(w http.ResponseWriter, r *http.Request)
// RunQuery Filter images with the query language
// (GET /v1/query)
RunQuery(w http.ResponseWriter, r *http.Request, params RunQueryParams)
// GetQueryGraph Draw the images a filter matches plus their ancestry
// (GET /v1/query/graph)
GetQueryGraph(w http.ResponseWriter, r *http.Request, params GetQueryGraphParams)
// ResolveRef Resolve a ref to a platform manifest digest
// (GET /v1/resolve)
ResolveRef(w http.ResponseWriter, r *http.Request, params ResolveRefParams)
// GetRoots List root bases and their descendant counts
// (GET /v1/roots)
GetRoots(w http.ResponseWriter, r *http.Request)
// Search Filter images with facet counts
// (GET /v1/search)
Search(w http.ResponseWriter, r *http.Request, params SearchParams)
// GetStale Report the staleness mix
// (GET /v1/stale)
GetStale(w http.ResponseWriter, r *http.Request, params GetStaleParams)
// GetStatus Progress of the running index
// (GET /v1/status)
GetStatus(w http.ResponseWriter, r *http.Request)
// GetSummary Footprint summary of the registry
// (GET /v1/summary)
GetSummary(w http.ResponseWriter, r *http.Request, params GetSummaryParams)
}
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) GetAncestry ¶
func (siw *ServerInterfaceWrapper) GetAncestry(w http.ResponseWriter, r *http.Request)
GetAncestry operation middleware
func (*ServerInterfaceWrapper) GetCleanup ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetCleanup(w http.ResponseWriter, r *http.Request)
GetCleanup operation middleware
func (*ServerInterfaceWrapper) GetDescendants ¶
func (siw *ServerInterfaceWrapper) GetDescendants(w http.ResponseWriter, r *http.Request)
GetDescendants operation middleware
func (*ServerInterfaceWrapper) GetHealth ¶
func (siw *ServerInterfaceWrapper) GetHealth(w http.ResponseWriter, r *http.Request)
GetHealth operation middleware
func (*ServerInterfaceWrapper) GetImage ¶
func (siw *ServerInterfaceWrapper) GetImage(w http.ResponseWriter, r *http.Request)
GetImage operation middleware
func (*ServerInterfaceWrapper) GetLifecycles ¶ added in v0.3.0
func (siw *ServerInterfaceWrapper) GetLifecycles(w http.ResponseWriter, r *http.Request)
GetLifecycles operation middleware
func (*ServerInterfaceWrapper) GetMap ¶
func (siw *ServerInterfaceWrapper) GetMap(w http.ResponseWriter, r *http.Request)
GetMap operation middleware
func (*ServerInterfaceWrapper) GetOutline ¶
func (siw *ServerInterfaceWrapper) GetOutline(w http.ResponseWriter, r *http.Request)
GetOutline operation middleware
func (*ServerInterfaceWrapper) GetOverview ¶
func (siw *ServerInterfaceWrapper) GetOverview(w http.ResponseWriter, r *http.Request)
GetOverview operation middleware
func (*ServerInterfaceWrapper) GetQueryGraph ¶
func (siw *ServerInterfaceWrapper) GetQueryGraph(w http.ResponseWriter, r *http.Request)
GetQueryGraph operation middleware
func (*ServerInterfaceWrapper) GetRoots ¶
func (siw *ServerInterfaceWrapper) GetRoots(w http.ResponseWriter, r *http.Request)
GetRoots operation middleware
func (*ServerInterfaceWrapper) GetStale ¶
func (siw *ServerInterfaceWrapper) GetStale(w http.ResponseWriter, r *http.Request)
GetStale operation middleware
func (*ServerInterfaceWrapper) GetStatus ¶ added in v0.2.0
func (siw *ServerInterfaceWrapper) GetStatus(w http.ResponseWriter, r *http.Request)
GetStatus operation middleware
func (*ServerInterfaceWrapper) GetSummary ¶
func (siw *ServerInterfaceWrapper) GetSummary(w http.ResponseWriter, r *http.Request)
GetSummary operation middleware
func (*ServerInterfaceWrapper) ResolveRef ¶
func (siw *ServerInterfaceWrapper) ResolveRef(w http.ResponseWriter, r *http.Request)
ResolveRef operation middleware
func (*ServerInterfaceWrapper) RunQuery ¶
func (siw *ServerInterfaceWrapper) RunQuery(w http.ResponseWriter, r *http.Request)
RunQuery operation middleware
func (*ServerInterfaceWrapper) Search ¶
func (siw *ServerInterfaceWrapper) Search(w http.ResponseWriter, r *http.Request)
Search operation middleware
type StalenessInfo ¶
type StalenessInfo struct {
BaseDriftGenerations int `json:"base_drift_generations"`
BaseTag *string `json:"base_tag,omitempty"`
Inferred bool `json:"inferred"`
Reasons []string `json:"reasons"`
SupersededDays *int `json:"superseded_days,omitempty"`
Untagged bool `json:"untagged"`
// Verdict A staleness verdict; empty when not computed yet
Verdict Verdict `json:"verdict"`
}
StalenessInfo A staleness verdict with the reasons behind it
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 StrictMiddlewareFunc ¶
type StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc
type StrictServerInterface ¶
type StrictServerInterface interface {
// GetAncestry Walk an image's ancestry to its root base
// (GET /v1/ancestry)
GetAncestry(ctx context.Context, request GetAncestryRequestObject) (GetAncestryResponseObject, error)
// GetCleanup Images safe to delete and the storage deleting them frees
// (GET /v1/cleanup)
GetCleanup(ctx context.Context, request GetCleanupRequestObject) (GetCleanupResponseObject, error)
// GetLifecycles ECR lifecycle policies that expire what strata calls abandoned
// (GET /v1/cleanup/lifecycle)
GetLifecycles(ctx context.Context, request GetLifecyclesRequestObject) (GetLifecyclesResponseObject, error)
// GetDescendants Find everything built on a base
// (GET /v1/descendants)
GetDescendants(ctx context.Context, request GetDescendantsRequestObject) (GetDescendantsResponseObject, error)
// GetHealth Report server health and index size
// (GET /v1/healthz)
GetHealth(ctx context.Context, request GetHealthRequestObject) (GetHealthResponseObject, error)
// GetImage Explain one image
// (GET /v1/images/{digest})
GetImage(ctx context.Context, request GetImageRequestObject) (GetImageResponseObject, error)
// GetMap Aggregated registry map
// (GET /v1/map)
GetMap(ctx context.Context, request GetMapRequestObject) (GetMapResponseObject, error)
// GetOutline One level of the lineage outline
// (GET /v1/outline)
GetOutline(ctx context.Context, request GetOutlineRequestObject) (GetOutlineResponseObject, error)
// GetOverview Registry overview for the web UI
// (GET /v1/overview)
GetOverview(ctx context.Context, request GetOverviewRequestObject) (GetOverviewResponseObject, error)
// RunQuery Filter images with the query language
// (GET /v1/query)
RunQuery(ctx context.Context, request RunQueryRequestObject) (RunQueryResponseObject, error)
// GetQueryGraph Draw the images a filter matches plus their ancestry
// (GET /v1/query/graph)
GetQueryGraph(ctx context.Context, request GetQueryGraphRequestObject) (GetQueryGraphResponseObject, error)
// ResolveRef Resolve a ref to a platform manifest digest
// (GET /v1/resolve)
ResolveRef(ctx context.Context, request ResolveRefRequestObject) (ResolveRefResponseObject, error)
// GetRoots List root bases and their descendant counts
// (GET /v1/roots)
GetRoots(ctx context.Context, request GetRootsRequestObject) (GetRootsResponseObject, error)
// Search Filter images with facet counts
// (GET /v1/search)
Search(ctx context.Context, request SearchRequestObject) (SearchResponseObject, error)
// GetStale Report the staleness mix
// (GET /v1/stale)
GetStale(ctx context.Context, request GetStaleRequestObject) (GetStaleResponseObject, error)
// GetStatus Progress of the running index
// (GET /v1/status)
GetStatus(ctx context.Context, request GetStatusRequestObject) (GetStatusResponseObject, error)
// GetSummary Footprint summary of the registry
// (GET /v1/summary)
GetSummary(ctx context.Context, request GetSummaryRequestObject) (GetSummaryResponseObject, error)
}
StrictServerInterface represents all server handlers.
type Summary ¶
type Summary struct {
GroupBy *string `json:"group_by,omitempty"`
Groups *[]GroupMetrics `json:"groups,omitempty"`
Platforms map[string]int64 `json:"platforms"`
RequiredLabelCoverage *map[string]float32 `json:"required_label_coverage,omitempty"`
// Total Footprint metrics for one group of images
Total GroupMetrics `json:"total"`
}
Summary Footprint summary of the registry, optionally grouped
type Table ¶
type Table struct {
Columns []string `json:"columns"`
Rows [][]*interface{} `json:"rows"`
}
Table Tabular rows with their column names
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshalingParamError ¶
func (*UnmarshalingParamError) Error ¶
func (e *UnmarshalingParamError) Error() string
func (*UnmarshalingParamError) Unwrap ¶
func (e *UnmarshalingParamError) Unwrap() error