pbgo

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Code_name = map[int32]string{
		0:  "OK",
		1:  "CANCELLED",
		2:  "UNKNOWN",
		3:  "INVALID_ARGUMENT",
		4:  "DEADLINE_EXCEEDED",
		5:  "NOT_FOUND",
		6:  "ALREADY_EXISTS",
		7:  "PERMISSION_DENIED",
		16: "UNAUTHENTICATED",
		8:  "RESOURCE_EXHAUSTED",
		9:  "FAILED_PRECONDITION",
		10: "ABORTED",
		11: "OUT_OF_RANGE",
		12: "UNIMPLEMENTED",
		13: "INTERNAL",
		14: "UNAVAILABLE",
	}
	Code_value = map[string]int32{
		"OK":                  0,
		"CANCELLED":           1,
		"UNKNOWN":             2,
		"INVALID_ARGUMENT":    3,
		"DEADLINE_EXCEEDED":   4,
		"NOT_FOUND":           5,
		"ALREADY_EXISTS":      6,
		"PERMISSION_DENIED":   7,
		"UNAUTHENTICATED":     16,
		"RESOURCE_EXHAUSTED":  8,
		"FAILED_PRECONDITION": 9,
		"ABORTED":             10,
		"OUT_OF_RANGE":        11,
		"UNIMPLEMENTED":       12,
		"INTERNAL":            13,
		"UNAVAILABLE":         14,
	}
)

Enum value maps for Code.

View Source
var ContractService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pbgo.ContractService",
	HandlerType: (*ContractServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateContract",
			Handler:    _ContractService_CreateContract_Handler,
		},
		{
			MethodName: "UpdateQuota",
			Handler:    _ContractService_UpdateQuota_Handler,
		},
		{
			MethodName: "UpdateServices",
			Handler:    _ContractService_UpdateServices_Handler,
		},
		{
			MethodName: "GetContract",
			Handler:    _ContractService_GetContract_Handler,
		},
		{
			MethodName: "GetQuota",
			Handler:    _ContractService_GetQuota_Handler,
		},
		{
			MethodName: "GetServices",
			Handler:    _ContractService_GetServices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "contract.proto",
}

ContractService_ServiceDesc is the grpc.ServiceDesc for ContractService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_common_proto protoreflect.FileDescriptor
View Source
var File_contract_proto protoreflect.FileDescriptor

Functions

func RegisterContractServiceServer added in v0.0.3

func RegisterContractServiceServer(s grpc.ServiceRegistrar, srv ContractServiceServer)

Types

type Code

type Code int32
const (
	Code_OK                  Code = 0
	Code_CANCELLED           Code = 1
	Code_UNKNOWN             Code = 2
	Code_INVALID_ARGUMENT    Code = 3
	Code_DEADLINE_EXCEEDED   Code = 4
	Code_NOT_FOUND           Code = 5
	Code_ALREADY_EXISTS      Code = 6
	Code_PERMISSION_DENIED   Code = 7
	Code_UNAUTHENTICATED     Code = 16
	Code_RESOURCE_EXHAUSTED  Code = 8
	Code_FAILED_PRECONDITION Code = 9
	Code_ABORTED             Code = 10
	Code_OUT_OF_RANGE        Code = 11
	Code_UNIMPLEMENTED       Code = 12
	Code_INTERNAL            Code = 13
	Code_UNAVAILABLE         Code = 14
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

func (Code) EnumDescriptor() ([]byte, []int)

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

func (Code) Type

func (Code) Type() protoreflect.EnumType

type ContractQuota

type ContractQuota struct {
	Cpu      int64 `protobuf:"zigzag64,1,opt,name=cpu,proto3" json:"cpu,omitempty"`                           // cpu unit(GB) from 10 to 10000
	Memory   int64 `protobuf:"zigzag64,2,opt,name=memory,proto3" json:"memory,omitempty"`                     // memory unit(MB) from 40 to 40000
	Block    int64 `protobuf:"zigzag64,3,opt,name=block,proto3" json:"block,omitempty"`                       // block storage(MB) from 0 to 256000000
	BlockSsd int64 `protobuf:"zigzag64,4,opt,name=block_ssd,json=blockSsd,proto3" json:"block_ssd,omitempty"` // block ssd storage(MB) from 0 to 256000000
	Fs       int64 `protobuf:"zigzag64,5,opt,name=fs,proto3" json:"fs,omitempty"`                             // filesystem (MB) from 0 to 256000000
	FsSsd    int64 `protobuf:"zigzag64,6,opt,name=fs_ssd,json=fsSsd,proto3" json:"fs_ssd,omitempty"`          // SSD filesystem (MB) from 0 to 256000000
	// contains filtered or unexported fields
}

ContractQuota is a resource quota for total usage in clusters.

func (*ContractQuota) Descriptor deprecated

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

Deprecated: Use ContractQuota.ProtoReflect.Descriptor instead.

func (*ContractQuota) GetBlock

func (x *ContractQuota) GetBlock() int64

func (*ContractQuota) GetBlockSsd

func (x *ContractQuota) GetBlockSsd() int64

func (*ContractQuota) GetCpu

func (x *ContractQuota) GetCpu() int64

func (*ContractQuota) GetFs

func (x *ContractQuota) GetFs() int64

func (*ContractQuota) GetFsSsd

func (x *ContractQuota) GetFsSsd() int64

func (*ContractQuota) GetMemory

func (x *ContractQuota) GetMemory() int64

func (*ContractQuota) ProtoMessage

func (*ContractQuota) ProtoMessage()

func (*ContractQuota) ProtoReflect

func (x *ContractQuota) ProtoReflect() protoreflect.Message

func (*ContractQuota) Reset

func (x *ContractQuota) Reset()

func (*ContractQuota) String

func (x *ContractQuota) String() string

type ContractServiceClient added in v0.0.3

type ContractServiceClient interface {
	CreateContract(ctx context.Context, in *CreateContractRequest, opts ...grpc.CallOption) (*CreateContractResponse, error)
	UpdateQuota(ctx context.Context, in *UpdateQuotaRequest, opts ...grpc.CallOption) (*UpdateQuotaResponse, error)
	UpdateServices(ctx context.Context, in *UpdateServicesRequest, opts ...grpc.CallOption) (*UpdateServicesResponse, error)
	GetContract(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*GetContractResponse, error)
	GetQuota(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error)
	GetServices(ctx context.Context, in *GetServicesRequest, opts ...grpc.CallOption) (*GetServicesResponse, error)
}

ContractServiceClient is the client API for ContractService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewContractServiceClient added in v0.0.3

func NewContractServiceClient(cc grpc.ClientConnInterface) ContractServiceClient

type ContractServiceServer added in v0.0.3

type ContractServiceServer interface {
	CreateContract(context.Context, *CreateContractRequest) (*CreateContractResponse, error)
	UpdateQuota(context.Context, *UpdateQuotaRequest) (*UpdateQuotaResponse, error)
	UpdateServices(context.Context, *UpdateServicesRequest) (*UpdateServicesResponse, error)
	GetContract(context.Context, *GetContractRequest) (*GetContractResponse, error)
	GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error)
	GetServices(context.Context, *GetServicesRequest) (*GetServicesResponse, error)
	// contains filtered or unexported methods
}

ContractServiceServer is the server API for ContractService service. All implementations must embed UnimplementedContractServiceServer for forward compatibility

type CreateContractRequest

type CreateContractRequest struct {
	ContractorName    string         `protobuf:"bytes,1,opt,name=contractor_name,json=contractorName,proto3" json:"contractor_name,omitempty"`          // Name of contractor
	ContractId        string         `protobuf:"bytes,2,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`                      // Global Unique ID created by CBP
	Quota             *ContractQuota `protobuf:"bytes,3,opt,name=quota,proto3" json:"quota,omitempty"`                                                  // Resource Quota for this contract
	AvailableServices []string       `protobuf:"bytes,4,rep,name=available_services,json=availableServices,proto3" json:"available_services,omitempty"` // Available service list
	// contains filtered or unexported fields
}

CreateContractRequest is a request to create new contract to the contract service.

func (*CreateContractRequest) Descriptor deprecated

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

Deprecated: Use CreateContractRequest.ProtoReflect.Descriptor instead.

func (*CreateContractRequest) GetAvailableServices

func (x *CreateContractRequest) GetAvailableServices() []string

func (*CreateContractRequest) GetContractId

func (x *CreateContractRequest) GetContractId() string

func (*CreateContractRequest) GetContractorName

func (x *CreateContractRequest) GetContractorName() string

func (*CreateContractRequest) GetQuota

func (x *CreateContractRequest) GetQuota() *ContractQuota

func (*CreateContractRequest) ProtoMessage

func (*CreateContractRequest) ProtoMessage()

func (*CreateContractRequest) ProtoReflect

func (x *CreateContractRequest) ProtoReflect() protoreflect.Message

func (*CreateContractRequest) Reset

func (x *CreateContractRequest) Reset()

func (*CreateContractRequest) String

func (x *CreateContractRequest) String() string

type CreateContractResponse

type CreateContractResponse struct {
	Code    Code   `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"`
	Error   *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	McOpsId string `protobuf:"bytes,3,opt,name=mc_ops_id,json=mcOpsId,proto3" json:"mc_ops_id,omitempty"` // Global Unique ID created by the contract service
	// contains filtered or unexported fields
}

CreateContractResponse is a response to the CreateContractRequest request from the contract service.

func (*CreateContractResponse) Descriptor deprecated

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

Deprecated: Use CreateContractResponse.ProtoReflect.Descriptor instead.

func (*CreateContractResponse) GetCode

func (x *CreateContractResponse) GetCode() Code

func (*CreateContractResponse) GetError

func (x *CreateContractResponse) GetError() *Error

func (*CreateContractResponse) GetMcOpsId

func (x *CreateContractResponse) GetMcOpsId() string

func (*CreateContractResponse) ProtoMessage

func (*CreateContractResponse) ProtoMessage()

func (*CreateContractResponse) ProtoReflect

func (x *CreateContractResponse) ProtoReflect() protoreflect.Message

func (*CreateContractResponse) Reset

func (x *CreateContractResponse) Reset()

func (*CreateContractResponse) String

func (x *CreateContractResponse) String() string

type Error

type Error struct {
	Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*Error) Descriptor deprecated

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

Deprecated: Use Error.ProtoReflect.Descriptor instead.

func (*Error) GetMsg

func (x *Error) GetMsg() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) ProtoReflect

func (x *Error) ProtoReflect() protoreflect.Message

func (*Error) Reset

func (x *Error) Reset()

func (*Error) String

func (x *Error) String() string

type GetContractRequest added in v0.0.2

type GetContractRequest struct {
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // Global Unique ID created by CBP
	// contains filtered or unexported fields
}

GetContractRequest is a request to inquire contract to the contract service.

func (*GetContractRequest) Descriptor deprecated added in v0.0.2

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

Deprecated: Use GetContractRequest.ProtoReflect.Descriptor instead.

func (*GetContractRequest) GetContractId added in v0.0.2

func (x *GetContractRequest) GetContractId() string

func (*GetContractRequest) ProtoMessage added in v0.0.2

func (*GetContractRequest) ProtoMessage()

func (*GetContractRequest) ProtoReflect added in v0.0.2

func (x *GetContractRequest) ProtoReflect() protoreflect.Message

func (*GetContractRequest) Reset added in v0.0.2

func (x *GetContractRequest) Reset()

func (*GetContractRequest) String added in v0.0.2

func (x *GetContractRequest) String() string

type GetContractResponse added in v0.0.2

type GetContractResponse struct {
	Code              Code                   `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"`
	Error             *Error                 `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	ContractorName    string                 `protobuf:"bytes,3,opt,name=contractor_name,json=contractorName,proto3" json:"contractor_name,omitempty"`          // Name of contractor
	ContractId        string                 `protobuf:"bytes,4,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`                      // Global Unique ID created by CBP
	Quota             *ContractQuota         `protobuf:"bytes,5,opt,name=quota,proto3" json:"quota,omitempty"`                                                  // Resource Quota for this contract
	AvailableServices []string               `protobuf:"bytes,6,rep,name=available_services,json=availableServices,proto3" json:"available_services,omitempty"` // Available service list
	McOpsId           string                 `protobuf:"bytes,7,opt,name=mc_ops_id,json=mcOpsId,proto3" json:"mc_ops_id,omitempty"`                             // Global Unique ID created by the contract service
	LastUpdatedTs     *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=last_updated_ts,json=lastUpdatedTs,proto3" json:"last_updated_ts,omitempty"`           // Last updated timestamp
	// contains filtered or unexported fields
}

GetContractResponse is a response to the GetContractRequest from the contract service.

func (*GetContractResponse) Descriptor deprecated added in v0.0.2

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

Deprecated: Use GetContractResponse.ProtoReflect.Descriptor instead.

func (*GetContractResponse) GetAvailableServices added in v0.0.2

func (x *GetContractResponse) GetAvailableServices() []string

func (*GetContractResponse) GetCode added in v0.0.2

func (x *GetContractResponse) GetCode() Code

func (*GetContractResponse) GetContractId added in v0.0.2

func (x *GetContractResponse) GetContractId() string

func (*GetContractResponse) GetContractorName added in v0.0.2

func (x *GetContractResponse) GetContractorName() string

func (*GetContractResponse) GetError added in v0.0.2

func (x *GetContractResponse) GetError() *Error

func (*GetContractResponse) GetLastUpdatedTs added in v0.0.2

func (x *GetContractResponse) GetLastUpdatedTs() *timestamppb.Timestamp

func (*GetContractResponse) GetMcOpsId added in v0.0.2

func (x *GetContractResponse) GetMcOpsId() string

func (*GetContractResponse) GetQuota added in v0.0.2

func (x *GetContractResponse) GetQuota() *ContractQuota

func (*GetContractResponse) ProtoMessage added in v0.0.2

func (*GetContractResponse) ProtoMessage()

func (*GetContractResponse) ProtoReflect added in v0.0.2

func (x *GetContractResponse) ProtoReflect() protoreflect.Message

func (*GetContractResponse) Reset added in v0.0.2

func (x *GetContractResponse) Reset()

func (*GetContractResponse) String added in v0.0.2

func (x *GetContractResponse) String() string

type GetQuotaRequest added in v0.0.2

type GetQuotaRequest struct {
	ContractId string `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // Global Unique ID created by CBP
	// contains filtered or unexported fields
}

GetQuotaRequest is a request to inquire quota information of the specific contract.

func (*GetQuotaRequest) Descriptor deprecated added in v0.0.2

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

Deprecated: Use GetQuotaRequest.ProtoReflect.Descriptor instead.

func (*GetQuotaRequest) GetContractId added in v0.0.2

func (x *GetQuotaRequest) GetContractId() string

func (*GetQuotaRequest) ProtoMessage added in v0.0.2

func (*GetQuotaRequest) ProtoMessage()

func (*GetQuotaRequest) ProtoReflect added in v0.0.2

func (x *GetQuotaRequest) ProtoReflect() protoreflect.Message

func (*GetQuotaRequest) Reset added in v0.0.2

func (x *GetQuotaRequest) Reset()

func (*GetQuotaRequest) String added in v0.0.2

func (x *GetQuotaRequest) String() string

type GetQuotaResponse added in v0.0.2

type GetQuotaResponse struct {
	Code  Code   `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"`
	Error *Error `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

GetQuotaResponse is a response to the GetQuotaRequest from the contract service.

func (*GetQuotaResponse) Descriptor deprecated added in v0.0.2

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

Deprecated: Use GetQuotaResponse.ProtoReflect.Descriptor instead.

func (*GetQuotaResponse) GetCode added in v0.0.2

func (x *GetQuotaResponse) GetCode() Code

func (*GetQuotaResponse) GetError added in v0.0.2

func (x *GetQuotaResponse) GetError() *Error

func (*GetQuotaResponse) ProtoMessage added in v0.0.2

func (*GetQuotaResponse) ProtoMessage()

func (*GetQuotaResponse) ProtoReflect added in v0.0.2

func (x *GetQuotaResponse) ProtoReflect() protoreflect.Message

func (*GetQuotaResponse) Reset added in v0.0.2

func (x *GetQuotaResponse) Reset()

func (*GetQuotaResponse) String added in v0.0.2

func (x *GetQuotaResponse) String() string

type GetServicesRequest added in v0.0.2

type GetServicesRequest struct {
	McOpsId string `protobuf:"bytes,1,opt,name=mc_ops_id,json=mcOpsId,proto3" json:"mc_ops_id,omitempty"` // Global Unique ID created by Contract Service
	// contains filtered or unexported fields
}

GetServiceRequest is a request to get available service list for the specific contract.

func (*GetServicesRequest) Descriptor deprecated added in v0.0.2

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

Deprecated: Use GetServicesRequest.ProtoReflect.Descriptor instead.

func (*GetServicesRequest) GetMcOpsId added in v0.0.2

func (x *GetServicesRequest) GetMcOpsId() string

func (*GetServicesRequest) ProtoMessage added in v0.0.2

func (*GetServicesRequest) ProtoMessage()

func (*GetServicesRequest) ProtoReflect added in v0.0.2

func (x *GetServicesRequest) ProtoReflect() protoreflect.Message

func (*GetServicesRequest) Reset added in v0.0.2

func (x *GetServicesRequest) Reset()

func (*GetServicesRequest) String added in v0.0.2

func (x *GetServicesRequest) String() string

type GetServicesResponse added in v0.0.2

type GetServicesResponse struct {
	Code                Code     `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"`
	Error               *Error   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	AvaiableServiceApps []string `protobuf:"bytes,3,rep,name=avaiable_service_apps,json=avaiableServiceApps,proto3" json:"avaiable_service_apps,omitempty"` // Available Service List
	// contains filtered or unexported fields
}

GetServicesResponse is a response to the GetServiceRequest from the contract service.

func (*GetServicesResponse) Descriptor deprecated added in v0.0.2

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

Deprecated: Use GetServicesResponse.ProtoReflect.Descriptor instead.

func (*GetServicesResponse) GetAvaiableServiceApps added in v0.0.2

func (x *GetServicesResponse) GetAvaiableServiceApps() []string

func (*GetServicesResponse) GetCode added in v0.0.2

func (x *GetServicesResponse) GetCode() Code

func (*GetServicesResponse) GetError added in v0.0.2

func (x *GetServicesResponse) GetError() *Error

func (*GetServicesResponse) ProtoMessage added in v0.0.2

func (*GetServicesResponse) ProtoMessage()

func (*GetServicesResponse) ProtoReflect added in v0.0.2

func (x *GetServicesResponse) ProtoReflect() protoreflect.Message

func (*GetServicesResponse) Reset added in v0.0.2

func (x *GetServicesResponse) Reset()

func (*GetServicesResponse) String added in v0.0.2

func (x *GetServicesResponse) String() string

type UnimplementedContractServiceServer added in v0.0.3

type UnimplementedContractServiceServer struct {
}

UnimplementedContractServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedContractServiceServer) CreateContract added in v0.0.3

func (UnimplementedContractServiceServer) GetContract added in v0.0.3

func (UnimplementedContractServiceServer) GetQuota added in v0.0.3

func (UnimplementedContractServiceServer) GetServices added in v0.0.3

func (UnimplementedContractServiceServer) UpdateQuota added in v0.0.3

func (UnimplementedContractServiceServer) UpdateServices added in v0.0.3

type UnsafeContractServiceServer added in v0.0.3

type UnsafeContractServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeContractServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContractServiceServer will result in compilation errors.

type UpdateQuotaRequest

type UpdateQuotaRequest struct {
	ContractId string         `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"` // Global Unique ID created by CBP
	Quota      *ContractQuota `protobuf:"bytes,2,opt,name=quota,proto3" json:"quota,omitempty"`                             // Resource Quota
	// contains filtered or unexported fields
}

UpdateQuotaRequest is a request to update resource quota for specific contract.

func (*UpdateQuotaRequest) Descriptor deprecated

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

Deprecated: Use UpdateQuotaRequest.ProtoReflect.Descriptor instead.

func (*UpdateQuotaRequest) GetContractId

func (x *UpdateQuotaRequest) GetContractId() string

func (*UpdateQuotaRequest) GetQuota

func (x *UpdateQuotaRequest) GetQuota() *ContractQuota

func (*UpdateQuotaRequest) ProtoMessage

func (*UpdateQuotaRequest) ProtoMessage()

func (*UpdateQuotaRequest) ProtoReflect

func (x *UpdateQuotaRequest) ProtoReflect() protoreflect.Message

func (*UpdateQuotaRequest) Reset

func (x *UpdateQuotaRequest) Reset()

func (*UpdateQuotaRequest) String

func (x *UpdateQuotaRequest) String() string

type UpdateQuotaResponse

type UpdateQuotaResponse struct {
	Code         Code           `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"`
	Error        *Error         `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	ContractId   string         `protobuf:"bytes,3,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`       // Global Unique ID created by CBP
	PrevQuota    *ContractQuota `protobuf:"bytes,4,opt,name=prev_quota,json=prevQuota,proto3" json:"prev_quota,omitempty"`          // Previous Quota
	CurrentQuota *ContractQuota `protobuf:"bytes,5,opt,name=current_quota,json=currentQuota,proto3" json:"current_quota,omitempty"` // Current Quota
	// contains filtered or unexported fields
}

UpdateQuotaResponse is a response to the UpdateQuotaRequest from the contract service

func (*UpdateQuotaResponse) Descriptor deprecated

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

Deprecated: Use UpdateQuotaResponse.ProtoReflect.Descriptor instead.

func (*UpdateQuotaResponse) GetCode

func (x *UpdateQuotaResponse) GetCode() Code

func (*UpdateQuotaResponse) GetContractId

func (x *UpdateQuotaResponse) GetContractId() string

func (*UpdateQuotaResponse) GetCurrentQuota

func (x *UpdateQuotaResponse) GetCurrentQuota() *ContractQuota

func (*UpdateQuotaResponse) GetError

func (x *UpdateQuotaResponse) GetError() *Error

func (*UpdateQuotaResponse) GetPrevQuota

func (x *UpdateQuotaResponse) GetPrevQuota() *ContractQuota

func (*UpdateQuotaResponse) ProtoMessage

func (*UpdateQuotaResponse) ProtoMessage()

func (*UpdateQuotaResponse) ProtoReflect

func (x *UpdateQuotaResponse) ProtoReflect() protoreflect.Message

func (*UpdateQuotaResponse) Reset

func (x *UpdateQuotaResponse) Reset()

func (*UpdateQuotaResponse) String

func (x *UpdateQuotaResponse) String() string

type UpdateServicesRequest added in v0.0.2

type UpdateServicesRequest struct {
	ContractId        string   `protobuf:"bytes,1,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`                      // Global Unique ID created by CBP
	AvailableServices []string `protobuf:"bytes,2,rep,name=available_services,json=availableServices,proto3" json:"available_services,omitempty"` // Available Service List
	// contains filtered or unexported fields
}

UpdateServiceRequest is a request to update available service list to the contract service. The services currently provided are as below:

  • LMA(Logging Monitoring Alert)
  • service-mesh (Istio, jaeger, kiali)

func (*UpdateServicesRequest) Descriptor deprecated added in v0.0.2

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

Deprecated: Use UpdateServicesRequest.ProtoReflect.Descriptor instead.

func (*UpdateServicesRequest) GetAvailableServices added in v0.0.2

func (x *UpdateServicesRequest) GetAvailableServices() []string

func (*UpdateServicesRequest) GetContractId added in v0.0.2

func (x *UpdateServicesRequest) GetContractId() string

func (*UpdateServicesRequest) ProtoMessage added in v0.0.2

func (*UpdateServicesRequest) ProtoMessage()

func (*UpdateServicesRequest) ProtoReflect added in v0.0.2

func (x *UpdateServicesRequest) ProtoReflect() protoreflect.Message

func (*UpdateServicesRequest) Reset added in v0.0.2

func (x *UpdateServicesRequest) Reset()

func (*UpdateServicesRequest) String added in v0.0.2

func (x *UpdateServicesRequest) String() string

type UpdateServicesResponse added in v0.0.2

type UpdateServicesResponse struct {
	Code            Code           `protobuf:"varint,1,opt,name=code,proto3,enum=pbgo.Code" json:"code,omitempty"`
	Error           *Error         `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	ContractId      string         `protobuf:"bytes,3,opt,name=contract_id,json=contractId,proto3" json:"contract_id,omitempty"`                // Global Unique ID created by CBP
	PrevServices    *ContractQuota `protobuf:"bytes,4,opt,name=prev_services,json=prevServices,proto3" json:"prev_services,omitempty"`          // Previous Service List
	CurrentServices *ContractQuota `protobuf:"bytes,5,opt,name=current_services,json=currentServices,proto3" json:"current_services,omitempty"` // Current Service List
	// contains filtered or unexported fields
}

UpdateServiceResponse is a response to the UpdateServicesRequest from the contract service.

func (*UpdateServicesResponse) Descriptor deprecated added in v0.0.2

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

Deprecated: Use UpdateServicesResponse.ProtoReflect.Descriptor instead.

func (*UpdateServicesResponse) GetCode added in v0.0.2

func (x *UpdateServicesResponse) GetCode() Code

func (*UpdateServicesResponse) GetContractId added in v0.0.2

func (x *UpdateServicesResponse) GetContractId() string

func (*UpdateServicesResponse) GetCurrentServices added in v0.0.2

func (x *UpdateServicesResponse) GetCurrentServices() *ContractQuota

func (*UpdateServicesResponse) GetError added in v0.0.2

func (x *UpdateServicesResponse) GetError() *Error

func (*UpdateServicesResponse) GetPrevServices added in v0.0.2

func (x *UpdateServicesResponse) GetPrevServices() *ContractQuota

func (*UpdateServicesResponse) ProtoMessage added in v0.0.2

func (*UpdateServicesResponse) ProtoMessage()

func (*UpdateServicesResponse) ProtoReflect added in v0.0.2

func (x *UpdateServicesResponse) ProtoReflect() protoreflect.Message

func (*UpdateServicesResponse) Reset added in v0.0.2

func (x *UpdateServicesResponse) Reset()

func (*UpdateServicesResponse) String added in v0.0.2

func (x *UpdateServicesResponse) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL