Remove enumvalue_customname, goproto_enum_prefix and enum_customname
This commit removes gogoproto.enumvalue_customname, gogoproto.goproto_enum_prefix and gogoproto.enum_customname. All of them make proto-generated Go code more idiomatic, but we already don't use these enums in our external-surfacing types and they are anyway not supported by Google's official toolchain (see #6564). Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
@@ -314,18 +314,18 @@ func (s *Service) State(ctx context.Context, r *shimapi.StateRequest) (*shimapi.
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
status := task.StatusUnknown
|
||||
status := task.Status_UNKNOWN
|
||||
switch st {
|
||||
case "created":
|
||||
status = task.StatusCreated
|
||||
status = task.Status_CREATED
|
||||
case "running":
|
||||
status = task.StatusRunning
|
||||
status = task.Status_RUNNING
|
||||
case "stopped":
|
||||
status = task.StatusStopped
|
||||
status = task.Status_STOPPED
|
||||
case "paused":
|
||||
status = task.StatusPaused
|
||||
status = task.Status_PAUSED
|
||||
case "pausing":
|
||||
status = task.StatusPausing
|
||||
status = task.Status_PAUSING
|
||||
}
|
||||
sio := p.Stdio()
|
||||
return &shimapi.StateResponse{
|
||||
|
||||
Reference in New Issue
Block a user