chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:08:39 +08:00
commit a0df89c693
5252 changed files with 523444 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
package sources
import portainer "github.com/portainer/portainer/api"
// Status is the string representation of portainer.Status used in API responses.
type Status string
const (
SourceStatusUnknown Status = "unknown"
SourceStatusHealthy Status = "healthy"
SourceStatusError Status = "error"
)
func StatusString(s portainer.SourceStatus) Status {
switch s {
case portainer.SourceStatusHealthy:
return SourceStatusHealthy
case portainer.SourceStatusError:
return SourceStatusError
default:
return SourceStatusUnknown
}
}