mirror of
https://tangled.org/evan.jarrett.net/at-container-registry
synced 2026-09-19 16:54:15 +00:00
interface{} -> any
This commit is contained in:
@@ -251,7 +251,7 @@ func (h *Handler) VerifyImage(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
json.NewEncoder(w).Encode(map[string]interface{}{
|
||||
json.NewEncoder(w).Encode(map[string]any{
|
||||
"verified": result.Verified,
|
||||
"did": result.Signature.DID,
|
||||
"signedAt": result.Signature.SignedAt,
|
||||
|
||||
@@ -545,7 +545,7 @@ func (v *ATProtoVerifier) VerifyReference(
|
||||
Name: v.name,
|
||||
Type: v.Type(),
|
||||
Message: fmt.Sprintf("Verified for DID %s", sigData.ATProto.DID),
|
||||
Extensions: map[string]interface{}{
|
||||
Extensions: map[string]any{
|
||||
"did": sigData.ATProto.DID,
|
||||
"handle": sigData.ATProto.Handle,
|
||||
"signedAt": sigData.ATProto.SignedAt,
|
||||
@@ -673,7 +673,7 @@ type ProviderRequest struct {
|
||||
|
||||
type ProviderResponse struct {
|
||||
SystemError string `json:"system_error,omitempty"`
|
||||
Responses []map[string]interface{} `json:"responses"`
|
||||
Responses []map[string]any `json:"responses"`
|
||||
}
|
||||
|
||||
func handleProvide(w http.ResponseWriter, r *http.Request) {
|
||||
@@ -684,11 +684,11 @@ func handleProvide(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
|
||||
// Verify each image
|
||||
responses := make([]map[string]interface{}, 0, len(req.Values))
|
||||
responses := make([]map[string]any, 0, len(req.Values))
|
||||
for _, image := range req.Values {
|
||||
result, err := verifier.Verify(context.Background(), image)
|
||||
|
||||
response := map[string]interface{}{
|
||||
response := map[string]any{
|
||||
"image": image,
|
||||
"verified": false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user