Add SDK/Clean service
BUG=chromium:1046864
TEST=generate.sh
Change-Id: I7998f4e1a514102881874199a76b82d29ffdab50
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/infra/proto/+/2028756
Commit-Queue: Chris McDonald <cjmcdonald@chromium.org>
Commit-Queue: Alex Klein <saklein@chromium.org>
Tested-by: Chris McDonald <cjmcdonald@chromium.org>
Auto-Submit: Chris McDonald <cjmcdonald@chromium.org>
Reviewed-by: Alex Klein <saklein@chromium.org>
diff --git a/descpb.bin b/descpb.bin
index 58ea45b..9f34918 100644
--- a/descpb.bin
+++ b/descpb.bin
Binary files differ
diff --git a/go/chromite/api/sdk.pb.go b/go/chromite/api/sdk.pb.go
index 90dc3b7..059ee0d 100644
--- a/go/chromite/api/sdk.pb.go
+++ b/go/chromite/api/sdk.pb.go
@@ -513,6 +513,76 @@
return nil
}
+type CleanRequest struct {
+ Chroot *chromiumos.Chroot `protobuf:"bytes,1,opt,name=chroot,proto3" json:"chroot,omitempty"`
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *CleanRequest) Reset() { *m = CleanRequest{} }
+func (m *CleanRequest) String() string { return proto.CompactTextString(m) }
+func (*CleanRequest) ProtoMessage() {}
+func (*CleanRequest) Descriptor() ([]byte, []int) {
+ return fileDescriptor_b3d6bdc7c0e50b1e, []int{9}
+}
+
+func (m *CleanRequest) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_CleanRequest.Unmarshal(m, b)
+}
+func (m *CleanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_CleanRequest.Marshal(b, m, deterministic)
+}
+func (m *CleanRequest) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_CleanRequest.Merge(m, src)
+}
+func (m *CleanRequest) XXX_Size() int {
+ return xxx_messageInfo_CleanRequest.Size(m)
+}
+func (m *CleanRequest) XXX_DiscardUnknown() {
+ xxx_messageInfo_CleanRequest.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_CleanRequest proto.InternalMessageInfo
+
+func (m *CleanRequest) GetChroot() *chromiumos.Chroot {
+ if m != nil {
+ return m.Chroot
+ }
+ return nil
+}
+
+type CleanResponse struct {
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
+ XXX_unrecognized []byte `json:"-"`
+ XXX_sizecache int32 `json:"-"`
+}
+
+func (m *CleanResponse) Reset() { *m = CleanResponse{} }
+func (m *CleanResponse) String() string { return proto.CompactTextString(m) }
+func (*CleanResponse) ProtoMessage() {}
+func (*CleanResponse) Descriptor() ([]byte, []int) {
+ return fileDescriptor_b3d6bdc7c0e50b1e, []int{10}
+}
+
+func (m *CleanResponse) XXX_Unmarshal(b []byte) error {
+ return xxx_messageInfo_CleanResponse.Unmarshal(m, b)
+}
+func (m *CleanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
+ return xxx_messageInfo_CleanResponse.Marshal(b, m, deterministic)
+}
+func (m *CleanResponse) XXX_Merge(src proto.Message) {
+ xxx_messageInfo_CleanResponse.Merge(m, src)
+}
+func (m *CleanResponse) XXX_Size() int {
+ return xxx_messageInfo_CleanResponse.Size(m)
+}
+func (m *CleanResponse) XXX_DiscardUnknown() {
+ xxx_messageInfo_CleanResponse.DiscardUnknown(m)
+}
+
+var xxx_messageInfo_CleanResponse proto.InternalMessageInfo
+
func init() {
proto.RegisterType((*ChrootVersion)(nil), "chromite.api.ChrootVersion")
proto.RegisterType((*CreateRequest)(nil), "chromite.api.CreateRequest")
@@ -525,47 +595,51 @@
proto.RegisterType((*UpdateRequest)(nil), "chromite.api.UpdateRequest")
proto.RegisterType((*UpdateRequest_Flags)(nil), "chromite.api.UpdateRequest.Flags")
proto.RegisterType((*UpdateResponse)(nil), "chromite.api.UpdateResponse")
+ proto.RegisterType((*CleanRequest)(nil), "chromite.api.CleanRequest")
+ proto.RegisterType((*CleanResponse)(nil), "chromite.api.CleanResponse")
}
func init() { proto.RegisterFile("chromite/api/sdk.proto", fileDescriptor_b3d6bdc7c0e50b1e) }
var fileDescriptor_b3d6bdc7c0e50b1e = []byte{
- // 545 bytes of a gzipped FileDescriptorProto
+ // 578 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xcb, 0x6e, 0xd3, 0x40,
- 0x14, 0x55, 0x1c, 0xd5, 0x69, 0x6f, 0x1e, 0xa4, 0xb3, 0xa0, 0x91, 0x9b, 0x4a, 0xa9, 0x57, 0x05,
- 0x24, 0x5b, 0x0a, 0xe2, 0x21, 0xc1, 0xaa, 0xa9, 0x8a, 0x10, 0x3b, 0x87, 0x80, 0xc4, 0x26, 0x9a,
- 0xd8, 0x13, 0xc7, 0x4a, 0x3c, 0xd7, 0xcc, 0xd8, 0xfd, 0x11, 0x7e, 0x86, 0x75, 0xbf, 0x83, 0x5f,
- 0xe8, 0x3f, 0xa0, 0xcc, 0xd8, 0x89, 0x6d, 0x1e, 0x05, 0x75, 0x97, 0x9c, 0x7b, 0xee, 0x99, 0x33,
- 0xf7, 0x1e, 0x0f, 0x3c, 0xf6, 0x57, 0x02, 0xe3, 0x28, 0x65, 0x2e, 0x4d, 0x22, 0x57, 0x06, 0x6b,
- 0x27, 0x11, 0x98, 0x22, 0xe9, 0x14, 0xb8, 0x43, 0x93, 0xc8, 0x1a, 0x56, 0x58, 0x8b, 0x2c, 0xda,
- 0x04, 0x73, 0x9a, 0x44, 0x9a, 0x6b, 0x9d, 0xe8, 0x6a, 0x16, 0xa3, 0x74, 0x7d, 0x8c, 0x63, 0xe4,
- 0xba, 0x60, 0x3f, 0x81, 0xee, 0x64, 0x25, 0x10, 0xd3, 0x4f, 0x4c, 0xc8, 0x08, 0x39, 0x19, 0x40,
- 0xeb, 0x46, 0xff, 0x1c, 0x34, 0x46, 0x8d, 0x8b, 0xae, 0x57, 0xfc, 0xb5, 0x7f, 0x34, 0xa0,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96, 0xd9, 0xb9, 0xb9, 0x35, 0xf7,
+ 0xa1, 0x2d, 0x82, 0x75, 0x5f, 0xbb, 0x78, 0xf1, 0xf9, 0x59, 0xc8, 0xb6, 0x6e, 0xd9, 0x8c, 0x87,
+ 0x4e, 0xe5, 0x19, 0x8d, 0xe8, 0x92, 0x63, 0x47, 0xbe, 0xa2, 0x4e, 0xc8, 0x9c, 0xea, 0xf3, 0xbb,
+ 0xd0, 0x25, 0xfc, 0xe4, 0x47, 0x00, 0x00, 0x00, 0xff, 0xff, 0x18, 0xcc, 0x51, 0x22, 0xbb, 0x05,
+ 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -584,6 +658,8 @@
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
// Delete a chroot.
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
+ // Clean up unneeded files from the chroot.
+ Clean(ctx context.Context, in *CleanRequest, opts ...grpc.CallOption) (*CleanResponse, error)
// Unmount a chroot.
Unmount(ctx context.Context, in *UnmountRequest, opts ...grpc.CallOption) (*UnmountResponse, error)
// Update the chroot.
@@ -616,6 +692,15 @@
return out, nil
}
+func (c *sdkServiceClient) Clean(ctx context.Context, in *CleanRequest, opts ...grpc.CallOption) (*CleanResponse, error) {
+ out := new(CleanResponse)
+ err := c.cc.Invoke(ctx, "/chromite.api.SdkService/Clean", in, out, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *sdkServiceClient) Unmount(ctx context.Context, in *UnmountRequest, opts ...grpc.CallOption) (*UnmountResponse, error) {
out := new(UnmountResponse)
err := c.cc.Invoke(ctx, "/chromite.api.SdkService/Unmount", in, out, opts...)
@@ -640,6 +725,8 @@
Create(context.Context, *CreateRequest) (*CreateResponse, error)
// Delete a chroot.
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
+ // Clean up unneeded files from the chroot.
+ Clean(context.Context, *CleanRequest) (*CleanResponse, error)
// Unmount a chroot.
Unmount(context.Context, *UnmountRequest) (*UnmountResponse, error)
// Update the chroot.
@@ -656,6 +743,9 @@
func (*UnimplementedSdkServiceServer) Delete(ctx context.Context, req *DeleteRequest) (*DeleteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented")
}
+func (*UnimplementedSdkServiceServer) Clean(ctx context.Context, req *CleanRequest) (*CleanResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method Clean not implemented")
+}
func (*UnimplementedSdkServiceServer) Unmount(ctx context.Context, req *UnmountRequest) (*UnmountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Unmount not implemented")
}
@@ -703,6 +793,24 @@
return interceptor(ctx, in, info, handler)
}
+func _SdkService_Clean_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(CleanRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(SdkServiceServer).Clean(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: "/chromite.api.SdkService/Clean",
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(SdkServiceServer).Clean(ctx, req.(*CleanRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _SdkService_Unmount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UnmountRequest)
if err := dec(in); err != nil {
@@ -752,6 +860,10 @@
Handler: _SdkService_Delete_Handler,
},
{
+ MethodName: "Clean",
+ Handler: _SdkService_Clean_Handler,
+ },
+ {
MethodName: "Unmount",
Handler: _SdkService_Unmount_Handler,
},
diff --git a/src/chromite/api/sdk.proto b/src/chromite/api/sdk.proto
index f5b8cd8..ce01720 100644
--- a/src/chromite/api/sdk.proto
+++ b/src/chromite/api/sdk.proto
@@ -83,6 +83,12 @@
ChrootVersion version = 1;
}
+message CleanRequest {
+ chromiumos.Chroot chroot = 1;
+}
+
+message CleanResponse {}
+
// SDK operations.
service SdkService {
// The service options (see build_api.proto).
@@ -97,6 +103,9 @@
// Delete a chroot.
rpc Delete(DeleteRequest) returns (DeleteResponse);
+ // Clean up unneeded files from the chroot.
+ rpc Clean(CleanRequest) returns (CleanResponse);
+
// Unmount a chroot.
rpc Unmount(UnmountRequest) returns (UnmountResponse);