MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / FromDeployState

Function FromDeployState

module/ai-local/dto/output.go:116–135  ·  view source on GitHub ↗
(state int)

Source from the content-addressed store, hash-verified

114}
115
116func FromDeployState(state int) DeployState {
117 switch state {
118 case 1:
119 return DeployStateDownload
120 case 2:
121 return DeployStateDeploy
122 case 3:
123 return DeployStateInitializing
124 case 4:
125 return DeployStateFinish
126 case 5:
127 return DeployStateDownloadError
128 case 6:
129 return DeployStateDeployError
130 case 7:
131 return DeployStateInitializingError
132 default:
133 return DeployStateDownload
134 }
135}
136
137type ModelInfo struct {
138 Current int64 `json:"current"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected