resource

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_sudo_mpc_virtual_service_platform_resource_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllocatePartyResourceRequest

type AllocatePartyResourceRequest struct {
	BlockId             *protobuf.BlockID           `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	ResourceType        enums.Resource_Type         `` /* 137-byte string literal not displayed */
	ResourceRequirement *common.ResourceRequirement `protobuf:"bytes,3,opt,name=resource_requirement,json=resourceRequirement,proto3" json:"resource_requirement,omitempty"`
	// contains filtered or unexported fields
}

func (*AllocatePartyResourceRequest) Descriptor deprecated

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

Deprecated: Use AllocatePartyResourceRequest.ProtoReflect.Descriptor instead.

func (*AllocatePartyResourceRequest) GetBlockId

func (*AllocatePartyResourceRequest) GetResourceRequirement

func (x *AllocatePartyResourceRequest) GetResourceRequirement() *common.ResourceRequirement

func (*AllocatePartyResourceRequest) GetResourceType

func (x *AllocatePartyResourceRequest) GetResourceType() enums.Resource_Type

func (*AllocatePartyResourceRequest) ProtoMessage

func (*AllocatePartyResourceRequest) ProtoMessage()

func (*AllocatePartyResourceRequest) ProtoReflect

func (*AllocatePartyResourceRequest) Reset

func (x *AllocatePartyResourceRequest) Reset()

func (*AllocatePartyResourceRequest) String

type AllocatePartyResourceResponse

type AllocatePartyResourceResponse struct {
	Operator            *Operator                   `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	ResourceRequirement *common.ResourceRequirement `protobuf:"bytes,2,opt,name=resource_requirement,json=resourceRequirement,proto3" json:"resource_requirement,omitempty"`
	// contains filtered or unexported fields
}

func (*AllocatePartyResourceResponse) Descriptor deprecated

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

Deprecated: Use AllocatePartyResourceResponse.ProtoReflect.Descriptor instead.

func (*AllocatePartyResourceResponse) GetOperator

func (x *AllocatePartyResourceResponse) GetOperator() *Operator

func (*AllocatePartyResourceResponse) GetResourceRequirement

func (x *AllocatePartyResourceResponse) GetResourceRequirement() *common.ResourceRequirement

func (*AllocatePartyResourceResponse) ProtoMessage

func (*AllocatePartyResourceResponse) ProtoMessage()

func (*AllocatePartyResourceResponse) ProtoReflect

func (*AllocatePartyResourceResponse) Reset

func (x *AllocatePartyResourceResponse) Reset()

func (*AllocatePartyResourceResponse) String

type Consumption

type Consumption struct {
	ResourceId   string              `protobuf:"bytes,1,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	Consumed     map[string]uint64   `` /* 158-byte string literal not displayed */
	ResourceType enums.Resource_Type `` /* 137-byte string literal not displayed */
	ResourceMode enums.Resource_Mode `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Consumption) Descriptor deprecated

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

Deprecated: Use Consumption.ProtoReflect.Descriptor instead.

func (*Consumption) GetConsumed

func (x *Consumption) GetConsumed() map[string]uint64

func (*Consumption) GetResourceId

func (x *Consumption) GetResourceId() string

func (*Consumption) GetResourceMode

func (x *Consumption) GetResourceMode() enums.Resource_Mode

func (*Consumption) GetResourceType

func (x *Consumption) GetResourceType() enums.Resource_Type

func (*Consumption) ProtoMessage

func (*Consumption) ProtoMessage()

func (*Consumption) ProtoReflect

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

func (*Consumption) Reset

func (x *Consumption) Reset()

func (*Consumption) String

func (x *Consumption) String() string

type DeployPartyResourceRequest

type DeployPartyResourceRequest struct {
	BlockId             *protobuf.BlockID           `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	ResourceType        enums.Resource_Type         `` /* 137-byte string literal not displayed */
	ResourceRequirement *common.ResourceRequirement `protobuf:"bytes,3,opt,name=resource_requirement,json=resourceRequirement,proto3" json:"resource_requirement,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployPartyResourceRequest) Descriptor deprecated

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

Deprecated: Use DeployPartyResourceRequest.ProtoReflect.Descriptor instead.

func (*DeployPartyResourceRequest) GetBlockId

func (x *DeployPartyResourceRequest) GetBlockId() *protobuf.BlockID

func (*DeployPartyResourceRequest) GetResourceRequirement

func (x *DeployPartyResourceRequest) GetResourceRequirement() *common.ResourceRequirement

func (*DeployPartyResourceRequest) GetResourceType

func (x *DeployPartyResourceRequest) GetResourceType() enums.Resource_Type

func (*DeployPartyResourceRequest) ProtoMessage

func (*DeployPartyResourceRequest) ProtoMessage()

func (*DeployPartyResourceRequest) ProtoReflect

func (*DeployPartyResourceRequest) Reset

func (x *DeployPartyResourceRequest) Reset()

func (*DeployPartyResourceRequest) String

func (x *DeployPartyResourceRequest) String() string

type DeployPartyResourceResponse

type DeployPartyResourceResponse struct {
	Operator *Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

func (*DeployPartyResourceResponse) Descriptor deprecated

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

Deprecated: Use DeployPartyResourceResponse.ProtoReflect.Descriptor instead.

func (*DeployPartyResourceResponse) GetOperator

func (x *DeployPartyResourceResponse) GetOperator() *Operator

func (*DeployPartyResourceResponse) ProtoMessage

func (*DeployPartyResourceResponse) ProtoMessage()

func (*DeployPartyResourceResponse) ProtoReflect

func (*DeployPartyResourceResponse) Reset

func (x *DeployPartyResourceResponse) Reset()

func (*DeployPartyResourceResponse) String

func (x *DeployPartyResourceResponse) String() string

type FinishPartyBlockRequest

type FinishPartyBlockRequest struct {
	BlockId     *protobuf.BlockID    `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	FinalStatus enums.Dag_Job_Status `` /* 135-byte string literal not displayed */
	Message     string               `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*FinishPartyBlockRequest) Descriptor deprecated

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

Deprecated: Use FinishPartyBlockRequest.ProtoReflect.Descriptor instead.

func (*FinishPartyBlockRequest) GetBlockId

func (x *FinishPartyBlockRequest) GetBlockId() *protobuf.BlockID

func (*FinishPartyBlockRequest) GetFinalStatus

func (x *FinishPartyBlockRequest) GetFinalStatus() enums.Dag_Job_Status

func (*FinishPartyBlockRequest) GetMessage

func (x *FinishPartyBlockRequest) GetMessage() string

func (*FinishPartyBlockRequest) ProtoMessage

func (*FinishPartyBlockRequest) ProtoMessage()

func (*FinishPartyBlockRequest) ProtoReflect

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

func (*FinishPartyBlockRequest) Reset

func (x *FinishPartyBlockRequest) Reset()

func (*FinishPartyBlockRequest) String

func (x *FinishPartyBlockRequest) String() string

type GetPartyResourceStatusRequest

type GetPartyResourceStatusRequest struct {
	BlockId      *protobuf.BlockID   `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	ResourceType enums.Resource_Type `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetPartyResourceStatusRequest) Descriptor deprecated

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

Deprecated: Use GetPartyResourceStatusRequest.ProtoReflect.Descriptor instead.

func (*GetPartyResourceStatusRequest) GetBlockId

func (*GetPartyResourceStatusRequest) GetResourceType

func (x *GetPartyResourceStatusRequest) GetResourceType() enums.Resource_Type

func (*GetPartyResourceStatusRequest) ProtoMessage

func (*GetPartyResourceStatusRequest) ProtoMessage()

func (*GetPartyResourceStatusRequest) ProtoReflect

func (*GetPartyResourceStatusRequest) Reset

func (x *GetPartyResourceStatusRequest) Reset()

func (*GetPartyResourceStatusRequest) String

type GetPartyResourceStatusResponse

type GetPartyResourceStatusResponse struct {
	Operator *Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPartyResourceStatusResponse) Descriptor deprecated

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

Deprecated: Use GetPartyResourceStatusResponse.ProtoReflect.Descriptor instead.

func (*GetPartyResourceStatusResponse) GetOperator

func (x *GetPartyResourceStatusResponse) GetOperator() *Operator

func (*GetPartyResourceStatusResponse) ProtoMessage

func (*GetPartyResourceStatusResponse) ProtoMessage()

func (*GetPartyResourceStatusResponse) ProtoReflect

func (*GetPartyResourceStatusResponse) Reset

func (x *GetPartyResourceStatusResponse) Reset()

func (*GetPartyResourceStatusResponse) String

type Operator

type Operator struct {
	OpHost   string `protobuf:"bytes,1,opt,name=op_host,json=opHost,proto3" json:"op_host,omitempty"`
	OpPort   uint32 `protobuf:"varint,2,opt,name=op_port,json=opPort,proto3" json:"op_port,omitempty"`
	GrpcPort uint32 `protobuf:"varint,3,opt,name=grpc_port,json=grpcPort,proto3" json:"grpc_port,omitempty"`
	Ready    bool   `protobuf:"varint,4,opt,name=ready,proto3" json:"ready,omitempty"`
	// contains filtered or unexported fields
}

func (*Operator) Descriptor deprecated

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

Deprecated: Use Operator.ProtoReflect.Descriptor instead.

func (*Operator) GetGrpcPort

func (x *Operator) GetGrpcPort() uint32

func (*Operator) GetOpHost

func (x *Operator) GetOpHost() string

func (*Operator) GetOpPort

func (x *Operator) GetOpPort() uint32

func (*Operator) GetReady

func (x *Operator) GetReady() bool

func (*Operator) ProtoMessage

func (*Operator) ProtoMessage()

func (*Operator) ProtoReflect

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

func (*Operator) Reset

func (x *Operator) Reset()

func (*Operator) String

func (x *Operator) String() string

type PartyResourceStatus

type PartyResourceStatus struct {
	Status map[uint64]*Operator `` /* 154-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PartyResourceStatus) Descriptor deprecated

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

Deprecated: Use PartyResourceStatus.ProtoReflect.Descriptor instead.

func (*PartyResourceStatus) GetStatus

func (x *PartyResourceStatus) GetStatus() map[uint64]*Operator

func (*PartyResourceStatus) ProtoMessage

func (*PartyResourceStatus) ProtoMessage()

func (*PartyResourceStatus) ProtoReflect

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

func (*PartyResourceStatus) Reset

func (x *PartyResourceStatus) Reset()

func (*PartyResourceStatus) String

func (x *PartyResourceStatus) String() string

type ReleasePartyResourceRequest

type ReleasePartyResourceRequest struct {
	BlockId      *protobuf.BlockID   `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	ResourceType enums.Resource_Type `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ReleasePartyResourceRequest) Descriptor deprecated

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

Deprecated: Use ReleasePartyResourceRequest.ProtoReflect.Descriptor instead.

func (*ReleasePartyResourceRequest) GetBlockId

func (x *ReleasePartyResourceRequest) GetBlockId() *protobuf.BlockID

func (*ReleasePartyResourceRequest) GetResourceType

func (x *ReleasePartyResourceRequest) GetResourceType() enums.Resource_Type

func (*ReleasePartyResourceRequest) ProtoMessage

func (*ReleasePartyResourceRequest) ProtoMessage()

func (*ReleasePartyResourceRequest) ProtoReflect

func (*ReleasePartyResourceRequest) Reset

func (x *ReleasePartyResourceRequest) Reset()

func (*ReleasePartyResourceRequest) String

func (x *ReleasePartyResourceRequest) String() string

type UpdatePartyResourceStatusRequest

type UpdatePartyResourceStatusRequest struct {
	BlockId             *protobuf.BlockID             `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Operator            *Operator                     `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	BlockScheduleStatus enums.Job_BlockScheduleStatus `` /* 170-byte string literal not displayed */
	BlockStatus         enums.Dag_Job_Status          `` /* 135-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*UpdatePartyResourceStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdatePartyResourceStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdatePartyResourceStatusRequest) GetBlockId

func (*UpdatePartyResourceStatusRequest) GetBlockScheduleStatus

func (*UpdatePartyResourceStatusRequest) GetBlockStatus

func (*UpdatePartyResourceStatusRequest) GetOperator

func (x *UpdatePartyResourceStatusRequest) GetOperator() *Operator

func (*UpdatePartyResourceStatusRequest) ProtoMessage

func (*UpdatePartyResourceStatusRequest) ProtoMessage()

func (*UpdatePartyResourceStatusRequest) ProtoReflect

func (*UpdatePartyResourceStatusRequest) Reset

func (*UpdatePartyResourceStatusRequest) String

Jump to

Keyboard shortcuts

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