| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: chromite/api/image.proto |
| |
| package api |
| |
| import ( |
| context "context" |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| chromiumos "go.chromium.org/chromiumos/infra/proto/go/chromiumos" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| math "math" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| |
| // Image argument - encapsulate data about an image. |
| type Image struct { |
| // Path to the image file. |
| Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` |
| // The image type. |
| Type chromiumos.ImageType `protobuf:"varint,2,opt,name=type,proto3,enum=chromiumos.ImageType" json:"type,omitempty"` |
| // The build target used to create the image. |
| BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,3,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *Image) Reset() { *m = Image{} } |
| func (m *Image) String() string { return proto.CompactTextString(m) } |
| func (*Image) ProtoMessage() {} |
| func (*Image) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{0} |
| } |
| |
| func (m *Image) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_Image.Unmarshal(m, b) |
| } |
| func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_Image.Marshal(b, m, deterministic) |
| } |
| func (m *Image) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_Image.Merge(m, src) |
| } |
| func (m *Image) XXX_Size() int { |
| return xxx_messageInfo_Image.Size(m) |
| } |
| func (m *Image) XXX_DiscardUnknown() { |
| xxx_messageInfo_Image.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_Image proto.InternalMessageInfo |
| |
| func (m *Image) GetPath() string { |
| if m != nil { |
| return m.Path |
| } |
| return "" |
| } |
| |
| func (m *Image) GetType() chromiumos.ImageType { |
| if m != nil { |
| return m.Type |
| } |
| return chromiumos.ImageType_IMAGE_TYPE_UNDEFINED |
| } |
| |
| func (m *Image) GetBuildTarget() *chromiumos.BuildTarget { |
| if m != nil { |
| return m.BuildTarget |
| } |
| return nil |
| } |
| |
| // The image test arguments. |
| type CreateImageRequest struct { |
| // Required. |
| // The build target whose image is being built. |
| BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,1,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` |
| // The types of images to build, defaults to building base image. |
| // Note: Building either of the VM image types will also force the |
| // corresponding regular image to be built. Only one VM image type may be |
| // built at a time, and will overwrite any previously built VM image if the |
| // same output directory (version) is used. |
| ImageTypes []chromiumos.ImageType `protobuf:"varint,2,rep,packed,name=image_types,json=imageTypes,proto3,enum=chromiumos.ImageType" json:"image_types,omitempty"` |
| // Whether rootfs verification should be disabled (enabled by default). |
| DisableRootfsVerification bool `protobuf:"varint,3,opt,name=disable_rootfs_verification,json=disableRootfsVerification,proto3" json:"disable_rootfs_verification,omitempty"` |
| // The image version. |
| Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"` |
| // Disk layout option. See README.disk_layout and legacy_disk_layout.json in |
| // src/scripts/build_library. |
| DiskLayout string `protobuf:"bytes,5,opt,name=disk_layout,json=diskLayout,proto3" json:"disk_layout,omitempty"` |
| // Used to set the LSB builder path key in /etc/lsb-release. See |
| // chromite/scripts/cros_set_lsb_release.py. |
| BuilderPath string `protobuf:"bytes,6,opt,name=builder_path,json=builderPath,proto3" json:"builder_path,omitempty"` |
| // The chroot to use to execute the endpoint. |
| Chroot *chromiumos.Chroot `protobuf:"bytes,7,opt,name=chroot,proto3" json:"chroot,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CreateImageRequest) Reset() { *m = CreateImageRequest{} } |
| func (m *CreateImageRequest) String() string { return proto.CompactTextString(m) } |
| func (*CreateImageRequest) ProtoMessage() {} |
| func (*CreateImageRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{1} |
| } |
| |
| func (m *CreateImageRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CreateImageRequest.Unmarshal(m, b) |
| } |
| func (m *CreateImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CreateImageRequest.Marshal(b, m, deterministic) |
| } |
| func (m *CreateImageRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CreateImageRequest.Merge(m, src) |
| } |
| func (m *CreateImageRequest) XXX_Size() int { |
| return xxx_messageInfo_CreateImageRequest.Size(m) |
| } |
| func (m *CreateImageRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_CreateImageRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CreateImageRequest proto.InternalMessageInfo |
| |
| func (m *CreateImageRequest) GetBuildTarget() *chromiumos.BuildTarget { |
| if m != nil { |
| return m.BuildTarget |
| } |
| return nil |
| } |
| |
| func (m *CreateImageRequest) GetImageTypes() []chromiumos.ImageType { |
| if m != nil { |
| return m.ImageTypes |
| } |
| return nil |
| } |
| |
| func (m *CreateImageRequest) GetDisableRootfsVerification() bool { |
| if m != nil { |
| return m.DisableRootfsVerification |
| } |
| return false |
| } |
| |
| func (m *CreateImageRequest) GetVersion() string { |
| if m != nil { |
| return m.Version |
| } |
| return "" |
| } |
| |
| func (m *CreateImageRequest) GetDiskLayout() string { |
| if m != nil { |
| return m.DiskLayout |
| } |
| return "" |
| } |
| |
| func (m *CreateImageRequest) GetBuilderPath() string { |
| if m != nil { |
| return m.BuilderPath |
| } |
| return "" |
| } |
| |
| func (m *CreateImageRequest) GetChroot() *chromiumos.Chroot { |
| if m != nil { |
| return m.Chroot |
| } |
| return nil |
| } |
| |
| type CreateImageResult struct { |
| // Whether it completed successfully. |
| Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` |
| // Images that were built. Will contain no more than one per image type. |
| Images []*Image `protobuf:"bytes,2,rep,name=images,proto3" json:"images,omitempty"` |
| // Any packages that failed to build. Empty on success. |
| FailedPackages []*chromiumos.PackageInfo `protobuf:"bytes,3,rep,name=failed_packages,json=failedPackages,proto3" json:"failed_packages,omitempty"` |
| // The metric events that occurred during the running of CreateImage. |
| Events []*chromiumos.MetricEvent `protobuf:"bytes,4,rep,name=events,proto3" json:"events,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *CreateImageResult) Reset() { *m = CreateImageResult{} } |
| func (m *CreateImageResult) String() string { return proto.CompactTextString(m) } |
| func (*CreateImageResult) ProtoMessage() {} |
| func (*CreateImageResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{2} |
| } |
| |
| func (m *CreateImageResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_CreateImageResult.Unmarshal(m, b) |
| } |
| func (m *CreateImageResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_CreateImageResult.Marshal(b, m, deterministic) |
| } |
| func (m *CreateImageResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_CreateImageResult.Merge(m, src) |
| } |
| func (m *CreateImageResult) XXX_Size() int { |
| return xxx_messageInfo_CreateImageResult.Size(m) |
| } |
| func (m *CreateImageResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_CreateImageResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_CreateImageResult proto.InternalMessageInfo |
| |
| func (m *CreateImageResult) GetSuccess() bool { |
| if m != nil { |
| return m.Success |
| } |
| return false |
| } |
| |
| func (m *CreateImageResult) GetImages() []*Image { |
| if m != nil { |
| return m.Images |
| } |
| return nil |
| } |
| |
| func (m *CreateImageResult) GetFailedPackages() []*chromiumos.PackageInfo { |
| if m != nil { |
| return m.FailedPackages |
| } |
| return nil |
| } |
| |
| func (m *CreateImageResult) GetEvents() []*chromiumos.MetricEvent { |
| if m != nil { |
| return m.Events |
| } |
| return nil |
| } |
| |
| // The image test arguments. |
| type TestImageRequest struct { |
| // The image to be tested. |
| // Image.path is required. |
| Image *Image `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` |
| // The build target whose image is being tested. |
| // BuildTarget.name is required. |
| BuildTarget *chromiumos.BuildTarget `protobuf:"bytes,2,opt,name=build_target,json=buildTarget,proto3" json:"build_target,omitempty"` |
| // Required. |
| Result *TestImageRequest_Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` |
| // The chroot to use to execute the endpoint. |
| Chroot *chromiumos.Chroot `protobuf:"bytes,4,opt,name=chroot,proto3" json:"chroot,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TestImageRequest) Reset() { *m = TestImageRequest{} } |
| func (m *TestImageRequest) String() string { return proto.CompactTextString(m) } |
| func (*TestImageRequest) ProtoMessage() {} |
| func (*TestImageRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{3} |
| } |
| |
| func (m *TestImageRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TestImageRequest.Unmarshal(m, b) |
| } |
| func (m *TestImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TestImageRequest.Marshal(b, m, deterministic) |
| } |
| func (m *TestImageRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TestImageRequest.Merge(m, src) |
| } |
| func (m *TestImageRequest) XXX_Size() int { |
| return xxx_messageInfo_TestImageRequest.Size(m) |
| } |
| func (m *TestImageRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_TestImageRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TestImageRequest proto.InternalMessageInfo |
| |
| func (m *TestImageRequest) GetImage() *Image { |
| if m != nil { |
| return m.Image |
| } |
| return nil |
| } |
| |
| func (m *TestImageRequest) GetBuildTarget() *chromiumos.BuildTarget { |
| if m != nil { |
| return m.BuildTarget |
| } |
| return nil |
| } |
| |
| func (m *TestImageRequest) GetResult() *TestImageRequest_Result { |
| if m != nil { |
| return m.Result |
| } |
| return nil |
| } |
| |
| func (m *TestImageRequest) GetChroot() *chromiumos.Chroot { |
| if m != nil { |
| return m.Chroot |
| } |
| return nil |
| } |
| |
| // Test results options specifications. |
| type TestImageRequest_Result struct { |
| // Location where the test results should be written. |
| Directory string `protobuf:"bytes,1,opt,name=directory,proto3" json:"directory,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TestImageRequest_Result) Reset() { *m = TestImageRequest_Result{} } |
| func (m *TestImageRequest_Result) String() string { return proto.CompactTextString(m) } |
| func (*TestImageRequest_Result) ProtoMessage() {} |
| func (*TestImageRequest_Result) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{3, 0} |
| } |
| |
| func (m *TestImageRequest_Result) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TestImageRequest_Result.Unmarshal(m, b) |
| } |
| func (m *TestImageRequest_Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TestImageRequest_Result.Marshal(b, m, deterministic) |
| } |
| func (m *TestImageRequest_Result) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TestImageRequest_Result.Merge(m, src) |
| } |
| func (m *TestImageRequest_Result) XXX_Size() int { |
| return xxx_messageInfo_TestImageRequest_Result.Size(m) |
| } |
| func (m *TestImageRequest_Result) XXX_DiscardUnknown() { |
| xxx_messageInfo_TestImageRequest_Result.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TestImageRequest_Result proto.InternalMessageInfo |
| |
| func (m *TestImageRequest_Result) GetDirectory() string { |
| if m != nil { |
| return m.Directory |
| } |
| return "" |
| } |
| |
| type TestImageResult struct { |
| // Whether all tests passed. |
| Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *TestImageResult) Reset() { *m = TestImageResult{} } |
| func (m *TestImageResult) String() string { return proto.CompactTextString(m) } |
| func (*TestImageResult) ProtoMessage() {} |
| func (*TestImageResult) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{4} |
| } |
| |
| func (m *TestImageResult) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_TestImageResult.Unmarshal(m, b) |
| } |
| func (m *TestImageResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_TestImageResult.Marshal(b, m, deterministic) |
| } |
| func (m *TestImageResult) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_TestImageResult.Merge(m, src) |
| } |
| func (m *TestImageResult) XXX_Size() int { |
| return xxx_messageInfo_TestImageResult.Size(m) |
| } |
| func (m *TestImageResult) XXX_DiscardUnknown() { |
| xxx_messageInfo_TestImageResult.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_TestImageResult proto.InternalMessageInfo |
| |
| func (m *TestImageResult) GetSuccess() bool { |
| if m != nil { |
| return m.Success |
| } |
| return false |
| } |
| |
| // Request artifacts to be pushed from the archive bucket to the release bucket, |
| // using chromite/scripts/pushimage.py. |
| type PushImageRequest struct { |
| // The chroot used to execute the endpoint. |
| Chroot *chromiumos.Chroot `protobuf:"bytes,1,opt,name=chroot,proto3" json:"chroot,omitempty"` |
| // Whether or not this push image request is a dry run. |
| Dryrun bool `protobuf:"varint,2,opt,name=dryrun,proto3" json:"dryrun,omitempty"` |
| // GS path of source artifacts to push to the release bucket. |
| GsImageDir string `protobuf:"bytes,3,opt,name=gs_image_dir,json=gsImageDir,proto3" json:"gs_image_dir,omitempty"` |
| // Sysroot (board) to generate symbols for. |
| Sysroot *Sysroot `protobuf:"bytes,4,opt,name=sysroot,proto3" json:"sysroot,omitempty"` |
| // Board profile in use (e.g. "asan"). |
| // If set, the pushimage script will look for artifacts with this profile |
| // in their name. |
| Profile *chromiumos.Profile `protobuf:"bytes,5,opt,name=profile,proto3" json:"profile,omitempty"` |
| // If set, only sign specified image types. |
| SignTypes []chromiumos.ImageType `protobuf:"varint,6,rep,packed,name=sign_types,json=signTypes,proto3,enum=chromiumos.ImageType" json:"sign_types,omitempty"` |
| // Destination bucket for push image operations. |
| // If not set, 'gs://chromeos-releases' will be used. |
| DestBucket string `protobuf:"bytes,7,opt,name=dest_bucket,json=destBucket,proto3" json:"dest_bucket,omitempty"` |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PushImageRequest) Reset() { *m = PushImageRequest{} } |
| func (m *PushImageRequest) String() string { return proto.CompactTextString(m) } |
| func (*PushImageRequest) ProtoMessage() {} |
| func (*PushImageRequest) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{5} |
| } |
| |
| func (m *PushImageRequest) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PushImageRequest.Unmarshal(m, b) |
| } |
| func (m *PushImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PushImageRequest.Marshal(b, m, deterministic) |
| } |
| func (m *PushImageRequest) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PushImageRequest.Merge(m, src) |
| } |
| func (m *PushImageRequest) XXX_Size() int { |
| return xxx_messageInfo_PushImageRequest.Size(m) |
| } |
| func (m *PushImageRequest) XXX_DiscardUnknown() { |
| xxx_messageInfo_PushImageRequest.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PushImageRequest proto.InternalMessageInfo |
| |
| func (m *PushImageRequest) GetChroot() *chromiumos.Chroot { |
| if m != nil { |
| return m.Chroot |
| } |
| return nil |
| } |
| |
| func (m *PushImageRequest) GetDryrun() bool { |
| if m != nil { |
| return m.Dryrun |
| } |
| return false |
| } |
| |
| func (m *PushImageRequest) GetGsImageDir() string { |
| if m != nil { |
| return m.GsImageDir |
| } |
| return "" |
| } |
| |
| func (m *PushImageRequest) GetSysroot() *Sysroot { |
| if m != nil { |
| return m.Sysroot |
| } |
| return nil |
| } |
| |
| func (m *PushImageRequest) GetProfile() *chromiumos.Profile { |
| if m != nil { |
| return m.Profile |
| } |
| return nil |
| } |
| |
| func (m *PushImageRequest) GetSignTypes() []chromiumos.ImageType { |
| if m != nil { |
| return m.SignTypes |
| } |
| return nil |
| } |
| |
| func (m *PushImageRequest) GetDestBucket() string { |
| if m != nil { |
| return m.DestBucket |
| } |
| return "" |
| } |
| |
| // Response from pushimage script. |
| type PushImageResponse struct { |
| XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| XXX_unrecognized []byte `json:"-"` |
| XXX_sizecache int32 `json:"-"` |
| } |
| |
| func (m *PushImageResponse) Reset() { *m = PushImageResponse{} } |
| func (m *PushImageResponse) String() string { return proto.CompactTextString(m) } |
| func (*PushImageResponse) ProtoMessage() {} |
| func (*PushImageResponse) Descriptor() ([]byte, []int) { |
| return fileDescriptor_abef4ffabc69f3ed, []int{6} |
| } |
| |
| func (m *PushImageResponse) XXX_Unmarshal(b []byte) error { |
| return xxx_messageInfo_PushImageResponse.Unmarshal(m, b) |
| } |
| func (m *PushImageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| return xxx_messageInfo_PushImageResponse.Marshal(b, m, deterministic) |
| } |
| func (m *PushImageResponse) XXX_Merge(src proto.Message) { |
| xxx_messageInfo_PushImageResponse.Merge(m, src) |
| } |
| func (m *PushImageResponse) XXX_Size() int { |
| return xxx_messageInfo_PushImageResponse.Size(m) |
| } |
| func (m *PushImageResponse) XXX_DiscardUnknown() { |
| xxx_messageInfo_PushImageResponse.DiscardUnknown(m) |
| } |
| |
| var xxx_messageInfo_PushImageResponse proto.InternalMessageInfo |
| |
| func init() { |
| proto.RegisterType((*Image)(nil), "chromite.api.Image") |
| proto.RegisterType((*CreateImageRequest)(nil), "chromite.api.CreateImageRequest") |
| proto.RegisterType((*CreateImageResult)(nil), "chromite.api.CreateImageResult") |
| proto.RegisterType((*TestImageRequest)(nil), "chromite.api.TestImageRequest") |
| proto.RegisterType((*TestImageRequest_Result)(nil), "chromite.api.TestImageRequest.Result") |
| proto.RegisterType((*TestImageResult)(nil), "chromite.api.TestImageResult") |
| proto.RegisterType((*PushImageRequest)(nil), "chromite.api.PushImageRequest") |
| proto.RegisterType((*PushImageResponse)(nil), "chromite.api.PushImageResponse") |
| } |
| |
| func init() { proto.RegisterFile("chromite/api/image.proto", fileDescriptor_abef4ffabc69f3ed) } |
| |
| var fileDescriptor_abef4ffabc69f3ed = []byte{ |
| // 766 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xcf, 0x6e, 0xf3, 0x44, |
| 0x10, 0x97, 0xd3, 0xd4, 0x69, 0x26, 0xa1, 0x7f, 0xb6, 0x2a, 0x35, 0xa6, 0xd0, 0x10, 0x09, 0xd4, |
| 0x52, 0x11, 0x4b, 0x01, 0x55, 0x08, 0x09, 0x84, 0x5a, 0x7a, 0xa8, 0x5a, 0xa4,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, 0x00, 0x00, 0xff, 0xff, 0x70, 0xc6, 0xb1, 0x87, 0x53, 0x07, 0x00, 0x00, |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // ImageServiceClient is the client API for ImageService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| type ImageServiceClient interface { |
| // Build an image. |
| // Example json: |
| // { |
| // "build_target": {"name": "reef"}, |
| // } |
| Create(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageResult, error) |
| // Test an image. |
| // Example json: |
| // { |
| // "build_target": {"name": "reef"}, |
| // "image": {"path": "/mnt/host/source/src/build/images/reef/latest"}, |
| // "result": {"directory": "/tmp/image_test_results"} |
| // } |
| Test(ctx context.Context, in *TestImageRequest, opts ...grpc.CallOption) (*TestImageResult, error) |
| // Execute SignerTest for an image. |
| // Example json: |
| // { |
| // "build_target": {"name": "reef"}, |
| // "image": {"path": "/mnt/host/source/src/build/images/reef/latest"}, |
| // "result": {"directory": "/tmp/image_test_results"} |
| // } |
| SignerTest(ctx context.Context, in *TestImageRequest, opts ...grpc.CallOption) (*TestImageResult, error) |
| // Execute PushImage for a script. |
| // Example json: |
| // { |
| // "dryrun": true, |
| // "gs_image_dir": "gs://chromeos-image-archive/atlas-release/R89-13604.0.0", |
| // "sysroot": { |
| // "build_target": { |
| // "name": "atlas" |
| // } |
| // }, |
| // "sign_types": [1, 6] |
| // } |
| PushImage(ctx context.Context, in *PushImageRequest, opts ...grpc.CallOption) (*PushImageResponse, error) |
| } |
| |
| type imageServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewImageServiceClient(cc *grpc.ClientConn) ImageServiceClient { |
| return &imageServiceClient{cc} |
| } |
| |
| func (c *imageServiceClient) Create(ctx context.Context, in *CreateImageRequest, opts ...grpc.CallOption) (*CreateImageResult, error) { |
| out := new(CreateImageResult) |
| err := c.cc.Invoke(ctx, "/chromite.api.ImageService/Create", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *imageServiceClient) Test(ctx context.Context, in *TestImageRequest, opts ...grpc.CallOption) (*TestImageResult, error) { |
| out := new(TestImageResult) |
| err := c.cc.Invoke(ctx, "/chromite.api.ImageService/Test", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *imageServiceClient) SignerTest(ctx context.Context, in *TestImageRequest, opts ...grpc.CallOption) (*TestImageResult, error) { |
| out := new(TestImageResult) |
| err := c.cc.Invoke(ctx, "/chromite.api.ImageService/SignerTest", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *imageServiceClient) PushImage(ctx context.Context, in *PushImageRequest, opts ...grpc.CallOption) (*PushImageResponse, error) { |
| out := new(PushImageResponse) |
| err := c.cc.Invoke(ctx, "/chromite.api.ImageService/PushImage", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // ImageServiceServer is the server API for ImageService service. |
| type ImageServiceServer interface { |
| // Build an image. |
| // Example json: |
| // { |
| // "build_target": {"name": "reef"}, |
| // } |
| Create(context.Context, *CreateImageRequest) (*CreateImageResult, error) |
| // Test an image. |
| // Example json: |
| // { |
| // "build_target": {"name": "reef"}, |
| // "image": {"path": "/mnt/host/source/src/build/images/reef/latest"}, |
| // "result": {"directory": "/tmp/image_test_results"} |
| // } |
| Test(context.Context, *TestImageRequest) (*TestImageResult, error) |
| // Execute SignerTest for an image. |
| // Example json: |
| // { |
| // "build_target": {"name": "reef"}, |
| // "image": {"path": "/mnt/host/source/src/build/images/reef/latest"}, |
| // "result": {"directory": "/tmp/image_test_results"} |
| // } |
| SignerTest(context.Context, *TestImageRequest) (*TestImageResult, error) |
| // Execute PushImage for a script. |
| // Example json: |
| // { |
| // "dryrun": true, |
| // "gs_image_dir": "gs://chromeos-image-archive/atlas-release/R89-13604.0.0", |
| // "sysroot": { |
| // "build_target": { |
| // "name": "atlas" |
| // } |
| // }, |
| // "sign_types": [1, 6] |
| // } |
| PushImage(context.Context, *PushImageRequest) (*PushImageResponse, error) |
| } |
| |
| // UnimplementedImageServiceServer can be embedded to have forward compatible implementations. |
| type UnimplementedImageServiceServer struct { |
| } |
| |
| func (*UnimplementedImageServiceServer) Create(ctx context.Context, req *CreateImageRequest) (*CreateImageResult, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") |
| } |
| func (*UnimplementedImageServiceServer) Test(ctx context.Context, req *TestImageRequest) (*TestImageResult, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method Test not implemented") |
| } |
| func (*UnimplementedImageServiceServer) SignerTest(ctx context.Context, req *TestImageRequest) (*TestImageResult, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SignerTest not implemented") |
| } |
| func (*UnimplementedImageServiceServer) PushImage(ctx context.Context, req *PushImageRequest) (*PushImageResponse, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method PushImage not implemented") |
| } |
| |
| func RegisterImageServiceServer(s *grpc.Server, srv ImageServiceServer) { |
| s.RegisterService(&_ImageService_serviceDesc, srv) |
| } |
| |
| func _ImageService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ImageServiceServer).Create(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/chromite.api.ImageService/Create", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ImageServiceServer).Create(ctx, req.(*CreateImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _ImageService_Test_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(TestImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ImageServiceServer).Test(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/chromite.api.ImageService/Test", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ImageServiceServer).Test(ctx, req.(*TestImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _ImageService_SignerTest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(TestImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ImageServiceServer).SignerTest(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/chromite.api.ImageService/SignerTest", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ImageServiceServer).SignerTest(ctx, req.(*TestImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _ImageService_PushImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(PushImageRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(ImageServiceServer).PushImage(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/chromite.api.ImageService/PushImage", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(ImageServiceServer).PushImage(ctx, req.(*PushImageRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _ImageService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "chromite.api.ImageService", |
| HandlerType: (*ImageServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "Create", |
| Handler: _ImageService_Create_Handler, |
| }, |
| { |
| MethodName: "Test", |
| Handler: _ImageService_Test_Handler, |
| }, |
| { |
| MethodName: "SignerTest", |
| Handler: _ImageService_SignerTest_Handler, |
| }, |
| { |
| MethodName: "PushImage", |
| Handler: _ImageService_PushImage_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "chromite/api/image.proto", |
| } |