2022-03-24 07:25:14 -05:00
|
|
|
package constants
|
|
|
|
|
|
|
|
const (
|
2022-02-24 15:31:36 -05:00
|
|
|
ArtifactSpecRoutePrefix = "/oras/artifacts/v1"
|
|
|
|
RoutePrefix = "/v2"
|
2022-06-02 15:54:42 -05:00
|
|
|
Blobs = "blobs"
|
|
|
|
Uploads = "uploads"
|
2022-02-24 15:31:36 -05:00
|
|
|
DistAPIVersion = "Docker-Distribution-API-Version"
|
|
|
|
DistContentDigestKey = "Docker-Content-Digest"
|
2023-05-12 11:32:01 -05:00
|
|
|
SubjectDigestKey = "OCI-Subject"
|
2022-02-24 15:31:36 -05:00
|
|
|
BlobUploadUUID = "Blob-Upload-UUID"
|
|
|
|
DefaultMediaType = "application/json"
|
|
|
|
BinaryMediaType = "application/octet-stream"
|
|
|
|
DefaultMetricsExtensionRoute = "/metrics"
|
2023-07-07 11:27:10 -05:00
|
|
|
CallbackBasePath = "/auth/callback"
|
|
|
|
LoginPath = "/auth/login"
|
|
|
|
LogoutPath = "/auth/logout"
|
|
|
|
SessionClientHeaderName = "X-ZOT-API-CLIENT"
|
|
|
|
SessionClientHeaderValue = "zot-ui"
|
|
|
|
APIKeysPrefix = "zak_"
|
|
|
|
CallbackUIQueryParam = "callback_ui"
|
2022-03-24 07:25:14 -05:00
|
|
|
)
|