tangled
alpha
login
or
join now
cuducos.me
/
at-container-registry
forked from
evan.jarrett.net/at-container-registry
0
fork
atom
A container registry that uses the AT Protocol for manifest storage and S3 for blob storage.
0
fork
atom
overview
issues
pulls
pipelines
fmt
evan.jarrett.net
2 months ago
680e4bdf
a7175f9e
verified
This commit was signed with the committer's
known signature
.
evan.jarrett.net
SSH Key Fingerprint:
SHA256:bznk0uVPp7XFOl67P0uTM1pCjf2A4ojeP/lsUE7uauQ=
+7
-7
4 changed files
expand all
collapse all
unified
split
.golangci.yml
pkg
appview
handlers
storage.go
hold
pds
layer.go
xrpc.go
+2
-2
.golangci.yml
···
1
1
# golangci-lint configuration for ATCR
2
2
# See: https://golangci-lint.run/usage/configuration/
3
3
version: "2"
4
4
-
linters:
4
4
+
linters:
5
5
settings:
6
6
staticcheck:
7
7
checks:
···
23
23
formatters:
24
24
enable:
25
25
- gofmt
26
26
-
- goimports
26
26
+
- goimports
+2
-2
pkg/appview/handlers/storage.go
···
25
25
UserDID string `json:"userDid"`
26
26
UniqueBlobs int `json:"uniqueBlobs"`
27
27
TotalSize int64 `json:"totalSize"`
28
28
-
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
29
29
-
Berth string `json:"berth,omitempty"` // e.g., "deckhand", "bosun", "owner"
28
28
+
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
29
29
+
Berth string `json:"berth,omitempty"` // e.g., "deckhand", "bosun", "owner"
30
30
}
31
31
32
32
func (h *StorageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
+1
-1
pkg/hold/pds/layer.go
···
66
66
UserDID string `json:"userDid"`
67
67
UniqueBlobs int `json:"uniqueBlobs"`
68
68
TotalSize int64 `json:"totalSize"`
69
69
-
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
69
69
+
Limit *int64 `json:"limit,omitempty"` // nil = unlimited
70
70
Berth string `json:"berth,omitempty"` // nautical rank for quota tier
71
71
}
72
72
+2
-2
pkg/hold/pds/xrpc.go
···
47
47
s3Service s3.S3Service
48
48
storageDriver driver.StorageDriver
49
49
broadcaster *EventBroadcaster
50
50
-
httpClient HTTPClient // For testing - allows injecting mock HTTP client
51
51
-
quotaMgr *quota.Manager // Quota manager for tier-based limits
50
50
+
httpClient HTTPClient // For testing - allows injecting mock HTTP client
51
51
+
quotaMgr *quota.Manager // Quota manager for tier-based limits
52
52
}
53
53
54
54
// PartInfo represents a completed part in a multipart upload