(stage agentproto.Timing_Stage)
| 172 | } |
| 173 | |
| 174 | func protoScriptTimingStageToDatabase(stage agentproto.Timing_Stage) database.WorkspaceAgentScriptTimingStage { |
| 175 | var dbStage database.WorkspaceAgentScriptTimingStage |
| 176 | switch stage { |
| 177 | case agentproto.Timing_START: |
| 178 | dbStage = database.WorkspaceAgentScriptTimingStageStart |
| 179 | case agentproto.Timing_STOP: |
| 180 | dbStage = database.WorkspaceAgentScriptTimingStageStop |
| 181 | case agentproto.Timing_CRON: |
| 182 | dbStage = database.WorkspaceAgentScriptTimingStageCron |
| 183 | } |
| 184 | return dbStage |
| 185 | } |
| 186 | |
| 187 | func protoScriptTimingStatusToDatabase(stage agentproto.Timing_Status) database.WorkspaceAgentScriptTimingStatus { |
| 188 | var dbStatus database.WorkspaceAgentScriptTimingStatus |
no outgoing calls
no test coverage detected