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

Method Int

module/ai-local/dto/output.go:95–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93}
94
95func (d DeployState) Int() int {
96 switch d {
97 case DeployStateDownload:
98 return 1
99 case DeployStateDeploy:
100 return 2
101 case DeployStateInitializing:
102 return 3
103 case DeployStateFinish:
104 return 4
105 case DeployStateDownloadError:
106 return 5
107 case DeployStateDeployError:
108 return 6
109 case DeployStateInitializingError:
110 return 7
111 default:
112 return 1
113 }
114}
115
116func FromDeployState(state int) DeployState {
117 switch state {

Callers 8

SimpleListMethod · 0.45
SearchMethod · 0.45
pullHookMethod · 0.45
DeployMethod · 0.45
RemoveModelMethod · 0.45
EnableMethod · 0.45
DisableMethod · 0.45
getLocalModelsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected