mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-08-29 12:17:00 +00:00
fmt
This commit is contained in:
+2
-2
@@ -1,7 +1,7 @@
|
||||
# golangci-lint configuration for ATCR
|
||||
# See: https://golangci-lint.run/usage/configuration/
|
||||
version: "2"
|
||||
linters:
|
||||
linters:
|
||||
settings:
|
||||
staticcheck:
|
||||
checks:
|
||||
@@ -23,4 +23,4 @@ linters:
|
||||
formatters:
|
||||
enable:
|
||||
- gofmt
|
||||
- goimports
|
||||
- goimports
|
||||
|
||||
@@ -25,8 +25,8 @@ type QuotaStats struct {
|
||||
UserDID string `json:"userDid"`
|
||||
UniqueBlobs int `json:"uniqueBlobs"`
|
||||
TotalSize int64 `json:"totalSize"`
|
||||
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
|
||||
Berth string `json:"berth,omitempty"` // e.g., "deckhand", "bosun", "owner"
|
||||
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
|
||||
Berth string `json:"berth,omitempty"` // e.g., "deckhand", "bosun", "owner"
|
||||
}
|
||||
|
||||
func (h *StorageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
@@ -66,7 +66,7 @@ type QuotaStats struct {
|
||||
UserDID string `json:"userDid"`
|
||||
UniqueBlobs int `json:"uniqueBlobs"`
|
||||
TotalSize int64 `json:"totalSize"`
|
||||
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
|
||||
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
|
||||
Berth string `json:"berth,omitempty"` // nautical rank for quota tier
|
||||
}
|
||||
|
||||
|
||||
@@ -47,8 +47,8 @@ type XRPCHandler struct {
|
||||
s3Service s3.S3Service
|
||||
storageDriver driver.StorageDriver
|
||||
broadcaster *EventBroadcaster
|
||||
httpClient HTTPClient // For testing - allows injecting mock HTTP client
|
||||
quotaMgr *quota.Manager // Quota manager for tier-based limits
|
||||
httpClient HTTPClient // For testing - allows injecting mock HTTP client
|
||||
quotaMgr *quota.Manager // Quota manager for tier-based limits
|
||||
}
|
||||
|
||||
// PartInfo represents a completed part in a multipart upload
|
||||
|
||||
Reference in New Issue
Block a user