Versions in this module Expand all Collapse all v0 v0.0.3 Apr 6, 2021 Changes in this version + var ContractService_ServiceDesc = grpc.ServiceDesc + func RegisterContractServiceServer(s grpc.ServiceRegistrar, srv ContractServiceServer) + type ContractServiceClient interface + CreateContract func(ctx context.Context, in *CreateContractRequest, opts ...grpc.CallOption) (*CreateContractResponse, error) + GetContract func(ctx context.Context, in *GetContractRequest, opts ...grpc.CallOption) (*GetContractResponse, error) + GetQuota func(ctx context.Context, in *GetQuotaRequest, opts ...grpc.CallOption) (*GetQuotaResponse, error) + GetServices func(ctx context.Context, in *GetServicesRequest, opts ...grpc.CallOption) (*GetServicesResponse, error) + UpdateQuota func(ctx context.Context, in *UpdateQuotaRequest, opts ...grpc.CallOption) (*UpdateQuotaResponse, error) + UpdateServices func(ctx context.Context, in *UpdateServicesRequest, opts ...grpc.CallOption) (*UpdateServicesResponse, error) + func NewContractServiceClient(cc grpc.ClientConnInterface) ContractServiceClient + type ContractServiceServer interface + CreateContract func(context.Context, *CreateContractRequest) (*CreateContractResponse, error) + GetContract func(context.Context, *GetContractRequest) (*GetContractResponse, error) + GetQuota func(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) + GetServices func(context.Context, *GetServicesRequest) (*GetServicesResponse, error) + UpdateQuota func(context.Context, *UpdateQuotaRequest) (*UpdateQuotaResponse, error) + UpdateServices func(context.Context, *UpdateServicesRequest) (*UpdateServicesResponse, error) + type UnimplementedContractServiceServer struct + func (UnimplementedContractServiceServer) CreateContract(context.Context, *CreateContractRequest) (*CreateContractResponse, error) + func (UnimplementedContractServiceServer) GetContract(context.Context, *GetContractRequest) (*GetContractResponse, error) + func (UnimplementedContractServiceServer) GetQuota(context.Context, *GetQuotaRequest) (*GetQuotaResponse, error) + func (UnimplementedContractServiceServer) GetServices(context.Context, *GetServicesRequest) (*GetServicesResponse, error) + func (UnimplementedContractServiceServer) UpdateQuota(context.Context, *UpdateQuotaRequest) (*UpdateQuotaResponse, error) + func (UnimplementedContractServiceServer) UpdateServices(context.Context, *UpdateServicesRequest) (*UpdateServicesResponse, error) + type UnsafeContractServiceServer interface v0.0.2 Apr 5, 2021 Changes in this version + type GetContractRequest struct + ContractId string + func (*GetContractRequest) Descriptor() ([]byte, []int) + func (*GetContractRequest) ProtoMessage() + func (x *GetContractRequest) GetContractId() string + func (x *GetContractRequest) ProtoReflect() protoreflect.Message + func (x *GetContractRequest) Reset() + func (x *GetContractRequest) String() string + type GetContractResponse struct + AvailableServices []string + Code Code + ContractId string + ContractorName string + Error *Error + LastUpdatedTs *timestamppb.Timestamp + McOpsId string + Quota *ContractQuota + func (*GetContractResponse) Descriptor() ([]byte, []int) + func (*GetContractResponse) ProtoMessage() + func (x *GetContractResponse) GetAvailableServices() []string + func (x *GetContractResponse) GetCode() Code + func (x *GetContractResponse) GetContractId() string + func (x *GetContractResponse) GetContractorName() string + func (x *GetContractResponse) GetError() *Error + func (x *GetContractResponse) GetLastUpdatedTs() *timestamppb.Timestamp + func (x *GetContractResponse) GetMcOpsId() string + func (x *GetContractResponse) GetQuota() *ContractQuota + func (x *GetContractResponse) ProtoReflect() protoreflect.Message + func (x *GetContractResponse) Reset() + func (x *GetContractResponse) String() string + type GetQuotaRequest struct + ContractId string + func (*GetQuotaRequest) Descriptor() ([]byte, []int) + func (*GetQuotaRequest) ProtoMessage() + func (x *GetQuotaRequest) GetContractId() string + func (x *GetQuotaRequest) ProtoReflect() protoreflect.Message + func (x *GetQuotaRequest) Reset() + func (x *GetQuotaRequest) String() string + type GetQuotaResponse struct + Code Code + Error *Error + func (*GetQuotaResponse) Descriptor() ([]byte, []int) + func (*GetQuotaResponse) ProtoMessage() + func (x *GetQuotaResponse) GetCode() Code + func (x *GetQuotaResponse) GetError() *Error + func (x *GetQuotaResponse) ProtoReflect() protoreflect.Message + func (x *GetQuotaResponse) Reset() + func (x *GetQuotaResponse) String() string + type GetServicesRequest struct + McOpsId string + func (*GetServicesRequest) Descriptor() ([]byte, []int) + func (*GetServicesRequest) ProtoMessage() + func (x *GetServicesRequest) GetMcOpsId() string + func (x *GetServicesRequest) ProtoReflect() protoreflect.Message + func (x *GetServicesRequest) Reset() + func (x *GetServicesRequest) String() string + type GetServicesResponse struct + AvaiableServiceApps []string + Code Code + Error *Error + func (*GetServicesResponse) Descriptor() ([]byte, []int) + func (*GetServicesResponse) ProtoMessage() + func (x *GetServicesResponse) GetAvaiableServiceApps() []string + func (x *GetServicesResponse) GetCode() Code + func (x *GetServicesResponse) GetError() *Error + func (x *GetServicesResponse) ProtoReflect() protoreflect.Message + func (x *GetServicesResponse) Reset() + func (x *GetServicesResponse) String() string + type UpdateServicesRequest struct + AvailableServices []string + ContractId string + func (*UpdateServicesRequest) Descriptor() ([]byte, []int) + func (*UpdateServicesRequest) ProtoMessage() + func (x *UpdateServicesRequest) GetAvailableServices() []string + func (x *UpdateServicesRequest) GetContractId() string + func (x *UpdateServicesRequest) ProtoReflect() protoreflect.Message + func (x *UpdateServicesRequest) Reset() + func (x *UpdateServicesRequest) String() string + type UpdateServicesResponse struct + Code Code + ContractId string + CurrentServices *ContractQuota + Error *Error + PrevServices *ContractQuota + func (*UpdateServicesResponse) Descriptor() ([]byte, []int) + func (*UpdateServicesResponse) ProtoMessage() + func (x *UpdateServicesResponse) GetCode() Code + func (x *UpdateServicesResponse) GetContractId() string + func (x *UpdateServicesResponse) GetCurrentServices() *ContractQuota + func (x *UpdateServicesResponse) GetError() *Error + func (x *UpdateServicesResponse) GetPrevServices() *ContractQuota + func (x *UpdateServicesResponse) ProtoReflect() protoreflect.Message + func (x *UpdateServicesResponse) Reset() + func (x *UpdateServicesResponse) String() string v0.0.1 Apr 5, 2021 Changes in this version + var Code_name = map[int32]string + var Code_value = map[string]int32 + var File_common_proto protoreflect.FileDescriptor + var File_contract_proto protoreflect.FileDescriptor + type Code int32 + const Code_ABORTED + const Code_ALREADY_EXISTS + const Code_CANCELLED + const Code_DEADLINE_EXCEEDED + const Code_FAILED_PRECONDITION + const Code_INTERNAL + const Code_INVALID_ARGUMENT + const Code_NOT_FOUND + const Code_OK + const Code_OUT_OF_RANGE + const Code_PERMISSION_DENIED + const Code_RESOURCE_EXHAUSTED + const Code_UNAUTHENTICATED + const Code_UNAVAILABLE + const Code_UNIMPLEMENTED + const Code_UNKNOWN + func (Code) Descriptor() protoreflect.EnumDescriptor + func (Code) EnumDescriptor() ([]byte, []int) + func (Code) Type() protoreflect.EnumType + func (x Code) Enum() *Code + func (x Code) Number() protoreflect.EnumNumber + func (x Code) String() string + type ContractQuota struct + Block int64 + BlockSsd int64 + Cpu int64 + Fs int64 + FsSsd int64 + Memory int64 + func (*ContractQuota) Descriptor() ([]byte, []int) + func (*ContractQuota) ProtoMessage() + func (x *ContractQuota) GetBlock() int64 + func (x *ContractQuota) GetBlockSsd() int64 + func (x *ContractQuota) GetCpu() int64 + func (x *ContractQuota) GetFs() int64 + func (x *ContractQuota) GetFsSsd() int64 + func (x *ContractQuota) GetMemory() int64 + func (x *ContractQuota) ProtoReflect() protoreflect.Message + func (x *ContractQuota) Reset() + func (x *ContractQuota) String() string + type CreateContractRequest struct + AvailableServices []string + ContractId string + ContractorName string + LastUpdated *timestamppb.Timestamp + Quota *ContractQuota + func (*CreateContractRequest) Descriptor() ([]byte, []int) + func (*CreateContractRequest) ProtoMessage() + func (x *CreateContractRequest) GetAvailableServices() []string + func (x *CreateContractRequest) GetContractId() string + func (x *CreateContractRequest) GetContractorName() string + func (x *CreateContractRequest) GetLastUpdated() *timestamppb.Timestamp + func (x *CreateContractRequest) GetQuota() *ContractQuota + func (x *CreateContractRequest) ProtoReflect() protoreflect.Message + func (x *CreateContractRequest) Reset() + func (x *CreateContractRequest) String() string + type CreateContractResponse struct + Code Code + Error *Error + McOpsId string + func (*CreateContractResponse) Descriptor() ([]byte, []int) + func (*CreateContractResponse) ProtoMessage() + func (x *CreateContractResponse) GetCode() Code + func (x *CreateContractResponse) GetError() *Error + func (x *CreateContractResponse) GetMcOpsId() string + func (x *CreateContractResponse) ProtoReflect() protoreflect.Message + func (x *CreateContractResponse) Reset() + func (x *CreateContractResponse) String() string + type Error struct + Msg string + func (*Error) Descriptor() ([]byte, []int) + func (*Error) ProtoMessage() + func (x *Error) GetMsg() string + func (x *Error) ProtoReflect() protoreflect.Message + func (x *Error) Reset() + func (x *Error) String() string + type UpdateQuotaRequest struct + ContractId string + Quota *ContractQuota + func (*UpdateQuotaRequest) Descriptor() ([]byte, []int) + func (*UpdateQuotaRequest) ProtoMessage() + func (x *UpdateQuotaRequest) GetContractId() string + func (x *UpdateQuotaRequest) GetQuota() *ContractQuota + func (x *UpdateQuotaRequest) ProtoReflect() protoreflect.Message + func (x *UpdateQuotaRequest) Reset() + func (x *UpdateQuotaRequest) String() string + type UpdateQuotaResponse struct + Code Code + ContractId string + CurrentQuota *ContractQuota + Error *Error + PrevQuota *ContractQuota + func (*UpdateQuotaResponse) Descriptor() ([]byte, []int) + func (*UpdateQuotaResponse) ProtoMessage() + func (x *UpdateQuotaResponse) GetCode() Code + func (x *UpdateQuotaResponse) GetContractId() string + func (x *UpdateQuotaResponse) GetCurrentQuota() *ContractQuota + func (x *UpdateQuotaResponse) GetError() *Error + func (x *UpdateQuotaResponse) GetPrevQuota() *ContractQuota + func (x *UpdateQuotaResponse) ProtoReflect() protoreflect.Message + func (x *UpdateQuotaResponse) Reset() + func (x *UpdateQuotaResponse) String() string