service

package
Version: v0.0.0-...-b63aa1a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterService

func RegisterService(s giraffe_micro.Server, srv Service)

Types

type Client

type Client interface {
	Create(ctx context.Context, in *CreateRequest) (*container.Service, error)
	CreateFromYaml(ctx context.Context, in *CreateFromYamlRequest) (*container.Service, error)
	DeleteService(ctx context.Context, in *DeleteServiceRequest) (*types.Empty, error)
	Get(ctx context.Context, in *GetRequest) (*GetResponse, error)
	GetStatus(ctx context.Context, in *GetStatusRequest) (*container.Service, error)
	List(ctx context.Context, in *ListRequest) (*ListResponse, error)
	Update(ctx context.Context, in *UpdateRequest) (*container.Service, error)
	UpdateResourceSpec(ctx context.Context, in *UpdateResourceSpecRequest) (*container.Service, error)
}

Client is the client API for service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewClient

func NewClient(c giraffe_micro.Client) Client

type CreateFromYamlRequest

type CreateFromYamlRequest struct {
	//
	//部署资源组 (resource group) id
	RgId string `protobuf:"bytes,1,opt,name=rgId,proto3" json:"rgId" form:"rgId"`
	//
	//资源原生 yaml 文件定义
	ResourceSpec         string   `protobuf:"bytes,2,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

CreateFromYaml请求

func (*CreateFromYamlRequest) Descriptor

func (*CreateFromYamlRequest) Descriptor() ([]byte, []int)

func (*CreateFromYamlRequest) GetResourceSpec

func (m *CreateFromYamlRequest) GetResourceSpec() string

func (*CreateFromYamlRequest) GetRgId

func (m *CreateFromYamlRequest) GetRgId() string

func (*CreateFromYamlRequest) ProtoMessage

func (*CreateFromYamlRequest) ProtoMessage()

func (*CreateFromYamlRequest) Reset

func (m *CreateFromYamlRequest) Reset()

func (*CreateFromYamlRequest) String

func (m *CreateFromYamlRequest) String() string

func (*CreateFromYamlRequest) Validate

func (this *CreateFromYamlRequest) Validate() error

func (*CreateFromYamlRequest) XXX_DiscardUnknown

func (m *CreateFromYamlRequest) XXX_DiscardUnknown()

func (*CreateFromYamlRequest) XXX_Marshal

func (m *CreateFromYamlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateFromYamlRequest) XXX_Merge

func (m *CreateFromYamlRequest) XXX_Merge(src proto.Message)

func (*CreateFromYamlRequest) XXX_Size

func (m *CreateFromYamlRequest) XXX_Size() int

func (*CreateFromYamlRequest) XXX_Unmarshal

func (m *CreateFromYamlRequest) XXX_Unmarshal(b []byte) error

type CreateFromYamlResponseWrapper

type CreateFromYamlResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *container.Service `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

CreateFromYamlApi返回

func (*CreateFromYamlResponseWrapper) Descriptor

func (*CreateFromYamlResponseWrapper) Descriptor() ([]byte, []int)

func (*CreateFromYamlResponseWrapper) GetCode

func (m *CreateFromYamlResponseWrapper) GetCode() int32

func (*CreateFromYamlResponseWrapper) GetCodeExplain

func (m *CreateFromYamlResponseWrapper) GetCodeExplain() string

func (*CreateFromYamlResponseWrapper) GetData

func (*CreateFromYamlResponseWrapper) GetError

func (m *CreateFromYamlResponseWrapper) GetError() string

func (*CreateFromYamlResponseWrapper) ProtoMessage

func (*CreateFromYamlResponseWrapper) ProtoMessage()

func (*CreateFromYamlResponseWrapper) Reset

func (m *CreateFromYamlResponseWrapper) Reset()

func (*CreateFromYamlResponseWrapper) String

func (*CreateFromYamlResponseWrapper) Validate

func (this *CreateFromYamlResponseWrapper) Validate() error

func (*CreateFromYamlResponseWrapper) XXX_DiscardUnknown

func (m *CreateFromYamlResponseWrapper) XXX_DiscardUnknown()

func (*CreateFromYamlResponseWrapper) XXX_Marshal

func (m *CreateFromYamlResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateFromYamlResponseWrapper) XXX_Merge

func (m *CreateFromYamlResponseWrapper) XXX_Merge(src proto.Message)

func (*CreateFromYamlResponseWrapper) XXX_Size

func (m *CreateFromYamlResponseWrapper) XXX_Size() int

func (*CreateFromYamlResponseWrapper) XXX_Unmarshal

func (m *CreateFromYamlResponseWrapper) XXX_Unmarshal(b []byte) error

type CreateRequest

type CreateRequest struct {
	//
	//部署资源组 (resource group) id
	RgId string `protobuf:"bytes,1,opt,name=rgId,proto3" json:"rgId" form:"rgId"`
	//
	//命名空间 id
	NamespaceId string `protobuf:"bytes,2,opt,name=namespaceId,proto3" json:"namespaceId" form:"namespaceId"`
	//
	//关联的 workload id
	WorkloadId string `protobuf:"bytes,3,opt,name=workloadId,proto3" json:"workloadId" form:"workloadId"`
	//
	//Service 信息
	Service              *container.Service `protobuf:"bytes,4,opt,name=service,proto3" json:"service" form:"service"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Create请求

func (*CreateRequest) Descriptor

func (*CreateRequest) Descriptor() ([]byte, []int)

func (*CreateRequest) GetNamespaceId

func (m *CreateRequest) GetNamespaceId() string

func (*CreateRequest) GetRgId

func (m *CreateRequest) GetRgId() string

func (*CreateRequest) GetService

func (m *CreateRequest) GetService() *container.Service

func (*CreateRequest) GetWorkloadId

func (m *CreateRequest) GetWorkloadId() string

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) Reset

func (m *CreateRequest) Reset()

func (*CreateRequest) String

func (m *CreateRequest) String() string

func (*CreateRequest) Validate

func (this *CreateRequest) Validate() error

func (*CreateRequest) XXX_DiscardUnknown

func (m *CreateRequest) XXX_DiscardUnknown()

func (*CreateRequest) XXX_Marshal

func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateRequest) XXX_Merge

func (m *CreateRequest) XXX_Merge(src proto.Message)

func (*CreateRequest) XXX_Size

func (m *CreateRequest) XXX_Size() int

func (*CreateRequest) XXX_Unmarshal

func (m *CreateRequest) XXX_Unmarshal(b []byte) error

type CreateResponseWrapper

type CreateResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *container.Service `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

CreateApi返回

func (*CreateResponseWrapper) Descriptor

func (*CreateResponseWrapper) Descriptor() ([]byte, []int)

func (*CreateResponseWrapper) GetCode

func (m *CreateResponseWrapper) GetCode() int32

func (*CreateResponseWrapper) GetCodeExplain

func (m *CreateResponseWrapper) GetCodeExplain() string

func (*CreateResponseWrapper) GetData

func (m *CreateResponseWrapper) GetData() *container.Service

func (*CreateResponseWrapper) GetError

func (m *CreateResponseWrapper) GetError() string

func (*CreateResponseWrapper) ProtoMessage

func (*CreateResponseWrapper) ProtoMessage()

func (*CreateResponseWrapper) Reset

func (m *CreateResponseWrapper) Reset()

func (*CreateResponseWrapper) String

func (m *CreateResponseWrapper) String() string

func (*CreateResponseWrapper) Validate

func (this *CreateResponseWrapper) Validate() error

func (*CreateResponseWrapper) XXX_DiscardUnknown

func (m *CreateResponseWrapper) XXX_DiscardUnknown()

func (*CreateResponseWrapper) XXX_Marshal

func (m *CreateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateResponseWrapper) XXX_Merge

func (m *CreateResponseWrapper) XXX_Merge(src proto.Message)

func (*CreateResponseWrapper) XXX_Size

func (m *CreateResponseWrapper) XXX_Size() int

func (*CreateResponseWrapper) XXX_Unmarshal

func (m *CreateResponseWrapper) XXX_Unmarshal(b []byte) error

type DeleteServiceRequest

type DeleteServiceRequest struct {
	//
	//要删除的实例 id
	InstanceId           string   `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

DeleteService请求

func (*DeleteServiceRequest) Descriptor

func (*DeleteServiceRequest) Descriptor() ([]byte, []int)

func (*DeleteServiceRequest) GetInstanceId

func (m *DeleteServiceRequest) GetInstanceId() string

func (*DeleteServiceRequest) ProtoMessage

func (*DeleteServiceRequest) ProtoMessage()

func (*DeleteServiceRequest) Reset

func (m *DeleteServiceRequest) Reset()

func (*DeleteServiceRequest) String

func (m *DeleteServiceRequest) String() string

func (*DeleteServiceRequest) Validate

func (this *DeleteServiceRequest) Validate() error

func (*DeleteServiceRequest) XXX_DiscardUnknown

func (m *DeleteServiceRequest) XXX_DiscardUnknown()

func (*DeleteServiceRequest) XXX_Marshal

func (m *DeleteServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteServiceRequest) XXX_Merge

func (m *DeleteServiceRequest) XXX_Merge(src proto.Message)

func (*DeleteServiceRequest) XXX_Size

func (m *DeleteServiceRequest) XXX_Size() int

func (*DeleteServiceRequest) XXX_Unmarshal

func (m *DeleteServiceRequest) XXX_Unmarshal(b []byte) error

type DeleteServiceResponseWrapper

type DeleteServiceResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *types.Empty `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

DeleteServiceApi返回

func (*DeleteServiceResponseWrapper) Descriptor

func (*DeleteServiceResponseWrapper) Descriptor() ([]byte, []int)

func (*DeleteServiceResponseWrapper) GetCode

func (m *DeleteServiceResponseWrapper) GetCode() int32

func (*DeleteServiceResponseWrapper) GetCodeExplain

func (m *DeleteServiceResponseWrapper) GetCodeExplain() string

func (*DeleteServiceResponseWrapper) GetData

func (*DeleteServiceResponseWrapper) GetError

func (m *DeleteServiceResponseWrapper) GetError() string

func (*DeleteServiceResponseWrapper) ProtoMessage

func (*DeleteServiceResponseWrapper) ProtoMessage()

func (*DeleteServiceResponseWrapper) Reset

func (m *DeleteServiceResponseWrapper) Reset()

func (*DeleteServiceResponseWrapper) String

func (*DeleteServiceResponseWrapper) Validate

func (this *DeleteServiceResponseWrapper) Validate() error

func (*DeleteServiceResponseWrapper) XXX_DiscardUnknown

func (m *DeleteServiceResponseWrapper) XXX_DiscardUnknown()

func (*DeleteServiceResponseWrapper) XXX_Marshal

func (m *DeleteServiceResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteServiceResponseWrapper) XXX_Merge

func (m *DeleteServiceResponseWrapper) XXX_Merge(src proto.Message)

func (*DeleteServiceResponseWrapper) XXX_Size

func (m *DeleteServiceResponseWrapper) XXX_Size() int

func (*DeleteServiceResponseWrapper) XXX_Unmarshal

func (m *DeleteServiceResponseWrapper) XXX_Unmarshal(b []byte) error

type GetRequest

type GetRequest struct {
	//
	//获取指定的 Service id
	InstanceId           string   `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Get请求

func (*GetRequest) Descriptor

func (*GetRequest) Descriptor() ([]byte, []int)

func (*GetRequest) GetInstanceId

func (m *GetRequest) GetInstanceId() string

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) Reset

func (m *GetRequest) Reset()

func (*GetRequest) String

func (m *GetRequest) String() string

func (*GetRequest) Validate

func (this *GetRequest) Validate() error

func (*GetRequest) XXX_DiscardUnknown

func (m *GetRequest) XXX_DiscardUnknown()

func (*GetRequest) XXX_Marshal

func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetRequest) XXX_Merge

func (m *GetRequest) XXX_Merge(src proto.Message)

func (*GetRequest) XXX_Size

func (m *GetRequest) XXX_Size() int

func (*GetRequest) XXX_Unmarshal

func (m *GetRequest) XXX_Unmarshal(b []byte) error

type GetResponse

type GetResponse struct {
	//
	//关联的部署资源组 (resource group)
	ResourceGroup *container.ResourceGroup `protobuf:"bytes,1,opt,name=resourceGroup,proto3" json:"resourceGroup" form:"resourceGroup"`
	//
	//关联的 Workload
	Workload *container.Workload `protobuf:"bytes,2,opt,name=workload,proto3" json:"workload" form:"workload"`
	//
	//Service 信息
	Service              *container.Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service" form:"service"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Get返回

func (*GetResponse) Descriptor

func (*GetResponse) Descriptor() ([]byte, []int)

func (*GetResponse) GetResourceGroup

func (m *GetResponse) GetResourceGroup() *container.ResourceGroup

func (*GetResponse) GetService

func (m *GetResponse) GetService() *container.Service

func (*GetResponse) GetWorkload

func (m *GetResponse) GetWorkload() *container.Workload

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) Reset

func (m *GetResponse) Reset()

func (*GetResponse) String

func (m *GetResponse) String() string

func (*GetResponse) Validate

func (this *GetResponse) Validate() error

func (*GetResponse) XXX_DiscardUnknown

func (m *GetResponse) XXX_DiscardUnknown()

func (*GetResponse) XXX_Marshal

func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetResponse) XXX_Merge

func (m *GetResponse) XXX_Merge(src proto.Message)

func (*GetResponse) XXX_Size

func (m *GetResponse) XXX_Size() int

func (*GetResponse) XXX_Unmarshal

func (m *GetResponse) XXX_Unmarshal(b []byte) error

type GetResponseWrapper

type GetResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *GetResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

GetApi返回

func (*GetResponseWrapper) Descriptor

func (*GetResponseWrapper) Descriptor() ([]byte, []int)

func (*GetResponseWrapper) GetCode

func (m *GetResponseWrapper) GetCode() int32

func (*GetResponseWrapper) GetCodeExplain

func (m *GetResponseWrapper) GetCodeExplain() string

func (*GetResponseWrapper) GetData

func (m *GetResponseWrapper) GetData() *GetResponse

func (*GetResponseWrapper) GetError

func (m *GetResponseWrapper) GetError() string

func (*GetResponseWrapper) ProtoMessage

func (*GetResponseWrapper) ProtoMessage()

func (*GetResponseWrapper) Reset

func (m *GetResponseWrapper) Reset()

func (*GetResponseWrapper) String

func (m *GetResponseWrapper) String() string

func (*GetResponseWrapper) Validate

func (this *GetResponseWrapper) Validate() error

func (*GetResponseWrapper) XXX_DiscardUnknown

func (m *GetResponseWrapper) XXX_DiscardUnknown()

func (*GetResponseWrapper) XXX_Marshal

func (m *GetResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetResponseWrapper) XXX_Merge

func (m *GetResponseWrapper) XXX_Merge(src proto.Message)

func (*GetResponseWrapper) XXX_Size

func (m *GetResponseWrapper) XXX_Size() int

func (*GetResponseWrapper) XXX_Unmarshal

func (m *GetResponseWrapper) XXX_Unmarshal(b []byte) error

type GetStatusRequest

type GetStatusRequest struct {
	//
	//获取指定的 Service id
	InstanceId           string   `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetStatus请求

func (*GetStatusRequest) Descriptor

func (*GetStatusRequest) Descriptor() ([]byte, []int)

func (*GetStatusRequest) GetInstanceId

func (m *GetStatusRequest) GetInstanceId() string

func (*GetStatusRequest) ProtoMessage

func (*GetStatusRequest) ProtoMessage()

func (*GetStatusRequest) Reset

func (m *GetStatusRequest) Reset()

func (*GetStatusRequest) String

func (m *GetStatusRequest) String() string

func (*GetStatusRequest) Validate

func (this *GetStatusRequest) Validate() error

func (*GetStatusRequest) XXX_DiscardUnknown

func (m *GetStatusRequest) XXX_DiscardUnknown()

func (*GetStatusRequest) XXX_Marshal

func (m *GetStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStatusRequest) XXX_Merge

func (m *GetStatusRequest) XXX_Merge(src proto.Message)

func (*GetStatusRequest) XXX_Size

func (m *GetStatusRequest) XXX_Size() int

func (*GetStatusRequest) XXX_Unmarshal

func (m *GetStatusRequest) XXX_Unmarshal(b []byte) error

type GetStatusResponseWrapper

type GetStatusResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *container.Service `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

GetStatusApi返回

func (*GetStatusResponseWrapper) Descriptor

func (*GetStatusResponseWrapper) Descriptor() ([]byte, []int)

func (*GetStatusResponseWrapper) GetCode

func (m *GetStatusResponseWrapper) GetCode() int32

func (*GetStatusResponseWrapper) GetCodeExplain

func (m *GetStatusResponseWrapper) GetCodeExplain() string

func (*GetStatusResponseWrapper) GetData

func (*GetStatusResponseWrapper) GetError

func (m *GetStatusResponseWrapper) GetError() string

func (*GetStatusResponseWrapper) ProtoMessage

func (*GetStatusResponseWrapper) ProtoMessage()

func (*GetStatusResponseWrapper) Reset

func (m *GetStatusResponseWrapper) Reset()

func (*GetStatusResponseWrapper) String

func (m *GetStatusResponseWrapper) String() string

func (*GetStatusResponseWrapper) Validate

func (this *GetStatusResponseWrapper) Validate() error

func (*GetStatusResponseWrapper) XXX_DiscardUnknown

func (m *GetStatusResponseWrapper) XXX_DiscardUnknown()

func (*GetStatusResponseWrapper) XXX_Marshal

func (m *GetStatusResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetStatusResponseWrapper) XXX_Merge

func (m *GetStatusResponseWrapper) XXX_Merge(src proto.Message)

func (*GetStatusResponseWrapper) XXX_Size

func (m *GetStatusResponseWrapper) XXX_Size() int

func (*GetStatusResponseWrapper) XXX_Unmarshal

func (m *GetStatusResponseWrapper) XXX_Unmarshal(b []byte) error

type ListRequest

type ListRequest struct {
	//
	//部署资源组 instace id
	RgId string `protobuf:"bytes,1,opt,name=rgId,proto3" json:"rgId" form:"rgId"`
	//
	//命名空间 id
	NamespaceId          string   `protobuf:"bytes,2,opt,name=namespaceId,proto3" json:"namespaceId" form:"namespaceId"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

List请求

func (*ListRequest) Descriptor

func (*ListRequest) Descriptor() ([]byte, []int)

func (*ListRequest) GetNamespaceId

func (m *ListRequest) GetNamespaceId() string

func (*ListRequest) GetRgId

func (m *ListRequest) GetRgId() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) Reset

func (m *ListRequest) Reset()

func (*ListRequest) String

func (m *ListRequest) String() string

func (*ListRequest) Validate

func (this *ListRequest) Validate() error

func (*ListRequest) XXX_DiscardUnknown

func (m *ListRequest) XXX_DiscardUnknown()

func (*ListRequest) XXX_Marshal

func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListRequest) XXX_Merge

func (m *ListRequest) XXX_Merge(src proto.Message)

func (*ListRequest) XXX_Size

func (m *ListRequest) XXX_Size() int

func (*ListRequest) XXX_Unmarshal

func (m *ListRequest) XXX_Unmarshal(b []byte) error

type ListResponse

type ListResponse struct {
	//
	//页数
	Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page" form:"page"`
	//
	//页大小
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size" form:"page_size"`
	//
	//总数
	Total int32 `protobuf:"varint,3,opt,name=total,proto3" json:"total" form:"total"`
	//
	//数据列表
	List                 []*container.Service `protobuf:"bytes,4,rep,name=list,proto3" json:"list" form:"list"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

List返回

func (*ListResponse) Descriptor

func (*ListResponse) Descriptor() ([]byte, []int)

func (*ListResponse) GetList

func (m *ListResponse) GetList() []*container.Service

func (*ListResponse) GetPage

func (m *ListResponse) GetPage() int32

func (*ListResponse) GetPageSize

func (m *ListResponse) GetPageSize() int32

func (*ListResponse) GetTotal

func (m *ListResponse) GetTotal() int32

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) Reset

func (m *ListResponse) Reset()

func (*ListResponse) String

func (m *ListResponse) String() string

func (*ListResponse) Validate

func (this *ListResponse) Validate() error

func (*ListResponse) XXX_DiscardUnknown

func (m *ListResponse) XXX_DiscardUnknown()

func (*ListResponse) XXX_Marshal

func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListResponse) XXX_Merge

func (m *ListResponse) XXX_Merge(src proto.Message)

func (*ListResponse) XXX_Size

func (m *ListResponse) XXX_Size() int

func (*ListResponse) XXX_Unmarshal

func (m *ListResponse) XXX_Unmarshal(b []byte) error

type ListResponseWrapper

type ListResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *ListResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

ListApi返回

func (*ListResponseWrapper) Descriptor

func (*ListResponseWrapper) Descriptor() ([]byte, []int)

func (*ListResponseWrapper) GetCode

func (m *ListResponseWrapper) GetCode() int32

func (*ListResponseWrapper) GetCodeExplain

func (m *ListResponseWrapper) GetCodeExplain() string

func (*ListResponseWrapper) GetData

func (m *ListResponseWrapper) GetData() *ListResponse

func (*ListResponseWrapper) GetError

func (m *ListResponseWrapper) GetError() string

func (*ListResponseWrapper) ProtoMessage

func (*ListResponseWrapper) ProtoMessage()

func (*ListResponseWrapper) Reset

func (m *ListResponseWrapper) Reset()

func (*ListResponseWrapper) String

func (m *ListResponseWrapper) String() string

func (*ListResponseWrapper) Validate

func (this *ListResponseWrapper) Validate() error

func (*ListResponseWrapper) XXX_DiscardUnknown

func (m *ListResponseWrapper) XXX_DiscardUnknown()

func (*ListResponseWrapper) XXX_Marshal

func (m *ListResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListResponseWrapper) XXX_Merge

func (m *ListResponseWrapper) XXX_Merge(src proto.Message)

func (*ListResponseWrapper) XXX_Size

func (m *ListResponseWrapper) XXX_Size() int

func (*ListResponseWrapper) XXX_Unmarshal

func (m *ListResponseWrapper) XXX_Unmarshal(b []byte) error

type UpdateRequest

type UpdateRequest struct {
	//
	//要更新的 Service id
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//关联的 workload id
	WorkloadId string `protobuf:"bytes,2,opt,name=workloadId,proto3" json:"workloadId" form:"workloadId"`
	//
	//Service 信息
	Service              *container.Service `protobuf:"bytes,3,opt,name=service,proto3" json:"service" form:"service"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

Update请求

func (*UpdateRequest) Descriptor

func (*UpdateRequest) Descriptor() ([]byte, []int)

func (*UpdateRequest) GetInstanceId

func (m *UpdateRequest) GetInstanceId() string

func (*UpdateRequest) GetService

func (m *UpdateRequest) GetService() *container.Service

func (*UpdateRequest) GetWorkloadId

func (m *UpdateRequest) GetWorkloadId() string

func (*UpdateRequest) ProtoMessage

func (*UpdateRequest) ProtoMessage()

func (*UpdateRequest) Reset

func (m *UpdateRequest) Reset()

func (*UpdateRequest) String

func (m *UpdateRequest) String() string

func (*UpdateRequest) Validate

func (this *UpdateRequest) Validate() error

func (*UpdateRequest) XXX_DiscardUnknown

func (m *UpdateRequest) XXX_DiscardUnknown()

func (*UpdateRequest) XXX_Marshal

func (m *UpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateRequest) XXX_Merge

func (m *UpdateRequest) XXX_Merge(src proto.Message)

func (*UpdateRequest) XXX_Size

func (m *UpdateRequest) XXX_Size() int

func (*UpdateRequest) XXX_Unmarshal

func (m *UpdateRequest) XXX_Unmarshal(b []byte) error

type UpdateResourceSpecRequest

type UpdateResourceSpecRequest struct {
	//
	//Service id
	InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId" form:"instanceId"`
	//
	//资源原生 yaml 文件定义
	ResourceSpec         string   `protobuf:"bytes,2,opt,name=resourceSpec,proto3" json:"resourceSpec" form:"resourceSpec"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

UpdateResourceSpec请求

func (*UpdateResourceSpecRequest) Descriptor

func (*UpdateResourceSpecRequest) Descriptor() ([]byte, []int)

func (*UpdateResourceSpecRequest) GetInstanceId

func (m *UpdateResourceSpecRequest) GetInstanceId() string

func (*UpdateResourceSpecRequest) GetResourceSpec

func (m *UpdateResourceSpecRequest) GetResourceSpec() string

func (*UpdateResourceSpecRequest) ProtoMessage

func (*UpdateResourceSpecRequest) ProtoMessage()

func (*UpdateResourceSpecRequest) Reset

func (m *UpdateResourceSpecRequest) Reset()

func (*UpdateResourceSpecRequest) String

func (m *UpdateResourceSpecRequest) String() string

func (*UpdateResourceSpecRequest) Validate

func (this *UpdateResourceSpecRequest) Validate() error

func (*UpdateResourceSpecRequest) XXX_DiscardUnknown

func (m *UpdateResourceSpecRequest) XXX_DiscardUnknown()

func (*UpdateResourceSpecRequest) XXX_Marshal

func (m *UpdateResourceSpecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateResourceSpecRequest) XXX_Merge

func (m *UpdateResourceSpecRequest) XXX_Merge(src proto.Message)

func (*UpdateResourceSpecRequest) XXX_Size

func (m *UpdateResourceSpecRequest) XXX_Size() int

func (*UpdateResourceSpecRequest) XXX_Unmarshal

func (m *UpdateResourceSpecRequest) XXX_Unmarshal(b []byte) error

type UpdateResourceSpecResponseWrapper

type UpdateResourceSpecResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *container.Service `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

UpdateResourceSpecApi返回

func (*UpdateResourceSpecResponseWrapper) Descriptor

func (*UpdateResourceSpecResponseWrapper) Descriptor() ([]byte, []int)

func (*UpdateResourceSpecResponseWrapper) GetCode

func (*UpdateResourceSpecResponseWrapper) GetCodeExplain

func (m *UpdateResourceSpecResponseWrapper) GetCodeExplain() string

func (*UpdateResourceSpecResponseWrapper) GetData

func (*UpdateResourceSpecResponseWrapper) GetError

func (*UpdateResourceSpecResponseWrapper) ProtoMessage

func (*UpdateResourceSpecResponseWrapper) ProtoMessage()

func (*UpdateResourceSpecResponseWrapper) Reset

func (*UpdateResourceSpecResponseWrapper) String

func (*UpdateResourceSpecResponseWrapper) Validate

func (this *UpdateResourceSpecResponseWrapper) Validate() error

func (*UpdateResourceSpecResponseWrapper) XXX_DiscardUnknown

func (m *UpdateResourceSpecResponseWrapper) XXX_DiscardUnknown()

func (*UpdateResourceSpecResponseWrapper) XXX_Marshal

func (m *UpdateResourceSpecResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateResourceSpecResponseWrapper) XXX_Merge

func (*UpdateResourceSpecResponseWrapper) XXX_Size

func (m *UpdateResourceSpecResponseWrapper) XXX_Size() int

func (*UpdateResourceSpecResponseWrapper) XXX_Unmarshal

func (m *UpdateResourceSpecResponseWrapper) XXX_Unmarshal(b []byte) error

type UpdateResponseWrapper

type UpdateResponseWrapper struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回码解释
	CodeExplain string `protobuf:"bytes,2,opt,name=codeExplain,proto3" json:"codeExplain" form:"codeExplain"`
	//
	//错误详情
	Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回数据
	Data                 *container.Service `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

UpdateApi返回

func (*UpdateResponseWrapper) Descriptor

func (*UpdateResponseWrapper) Descriptor() ([]byte, []int)

func (*UpdateResponseWrapper) GetCode

func (m *UpdateResponseWrapper) GetCode() int32

func (*UpdateResponseWrapper) GetCodeExplain

func (m *UpdateResponseWrapper) GetCodeExplain() string

func (*UpdateResponseWrapper) GetData

func (m *UpdateResponseWrapper) GetData() *container.Service

func (*UpdateResponseWrapper) GetError

func (m *UpdateResponseWrapper) GetError() string

func (*UpdateResponseWrapper) ProtoMessage

func (*UpdateResponseWrapper) ProtoMessage()

func (*UpdateResponseWrapper) Reset

func (m *UpdateResponseWrapper) Reset()

func (*UpdateResponseWrapper) String

func (m *UpdateResponseWrapper) String() string

func (*UpdateResponseWrapper) Validate

func (this *UpdateResponseWrapper) Validate() error

func (*UpdateResponseWrapper) XXX_DiscardUnknown

func (m *UpdateResponseWrapper) XXX_DiscardUnknown()

func (*UpdateResponseWrapper) XXX_Marshal

func (m *UpdateResponseWrapper) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateResponseWrapper) XXX_Merge

func (m *UpdateResponseWrapper) XXX_Merge(src proto.Message)

func (*UpdateResponseWrapper) XXX_Size

func (m *UpdateResponseWrapper) XXX_Size() int

func (*UpdateResponseWrapper) XXX_Unmarshal

func (m *UpdateResponseWrapper) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL