control.pb.go 78.4 KB
Newer Older
J
jingxiaolu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: api/services/control.proto

package isula_build_v1

import (
	context "context"
	fmt "fmt"
	proto "github.com/gogo/protobuf/proto"
	types "github.com/gogo/protobuf/types"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
14
	math "math"
J
jingxiaolu 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
)

// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package

type HealthCheckResponse_ServingStatus int32

const (
	HealthCheckResponse_UNKNOWN     HealthCheckResponse_ServingStatus = 0
	HealthCheckResponse_SERVING     HealthCheckResponse_ServingStatus = 1
	HealthCheckResponse_NOT_SERVING HealthCheckResponse_ServingStatus = 2
)

var HealthCheckResponse_ServingStatus_name = map[int32]string{
	0: "UNKNOWN",
	1: "SERVING",
	2: "NOT_SERVING",
}

var HealthCheckResponse_ServingStatus_value = map[string]int32{
	"UNKNOWN":     0,
	"SERVING":     1,
	"NOT_SERVING": 2,
}

func (x HealthCheckResponse_ServingStatus) String() string {
	return proto.EnumName(HealthCheckResponse_ServingStatus_name, int32(x))
}

func (HealthCheckResponse_ServingStatus) EnumDescriptor() ([]byte, []int) {
X
xiadanni 已提交
53
	return fileDescriptor_d71ef680555cb937, []int{13, 0}
J
jingxiaolu 已提交
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
}

type BuildRequest struct {
	// buildType is the type of this build action
	BuildType string `protobuf:"bytes,1,opt,name=buildType,proto3" json:"buildType,omitempty"`
	// buildID is an unique id for this building process
	BuildID string `protobuf:"bytes,2,opt,name=buildID,proto3" json:"buildID,omitempty"`
	// contextDir is the working directory of building context
	ContextDir string `protobuf:"bytes,3,opt,name=contextDir,proto3" json:"contextDir,omitempty"`
	// fileContent is the content of Dockerfile
	FileContent string `protobuf:"bytes,4,opt,name=fileContent,proto3" json:"fileContent,omitempty"`
	// output is the way of exporting built image
	Output string `protobuf:"bytes,5,opt,name=output,proto3" json:"output,omitempty"`
	// buildArgs are args for this building
	BuildArgs []string `protobuf:"bytes,6,rep,name=buildArgs,proto3" json:"buildArgs,omitempty"`
	// proxy marks for whether inherit proxy environments from host
	Proxy bool `protobuf:"varint,7,opt,name=proxy,proto3" json:"proxy,omitempty"`
	// iidfile is the file client writes image ID to
	Iidfile string `protobuf:"bytes,8,opt,name=iidfile,proto3" json:"iidfile,omitempty"`
	// buildStatic is used to hold the options for static build
	BuildStatic *BuildStatic `protobuf:"bytes,9,opt,name=buildStatic,proto3" json:"buildStatic,omitempty"`
	// encryptKey is key to encrypt items in buildArgs
76 77
	EncryptKey string `protobuf:"bytes,10,opt,name=encryptKey,proto3" json:"encryptKey,omitempty"`
	// additionalTag is the tag applied to the built image
78 79 80
	AdditionalTag string `protobuf:"bytes,11,opt,name=additionalTag,proto3" json:"additionalTag,omitempty"`
	// capAddList indicates Linux capabilities for RUN command
	CapAddList           []string `protobuf:"bytes,12,rep,name=capAddList,proto3" json:"capAddList,omitempty"`
J
jingxiaolu 已提交
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *BuildRequest) Reset()         { *m = BuildRequest{} }
func (m *BuildRequest) String() string { return proto.CompactTextString(m) }
func (*BuildRequest) ProtoMessage()    {}
func (*BuildRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{0}
}
func (m *BuildRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_BuildRequest.Unmarshal(m, b)
}
func (m *BuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_BuildRequest.Marshal(b, m, deterministic)
}
func (m *BuildRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_BuildRequest.Merge(m, src)
}
func (m *BuildRequest) XXX_Size() int {
	return xxx_messageInfo_BuildRequest.Size(m)
}
func (m *BuildRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_BuildRequest.DiscardUnknown(m)
}

var xxx_messageInfo_BuildRequest proto.InternalMessageInfo

func (m *BuildRequest) GetBuildType() string {
	if m != nil {
		return m.BuildType
	}
	return ""
}

func (m *BuildRequest) GetBuildID() string {
	if m != nil {
		return m.BuildID
	}
	return ""
}

func (m *BuildRequest) GetContextDir() string {
	if m != nil {
		return m.ContextDir
	}
	return ""
}

func (m *BuildRequest) GetFileContent() string {
	if m != nil {
		return m.FileContent
	}
	return ""
}

func (m *BuildRequest) GetOutput() string {
	if m != nil {
		return m.Output
	}
	return ""
}

func (m *BuildRequest) GetBuildArgs() []string {
	if m != nil {
		return m.BuildArgs
	}
	return nil
}

func (m *BuildRequest) GetProxy() bool {
	if m != nil {
		return m.Proxy
	}
	return false
}

func (m *BuildRequest) GetIidfile() string {
	if m != nil {
		return m.Iidfile
	}
	return ""
}

func (m *BuildRequest) GetBuildStatic() *BuildStatic {
	if m != nil {
		return m.BuildStatic
	}
	return nil
}

func (m *BuildRequest) GetEncryptKey() string {
	if m != nil {
		return m.EncryptKey
	}
	return ""
}

180 181 182 183 184 185 186
func (m *BuildRequest) GetAdditionalTag() string {
	if m != nil {
		return m.AdditionalTag
	}
	return ""
}

187 188 189 190 191 192 193
func (m *BuildRequest) GetCapAddList() []string {
	if m != nil {
		return m.CapAddList
	}
	return nil
}

194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
type ImportRequest struct {
	// reference is reference of the import image
	Reference string `protobuf:"bytes,1,opt,name=reference,proto3" json:"reference,omitempty"`
	// data is the tarball of the import image
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ImportRequest) Reset()         { *m = ImportRequest{} }
func (m *ImportRequest) String() string { return proto.CompactTextString(m) }
func (*ImportRequest) ProtoMessage()    {}
func (*ImportRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{1}
}
func (m *ImportRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ImportRequest.Unmarshal(m, b)
}
func (m *ImportRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ImportRequest.Marshal(b, m, deterministic)
}
func (m *ImportRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ImportRequest.Merge(m, src)
}
func (m *ImportRequest) XXX_Size() int {
	return xxx_messageInfo_ImportRequest.Size(m)
}
func (m *ImportRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ImportRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ImportRequest proto.InternalMessageInfo

func (m *ImportRequest) GetReference() string {
	if m != nil {
		return m.Reference
	}
	return ""
}

func (m *ImportRequest) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

type ImportResponse struct {
J
Jeff Zvier 已提交
243 244
	// log is log send to cli
	Log                  string   `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ImportResponse) Reset()         { *m = ImportResponse{} }
func (m *ImportResponse) String() string { return proto.CompactTextString(m) }
func (*ImportResponse) ProtoMessage()    {}
func (*ImportResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{2}
}
func (m *ImportResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ImportResponse.Unmarshal(m, b)
}
func (m *ImportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ImportResponse.Marshal(b, m, deterministic)
}
func (m *ImportResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ImportResponse.Merge(m, src)
}
func (m *ImportResponse) XXX_Size() int {
	return xxx_messageInfo_ImportResponse.Size(m)
}
func (m *ImportResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ImportResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ImportResponse proto.InternalMessageInfo

J
Jeff Zvier 已提交
274
func (m *ImportResponse) GetLog() string {
275
	if m != nil {
J
Jeff Zvier 已提交
276
		return m.Log
277 278 279 280
	}
	return ""
}

J
jingxiaolu 已提交
281 282 283 284 285 286 287 288 289 290 291 292
type BuildStatic struct {
	// buildTime is a fixed time for binary equivalence build
	BuildTime            *types.Timestamp `protobuf:"bytes,1,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

func (m *BuildStatic) Reset()         { *m = BuildStatic{} }
func (m *BuildStatic) String() string { return proto.CompactTextString(m) }
func (*BuildStatic) ProtoMessage()    {}
func (*BuildStatic) Descriptor() ([]byte, []int) {
293
	return fileDescriptor_d71ef680555cb937, []int{3}
J
jingxiaolu 已提交
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333
}
func (m *BuildStatic) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_BuildStatic.Unmarshal(m, b)
}
func (m *BuildStatic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_BuildStatic.Marshal(b, m, deterministic)
}
func (m *BuildStatic) XXX_Merge(src proto.Message) {
	xxx_messageInfo_BuildStatic.Merge(m, src)
}
func (m *BuildStatic) XXX_Size() int {
	return xxx_messageInfo_BuildStatic.Size(m)
}
func (m *BuildStatic) XXX_DiscardUnknown() {
	xxx_messageInfo_BuildStatic.DiscardUnknown(m)
}

var xxx_messageInfo_BuildStatic proto.InternalMessageInfo

func (m *BuildStatic) GetBuildTime() *types.Timestamp {
	if m != nil {
		return m.BuildTime
	}
	return nil
}

type BuildResponse struct {
	// imageID is the ID of built image
	ImageID string `protobuf:"bytes,1,opt,name=imageID,proto3" json:"imageID,omitempty"`
	// data pipes the output stream back to client
	Data                 []byte   `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *BuildResponse) Reset()         { *m = BuildResponse{} }
func (m *BuildResponse) String() string { return proto.CompactTextString(m) }
func (*BuildResponse) ProtoMessage()    {}
func (*BuildResponse) Descriptor() ([]byte, []int) {
334
	return fileDescriptor_d71ef680555cb937, []int{4}
J
jingxiaolu 已提交
335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
}
func (m *BuildResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_BuildResponse.Unmarshal(m, b)
}
func (m *BuildResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_BuildResponse.Marshal(b, m, deterministic)
}
func (m *BuildResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_BuildResponse.Merge(m, src)
}
func (m *BuildResponse) XXX_Size() int {
	return xxx_messageInfo_BuildResponse.Size(m)
}
func (m *BuildResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_BuildResponse.DiscardUnknown(m)
}

var xxx_messageInfo_BuildResponse proto.InternalMessageInfo

func (m *BuildResponse) GetImageID() string {
	if m != nil {
		return m.ImageID
	}
	return ""
}

func (m *BuildResponse) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

type StatusRequest struct {
	// buildID is an unique id for this building process, same with BuildRequest
	BuildID              string   `protobuf:"bytes,1,opt,name=buildID,proto3" json:"buildID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *StatusRequest) Reset()         { *m = StatusRequest{} }
func (m *StatusRequest) String() string { return proto.CompactTextString(m) }
func (*StatusRequest) ProtoMessage()    {}
func (*StatusRequest) Descriptor() ([]byte, []int) {
380
	return fileDescriptor_d71ef680555cb937, []int{5}
J
jingxiaolu 已提交
381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418
}
func (m *StatusRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StatusRequest.Unmarshal(m, b)
}
func (m *StatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StatusRequest.Marshal(b, m, deterministic)
}
func (m *StatusRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StatusRequest.Merge(m, src)
}
func (m *StatusRequest) XXX_Size() int {
	return xxx_messageInfo_StatusRequest.Size(m)
}
func (m *StatusRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_StatusRequest.DiscardUnknown(m)
}

var xxx_messageInfo_StatusRequest proto.InternalMessageInfo

func (m *StatusRequest) GetBuildID() string {
	if m != nil {
		return m.BuildID
	}
	return ""
}

type StatusResponse struct {
	// content pipes the image building process log back to client
	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *StatusResponse) Reset()         { *m = StatusResponse{} }
func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
func (*StatusResponse) ProtoMessage()    {}
func (*StatusResponse) Descriptor() ([]byte, []int) {
419
	return fileDescriptor_d71ef680555cb937, []int{6}
J
jingxiaolu 已提交
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
}
func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StatusResponse.Unmarshal(m, b)
}
func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
}
func (m *StatusResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StatusResponse.Merge(m, src)
}
func (m *StatusResponse) XXX_Size() int {
	return xxx_messageInfo_StatusResponse.Size(m)
}
func (m *StatusResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_StatusResponse.DiscardUnknown(m)
}

var xxx_messageInfo_StatusResponse proto.InternalMessageInfo

func (m *StatusResponse) GetContent() string {
	if m != nil {
		return m.Content
	}
	return ""
}

type ListRequest struct {
	// imageName lists specific images with imageName
	ImageName            string   `protobuf:"bytes,1,opt,name=imageName,proto3" json:"imageName,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ListRequest) Reset()         { *m = ListRequest{} }
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
func (*ListRequest) ProtoMessage()    {}
func (*ListRequest) Descriptor() ([]byte, []int) {
458
	return fileDescriptor_d71ef680555cb937, []int{7}
J
jingxiaolu 已提交
459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484
}
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListRequest.Unmarshal(m, b)
}
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
}
func (m *ListRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListRequest.Merge(m, src)
}
func (m *ListRequest) XXX_Size() int {
	return xxx_messageInfo_ListRequest.Size(m)
}
func (m *ListRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_ListRequest.DiscardUnknown(m)
}

var xxx_messageInfo_ListRequest proto.InternalMessageInfo

func (m *ListRequest) GetImageName() string {
	if m != nil {
		return m.ImageName
	}
	return ""
}

X
xiadanni 已提交
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532
type TagRequest struct {
	// image refers to the image to be tagged
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// tag is the tag added to image
	Tag                  string   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *TagRequest) Reset()         { *m = TagRequest{} }
func (m *TagRequest) String() string { return proto.CompactTextString(m) }
func (*TagRequest) ProtoMessage()    {}
func (*TagRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{8}
}
func (m *TagRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_TagRequest.Unmarshal(m, b)
}
func (m *TagRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_TagRequest.Marshal(b, m, deterministic)
}
func (m *TagRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_TagRequest.Merge(m, src)
}
func (m *TagRequest) XXX_Size() int {
	return xxx_messageInfo_TagRequest.Size(m)
}
func (m *TagRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_TagRequest.DiscardUnknown(m)
}

var xxx_messageInfo_TagRequest proto.InternalMessageInfo

func (m *TagRequest) GetImage() string {
	if m != nil {
		return m.Image
	}
	return ""
}

func (m *TagRequest) GetTag() string {
	if m != nil {
		return m.Tag
	}
	return ""
}

J
jingxiaolu 已提交
533 534 535 536 537 538 539 540 541 542 543 544
type ListResponse struct {
	// ImageInfo carries the basic info of an image
	Images               []*ListResponse_ImageInfo `protobuf:"bytes,1,rep,name=images,proto3" json:"images,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (m *ListResponse) Reset()         { *m = ListResponse{} }
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
func (*ListResponse) ProtoMessage()    {}
func (*ListResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
545
	return fileDescriptor_d71ef680555cb937, []int{9}
J
jingxiaolu 已提交
546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586
}
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListResponse.Unmarshal(m, b)
}
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
}
func (m *ListResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListResponse.Merge(m, src)
}
func (m *ListResponse) XXX_Size() int {
	return xxx_messageInfo_ListResponse.Size(m)
}
func (m *ListResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_ListResponse.DiscardUnknown(m)
}

var xxx_messageInfo_ListResponse proto.InternalMessageInfo

func (m *ListResponse) GetImages() []*ListResponse_ImageInfo {
	if m != nil {
		return m.Images
	}
	return nil
}

type ListResponse_ImageInfo struct {
	Repository           string   `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
	Tag                  string   `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
	Id                   string   `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
	Created              string   `protobuf:"bytes,4,opt,name=created,proto3" json:"created,omitempty"`
	Size_                string   `protobuf:"bytes,5,opt,name=size,proto3" json:"size,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *ListResponse_ImageInfo) Reset()         { *m = ListResponse_ImageInfo{} }
func (m *ListResponse_ImageInfo) String() string { return proto.CompactTextString(m) }
func (*ListResponse_ImageInfo) ProtoMessage()    {}
func (*ListResponse_ImageInfo) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
587
	return fileDescriptor_d71ef680555cb937, []int{9, 0}
J
jingxiaolu 已提交
588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661
}
func (m *ListResponse_ImageInfo) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_ListResponse_ImageInfo.Unmarshal(m, b)
}
func (m *ListResponse_ImageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_ListResponse_ImageInfo.Marshal(b, m, deterministic)
}
func (m *ListResponse_ImageInfo) XXX_Merge(src proto.Message) {
	xxx_messageInfo_ListResponse_ImageInfo.Merge(m, src)
}
func (m *ListResponse_ImageInfo) XXX_Size() int {
	return xxx_messageInfo_ListResponse_ImageInfo.Size(m)
}
func (m *ListResponse_ImageInfo) XXX_DiscardUnknown() {
	xxx_messageInfo_ListResponse_ImageInfo.DiscardUnknown(m)
}

var xxx_messageInfo_ListResponse_ImageInfo proto.InternalMessageInfo

func (m *ListResponse_ImageInfo) GetRepository() string {
	if m != nil {
		return m.Repository
	}
	return ""
}

func (m *ListResponse_ImageInfo) GetTag() string {
	if m != nil {
		return m.Tag
	}
	return ""
}

func (m *ListResponse_ImageInfo) GetId() string {
	if m != nil {
		return m.Id
	}
	return ""
}

func (m *ListResponse_ImageInfo) GetCreated() string {
	if m != nil {
		return m.Created
	}
	return ""
}

func (m *ListResponse_ImageInfo) GetSize_() string {
	if m != nil {
		return m.Size_
	}
	return ""
}

type VersionResponse struct {
	// version is isula-builder version
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// goVersion is the golang version userd for compiling isula-builder
	GoVersion string `protobuf:"bytes,2,opt,name=goVersion,proto3" json:"goVersion,omitempty"`
	// gitCommit is the git commit ID for the compiled isula-builder
	GitCommit string `protobuf:"bytes,3,opt,name=gitCommit,proto3" json:"gitCommit,omitempty"`
	// buildTime is the time when compiling isula-builder
	BuildTime string `protobuf:"bytes,4,opt,name=buildTime,proto3" json:"buildTime,omitempty"`
	// osArch is the arch the isula-builder built on
	OsArch               string   `protobuf:"bytes,5,opt,name=osArch,proto3" json:"osArch,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *VersionResponse) Reset()         { *m = VersionResponse{} }
func (m *VersionResponse) String() string { return proto.CompactTextString(m) }
func (*VersionResponse) ProtoMessage()    {}
func (*VersionResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
662
	return fileDescriptor_d71ef680555cb937, []int{10}
J
jingxiaolu 已提交
663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732
}
func (m *VersionResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_VersionResponse.Unmarshal(m, b)
}
func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic)
}
func (m *VersionResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_VersionResponse.Merge(m, src)
}
func (m *VersionResponse) XXX_Size() int {
	return xxx_messageInfo_VersionResponse.Size(m)
}
func (m *VersionResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_VersionResponse.DiscardUnknown(m)
}

var xxx_messageInfo_VersionResponse proto.InternalMessageInfo

func (m *VersionResponse) GetVersion() string {
	if m != nil {
		return m.Version
	}
	return ""
}

func (m *VersionResponse) GetGoVersion() string {
	if m != nil {
		return m.GoVersion
	}
	return ""
}

func (m *VersionResponse) GetGitCommit() string {
	if m != nil {
		return m.GitCommit
	}
	return ""
}

func (m *VersionResponse) GetBuildTime() string {
	if m != nil {
		return m.BuildTime
	}
	return ""
}

func (m *VersionResponse) GetOsArch() string {
	if m != nil {
		return m.OsArch
	}
	return ""
}

type RemoveRequest struct {
	// imageID is the images to be deleted
	ImageID []string `protobuf:"bytes,1,rep,name=imageID,proto3" json:"imageID,omitempty"`
	// all tells isula-builder to delete all images
	All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
	// prune tells isula-builder to delete all untagge images
	Prune                bool     `protobuf:"varint,3,opt,name=prune,proto3" json:"prune,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *RemoveRequest) Reset()         { *m = RemoveRequest{} }
func (m *RemoveRequest) String() string { return proto.CompactTextString(m) }
func (*RemoveRequest) ProtoMessage()    {}
func (*RemoveRequest) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
733
	return fileDescriptor_d71ef680555cb937, []int{11}
J
jingxiaolu 已提交
734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785
}
func (m *RemoveRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_RemoveRequest.Unmarshal(m, b)
}
func (m *RemoveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_RemoveRequest.Marshal(b, m, deterministic)
}
func (m *RemoveRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_RemoveRequest.Merge(m, src)
}
func (m *RemoveRequest) XXX_Size() int {
	return xxx_messageInfo_RemoveRequest.Size(m)
}
func (m *RemoveRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_RemoveRequest.DiscardUnknown(m)
}

var xxx_messageInfo_RemoveRequest proto.InternalMessageInfo

func (m *RemoveRequest) GetImageID() []string {
	if m != nil {
		return m.ImageID
	}
	return nil
}

func (m *RemoveRequest) GetAll() bool {
	if m != nil {
		return m.All
	}
	return false
}

func (m *RemoveRequest) GetPrune() bool {
	if m != nil {
		return m.Prune
	}
	return false
}

type RemoveResponse struct {
	// layerMessage is response message indicate the images deleted successfully or error occured
	LayerMessage         string   `protobuf:"bytes,1,opt,name=layerMessage,proto3" json:"layerMessage,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *RemoveResponse) Reset()         { *m = RemoveResponse{} }
func (m *RemoveResponse) String() string { return proto.CompactTextString(m) }
func (*RemoveResponse) ProtoMessage()    {}
func (*RemoveResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
786
	return fileDescriptor_d71ef680555cb937, []int{12}
J
jingxiaolu 已提交
787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824
}
func (m *RemoveResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_RemoveResponse.Unmarshal(m, b)
}
func (m *RemoveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_RemoveResponse.Marshal(b, m, deterministic)
}
func (m *RemoveResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_RemoveResponse.Merge(m, src)
}
func (m *RemoveResponse) XXX_Size() int {
	return xxx_messageInfo_RemoveResponse.Size(m)
}
func (m *RemoveResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_RemoveResponse.DiscardUnknown(m)
}

var xxx_messageInfo_RemoveResponse proto.InternalMessageInfo

func (m *RemoveResponse) GetLayerMessage() string {
	if m != nil {
		return m.LayerMessage
	}
	return ""
}

type HealthCheckResponse struct {
	// status is the health status of isula-builder
	Status               HealthCheckResponse_ServingStatus `protobuf:"varint,1,opt,name=status,proto3,enum=isula.build.v1.HealthCheckResponse_ServingStatus" json:"status,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

func (m *HealthCheckResponse) Reset()         { *m = HealthCheckResponse{} }
func (m *HealthCheckResponse) String() string { return proto.CompactTextString(m) }
func (*HealthCheckResponse) ProtoMessage()    {}
func (*HealthCheckResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
825
	return fileDescriptor_d71ef680555cb937, []int{13}
J
jingxiaolu 已提交
826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869
}
func (m *HealthCheckResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_HealthCheckResponse.Unmarshal(m, b)
}
func (m *HealthCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_HealthCheckResponse.Marshal(b, m, deterministic)
}
func (m *HealthCheckResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_HealthCheckResponse.Merge(m, src)
}
func (m *HealthCheckResponse) XXX_Size() int {
	return xxx_messageInfo_HealthCheckResponse.Size(m)
}
func (m *HealthCheckResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_HealthCheckResponse.DiscardUnknown(m)
}

var xxx_messageInfo_HealthCheckResponse proto.InternalMessageInfo

func (m *HealthCheckResponse) GetStatus() HealthCheckResponse_ServingStatus {
	if m != nil {
		return m.Status
	}
	return HealthCheckResponse_UNKNOWN
}

type LoginRequest struct {
	// server is registry address will login
	Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// username is username to login
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// password is password to login
	Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	// key is aes key used for encrypt and decrypt password
	Key                  string   `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LoginRequest) Reset()         { *m = LoginRequest{} }
func (m *LoginRequest) String() string { return proto.CompactTextString(m) }
func (*LoginRequest) ProtoMessage()    {}
func (*LoginRequest) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
870
	return fileDescriptor_d71ef680555cb937, []int{14}
J
jingxiaolu 已提交
871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929
}
func (m *LoginRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LoginRequest.Unmarshal(m, b)
}
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic)
}
func (m *LoginRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LoginRequest.Merge(m, src)
}
func (m *LoginRequest) XXX_Size() int {
	return xxx_messageInfo_LoginRequest.Size(m)
}
func (m *LoginRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_LoginRequest.DiscardUnknown(m)
}

var xxx_messageInfo_LoginRequest proto.InternalMessageInfo

func (m *LoginRequest) GetServer() string {
	if m != nil {
		return m.Server
	}
	return ""
}

func (m *LoginRequest) GetUsername() string {
	if m != nil {
		return m.Username
	}
	return ""
}

func (m *LoginRequest) GetPassword() string {
	if m != nil {
		return m.Password
	}
	return ""
}

func (m *LoginRequest) GetKey() string {
	if m != nil {
		return m.Key
	}
	return ""
}

type LoginResponse struct {
	// login response sent to front-end
	Content              string   `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LoginResponse) Reset()         { *m = LoginResponse{} }
func (m *LoginResponse) String() string { return proto.CompactTextString(m) }
func (*LoginResponse) ProtoMessage()    {}
func (*LoginResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
930
	return fileDescriptor_d71ef680555cb937, []int{15}
J
jingxiaolu 已提交
931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970
}
func (m *LoginResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LoginResponse.Unmarshal(m, b)
}
func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic)
}
func (m *LoginResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LoginResponse.Merge(m, src)
}
func (m *LoginResponse) XXX_Size() int {
	return xxx_messageInfo_LoginResponse.Size(m)
}
func (m *LoginResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_LoginResponse.DiscardUnknown(m)
}

var xxx_messageInfo_LoginResponse proto.InternalMessageInfo

func (m *LoginResponse) GetContent() string {
	if m != nil {
		return m.Content
	}
	return ""
}

type LogoutRequest struct {
	// server to logout
	Server string `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
	// logout from all registries
	All                  bool     `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LogoutRequest) Reset()         { *m = LogoutRequest{} }
func (m *LogoutRequest) String() string { return proto.CompactTextString(m) }
func (*LogoutRequest) ProtoMessage()    {}
func (*LogoutRequest) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
971
	return fileDescriptor_d71ef680555cb937, []int{16}
J
jingxiaolu 已提交
972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016
}
func (m *LogoutRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LogoutRequest.Unmarshal(m, b)
}
func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LogoutRequest.Marshal(b, m, deterministic)
}
func (m *LogoutRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LogoutRequest.Merge(m, src)
}
func (m *LogoutRequest) XXX_Size() int {
	return xxx_messageInfo_LogoutRequest.Size(m)
}
func (m *LogoutRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_LogoutRequest.DiscardUnknown(m)
}

var xxx_messageInfo_LogoutRequest proto.InternalMessageInfo

func (m *LogoutRequest) GetServer() string {
	if m != nil {
		return m.Server
	}
	return ""
}

func (m *LogoutRequest) GetAll() bool {
	if m != nil {
		return m.All
	}
	return false
}

type LogoutResponse struct {
	// logout response sent to front-end
	Result               string   `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LogoutResponse) Reset()         { *m = LogoutResponse{} }
func (m *LogoutResponse) String() string { return proto.CompactTextString(m) }
func (*LogoutResponse) ProtoMessage()    {}
func (*LogoutResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
1017
	return fileDescriptor_d71ef680555cb937, []int{17}
J
jingxiaolu 已提交
1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055
}
func (m *LogoutResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LogoutResponse.Unmarshal(m, b)
}
func (m *LogoutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LogoutResponse.Marshal(b, m, deterministic)
}
func (m *LogoutResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LogoutResponse.Merge(m, src)
}
func (m *LogoutResponse) XXX_Size() int {
	return xxx_messageInfo_LogoutResponse.Size(m)
}
func (m *LogoutResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_LogoutResponse.DiscardUnknown(m)
}

var xxx_messageInfo_LogoutResponse proto.InternalMessageInfo

func (m *LogoutResponse) GetResult() string {
	if m != nil {
		return m.Result
	}
	return ""
}

type LoadRequest struct {
	// path is the path of loading file
	Path                 string   `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LoadRequest) Reset()         { *m = LoadRequest{} }
func (m *LoadRequest) String() string { return proto.CompactTextString(m) }
func (*LoadRequest) ProtoMessage()    {}
func (*LoadRequest) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
1056
	return fileDescriptor_d71ef680555cb937, []int{18}
J
jingxiaolu 已提交
1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
}
func (m *LoadRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LoadRequest.Unmarshal(m, b)
}
func (m *LoadRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LoadRequest.Marshal(b, m, deterministic)
}
func (m *LoadRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LoadRequest.Merge(m, src)
}
func (m *LoadRequest) XXX_Size() int {
	return xxx_messageInfo_LoadRequest.Size(m)
}
func (m *LoadRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_LoadRequest.DiscardUnknown(m)
}

var xxx_messageInfo_LoadRequest proto.InternalMessageInfo

func (m *LoadRequest) GetPath() string {
	if m != nil {
		return m.Path
	}
	return ""
}

type LoadResponse struct {
H
holyfei 已提交
1084
	// log is the log sent to client
1085
	Log                  string   `protobuf:"bytes,1,opt,name=log,proto3" json:"log,omitempty"`
J
jingxiaolu 已提交
1086 1087 1088 1089 1090 1091 1092 1093 1094
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *LoadResponse) Reset()         { *m = LoadResponse{} }
func (m *LoadResponse) String() string { return proto.CompactTextString(m) }
func (*LoadResponse) ProtoMessage()    {}
func (*LoadResponse) Descriptor() ([]byte, []int) {
X
xiadanni 已提交
1095
	return fileDescriptor_d71ef680555cb937, []int{19}
J
jingxiaolu 已提交
1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114
}
func (m *LoadResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_LoadResponse.Unmarshal(m, b)
}
func (m *LoadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_LoadResponse.Marshal(b, m, deterministic)
}
func (m *LoadResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_LoadResponse.Merge(m, src)
}
func (m *LoadResponse) XXX_Size() int {
	return xxx_messageInfo_LoadResponse.Size(m)
}
func (m *LoadResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_LoadResponse.DiscardUnknown(m)
}

var xxx_messageInfo_LoadResponse proto.InternalMessageInfo

1115
func (m *LoadResponse) GetLog() string {
J
jingxiaolu 已提交
1116
	if m != nil {
1117
		return m.Log
J
jingxiaolu 已提交
1118 1119 1120 1121
	}
	return ""
}

1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222
type SaveRequest struct {
	// image is the image to save
	Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// path is location for output tarball
	Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// saveID is the unique ID for each time save
	// also is the part to construct tempory path to
	// store transport file
	SaveID               string   `protobuf:"bytes,3,opt,name=saveID,proto3" json:"saveID,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SaveRequest) Reset()         { *m = SaveRequest{} }
func (m *SaveRequest) String() string { return proto.CompactTextString(m) }
func (*SaveRequest) ProtoMessage()    {}
func (*SaveRequest) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{20}
}
func (m *SaveRequest) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SaveRequest.Unmarshal(m, b)
}
func (m *SaveRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SaveRequest.Marshal(b, m, deterministic)
}
func (m *SaveRequest) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SaveRequest.Merge(m, src)
}
func (m *SaveRequest) XXX_Size() int {
	return xxx_messageInfo_SaveRequest.Size(m)
}
func (m *SaveRequest) XXX_DiscardUnknown() {
	xxx_messageInfo_SaveRequest.DiscardUnknown(m)
}

var xxx_messageInfo_SaveRequest proto.InternalMessageInfo

func (m *SaveRequest) GetImage() string {
	if m != nil {
		return m.Image
	}
	return ""
}

func (m *SaveRequest) GetPath() string {
	if m != nil {
		return m.Path
	}
	return ""
}

func (m *SaveRequest) GetSaveID() string {
	if m != nil {
		return m.SaveID
	}
	return ""
}

type SaveResponse struct {
	// data is the tarball of the saved image
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// log is log send to cli
	Log                  string   `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *SaveResponse) Reset()         { *m = SaveResponse{} }
func (m *SaveResponse) String() string { return proto.CompactTextString(m) }
func (*SaveResponse) ProtoMessage()    {}
func (*SaveResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{21}
}
func (m *SaveResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_SaveResponse.Unmarshal(m, b)
}
func (m *SaveResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_SaveResponse.Marshal(b, m, deterministic)
}
func (m *SaveResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_SaveResponse.Merge(m, src)
}
func (m *SaveResponse) XXX_Size() int {
	return xxx_messageInfo_SaveResponse.Size(m)
}
func (m *SaveResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_SaveResponse.DiscardUnknown(m)
}

var xxx_messageInfo_SaveResponse proto.InternalMessageInfo

func (m *SaveResponse) GetData() []byte {
	if m != nil {
		return m.Data
	}
	return nil
}

func (m *SaveResponse) GetLog() string {
H
holyfei 已提交
1223 1224 1225 1226 1227 1228
	if m != nil {
		return m.Log
	}
	return ""
}

1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501
type MemData struct {
	// memTotal is total memory
	MemTotal int64 `protobuf:"varint,1,opt,name=memTotal,proto3" json:"memTotal,omitempty"`
	// memFree is free memory
	MemFree int64 `protobuf:"varint,2,opt,name=memFree,proto3" json:"memFree,omitempty"`
	// swapTotal is total swap
	SwapTotal int64 `protobuf:"varint,3,opt,name=swapTotal,proto3" json:"swapTotal,omitempty"`
	// swapFree is free swap
	SwapFree             int64    `protobuf:"varint,4,opt,name=swapFree,proto3" json:"swapFree,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *MemData) Reset()         { *m = MemData{} }
func (m *MemData) String() string { return proto.CompactTextString(m) }
func (*MemData) ProtoMessage()    {}
func (*MemData) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{22}
}
func (m *MemData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_MemData.Unmarshal(m, b)
}
func (m *MemData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_MemData.Marshal(b, m, deterministic)
}
func (m *MemData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_MemData.Merge(m, src)
}
func (m *MemData) XXX_Size() int {
	return xxx_messageInfo_MemData.Size(m)
}
func (m *MemData) XXX_DiscardUnknown() {
	xxx_messageInfo_MemData.DiscardUnknown(m)
}

var xxx_messageInfo_MemData proto.InternalMessageInfo

func (m *MemData) GetMemTotal() int64 {
	if m != nil {
		return m.MemTotal
	}
	return 0
}

func (m *MemData) GetMemFree() int64 {
	if m != nil {
		return m.MemFree
	}
	return 0
}

func (m *MemData) GetSwapTotal() int64 {
	if m != nil {
		return m.SwapTotal
	}
	return 0
}

func (m *MemData) GetSwapFree() int64 {
	if m != nil {
		return m.SwapFree
	}
	return 0
}

type StorageData struct {
	// storageDriver is storage driver for isula-build
	StorageDriver string `protobuf:"bytes,1,opt,name=storageDriver,proto3" json:"storageDriver,omitempty"`
	// storageBackingFs is storage backing file system
	StorageBackingFs     string   `protobuf:"bytes,2,opt,name=storageBackingFs,proto3" json:"storageBackingFs,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *StorageData) Reset()         { *m = StorageData{} }
func (m *StorageData) String() string { return proto.CompactTextString(m) }
func (*StorageData) ProtoMessage()    {}
func (*StorageData) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{23}
}
func (m *StorageData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_StorageData.Unmarshal(m, b)
}
func (m *StorageData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_StorageData.Marshal(b, m, deterministic)
}
func (m *StorageData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_StorageData.Merge(m, src)
}
func (m *StorageData) XXX_Size() int {
	return xxx_messageInfo_StorageData.Size(m)
}
func (m *StorageData) XXX_DiscardUnknown() {
	xxx_messageInfo_StorageData.DiscardUnknown(m)
}

var xxx_messageInfo_StorageData proto.InternalMessageInfo

func (m *StorageData) GetStorageDriver() string {
	if m != nil {
		return m.StorageDriver
	}
	return ""
}

func (m *StorageData) GetStorageBackingFs() string {
	if m != nil {
		return m.StorageBackingFs
	}
	return ""
}

type RegistryData struct {
	// registriesSearch is registries.search registries
	RegistriesSearch []string `protobuf:"bytes,1,rep,name=registriesSearch,proto3" json:"registriesSearch,omitempty"`
	// registriesInsecure is registries.insecure registries
	RegistriesInsecure []string `protobuf:"bytes,2,rep,name=registriesInsecure,proto3" json:"registriesInsecure,omitempty"`
	// registriesBlock is registries.block registries
	RegistriesBlock      []string `protobuf:"bytes,3,rep,name=registriesBlock,proto3" json:"registriesBlock,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *RegistryData) Reset()         { *m = RegistryData{} }
func (m *RegistryData) String() string { return proto.CompactTextString(m) }
func (*RegistryData) ProtoMessage()    {}
func (*RegistryData) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{24}
}
func (m *RegistryData) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_RegistryData.Unmarshal(m, b)
}
func (m *RegistryData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_RegistryData.Marshal(b, m, deterministic)
}
func (m *RegistryData) XXX_Merge(src proto.Message) {
	xxx_messageInfo_RegistryData.Merge(m, src)
}
func (m *RegistryData) XXX_Size() int {
	return xxx_messageInfo_RegistryData.Size(m)
}
func (m *RegistryData) XXX_DiscardUnknown() {
	xxx_messageInfo_RegistryData.DiscardUnknown(m)
}

var xxx_messageInfo_RegistryData proto.InternalMessageInfo

func (m *RegistryData) GetRegistriesSearch() []string {
	if m != nil {
		return m.RegistriesSearch
	}
	return nil
}

func (m *RegistryData) GetRegistriesInsecure() []string {
	if m != nil {
		return m.RegistriesInsecure
	}
	return nil
}

func (m *RegistryData) GetRegistriesBlock() []string {
	if m != nil {
		return m.RegistriesBlock
	}
	return nil
}

type InfoResponse struct {
	// memInfo is memory information
	MemInfo *MemData `protobuf:"bytes,1,opt,name=memInfo,proto3" json:"memInfo,omitempty"`
	// storageInfo is storage information
	StorageInfo *StorageData `protobuf:"bytes,2,opt,name=storageInfo,proto3" json:"storageInfo,omitempty"`
	// registryInfo is registry information
	RegistryInfo *RegistryData `protobuf:"bytes,3,opt,name=registryInfo,proto3" json:"registryInfo,omitempty"`
	// dataRoot is persistent directory for isula-build
	DataRoot string `protobuf:"bytes,4,opt,name=dataRoot,proto3" json:"dataRoot,omitempty"`
	// runRoot is runtime directory for isula-build
	RunRoot string `protobuf:"bytes,5,opt,name=runRoot,proto3" json:"runRoot,omitempty"`
	// ociRuntime is OCI runtime for RUN command
	OCIRuntime string `protobuf:"bytes,6,opt,name=OCIRuntime,proto3" json:"OCIRuntime,omitempty"`
	// builderNum is number of builders
	BuilderNum int64 `protobuf:"varint,7,opt,name=builderNum,proto3" json:"builderNum,omitempty"`
	// goRoutines is number of go routines
	GoRoutines           int64    `protobuf:"varint,8,opt,name=goRoutines,proto3" json:"goRoutines,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (m *InfoResponse) Reset()         { *m = InfoResponse{} }
func (m *InfoResponse) String() string { return proto.CompactTextString(m) }
func (*InfoResponse) ProtoMessage()    {}
func (*InfoResponse) Descriptor() ([]byte, []int) {
	return fileDescriptor_d71ef680555cb937, []int{25}
}
func (m *InfoResponse) XXX_Unmarshal(b []byte) error {
	return xxx_messageInfo_InfoResponse.Unmarshal(m, b)
}
func (m *InfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
	return xxx_messageInfo_InfoResponse.Marshal(b, m, deterministic)
}
func (m *InfoResponse) XXX_Merge(src proto.Message) {
	xxx_messageInfo_InfoResponse.Merge(m, src)
}
func (m *InfoResponse) XXX_Size() int {
	return xxx_messageInfo_InfoResponse.Size(m)
}
func (m *InfoResponse) XXX_DiscardUnknown() {
	xxx_messageInfo_InfoResponse.DiscardUnknown(m)
}

var xxx_messageInfo_InfoResponse proto.InternalMessageInfo

func (m *InfoResponse) GetMemInfo() *MemData {
	if m != nil {
		return m.MemInfo
	}
	return nil
}

func (m *InfoResponse) GetStorageInfo() *StorageData {
	if m != nil {
		return m.StorageInfo
	}
	return nil
}

func (m *InfoResponse) GetRegistryInfo() *RegistryData {
	if m != nil {
		return m.RegistryInfo
	}
	return nil
}

func (m *InfoResponse) GetDataRoot() string {
	if m != nil {
		return m.DataRoot
	}
	return ""
}

func (m *InfoResponse) GetRunRoot() string {
	if m != nil {
		return m.RunRoot
	}
	return ""
}

func (m *InfoResponse) GetOCIRuntime() string {
	if m != nil {
		return m.OCIRuntime
	}
	return ""
}

func (m *InfoResponse) GetBuilderNum() int64 {
	if m != nil {
		return m.BuilderNum
	}
	return 0
}

func (m *InfoResponse) GetGoRoutines() int64 {
	if m != nil {
		return m.GoRoutines
	}
	return 0
}

J
jingxiaolu 已提交
1502 1503 1504
func init() {
	proto.RegisterEnum("isula.build.v1.HealthCheckResponse_ServingStatus", HealthCheckResponse_ServingStatus_name, HealthCheckResponse_ServingStatus_value)
	proto.RegisterType((*BuildRequest)(nil), "isula.build.v1.BuildRequest")
1505 1506
	proto.RegisterType((*ImportRequest)(nil), "isula.build.v1.ImportRequest")
	proto.RegisterType((*ImportResponse)(nil), "isula.build.v1.ImportResponse")
J
jingxiaolu 已提交
1507 1508 1509 1510 1511
	proto.RegisterType((*BuildStatic)(nil), "isula.build.v1.BuildStatic")
	proto.RegisterType((*BuildResponse)(nil), "isula.build.v1.BuildResponse")
	proto.RegisterType((*StatusRequest)(nil), "isula.build.v1.StatusRequest")
	proto.RegisterType((*StatusResponse)(nil), "isula.build.v1.StatusResponse")
	proto.RegisterType((*ListRequest)(nil), "isula.build.v1.ListRequest")
X
xiadanni 已提交
1512
	proto.RegisterType((*TagRequest)(nil), "isula.build.v1.TagRequest")
J
jingxiaolu 已提交
1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524
	proto.RegisterType((*ListResponse)(nil), "isula.build.v1.ListResponse")
	proto.RegisterType((*ListResponse_ImageInfo)(nil), "isula.build.v1.ListResponse.ImageInfo")
	proto.RegisterType((*VersionResponse)(nil), "isula.build.v1.VersionResponse")
	proto.RegisterType((*RemoveRequest)(nil), "isula.build.v1.RemoveRequest")
	proto.RegisterType((*RemoveResponse)(nil), "isula.build.v1.RemoveResponse")
	proto.RegisterType((*HealthCheckResponse)(nil), "isula.build.v1.HealthCheckResponse")
	proto.RegisterType((*LoginRequest)(nil), "isula.build.v1.LoginRequest")
	proto.RegisterType((*LoginResponse)(nil), "isula.build.v1.LoginResponse")
	proto.RegisterType((*LogoutRequest)(nil), "isula.build.v1.LogoutRequest")
	proto.RegisterType((*LogoutResponse)(nil), "isula.build.v1.LogoutResponse")
	proto.RegisterType((*LoadRequest)(nil), "isula.build.v1.LoadRequest")
	proto.RegisterType((*LoadResponse)(nil), "isula.build.v1.LoadResponse")
1525 1526
	proto.RegisterType((*SaveRequest)(nil), "isula.build.v1.SaveRequest")
	proto.RegisterType((*SaveResponse)(nil), "isula.build.v1.SaveResponse")
1527 1528 1529 1530
	proto.RegisterType((*MemData)(nil), "isula.build.v1.MemData")
	proto.RegisterType((*StorageData)(nil), "isula.build.v1.StorageData")
	proto.RegisterType((*RegistryData)(nil), "isula.build.v1.RegistryData")
	proto.RegisterType((*InfoResponse)(nil), "isula.build.v1.InfoResponse")
J
jingxiaolu 已提交
1531 1532 1533 1534 1535
}

func init() { proto.RegisterFile("api/services/control.proto", fileDescriptor_d71ef680555cb937) }

var fileDescriptor_d71ef680555cb937 = []byte{
1536
	// 1403 bytes of a gzipped FileDescriptorProto
J
Jeff Zvier 已提交
1537
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x56, 0x6d, 0x6f, 0xdb, 0xb6,
1538
	0x13, 0xff, 0xcb, 0x72, 0x9c, 0xe4, 0xe4, 0xa4, 0x01, 0xff, 0x45, 0x26, 0xb8, 0x69, 0xeb, 0x69,
J
Jeff Zvier 已提交
1539
	0xc5, 0xe0, 0x75, 0x80, 0x93, 0x66, 0x7d, 0xb1, 0x0e, 0xeb, 0xb0, 0x3c, 0xb4, 0x9d, 0xd7, 0xd6,
1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624
	0xc1, 0x94, 0xac, 0x7b, 0x59, 0xb0, 0x36, 0xa3, 0x10, 0x91, 0x44, 0x8d, 0xa4, 0xd2, 0x7a, 0xfb,
	0x18, 0xdb, 0x9b, 0x01, 0xdb, 0x27, 0xda, 0x17, 0xd8, 0xc7, 0x19, 0x48, 0x91, 0x92, 0x6c, 0x39,
	0xed, 0xde, 0xf1, 0x7e, 0x77, 0x47, 0xde, 0x13, 0xef, 0x0e, 0x7a, 0x38, 0xa3, 0xbb, 0x82, 0xf0,
	0x2b, 0x3a, 0x21, 0x62, 0x77, 0xc2, 0x52, 0xc9, 0x59, 0x3c, 0xcc, 0x38, 0x93, 0x0c, 0x6d, 0x52,
	0x91, 0xc7, 0x78, 0xf8, 0x26, 0xa7, 0xf1, 0x74, 0x78, 0xf5, 0xa0, 0x77, 0x2b, 0x62, 0x2c, 0x8a,
	0xc9, 0xae, 0xe6, 0xbe, 0xc9, 0xcf, 0x77, 0x49, 0x92, 0xc9, 0x59, 0x21, 0xdc, 0xbb, 0xbb, 0xc8,
	0x94, 0x34, 0x21, 0x42, 0xe2, 0x24, 0x2b, 0x04, 0x82, 0xdf, 0x5c, 0xe8, 0x1e, 0xaa, 0xab, 0x42,
	0xf2, 0x73, 0x4e, 0x84, 0x44, 0x3b, 0xb0, 0xae, 0xaf, 0x3e, 0x9b, 0x65, 0xc4, 0x77, 0xfa, 0xce,
	0x60, 0x3d, 0xac, 0x00, 0xe4, 0xc3, 0xaa, 0x26, 0x46, 0xc7, 0x7e, 0x4b, 0xf3, 0x2c, 0x89, 0xee,
	0x00, 0x28, 0x3b, 0xc9, 0x3b, 0x79,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0x3c, 0x83, 0x4e, 0xd1,
	0xc6, 0xd1, 0x32, 0xc1, 0x6a, 0x32, 0x34, 0x9d, 0x5b, 0xe8, 0xfe, 0x47, 0xd0, 0x56, 0x2d, 0x7c,
	0x49, 0xb2, 0xaa, 0xde, 0xbf, 0x24, 0x59, 0xb5, 0xae, 0xbf, 0xe7, 0xa0, 0xe7, 0xd0, 0x29, 0x16,
	0xe5, 0xa6, 0x35, 0x73, 0x3b, 0x78, 0xd3, 0x9a, 0xf9, 0xfd, 0x7a, 0xe0, 0xec, 0x39, 0xe8, 0x11,
	0xb8, 0x6a, 0xbf, 0xef, 0x2d, 0x8a, 0x56, 0xab, 0x65, 0xef, 0x9a, 0x04, 0x28, 0x67, 0xd4, 0x70,
	0x68, 0x3a, 0x53, 0x9b, 0x41, 0x4d, 0x67, 0xea, 0xf3, 0x64, 0xcf, 0x41, 0x5f, 0x43, 0x5b, 0xff,
	0xfd, 0xeb, 0xb2, 0xdc, 0xd0, 0xaf, 0x77, 0xb9, 0x37, 0x1d, 0x2d, 0xfd, 0xc5, 0xbf, 0x01, 0x00,
	0x00, 0xff, 0xff, 0x85, 0xc5, 0x39, 0xca, 0x7f, 0x0e, 0x00, 0x00,
J
jingxiaolu 已提交
1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644
}

// 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

// ControlClient is the client API for Control service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type ControlClient interface {
	// Build requests a new image building
	Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (Control_BuildClient, error)
	// Status pipes the image building process log back to client
	Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (Control_StatusClient, error)
	// List lists all images in isula-builder
	List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
1645
	// Version requests version information of isula-builder
J
jingxiaolu 已提交
1646 1647 1648 1649 1650 1651 1652 1653 1654 1655
	Version(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
	// Remove sends an image remove request to isula-builder
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (Control_RemoveClient, error)
	// HealthCheck requests a health checking in isula-builder
	HealthCheck(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error)
	// Login requests to access image registry with username and password
	Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error)
	// Logout requests to logout registry and delete any credentials
	Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error)
	// Load requests an image tar load
H
holyfei 已提交
1656
	Load(ctx context.Context, in *LoadRequest, opts ...grpc.CallOption) (Control_LoadClient, error)
1657 1658
	// Import requests import a new image
	Import(ctx context.Context, opts ...grpc.CallOption) (Control_ImportClient, error)
X
xiadanni 已提交
1659 1660
	// Tag requests to tag an image
	Tag(ctx context.Context, in *TagRequest, opts ...grpc.CallOption) (*types.Empty, error)
1661 1662
	// Save saves the image to tarball
	Save(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (Control_SaveClient, error)
1663 1664
	// Info requests isula-build system information
	Info(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*InfoResponse, error)
J
jingxiaolu 已提交
1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815
}

type controlClient struct {
	cc *grpc.ClientConn
}

func NewControlClient(cc *grpc.ClientConn) ControlClient {
	return &controlClient{cc}
}

func (c *controlClient) Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (Control_BuildClient, error) {
	stream, err := c.cc.NewStream(ctx, &_Control_serviceDesc.Streams[0], "/isula.build.v1.Control/Build", opts...)
	if err != nil {
		return nil, err
	}
	x := &controlBuildClient{stream}
	if err := x.ClientStream.SendMsg(in); err != nil {
		return nil, err
	}
	if err := x.ClientStream.CloseSend(); err != nil {
		return nil, err
	}
	return x, nil
}

type Control_BuildClient interface {
	Recv() (*BuildResponse, error)
	grpc.ClientStream
}

type controlBuildClient struct {
	grpc.ClientStream
}

func (x *controlBuildClient) Recv() (*BuildResponse, error) {
	m := new(BuildResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

func (c *controlClient) Status(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (Control_StatusClient, error) {
	stream, err := c.cc.NewStream(ctx, &_Control_serviceDesc.Streams[1], "/isula.build.v1.Control/Status", opts...)
	if err != nil {
		return nil, err
	}
	x := &controlStatusClient{stream}
	if err := x.ClientStream.SendMsg(in); err != nil {
		return nil, err
	}
	if err := x.ClientStream.CloseSend(); err != nil {
		return nil, err
	}
	return x, nil
}

type Control_StatusClient interface {
	Recv() (*StatusResponse, error)
	grpc.ClientStream
}

type controlStatusClient struct {
	grpc.ClientStream
}

func (x *controlStatusClient) Recv() (*StatusResponse, error) {
	m := new(StatusResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

func (c *controlClient) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) {
	out := new(ListResponse)
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/List", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *controlClient) Version(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*VersionResponse, error) {
	out := new(VersionResponse)
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/Version", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *controlClient) Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (Control_RemoveClient, error) {
	stream, err := c.cc.NewStream(ctx, &_Control_serviceDesc.Streams[2], "/isula.build.v1.Control/Remove", opts...)
	if err != nil {
		return nil, err
	}
	x := &controlRemoveClient{stream}
	if err := x.ClientStream.SendMsg(in); err != nil {
		return nil, err
	}
	if err := x.ClientStream.CloseSend(); err != nil {
		return nil, err
	}
	return x, nil
}

type Control_RemoveClient interface {
	Recv() (*RemoveResponse, error)
	grpc.ClientStream
}

type controlRemoveClient struct {
	grpc.ClientStream
}

func (x *controlRemoveClient) Recv() (*RemoveResponse, error) {
	m := new(RemoveResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

func (c *controlClient) HealthCheck(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*HealthCheckResponse, error) {
	out := new(HealthCheckResponse)
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/HealthCheck", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *controlClient) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) {
	out := new(LoginResponse)
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/Login", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

func (c *controlClient) Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) {
	out := new(LogoutResponse)
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/Logout", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

H
holyfei 已提交
1816 1817
func (c *controlClient) Load(ctx context.Context, in *LoadRequest, opts ...grpc.CallOption) (Control_LoadClient, error) {
	stream, err := c.cc.NewStream(ctx, &_Control_serviceDesc.Streams[3], "/isula.build.v1.Control/Load", opts...)
J
jingxiaolu 已提交
1818 1819 1820
	if err != nil {
		return nil, err
	}
H
holyfei 已提交
1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845
	x := &controlLoadClient{stream}
	if err := x.ClientStream.SendMsg(in); err != nil {
		return nil, err
	}
	if err := x.ClientStream.CloseSend(); err != nil {
		return nil, err
	}
	return x, nil
}

type Control_LoadClient interface {
	Recv() (*LoadResponse, error)
	grpc.ClientStream
}

type controlLoadClient struct {
	grpc.ClientStream
}

func (x *controlLoadClient) Recv() (*LoadResponse, error) {
	m := new(LoadResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
J
jingxiaolu 已提交
1846 1847
}

1848
func (c *controlClient) Import(ctx context.Context, opts ...grpc.CallOption) (Control_ImportClient, error) {
H
holyfei 已提交
1849
	stream, err := c.cc.NewStream(ctx, &_Control_serviceDesc.Streams[4], "/isula.build.v1.Control/Import", opts...)
1850 1851 1852 1853 1854 1855 1856 1857 1858
	if err != nil {
		return nil, err
	}
	x := &controlImportClient{stream}
	return x, nil
}

type Control_ImportClient interface {
	Send(*ImportRequest) error
J
Jeff Zvier 已提交
1859
	Recv() (*ImportResponse, error)
1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870
	grpc.ClientStream
}

type controlImportClient struct {
	grpc.ClientStream
}

func (x *controlImportClient) Send(m *ImportRequest) error {
	return x.ClientStream.SendMsg(m)
}

J
Jeff Zvier 已提交
1871
func (x *controlImportClient) Recv() (*ImportResponse, error) {
1872 1873 1874 1875 1876 1877 1878
	m := new(ImportResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

X
xiadanni 已提交
1879 1880
func (c *controlClient) Tag(ctx context.Context, in *TagRequest, opts ...grpc.CallOption) (*types.Empty, error) {
	out := new(types.Empty)
1881
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/Tag", in, out, opts...)
X
xiadanni 已提交
1882 1883 1884 1885 1886 1887
	if err != nil {
		return nil, err
	}
	return out, nil
}

1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919
func (c *controlClient) Save(ctx context.Context, in *SaveRequest, opts ...grpc.CallOption) (Control_SaveClient, error) {
	stream, err := c.cc.NewStream(ctx, &_Control_serviceDesc.Streams[5], "/isula.build.v1.Control/Save", opts...)
	if err != nil {
		return nil, err
	}
	x := &controlSaveClient{stream}
	if err := x.ClientStream.SendMsg(in); err != nil {
		return nil, err
	}
	if err := x.ClientStream.CloseSend(); err != nil {
		return nil, err
	}
	return x, nil
}

type Control_SaveClient interface {
	Recv() (*SaveResponse, error)
	grpc.ClientStream
}

type controlSaveClient struct {
	grpc.ClientStream
}

func (x *controlSaveClient) Recv() (*SaveResponse, error) {
	m := new(SaveResponse)
	if err := x.ClientStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

1920 1921 1922 1923 1924 1925 1926 1927 1928
func (c *controlClient) Info(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*InfoResponse, error) {
	out := new(InfoResponse)
	err := c.cc.Invoke(ctx, "/isula.build.v1.Control/Info", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

J
jingxiaolu 已提交
1929 1930 1931 1932 1933 1934 1935 1936
// ControlServer is the server API for Control service.
type ControlServer interface {
	// Build requests a new image building
	Build(*BuildRequest, Control_BuildServer) error
	// Status pipes the image building process log back to client
	Status(*StatusRequest, Control_StatusServer) error
	// List lists all images in isula-builder
	List(context.Context, *ListRequest) (*ListResponse, error)
1937
	// Version requests version information of isula-builder
J
jingxiaolu 已提交
1938 1939 1940 1941 1942 1943 1944 1945 1946 1947
	Version(context.Context, *types.Empty) (*VersionResponse, error)
	// Remove sends an image remove request to isula-builder
	Remove(*RemoveRequest, Control_RemoveServer) error
	// HealthCheck requests a health checking in isula-builder
	HealthCheck(context.Context, *types.Empty) (*HealthCheckResponse, error)
	// Login requests to access image registry with username and password
	Login(context.Context, *LoginRequest) (*LoginResponse, error)
	// Logout requests to logout registry and delete any credentials
	Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
	// Load requests an image tar load
H
holyfei 已提交
1948
	Load(*LoadRequest, Control_LoadServer) error
1949 1950
	// Import requests import a new image
	Import(Control_ImportServer) error
X
xiadanni 已提交
1951 1952
	// Tag requests to tag an image
	Tag(context.Context, *TagRequest) (*types.Empty, error)
1953 1954
	// Save saves the image to tarball
	Save(*SaveRequest, Control_SaveServer) error
1955 1956
	// Info requests isula-build system information
	Info(context.Context, *types.Empty) (*InfoResponse, error)
J
jingxiaolu 已提交
1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986
}

// UnimplementedControlServer can be embedded to have forward compatible implementations.
type UnimplementedControlServer struct {
}

func (*UnimplementedControlServer) Build(req *BuildRequest, srv Control_BuildServer) error {
	return status.Errorf(codes.Unimplemented, "method Build not implemented")
}
func (*UnimplementedControlServer) Status(req *StatusRequest, srv Control_StatusServer) error {
	return status.Errorf(codes.Unimplemented, "method Status not implemented")
}
func (*UnimplementedControlServer) List(ctx context.Context, req *ListRequest) (*ListResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method List not implemented")
}
func (*UnimplementedControlServer) Version(ctx context.Context, req *types.Empty) (*VersionResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Version not implemented")
}
func (*UnimplementedControlServer) Remove(req *RemoveRequest, srv Control_RemoveServer) error {
	return status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (*UnimplementedControlServer) HealthCheck(ctx context.Context, req *types.Empty) (*HealthCheckResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method HealthCheck not implemented")
}
func (*UnimplementedControlServer) Login(ctx context.Context, req *LoginRequest) (*LoginResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Login not implemented")
}
func (*UnimplementedControlServer) Logout(ctx context.Context, req *LogoutRequest) (*LogoutResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Logout not implemented")
}
H
holyfei 已提交
1987 1988
func (*UnimplementedControlServer) Load(req *LoadRequest, srv Control_LoadServer) error {
	return status.Errorf(codes.Unimplemented, "method Load not implemented")
J
jingxiaolu 已提交
1989
}
1990 1991 1992
func (*UnimplementedControlServer) Import(srv Control_ImportServer) error {
	return status.Errorf(codes.Unimplemented, "method Import not implemented")
}
X
xiadanni 已提交
1993 1994 1995
func (*UnimplementedControlServer) Tag(ctx context.Context, req *TagRequest) (*types.Empty, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Tag not implemented")
}
1996 1997 1998
func (*UnimplementedControlServer) Save(req *SaveRequest, srv Control_SaveServer) error {
	return status.Errorf(codes.Unimplemented, "method Save not implemented")
}
1999 2000 2001
func (*UnimplementedControlServer) Info(ctx context.Context, req *types.Empty) (*InfoResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Info not implemented")
}
J
jingxiaolu 已提交
2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159

func RegisterControlServer(s *grpc.Server, srv ControlServer) {
	s.RegisterService(&_Control_serviceDesc, srv)
}

func _Control_Build_Handler(srv interface{}, stream grpc.ServerStream) error {
	m := new(BuildRequest)
	if err := stream.RecvMsg(m); err != nil {
		return err
	}
	return srv.(ControlServer).Build(m, &controlBuildServer{stream})
}

type Control_BuildServer interface {
	Send(*BuildResponse) error
	grpc.ServerStream
}

type controlBuildServer struct {
	grpc.ServerStream
}

func (x *controlBuildServer) Send(m *BuildResponse) error {
	return x.ServerStream.SendMsg(m)
}

func _Control_Status_Handler(srv interface{}, stream grpc.ServerStream) error {
	m := new(StatusRequest)
	if err := stream.RecvMsg(m); err != nil {
		return err
	}
	return srv.(ControlServer).Status(m, &controlStatusServer{stream})
}

type Control_StatusServer interface {
	Send(*StatusResponse) error
	grpc.ServerStream
}

type controlStatusServer struct {
	grpc.ServerStream
}

func (x *controlStatusServer) Send(m *StatusResponse) error {
	return x.ServerStream.SendMsg(m)
}

func _Control_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(ListRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).List(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/List",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).List(ctx, req.(*ListRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Control_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(types.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).Version(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/Version",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).Version(ctx, req.(*types.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Control_Remove_Handler(srv interface{}, stream grpc.ServerStream) error {
	m := new(RemoveRequest)
	if err := stream.RecvMsg(m); err != nil {
		return err
	}
	return srv.(ControlServer).Remove(m, &controlRemoveServer{stream})
}

type Control_RemoveServer interface {
	Send(*RemoveResponse) error
	grpc.ServerStream
}

type controlRemoveServer struct {
	grpc.ServerStream
}

func (x *controlRemoveServer) Send(m *RemoveResponse) error {
	return x.ServerStream.SendMsg(m)
}

func _Control_HealthCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(types.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).HealthCheck(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/HealthCheck",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).HealthCheck(ctx, req.(*types.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

func _Control_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LoginRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).Login(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/Login",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).Login(ctx, req.(*LoginRequest))
	}
	return interceptor(ctx, in, info, handler)
}

func _Control_Logout_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(LogoutRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).Logout(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/Logout",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).Logout(ctx, req.(*LogoutRequest))
	}
	return interceptor(ctx, in, info, handler)
}

H
holyfei 已提交
2160 2161 2162 2163
func _Control_Load_Handler(srv interface{}, stream grpc.ServerStream) error {
	m := new(LoadRequest)
	if err := stream.RecvMsg(m); err != nil {
		return err
J
jingxiaolu 已提交
2164
	}
H
holyfei 已提交
2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178
	return srv.(ControlServer).Load(m, &controlLoadServer{stream})
}

type Control_LoadServer interface {
	Send(*LoadResponse) error
	grpc.ServerStream
}

type controlLoadServer struct {
	grpc.ServerStream
}

func (x *controlLoadServer) Send(m *LoadResponse) error {
	return x.ServerStream.SendMsg(m)
J
jingxiaolu 已提交
2179 2180
}

2181 2182 2183 2184 2185
func _Control_Import_Handler(srv interface{}, stream grpc.ServerStream) error {
	return srv.(ControlServer).Import(&controlImportServer{stream})
}

type Control_ImportServer interface {
J
Jeff Zvier 已提交
2186
	Send(*ImportResponse) error
2187 2188 2189 2190 2191 2192 2193 2194
	Recv() (*ImportRequest, error)
	grpc.ServerStream
}

type controlImportServer struct {
	grpc.ServerStream
}

J
Jeff Zvier 已提交
2195
func (x *controlImportServer) Send(m *ImportResponse) error {
2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206
	return x.ServerStream.SendMsg(m)
}

func (x *controlImportServer) Recv() (*ImportRequest, error) {
	m := new(ImportRequest)
	if err := x.ServerStream.RecvMsg(m); err != nil {
		return nil, err
	}
	return m, nil
}

X
xiadanni 已提交
2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224
func _Control_Tag_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TagRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).Tag(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/Tag",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).Tag(ctx, req.(*TagRequest))
	}
	return interceptor(ctx, in, info, handler)
}

2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245
func _Control_Save_Handler(srv interface{}, stream grpc.ServerStream) error {
	m := new(SaveRequest)
	if err := stream.RecvMsg(m); err != nil {
		return err
	}
	return srv.(ControlServer).Save(m, &controlSaveServer{stream})
}

type Control_SaveServer interface {
	Send(*SaveResponse) error
	grpc.ServerStream
}

type controlSaveServer struct {
	grpc.ServerStream
}

func (x *controlSaveServer) Send(m *SaveResponse) error {
	return x.ServerStream.SendMsg(m)
}

2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263
func _Control_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(types.Empty)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(ControlServer).Info(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/isula.build.v1.Control/Info",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(ControlServer).Info(ctx, req.(*types.Empty))
	}
	return interceptor(ctx, in, info, handler)
}

J
jingxiaolu 已提交
2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287
var _Control_serviceDesc = grpc.ServiceDesc{
	ServiceName: "isula.build.v1.Control",
	HandlerType: (*ControlServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "List",
			Handler:    _Control_List_Handler,
		},
		{
			MethodName: "Version",
			Handler:    _Control_Version_Handler,
		},
		{
			MethodName: "HealthCheck",
			Handler:    _Control_HealthCheck_Handler,
		},
		{
			MethodName: "Login",
			Handler:    _Control_Login_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _Control_Logout_Handler,
		},
X
xiadanni 已提交
2288
		{
2289
			MethodName: "Tag",
X
xiadanni 已提交
2290 2291
			Handler:    _Control_Tag_Handler,
		},
2292 2293 2294 2295
		{
			MethodName: "Info",
			Handler:    _Control_Info_Handler,
		},
J
jingxiaolu 已提交
2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Build",
			Handler:       _Control_Build_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Status",
			Handler:       _Control_Status_Handler,
			ServerStreams: true,
		},
		{
			StreamName:    "Remove",
			Handler:       _Control_Remove_Handler,
			ServerStreams: true,
		},
H
holyfei 已提交
2313 2314 2315 2316 2317
		{
			StreamName:    "Load",
			Handler:       _Control_Load_Handler,
			ServerStreams: true,
		},
2318 2319 2320
		{
			StreamName:    "Import",
			Handler:       _Control_Import_Handler,
J
Jeff Zvier 已提交
2321
			ServerStreams: true,
2322 2323
			ClientStreams: true,
		},
2324 2325 2326 2327 2328
		{
			StreamName:    "Save",
			Handler:       _Control_Save_Handler,
			ServerStreams: true,
		},
J
jingxiaolu 已提交
2329 2330 2331
	},
	Metadata: "api/services/control.proto",
}