Remove all gogoproto extensions
This commit removes the following gogoproto extensions; - gogoproto.nullable - gogoproto.customename - gogoproto.unmarshaller_all - gogoproto.stringer_all - gogoproto.sizer_all - gogoproto.marshaler_all - gogoproto.goproto_unregonized_all - gogoproto.goproto_stringer_all - gogoproto.goproto_getters_all None of them are supported by Google's toolchain (see #6564). Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
This commit is contained in:
@@ -61,7 +61,7 @@ type sandboxLocal struct {
|
||||
var _ = (api.StoreClient)(&sandboxLocal{})
|
||||
|
||||
func (s *sandboxLocal) Create(ctx context.Context, in *api.StoreCreateRequest, _ ...grpc.CallOption) (*api.StoreCreateResponse, error) {
|
||||
sb, err := s.store.Create(ctx, sandbox.FromProto(&in.Sandbox))
|
||||
sb, err := s.store.Create(ctx, sandbox.FromProto(in.Sandbox))
|
||||
if err != nil {
|
||||
return nil, errdefs.ToGRPC(err)
|
||||
}
|
||||
@@ -70,7 +70,7 @@ func (s *sandboxLocal) Create(ctx context.Context, in *api.StoreCreateRequest, _
|
||||
}
|
||||
|
||||
func (s *sandboxLocal) Update(ctx context.Context, in *api.StoreUpdateRequest, _ ...grpc.CallOption) (*api.StoreUpdateResponse, error) {
|
||||
sb, err := s.store.Update(ctx, sandbox.FromProto(&in.Sandbox), in.Fields...)
|
||||
sb, err := s.store.Update(ctx, sandbox.FromProto(in.Sandbox), in.Fields...)
|
||||
if err != nil {
|
||||
return nil, errdefs.ToGRPC(err)
|
||||
}
|
||||
@@ -85,7 +85,7 @@ func (s *sandboxLocal) Get(ctx context.Context, in *api.StoreGetRequest, _ ...gr
|
||||
}
|
||||
|
||||
desc := sandbox.ToProto(&resp)
|
||||
return &api.StoreGetResponse{Sandbox: &desc}, nil
|
||||
return &api.StoreGetResponse{Sandbox: desc}, nil
|
||||
}
|
||||
|
||||
func (s *sandboxLocal) List(ctx context.Context, in *api.StoreListRequest, _ ...grpc.CallOption) (*api.StoreListResponse, error) {
|
||||
@@ -94,7 +94,7 @@ func (s *sandboxLocal) List(ctx context.Context, in *api.StoreListRequest, _ ...
|
||||
return nil, errdefs.ToGRPC(err)
|
||||
}
|
||||
|
||||
list := make([]types.Sandbox, len(resp))
|
||||
list := make([]*types.Sandbox, len(resp))
|
||||
for i := range resp {
|
||||
list[i] = sandbox.ToProto(&resp[i])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user