mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 04:40:05 +01:00
fix: clean cache and go mod tidy for go1.25.3
This commit is contained in:
5
go.mod
5
go.mod
@@ -30,11 +30,10 @@ require (
|
||||
github.com/KyleBanks/depth v1.2.1 // indirect
|
||||
github.com/fsnotify/fsnotify v1.9.0 // 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/jsonreference v0.21.2 // indirect
|
||||
github.com/go-openapi/jsonpointer v0.19.6 // indirect
|
||||
github.com/go-openapi/jsonreference v0.20.2 // indirect
|
||||
github.com/go-openapi/spec v0.20.9 // 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-viper/mapstructure/v2 v2.4.0 // indirect
|
||||
github.com/goccy/go-json v0.10.5 // indirect
|
||||
|
||||
20
go.sum
20
go.sum
@@ -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-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.22.1 h1:sHYI1He3b9NqJ4wXLoJDKmUmHkWy/L7rtEo92JUxBNk=
|
||||
github.com/go-openapi/jsonpointer v0.22.1/go.mod h1:pQT9OsLkfz1yWoMgYFy4x3U5GY5nUlsOn1qSBH5MkCM=
|
||||
github.com/go-openapi/jsonpointer v0.19.6 h1:eCs3fxoIi3Wh6vtgmLTOjdhSpiqphQ+DaPn38N2ZdrE=
|
||||
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.21.2 h1:Wxjda4M/BBQllegefXrY/9aq1fxBA8sI5M/lFU6tSWU=
|
||||
github.com/go-openapi/jsonreference v0.21.2/go.mod h1:pp3PEjIsJ9CZDGCNOyXIQxsNuroxm8FAJ/+quA0yKzQ=
|
||||
github.com/go-openapi/jsonreference v0.20.2 h1:3sVjiK66+uXK/6oQ8xgcRKcFgQ5KXa2KvnJRumpMGbE=
|
||||
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/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.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/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.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
|
||||
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/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
||||
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/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
|
||||
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/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
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.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
|
||||
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
|
||||
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/zerolog v1.34.0 h1:k43nTLIwcTVQAncfCw4KZ2VY6ukYoZaBPNOE8txlOeY=
|
||||
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/go.mod h1:P0lhsswPGWD/1lZJ9ny3fYnVqxiegrlNrEmgLjbTCAY=
|
||||
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/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
|
||||
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.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/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
|
||||
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
|
||||
|
||||
@@ -17,6 +17,7 @@ import (
|
||||
)
|
||||
|
||||
// ListAnnotations godoc
|
||||
//
|
||||
// @ID ListAnnotations
|
||||
// @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.
|
||||
@@ -69,6 +70,7 @@ func ListAnnotations(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// GetAnnotation godoc
|
||||
//
|
||||
// @ID GetAnnotation
|
||||
// @Summary Get annotation by ID (org scoped)
|
||||
// @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
|
||||
//
|
||||
// @ID CreateAnnotation
|
||||
// @Summary Create annotation (org scoped)
|
||||
// @Description Creates an annotation.
|
||||
@@ -175,6 +178,7 @@ func CreateAnnotation(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// UpdateAnnotation godoc
|
||||
//
|
||||
// @ID UpdateAnnotation
|
||||
// @Summary Update annotation (org scoped)
|
||||
// @Description Partially update annotation fields.
|
||||
@@ -246,6 +250,7 @@ func UpdateAnnotation(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DeleteAnnotation godoc
|
||||
//
|
||||
// @ID DeleteAnnotation
|
||||
// @Summary Delete annotation (org scoped)
|
||||
// @Description Permanently deletes the annotation.
|
||||
|
||||
@@ -51,6 +51,7 @@ func providerConfig(cfg config.Config, name string) (oauthProvider, bool) {
|
||||
}
|
||||
|
||||
// AuthStart godoc
|
||||
//
|
||||
// @ID AuthStart
|
||||
// @Summary Begin social login
|
||||
// @Description Returns provider authorization URL for the frontend to redirect
|
||||
@@ -118,6 +119,7 @@ func AuthStart(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// AuthCallback godoc
|
||||
//
|
||||
// @ID AuthCallback
|
||||
// @Summary Handle social login callback
|
||||
// @Tags Auth
|
||||
@@ -306,6 +308,7 @@ func AuthCallback(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// Refresh godoc
|
||||
//
|
||||
// @ID Refresh
|
||||
// @Summary Rotate refresh token
|
||||
// @Tags Auth
|
||||
@@ -363,6 +366,7 @@ func Refresh(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// Logout godoc
|
||||
//
|
||||
// @ID Logout
|
||||
// @Summary Revoke refresh token family (logout everywhere)
|
||||
// @Tags Auth
|
||||
|
||||
@@ -11,6 +11,7 @@ type HealthStatus struct {
|
||||
}
|
||||
|
||||
// HealthCheck godoc
|
||||
//
|
||||
// @Summary Basic health check
|
||||
// @Description Returns 200 OK when the service is up
|
||||
// @Tags Health
|
||||
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
)
|
||||
|
||||
// AdminListArcherJobs godoc
|
||||
//
|
||||
// @ID AdminListArcherJobs
|
||||
// @Summary List Archer jobs (admin)
|
||||
// @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
|
||||
//
|
||||
// @ID AdminEnqueueArcherJob
|
||||
// @Summary Enqueue a new Archer job (admin)
|
||||
// @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
|
||||
//
|
||||
// @ID AdminRetryArcherJob
|
||||
// @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.
|
||||
@@ -222,6 +225,7 @@ func AdminRetryArcherJob(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// AdminCancelArcherJob godoc
|
||||
//
|
||||
// @ID AdminCancelArcherJob
|
||||
// @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.
|
||||
@@ -274,6 +278,7 @@ func AdminCancelArcherJob(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// AdminListArcherQueues godoc
|
||||
//
|
||||
// @ID AdminListArcherQueues
|
||||
// @Summary List Archer queues (admin)
|
||||
// @Description Summary metrics per queue (pending, running, failed, scheduled).
|
||||
|
||||
@@ -23,6 +23,7 @@ type jwks struct {
|
||||
}
|
||||
|
||||
// JWKSHandler godoc
|
||||
//
|
||||
// @ID getJWKS
|
||||
// @Summary Get JWKS
|
||||
// @Description Returns the JSON Web Key Set for token verification
|
||||
|
||||
@@ -17,6 +17,7 @@ import (
|
||||
)
|
||||
|
||||
// ListLabels godoc
|
||||
//
|
||||
// @ID ListLabels
|
||||
// @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.
|
||||
@@ -68,6 +69,7 @@ func ListLabels(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// GetLabel godoc
|
||||
//
|
||||
// @ID GetLabel
|
||||
// @Summary Get label by ID (org scoped)
|
||||
// @Description Returns one label.
|
||||
@@ -113,6 +115,7 @@ func GetLabel(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// CreateLabel godoc
|
||||
//
|
||||
// @ID CreateLabel
|
||||
// @Summary Create label (org scoped)
|
||||
// @Description Creates a label.
|
||||
@@ -173,6 +176,7 @@ func CreateLabel(db *gorm.DB) http.HandlerFunc {
|
||||
|
||||
// UpdateLabel godoc
|
||||
// UpdateLabel godoc
|
||||
//
|
||||
// @ID UpdateLabel
|
||||
// @Summary Update label (org scoped)
|
||||
// @Description Partially update label fields.
|
||||
@@ -244,6 +248,7 @@ func UpdateLabel(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DeleteLabel godoc
|
||||
//
|
||||
// @ID DeleteLabel
|
||||
// @Summary Delete label (org scoped)
|
||||
// @Description Permanently deletes the label.
|
||||
|
||||
@@ -17,6 +17,7 @@ type meResponse struct {
|
||||
}
|
||||
|
||||
// GetMe godoc
|
||||
//
|
||||
// @ID GetMe
|
||||
// @Summary Get current user profile
|
||||
// @Tags Me
|
||||
@@ -69,6 +70,7 @@ type updateMeRequest struct {
|
||||
}
|
||||
|
||||
// UpdateMe godoc
|
||||
//
|
||||
// @ID UpdateMe
|
||||
// @Summary Update current user profile
|
||||
// @Tags Me
|
||||
|
||||
@@ -27,6 +27,7 @@ type userAPIKeyOut struct {
|
||||
}
|
||||
|
||||
// ListUserAPIKeys godoc
|
||||
//
|
||||
// @ID ListUserAPIKeys
|
||||
// @Summary List my API keys
|
||||
// @Tags MeAPIKeys
|
||||
@@ -64,6 +65,7 @@ type createUserKeyRequest struct {
|
||||
}
|
||||
|
||||
// CreateUserAPIKey godoc
|
||||
//
|
||||
// @ID CreateUserAPIKey
|
||||
// @Summary Create a new user API key
|
||||
// @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
|
||||
//
|
||||
// @ID DeleteUserAPIKey
|
||||
// @Summary Delete a user API key
|
||||
// @Tags MeAPIKeys
|
||||
|
||||
@@ -59,6 +59,7 @@ type orgCreateReq struct {
|
||||
}
|
||||
|
||||
// CreateOrg godoc
|
||||
//
|
||||
// @ID CreateOrg
|
||||
// @Summary Create organization
|
||||
// @Tags Orgs
|
||||
@@ -111,6 +112,7 @@ func CreateOrg(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// ListMyOrgs godoc
|
||||
//
|
||||
// @ID ListMyOrgs
|
||||
// @Summary List organizations I belong to
|
||||
// @Tags Orgs
|
||||
@@ -142,6 +144,7 @@ func ListMyOrgs(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// GetOrg godoc
|
||||
//
|
||||
// @ID GetOrg
|
||||
// @Summary Get organization
|
||||
// @Tags Orgs
|
||||
@@ -184,6 +187,7 @@ type orgUpdateReq struct {
|
||||
}
|
||||
|
||||
// UpdateOrg godoc
|
||||
//
|
||||
// @ID UpdateOrg
|
||||
// @Summary Update organization (owner/admin)
|
||||
// @Tags Orgs
|
||||
@@ -242,6 +246,7 @@ func UpdateOrg(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DeleteOrg godoc
|
||||
//
|
||||
// @ID DeleteOrg
|
||||
// @Summary Delete organization (owner)
|
||||
// @Tags Orgs
|
||||
@@ -297,6 +302,7 @@ type memberUpsertReq struct {
|
||||
}
|
||||
|
||||
// ListMembers godoc
|
||||
//
|
||||
// @ID ListMembers
|
||||
// @Summary List members in org
|
||||
// @Tags Orgs
|
||||
@@ -352,6 +358,7 @@ func ListMembers(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// AddOrUpdateMember godoc
|
||||
//
|
||||
// @ID AddOrUpdateMember
|
||||
// @Summary Add or update a member (owner/admin)
|
||||
// @Tags Orgs
|
||||
@@ -419,6 +426,7 @@ func AddOrUpdateMember(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// RemoveMember godoc
|
||||
//
|
||||
// @ID RemoveMember
|
||||
// @Summary Remove a member (owner/admin)
|
||||
// @Tags Orgs
|
||||
@@ -478,6 +486,7 @@ type orgKeyCreateResp struct {
|
||||
}
|
||||
|
||||
// ListOrgKeys godoc
|
||||
//
|
||||
// @ID ListOrgKeys
|
||||
// @Summary List org-scoped API keys (no secrets)
|
||||
// @Tags Orgs
|
||||
@@ -513,6 +522,7 @@ func ListOrgKeys(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// CreateOrgKey godoc
|
||||
//
|
||||
// @ID CreateOrgKey
|
||||
// @Summary Create org key/secret pair (owner/admin)
|
||||
// @Tags Orgs
|
||||
@@ -601,6 +611,7 @@ func CreateOrgKey(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DeleteOrgKey godoc
|
||||
//
|
||||
// @ID DeleteOrgKey
|
||||
// @Summary Delete org key (owner/admin)
|
||||
// @Tags Orgs
|
||||
|
||||
@@ -17,6 +17,7 @@ import (
|
||||
)
|
||||
|
||||
// ListServers godoc
|
||||
//
|
||||
// @ID ListServers
|
||||
// @Summary List servers (org scoped)
|
||||
// @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
|
||||
//
|
||||
// @ID GetServer
|
||||
// @Summary Get server by ID (org scoped)
|
||||
// @Description Returns one server in the given organization.
|
||||
@@ -130,6 +132,7 @@ func GetServer(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// CreateServer godoc
|
||||
//
|
||||
// @ID CreateServer
|
||||
// @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.
|
||||
@@ -218,6 +221,7 @@ func CreateServer(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// UpdateServer godoc
|
||||
//
|
||||
// @ID UpdateServer
|
||||
// @Summary Update server (org scoped)
|
||||
// @Description Partially update fields; changing ssh_key_id validates ownership.
|
||||
@@ -320,6 +324,7 @@ func UpdateServer(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DeleteServer godoc
|
||||
//
|
||||
// @ID DeleteServer
|
||||
// @Summary Delete server (org scoped)
|
||||
// @Description Permanently deletes the server.
|
||||
|
||||
@@ -26,6 +26,7 @@ import (
|
||||
)
|
||||
|
||||
// ListPublicSshKeys godoc
|
||||
//
|
||||
// @ID ListPublicSshKeys
|
||||
// @Summary List ssh keys (org scoped)
|
||||
// @Description Returns ssh keys for the organization in X-Org-ID.
|
||||
@@ -66,6 +67,7 @@ func ListPublicSshKeys(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// CreateSSHKey
|
||||
//
|
||||
// @ID CreateSSHKey
|
||||
// @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.
|
||||
@@ -179,6 +181,7 @@ func CreateSSHKey(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// GetSSHKey godoc
|
||||
//
|
||||
// @ID GetSSHKey
|
||||
// @Summary Get ssh key by ID (org scoped)
|
||||
// @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
|
||||
//
|
||||
// @ID DeleteSSHKey
|
||||
// @Summary Delete ssh keypair (org scoped)
|
||||
// @Description Permanently deletes a keypair.
|
||||
@@ -318,6 +322,7 @@ func DeleteSSHKey(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DownloadSSHKey godoc
|
||||
//
|
||||
// @ID DownloadSSHKey
|
||||
// @Summary Download ssh key files by ID (org scoped)
|
||||
// @Description Download `part=public|private|both` of the keypair. `both` returns a zip file.
|
||||
|
||||
@@ -17,6 +17,7 @@ import (
|
||||
)
|
||||
|
||||
// ListTaints godoc
|
||||
//
|
||||
// @ID ListTaints
|
||||
// @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.
|
||||
@@ -65,6 +66,7 @@ func ListTaints(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// GetTaint godoc
|
||||
//
|
||||
// @ID GetTaint
|
||||
// @Summary Get node taint by ID (org scoped)
|
||||
// @Tags Taints
|
||||
@@ -111,6 +113,7 @@ func GetTaint(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// CreateTaint godoc
|
||||
//
|
||||
// @ID CreateTaint
|
||||
// @Summary Create node taint (org scoped)
|
||||
// @Description Creates a taint.
|
||||
@@ -181,6 +184,7 @@ func CreateTaint(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// UpdateTaint godoc
|
||||
//
|
||||
// @ID UpdateTaint
|
||||
// @Summary Update node taint (org scoped)
|
||||
// @Description Partially update taint fields.
|
||||
@@ -270,6 +274,7 @@ func UpdateTaint(db *gorm.DB) http.HandlerFunc {
|
||||
}
|
||||
|
||||
// DeleteTaint godoc
|
||||
//
|
||||
// @ID DeleteTaint
|
||||
// @Summary Delete taint (org scoped)
|
||||
// @Description Permanently deletes the taint.
|
||||
|
||||
Reference in New Issue
Block a user