2022-02-24 15:31:36 -05:00
|
|
|
package constants
|
|
|
|
|
|
|
|
// https://github.com/opencontainers/distribution-spec/tree/main/extensions#extensions-api-for-distribution
|
|
|
|
const (
|
|
|
|
ExtCatalogPrefix = "/_catalog"
|
|
|
|
ExtOciDiscoverPrefix = "/_oci/ext/discover"
|
2023-08-02 13:58:34 -05:00
|
|
|
|
2023-08-30 12:12:24 -05:00
|
|
|
BaseExtension = "_zot"
|
|
|
|
|
2022-02-24 15:31:36 -05:00
|
|
|
// zot specific extensions.
|
2023-08-02 13:58:34 -05:00
|
|
|
BasePrefix = "/_zot"
|
|
|
|
ExtPrefix = BasePrefix + "/ext"
|
2023-05-19 23:22:51 -05:00
|
|
|
|
2023-08-02 13:58:34 -05:00
|
|
|
// search extension.
|
2023-05-19 23:22:51 -05:00
|
|
|
ExtSearch = "/search"
|
|
|
|
ExtSearchPrefix = ExtPrefix + ExtSearch
|
|
|
|
FullSearchPrefix = RoutePrefix + ExtSearchPrefix
|
|
|
|
|
2023-08-02 13:58:34 -05:00
|
|
|
// mgmt extension.
|
|
|
|
Mgmt = "/mgmt"
|
|
|
|
ExtMgmt = ExtPrefix + Mgmt
|
|
|
|
FullMgmt = RoutePrefix + ExtMgmt
|
|
|
|
|
|
|
|
// signatures extension.
|
|
|
|
Notation = "/notation"
|
|
|
|
ExtNotation = ExtPrefix + Notation
|
|
|
|
FullNotation = RoutePrefix + ExtNotation
|
|
|
|
Cosign = "/cosign"
|
|
|
|
ExtCosign = ExtPrefix + Cosign
|
|
|
|
FullCosign = RoutePrefix + ExtCosign
|
2023-05-19 23:22:51 -05:00
|
|
|
|
2023-08-02 13:58:34 -05:00
|
|
|
// user preferences extension.
|
|
|
|
UserPrefs = "/userprefs"
|
|
|
|
ExtUserPrefs = ExtPrefix + UserPrefs
|
|
|
|
FullUserPrefs = RoutePrefix + ExtUserPrefs
|
2022-02-24 15:31:36 -05:00
|
|
|
)
|