fix: clean cache and go mod tidy for go1.25.3

This commit is contained in:
allanice001
2025-11-06 03:30:13 +00:00
parent 334c7d59d6
commit 7ffc63ea54
15 changed files with 815 additions and 760 deletions

5
go.mod
View File

@@ -30,11 +30,10 @@ require (
github.com/KyleBanks/depth v1.2.1 // indirect github.com/KyleBanks/depth v1.2.1 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/go-jose/go-jose/v4 v4.1.3 // indirect github.com/go-jose/go-jose/v4 v4.1.3 // indirect
github.com/go-openapi/jsonpointer v0.22.1 // indirect github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonreference v0.21.2 // indirect github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/spec v0.20.9 // indirect github.com/go-openapi/spec v0.20.9 // indirect
github.com/go-openapi/swag v0.22.3 // indirect github.com/go-openapi/swag v0.22.3 // indirect
github.com/go-openapi/swag/jsonname v0.25.1 // indirect
github.com/go-sql-driver/mysql v1.8.1 // indirect github.com/go-sql-driver/mysql v1.8.1 // indirect
github.com/go-viper/mapstructure/v2 v2.4.0 // indirect github.com/go-viper/mapstructure/v2 v2.4.0 // indirect
github.com/goccy/go-json v0.10.5 // indirect github.com/goccy/go-json v0.10.5 // indirect

20
go.sum
View File

@@ -32,19 +32,17 @@ github.com/go-jose/go-jose/v4 v4.1.3 h1:CVLmWDhDVRa6Mi/IgCgaopNosCaHz7zrMeF9MlZR
github.com/go-jose/go-jose/v4 v4.1.3/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08= github.com/go-jose/go-jose/v4 v4.1.3/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.3/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg= github.com/go-openapi/jsonpointer v0.19.5/go.mod h1:Pl9vOtqEWErmShwVjC8pYs9cog34VGT37dQOVbmoatg=
github.com/go-openapi/jsonpointer v0.22.1 h1:sHYI1He3b9NqJ4wXLoJDKmUmHkWy/L7rtEo92JUxBNk= github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=
github.com/go-openapi/jsonpointer v0.22.1/go.mod h1:pQT9OsLkfz1yWoMgYFy4x3U5GY5nUlsOn1qSBH5MkCM= github.com/go-openapi/jsonpointer v0.19.6/go.mod h1:osyAmYz/mB/C3I+WsTTSgw1ONzaLJoLCyoi6/zppojs=
github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo= github.com/go-openapi/jsonreference v0.20.0/go.mod h1:Ag74Ico3lPc+zR+qjn4XBUmXymS4zJbYVCZmcgkasdo=
github.com/go-openapi/jsonreference v0.21.2 h1:Wxjda4M/BBQllegefXrY/9aq1fxBA8sI5M/lFU6tSWU= github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE=
github.com/go-openapi/jsonreference v0.21.2/go.mod h1:pp3PEjIsJ9CZDGCNOyXIQxsNuroxm8FAJ/+quA0yKzQ= github.com/go-openapi/jsonreference v0.20.2/go.mod h1:Bl1zwGIM8/wsvqjsOQLJ/SH+En5Ap4rVB5KVcIDZG2k=
github.com/go-openapi/spec v0.20.9 h1:xnlYNQAwKd2VQRRfwTEI0DcK+2cbuvI/0c7jx3gA8/8= github.com/go-openapi/spec v0.20.9 h1:xnlYNQAwKd2VQRRfwTEI0DcK+2cbuvI/0c7jx3gA8/8=
github.com/go-openapi/spec v0.20.9/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA= github.com/go-openapi/spec v0.20.9/go.mod h1:2OpW+JddWPrpXSCIX8eOx7lZ5iyuWj3RYR6VaaBKcWA=
github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk= github.com/go-openapi/swag v0.19.5/go.mod h1:POnQmlKehdgb5mhVOsnJFsivZCEZ/vjK9gh66Z9tfKk=
github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ= github.com/go-openapi/swag v0.19.15/go.mod h1:QYRuS/SOXUCsnplDa677K7+DxSOj6IPNl/eQntq43wQ=
github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g= github.com/go-openapi/swag v0.22.3 h1:yMBqmnQ0gyZvEb/+KzuWZOXgllrXT4SADYbvDaXHv/g=
github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14= github.com/go-openapi/swag v0.22.3/go.mod h1:UzaqsxGiab7freDnrUUra0MwWfN/q7tE4j+VcZ0yl14=
github.com/go-openapi/swag/jsonname v0.25.1 h1:Sgx+qbwa4ej6AomWC6pEfXrA6uP2RkaNjA9BR8a1RJU=
github.com/go-openapi/swag/jsonname v0.25.1/go.mod h1:71Tekow6UOLBD3wS7XhdT98g5J5GR13NOTQ9/6Q11Zo=
github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI= github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y= github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg= github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
@@ -84,6 +82,7 @@ github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFF
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE= github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0= github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
@@ -115,8 +114,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0= github.com/rs/xid v1.6.0/go.mod h1:7XoLgs4eV+QndskICGsho+ADou8ySMSjJKDIan90Nz0=
github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY= github.com/rs/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ= github.com/rs/zerolog v1.34.0/go.mod h1:bJsvje4Z08ROH4Nhs5iH600c3IkWhwp44iRc54W6wYQ=
@@ -137,11 +136,16 @@ github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3A
github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU= github.com/spf13/viper v1.21.0 h1:x5S+0EU27Lbphp4UKm1C+1oQO+rKx36vfCoaVebLFSU=
github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY= github.com/spf13/viper v1.21.0/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U= github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=

View File

@@ -17,6 +17,7 @@ import (
) )
// ListAnnotations godoc // ListAnnotations godoc
//
// @ID ListAnnotations // @ID ListAnnotations
// @Summary List annotations (org scoped) // @Summary List annotations (org scoped)
// @Description Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. // @Description Returns annotations for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools.
@@ -69,6 +70,7 @@ func ListAnnotations(db *gorm.DB) http.HandlerFunc {
} }
// GetAnnotation godoc // GetAnnotation godoc
//
// @ID GetAnnotation // @ID GetAnnotation
// @Summary Get annotation by ID (org scoped) // @Summary Get annotation by ID (org scoped)
// @Description Returns one annotation. Add `include=node_pools` to include node pools. // @Description Returns one annotation. Add `include=node_pools` to include node pools.
@@ -115,6 +117,7 @@ func GetAnnotation(db *gorm.DB) http.HandlerFunc {
} }
// CreateAnnotation godoc // CreateAnnotation godoc
//
// @ID CreateAnnotation // @ID CreateAnnotation
// @Summary Create annotation (org scoped) // @Summary Create annotation (org scoped)
// @Description Creates an annotation. // @Description Creates an annotation.
@@ -175,6 +178,7 @@ func CreateAnnotation(db *gorm.DB) http.HandlerFunc {
} }
// UpdateAnnotation godoc // UpdateAnnotation godoc
//
// @ID UpdateAnnotation // @ID UpdateAnnotation
// @Summary Update annotation (org scoped) // @Summary Update annotation (org scoped)
// @Description Partially update annotation fields. // @Description Partially update annotation fields.
@@ -246,6 +250,7 @@ func UpdateAnnotation(db *gorm.DB) http.HandlerFunc {
} }
// DeleteAnnotation godoc // DeleteAnnotation godoc
//
// @ID DeleteAnnotation // @ID DeleteAnnotation
// @Summary Delete annotation (org scoped) // @Summary Delete annotation (org scoped)
// @Description Permanently deletes the annotation. // @Description Permanently deletes the annotation.

View File

@@ -51,6 +51,7 @@ func providerConfig(cfg config.Config, name string) (oauthProvider, bool) {
} }
// AuthStart godoc // AuthStart godoc
//
// @ID AuthStart // @ID AuthStart
// @Summary Begin social login // @Summary Begin social login
// @Description Returns provider authorization URL for the frontend to redirect // @Description Returns provider authorization URL for the frontend to redirect
@@ -118,6 +119,7 @@ func AuthStart(db *gorm.DB) http.HandlerFunc {
} }
// AuthCallback godoc // AuthCallback godoc
//
// @ID AuthCallback // @ID AuthCallback
// @Summary Handle social login callback // @Summary Handle social login callback
// @Tags Auth // @Tags Auth
@@ -306,6 +308,7 @@ func AuthCallback(db *gorm.DB) http.HandlerFunc {
} }
// Refresh godoc // Refresh godoc
//
// @ID Refresh // @ID Refresh
// @Summary Rotate refresh token // @Summary Rotate refresh token
// @Tags Auth // @Tags Auth
@@ -363,6 +366,7 @@ func Refresh(db *gorm.DB) http.HandlerFunc {
} }
// Logout godoc // Logout godoc
//
// @ID Logout // @ID Logout
// @Summary Revoke refresh token family (logout everywhere) // @Summary Revoke refresh token family (logout everywhere)
// @Tags Auth // @Tags Auth

View File

@@ -11,6 +11,7 @@ type HealthStatus struct {
} }
// HealthCheck godoc // HealthCheck godoc
//
// @Summary Basic health check // @Summary Basic health check
// @Description Returns 200 OK when the service is up // @Description Returns 200 OK when the service is up
// @Tags Health // @Tags Health

View File

@@ -20,6 +20,7 @@ import (
) )
// AdminListArcherJobs godoc // AdminListArcherJobs godoc
//
// @ID AdminListArcherJobs // @ID AdminListArcherJobs
// @Summary List Archer jobs (admin) // @Summary List Archer jobs (admin)
// @Description Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent). // @Description Paginated background jobs with optional filters. Search `q` may match id, type, error, payload (implementation-dependent).
@@ -90,6 +91,7 @@ func AdminListArcherJobs(db *gorm.DB) http.HandlerFunc {
} }
// AdminEnqueueArcherJob godoc // AdminEnqueueArcherJob godoc
//
// @ID AdminEnqueueArcherJob // @ID AdminEnqueueArcherJob
// @Summary Enqueue a new Archer job (admin) // @Summary Enqueue a new Archer job (admin)
// @Description Create a job immediately or schedule it for the future via `run_at`. // @Description Create a job immediately or schedule it for the future via `run_at`.
@@ -168,6 +170,7 @@ func AdminEnqueueArcherJob(db *gorm.DB, jobs *bg.Jobs) http.HandlerFunc {
} }
// AdminRetryArcherJob godoc // AdminRetryArcherJob godoc
//
// @ID AdminRetryArcherJob // @ID AdminRetryArcherJob
// @Summary Retry a failed/canceled Archer job (admin) // @Summary Retry a failed/canceled Archer job (admin)
// @Description Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one. // @Description Marks the job retriable (DB flip). Swap this for an Archer admin call if you expose one.
@@ -222,6 +225,7 @@ func AdminRetryArcherJob(db *gorm.DB) http.HandlerFunc {
} }
// AdminCancelArcherJob godoc // AdminCancelArcherJob godoc
//
// @ID AdminCancelArcherJob // @ID AdminCancelArcherJob
// @Summary Cancel an Archer job (admin) // @Summary Cancel an Archer job (admin)
// @Description Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill. // @Description Set job status to canceled if cancellable. For running jobs, this only affects future picks; wire to Archer if you need active kill.
@@ -274,6 +278,7 @@ func AdminCancelArcherJob(db *gorm.DB) http.HandlerFunc {
} }
// AdminListArcherQueues godoc // AdminListArcherQueues godoc
//
// @ID AdminListArcherQueues // @ID AdminListArcherQueues
// @Summary List Archer queues (admin) // @Summary List Archer queues (admin)
// @Description Summary metrics per queue (pending, running, failed, scheduled). // @Description Summary metrics per queue (pending, running, failed, scheduled).

View File

@@ -23,6 +23,7 @@ type jwks struct {
} }
// JWKSHandler godoc // JWKSHandler godoc
//
// @ID getJWKS // @ID getJWKS
// @Summary Get JWKS // @Summary Get JWKS
// @Description Returns the JSON Web Key Set for token verification // @Description Returns the JSON Web Key Set for token verification

View File

@@ -17,6 +17,7 @@ import (
) )
// ListLabels godoc // ListLabels godoc
//
// @ID ListLabels // @ID ListLabels
// @Summary List node labels (org scoped) // @Summary List node labels (org scoped)
// @Description Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups. // @Description Returns node labels for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node groups.
@@ -68,6 +69,7 @@ func ListLabels(db *gorm.DB) http.HandlerFunc {
} }
// GetLabel godoc // GetLabel godoc
//
// @ID GetLabel // @ID GetLabel
// @Summary Get label by ID (org scoped) // @Summary Get label by ID (org scoped)
// @Description Returns one label. // @Description Returns one label.
@@ -113,6 +115,7 @@ func GetLabel(db *gorm.DB) http.HandlerFunc {
} }
// CreateLabel godoc // CreateLabel godoc
//
// @ID CreateLabel // @ID CreateLabel
// @Summary Create label (org scoped) // @Summary Create label (org scoped)
// @Description Creates a label. // @Description Creates a label.
@@ -173,6 +176,7 @@ func CreateLabel(db *gorm.DB) http.HandlerFunc {
// UpdateLabel godoc // UpdateLabel godoc
// UpdateLabel godoc // UpdateLabel godoc
//
// @ID UpdateLabel // @ID UpdateLabel
// @Summary Update label (org scoped) // @Summary Update label (org scoped)
// @Description Partially update label fields. // @Description Partially update label fields.
@@ -244,6 +248,7 @@ func UpdateLabel(db *gorm.DB) http.HandlerFunc {
} }
// DeleteLabel godoc // DeleteLabel godoc
//
// @ID DeleteLabel // @ID DeleteLabel
// @Summary Delete label (org scoped) // @Summary Delete label (org scoped)
// @Description Permanently deletes the label. // @Description Permanently deletes the label.

View File

@@ -17,6 +17,7 @@ type meResponse struct {
} }
// GetMe godoc // GetMe godoc
//
// @ID GetMe // @ID GetMe
// @Summary Get current user profile // @Summary Get current user profile
// @Tags Me // @Tags Me
@@ -69,6 +70,7 @@ type updateMeRequest struct {
} }
// UpdateMe godoc // UpdateMe godoc
//
// @ID UpdateMe // @ID UpdateMe
// @Summary Update current user profile // @Summary Update current user profile
// @Tags Me // @Tags Me

View File

@@ -27,6 +27,7 @@ type userAPIKeyOut struct {
} }
// ListUserAPIKeys godoc // ListUserAPIKeys godoc
//
// @ID ListUserAPIKeys // @ID ListUserAPIKeys
// @Summary List my API keys // @Summary List my API keys
// @Tags MeAPIKeys // @Tags MeAPIKeys
@@ -64,6 +65,7 @@ type createUserKeyRequest struct {
} }
// CreateUserAPIKey godoc // CreateUserAPIKey godoc
//
// @ID CreateUserAPIKey // @ID CreateUserAPIKey
// @Summary Create a new user API key // @Summary Create a new user API key
// @Description Returns the plaintext key once. Store it securely on the client side. // @Description Returns the plaintext key once. Store it securely on the client side.
@@ -118,6 +120,7 @@ func CreateUserAPIKey(db *gorm.DB) http.HandlerFunc {
} }
// DeleteUserAPIKey godoc // DeleteUserAPIKey godoc
//
// @ID DeleteUserAPIKey // @ID DeleteUserAPIKey
// @Summary Delete a user API key // @Summary Delete a user API key
// @Tags MeAPIKeys // @Tags MeAPIKeys

View File

@@ -59,6 +59,7 @@ type orgCreateReq struct {
} }
// CreateOrg godoc // CreateOrg godoc
//
// @ID CreateOrg // @ID CreateOrg
// @Summary Create organization // @Summary Create organization
// @Tags Orgs // @Tags Orgs
@@ -111,6 +112,7 @@ func CreateOrg(db *gorm.DB) http.HandlerFunc {
} }
// ListMyOrgs godoc // ListMyOrgs godoc
//
// @ID ListMyOrgs // @ID ListMyOrgs
// @Summary List organizations I belong to // @Summary List organizations I belong to
// @Tags Orgs // @Tags Orgs
@@ -142,6 +144,7 @@ func ListMyOrgs(db *gorm.DB) http.HandlerFunc {
} }
// GetOrg godoc // GetOrg godoc
//
// @ID GetOrg // @ID GetOrg
// @Summary Get organization // @Summary Get organization
// @Tags Orgs // @Tags Orgs
@@ -184,6 +187,7 @@ type orgUpdateReq struct {
} }
// UpdateOrg godoc // UpdateOrg godoc
//
// @ID UpdateOrg // @ID UpdateOrg
// @Summary Update organization (owner/admin) // @Summary Update organization (owner/admin)
// @Tags Orgs // @Tags Orgs
@@ -242,6 +246,7 @@ func UpdateOrg(db *gorm.DB) http.HandlerFunc {
} }
// DeleteOrg godoc // DeleteOrg godoc
//
// @ID DeleteOrg // @ID DeleteOrg
// @Summary Delete organization (owner) // @Summary Delete organization (owner)
// @Tags Orgs // @Tags Orgs
@@ -297,6 +302,7 @@ type memberUpsertReq struct {
} }
// ListMembers godoc // ListMembers godoc
//
// @ID ListMembers // @ID ListMembers
// @Summary List members in org // @Summary List members in org
// @Tags Orgs // @Tags Orgs
@@ -352,6 +358,7 @@ func ListMembers(db *gorm.DB) http.HandlerFunc {
} }
// AddOrUpdateMember godoc // AddOrUpdateMember godoc
//
// @ID AddOrUpdateMember // @ID AddOrUpdateMember
// @Summary Add or update a member (owner/admin) // @Summary Add or update a member (owner/admin)
// @Tags Orgs // @Tags Orgs
@@ -419,6 +426,7 @@ func AddOrUpdateMember(db *gorm.DB) http.HandlerFunc {
} }
// RemoveMember godoc // RemoveMember godoc
//
// @ID RemoveMember // @ID RemoveMember
// @Summary Remove a member (owner/admin) // @Summary Remove a member (owner/admin)
// @Tags Orgs // @Tags Orgs
@@ -478,6 +486,7 @@ type orgKeyCreateResp struct {
} }
// ListOrgKeys godoc // ListOrgKeys godoc
//
// @ID ListOrgKeys // @ID ListOrgKeys
// @Summary List org-scoped API keys (no secrets) // @Summary List org-scoped API keys (no secrets)
// @Tags Orgs // @Tags Orgs
@@ -513,6 +522,7 @@ func ListOrgKeys(db *gorm.DB) http.HandlerFunc {
} }
// CreateOrgKey godoc // CreateOrgKey godoc
//
// @ID CreateOrgKey // @ID CreateOrgKey
// @Summary Create org key/secret pair (owner/admin) // @Summary Create org key/secret pair (owner/admin)
// @Tags Orgs // @Tags Orgs
@@ -601,6 +611,7 @@ func CreateOrgKey(db *gorm.DB) http.HandlerFunc {
} }
// DeleteOrgKey godoc // DeleteOrgKey godoc
//
// @ID DeleteOrgKey // @ID DeleteOrgKey
// @Summary Delete org key (owner/admin) // @Summary Delete org key (owner/admin)
// @Tags Orgs // @Tags Orgs

View File

@@ -17,6 +17,7 @@ import (
) )
// ListServers godoc // ListServers godoc
//
// @ID ListServers // @ID ListServers
// @Summary List servers (org scoped) // @Summary List servers (org scoped)
// @Description Returns servers for the organization in X-Org-ID. Optional filters: status, role. // @Description Returns servers for the organization in X-Org-ID. Optional filters: status, role.
@@ -83,6 +84,7 @@ func ListServers(db *gorm.DB) http.HandlerFunc {
} }
// GetServer godoc // GetServer godoc
//
// @ID GetServer // @ID GetServer
// @Summary Get server by ID (org scoped) // @Summary Get server by ID (org scoped)
// @Description Returns one server in the given organization. // @Description Returns one server in the given organization.
@@ -130,6 +132,7 @@ func GetServer(db *gorm.DB) http.HandlerFunc {
} }
// CreateServer godoc // CreateServer godoc
//
// @ID CreateServer // @ID CreateServer
// @Summary Create server (org scoped) // @Summary Create server (org scoped)
// @Description Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org. // @Description Creates a server bound to the org in X-Org-ID. Validates that ssh_key_id belongs to the org.
@@ -218,6 +221,7 @@ func CreateServer(db *gorm.DB) http.HandlerFunc {
} }
// UpdateServer godoc // UpdateServer godoc
//
// @ID UpdateServer // @ID UpdateServer
// @Summary Update server (org scoped) // @Summary Update server (org scoped)
// @Description Partially update fields; changing ssh_key_id validates ownership. // @Description Partially update fields; changing ssh_key_id validates ownership.
@@ -320,6 +324,7 @@ func UpdateServer(db *gorm.DB) http.HandlerFunc {
} }
// DeleteServer godoc // DeleteServer godoc
//
// @ID DeleteServer // @ID DeleteServer
// @Summary Delete server (org scoped) // @Summary Delete server (org scoped)
// @Description Permanently deletes the server. // @Description Permanently deletes the server.

View File

@@ -26,6 +26,7 @@ import (
) )
// ListPublicSshKeys godoc // ListPublicSshKeys godoc
//
// @ID ListPublicSshKeys // @ID ListPublicSshKeys
// @Summary List ssh keys (org scoped) // @Summary List ssh keys (org scoped)
// @Description Returns ssh keys for the organization in X-Org-ID. // @Description Returns ssh keys for the organization in X-Org-ID.
@@ -66,6 +67,7 @@ func ListPublicSshKeys(db *gorm.DB) http.HandlerFunc {
} }
// CreateSSHKey // CreateSSHKey
//
// @ID CreateSSHKey // @ID CreateSSHKey
// @Summary Create ssh keypair (org scoped) // @Summary Create ssh keypair (org scoped)
// @Description Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits. // @Description Generates an RSA or ED25519 keypair, saves it, and returns metadata. For RSA you may set bits (2048/3072/4096). Default is 4096. ED25519 ignores bits.
@@ -179,6 +181,7 @@ func CreateSSHKey(db *gorm.DB) http.HandlerFunc {
} }
// GetSSHKey godoc // GetSSHKey godoc
//
// @ID GetSSHKey // @ID GetSSHKey
// @Summary Get ssh key by ID (org scoped) // @Summary Get ssh key by ID (org scoped)
// @Description Returns public key fields. Append `?reveal=true` to include the private key PEM. // @Description Returns public key fields. Append `?reveal=true` to include the private key PEM.
@@ -272,6 +275,7 @@ func GetSSHKey(db *gorm.DB) http.HandlerFunc {
} }
// DeleteSSHKey godoc // DeleteSSHKey godoc
//
// @ID DeleteSSHKey // @ID DeleteSSHKey
// @Summary Delete ssh keypair (org scoped) // @Summary Delete ssh keypair (org scoped)
// @Description Permanently deletes a keypair. // @Description Permanently deletes a keypair.
@@ -318,6 +322,7 @@ func DeleteSSHKey(db *gorm.DB) http.HandlerFunc {
} }
// DownloadSSHKey godoc // DownloadSSHKey godoc
//
// @ID DownloadSSHKey // @ID DownloadSSHKey
// @Summary Download ssh key files by ID (org scoped) // @Summary Download ssh key files by ID (org scoped)
// @Description Download `part=public|private|both` of the keypair. `both` returns a zip file. // @Description Download `part=public|private|both` of the keypair. `both` returns a zip file.

View File

@@ -17,6 +17,7 @@ import (
) )
// ListTaints godoc // ListTaints godoc
//
// @ID ListTaints // @ID ListTaints
// @Summary List node pool taints (org scoped) // @Summary List node pool taints (org scoped)
// @Description Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools. // @Description Returns node taints for the organization in X-Org-ID. Filters: `key`, `value`, and `q` (key contains). Add `include=node_pools` to include linked node pools.
@@ -65,6 +66,7 @@ func ListTaints(db *gorm.DB) http.HandlerFunc {
} }
// GetTaint godoc // GetTaint godoc
//
// @ID GetTaint // @ID GetTaint
// @Summary Get node taint by ID (org scoped) // @Summary Get node taint by ID (org scoped)
// @Tags Taints // @Tags Taints
@@ -111,6 +113,7 @@ func GetTaint(db *gorm.DB) http.HandlerFunc {
} }
// CreateTaint godoc // CreateTaint godoc
//
// @ID CreateTaint // @ID CreateTaint
// @Summary Create node taint (org scoped) // @Summary Create node taint (org scoped)
// @Description Creates a taint. // @Description Creates a taint.
@@ -181,6 +184,7 @@ func CreateTaint(db *gorm.DB) http.HandlerFunc {
} }
// UpdateTaint godoc // UpdateTaint godoc
//
// @ID UpdateTaint // @ID UpdateTaint
// @Summary Update node taint (org scoped) // @Summary Update node taint (org scoped)
// @Description Partially update taint fields. // @Description Partially update taint fields.
@@ -270,6 +274,7 @@ func UpdateTaint(db *gorm.DB) http.HandlerFunc {
} }
// DeleteTaint godoc // DeleteTaint godoc
//
// @ID DeleteTaint // @ID DeleteTaint
// @Summary Delete taint (org scoped) // @Summary Delete taint (org scoped)
// @Description Permanently deletes the taint. // @Description Permanently deletes the taint.