v1

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Agent_CreateAgent_FullMethodName          = "/api.agent.v1.Agent/CreateAgent"
	Agent_UpdateAgent_FullMethodName          = "/api.agent.v1.Agent/UpdateAgent"
	Agent_DeleteAgent_FullMethodName          = "/api.agent.v1.Agent/DeleteAgent"
	Agent_GetAgent_FullMethodName             = "/api.agent.v1.Agent/GetAgent"
	Agent_ListAgent_FullMethodName            = "/api.agent.v1.Agent/ListAgent"
	Agent_ListAgentInstance_FullMethodName    = "/api.agent.v1.Agent/ListAgentInstance"
	Agent_ReportInstanceStatus_FullMethodName = "/api.agent.v1.Agent/ReportInstanceStatus"
)
View Source
const OperationAgentCreateAgent = "/api.agent.v1.Agent/CreateAgent"
View Source
const OperationAgentDeleteAgent = "/api.agent.v1.Agent/DeleteAgent"
View Source
const OperationAgentGetAgent = "/api.agent.v1.Agent/GetAgent"
View Source
const OperationAgentListAgent = "/api.agent.v1.Agent/ListAgent"
View Source
const OperationAgentListAgentInstance = "/api.agent.v1.Agent/ListAgentInstance"
View Source
const OperationAgentReportInstanceStatus = "/api.agent.v1.Agent/ReportInstanceStatus"
View Source
const OperationAgentUpdateAgent = "/api.agent.v1.Agent/UpdateAgent"

Variables

View Source
var Agent_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.agent.v1.Agent",
	HandlerType: (*AgentServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateAgent",
			Handler:    _Agent_CreateAgent_Handler,
		},
		{
			MethodName: "UpdateAgent",
			Handler:    _Agent_UpdateAgent_Handler,
		},
		{
			MethodName: "DeleteAgent",
			Handler:    _Agent_DeleteAgent_Handler,
		},
		{
			MethodName: "GetAgent",
			Handler:    _Agent_GetAgent_Handler,
		},
		{
			MethodName: "ListAgent",
			Handler:    _Agent_ListAgent_Handler,
		},
		{
			MethodName: "ListAgentInstance",
			Handler:    _Agent_ListAgentInstance_Handler,
		},
		{
			MethodName: "ReportInstanceStatus",
			Handler:    _Agent_ReportInstanceStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/agent/v1/agent.proto",
}

Agent_ServiceDesc is the grpc.ServiceDesc for Agent 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_api_agent_v1_agent_proto protoreflect.FileDescriptor

Functions

func RegisterAgentHTTPServer

func RegisterAgentHTTPServer(s *http.Server, srv AgentHTTPServer)

func RegisterAgentServer

func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer)

Types

type AgentClient

type AgentClient interface {
	CreateAgent(ctx context.Context, in *CreateAgentRequest, opts ...grpc.CallOption) (*CreateAgentReply, error)
	UpdateAgent(ctx context.Context, in *UpdateAgentRequest, opts ...grpc.CallOption) (*UpdateAgentReply, error)
	DeleteAgent(ctx context.Context, in *DeleteAgentRequest, opts ...grpc.CallOption) (*DeleteAgentReply, error)
	GetAgent(ctx context.Context, in *GetAgentRequest, opts ...grpc.CallOption) (*GetAgentReply, error)
	ListAgent(ctx context.Context, in *ListAgentRequest, opts ...grpc.CallOption) (*ListAgentReply, error)
	ListAgentInstance(ctx context.Context, in *ListAgentInstanceReq, opts ...grpc.CallOption) (*v1.ListInstanceReply, error)
	ReportInstanceStatus(ctx context.Context, in *v1.Instance, opts ...grpc.CallOption) (*ReportInstanceStatusReply, error)
}

AgentClient is the client API for Agent 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 NewAgentClient

func NewAgentClient(cc grpc.ClientConnInterface) AgentClient

type AgentHTTPClient

type AgentHTTPClient interface {
	CreateAgent(ctx context.Context, req *CreateAgentRequest, opts ...http.CallOption) (rsp *CreateAgentReply, err error)
	DeleteAgent(ctx context.Context, req *DeleteAgentRequest, opts ...http.CallOption) (rsp *DeleteAgentReply, err error)
	GetAgent(ctx context.Context, req *GetAgentRequest, opts ...http.CallOption) (rsp *GetAgentReply, err error)
	ListAgent(ctx context.Context, req *ListAgentRequest, opts ...http.CallOption) (rsp *ListAgentReply, err error)
	ListAgentInstance(ctx context.Context, req *ListAgentInstanceReq, opts ...http.CallOption) (rsp *v1.ListInstanceReply, err error)
	ReportInstanceStatus(ctx context.Context, req *v1.Instance, opts ...http.CallOption) (rsp *ReportInstanceStatusReply, err error)
	UpdateAgent(ctx context.Context, req *UpdateAgentRequest, opts ...http.CallOption) (rsp *UpdateAgentReply, err error)
}

func NewAgentHTTPClient

func NewAgentHTTPClient(client *http.Client) AgentHTTPClient

type AgentHTTPClientImpl

type AgentHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*AgentHTTPClientImpl) CreateAgent

func (*AgentHTTPClientImpl) DeleteAgent

func (*AgentHTTPClientImpl) GetAgent

func (*AgentHTTPClientImpl) ListAgent

func (*AgentHTTPClientImpl) ListAgentInstance added in v0.0.6

func (c *AgentHTTPClientImpl) ListAgentInstance(ctx context.Context, in *ListAgentInstanceReq, opts ...http.CallOption) (*v1.ListInstanceReply, error)

func (*AgentHTTPClientImpl) ReportInstanceStatus added in v0.0.6

func (c *AgentHTTPClientImpl) ReportInstanceStatus(ctx context.Context, in *v1.Instance, opts ...http.CallOption) (*ReportInstanceStatusReply, error)

func (*AgentHTTPClientImpl) UpdateAgent

type AgentReply added in v0.0.3

type AgentReply struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AgentReply) Descriptor deprecated added in v0.0.3

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

Deprecated: Use AgentReply.ProtoReflect.Descriptor instead.

func (*AgentReply) GetId added in v0.0.3

func (x *AgentReply) GetId() string

func (*AgentReply) GetName added in v0.0.3

func (x *AgentReply) GetName() string

func (*AgentReply) ProtoMessage added in v0.0.3

func (*AgentReply) ProtoMessage()

func (*AgentReply) ProtoReflect added in v0.0.3

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

func (*AgentReply) Reset added in v0.0.3

func (x *AgentReply) Reset()

func (*AgentReply) String added in v0.0.3

func (x *AgentReply) String() string

type AgentServer

type AgentServer interface {
	CreateAgent(context.Context, *CreateAgentRequest) (*CreateAgentReply, error)
	UpdateAgent(context.Context, *UpdateAgentRequest) (*UpdateAgentReply, error)
	DeleteAgent(context.Context, *DeleteAgentRequest) (*DeleteAgentReply, error)
	GetAgent(context.Context, *GetAgentRequest) (*GetAgentReply, error)
	ListAgent(context.Context, *ListAgentRequest) (*ListAgentReply, error)
	ListAgentInstance(context.Context, *ListAgentInstanceReq) (*v1.ListInstanceReply, error)
	ReportInstanceStatus(context.Context, *v1.Instance) (*ReportInstanceStatusReply, error)
	// contains filtered or unexported methods
}

AgentServer is the server API for Agent service. All implementations must embed UnimplementedAgentServer for forward compatibility

type CreateAgentReply

type CreateAgentReply struct {
	Code    int32                  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                 `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *CreateAgentReply_Data `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAgentReply) Descriptor deprecated

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

Deprecated: Use CreateAgentReply.ProtoReflect.Descriptor instead.

func (*CreateAgentReply) GetCode added in v0.0.3

func (x *CreateAgentReply) GetCode() int32

func (*CreateAgentReply) GetData added in v0.0.3

func (*CreateAgentReply) GetMessage added in v0.0.3

func (x *CreateAgentReply) GetMessage() string

func (*CreateAgentReply) ProtoMessage

func (*CreateAgentReply) ProtoMessage()

func (*CreateAgentReply) ProtoReflect

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

func (*CreateAgentReply) Reset

func (x *CreateAgentReply) Reset()

func (*CreateAgentReply) String

func (x *CreateAgentReply) String() string

type CreateAgentReply_Data added in v0.0.3

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

func (*CreateAgentReply_Data) Descriptor deprecated added in v0.0.3

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

Deprecated: Use CreateAgentReply_Data.ProtoReflect.Descriptor instead.

func (*CreateAgentReply_Data) GetId added in v0.0.3

func (x *CreateAgentReply_Data) GetId() string

func (*CreateAgentReply_Data) ProtoMessage added in v0.0.3

func (*CreateAgentReply_Data) ProtoMessage()

func (*CreateAgentReply_Data) ProtoReflect added in v0.0.3

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

func (*CreateAgentReply_Data) Reset added in v0.0.3

func (x *CreateAgentReply_Data) Reset()

func (*CreateAgentReply_Data) String added in v0.0.3

func (x *CreateAgentReply_Data) String() string

type CreateAgentRequest

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

func (*CreateAgentRequest) Descriptor deprecated

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

Deprecated: Use CreateAgentRequest.ProtoReflect.Descriptor instead.

func (*CreateAgentRequest) GetName

func (x *CreateAgentRequest) GetName() string

func (*CreateAgentRequest) ProtoMessage

func (*CreateAgentRequest) ProtoMessage()

func (*CreateAgentRequest) ProtoReflect

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

func (*CreateAgentRequest) Reset

func (x *CreateAgentRequest) Reset()

func (*CreateAgentRequest) String

func (x *CreateAgentRequest) String() string

type DeleteAgentReply

type DeleteAgentReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAgentReply) Descriptor deprecated

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

Deprecated: Use DeleteAgentReply.ProtoReflect.Descriptor instead.

func (*DeleteAgentReply) GetCode added in v0.0.3

func (x *DeleteAgentReply) GetCode() int32

func (*DeleteAgentReply) GetMessage added in v0.0.3

func (x *DeleteAgentReply) GetMessage() string

func (*DeleteAgentReply) ProtoMessage

func (*DeleteAgentReply) ProtoMessage()

func (*DeleteAgentReply) ProtoReflect

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

func (*DeleteAgentReply) Reset

func (x *DeleteAgentReply) Reset()

func (*DeleteAgentReply) String

func (x *DeleteAgentReply) String() string

type DeleteAgentRequest

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

func (*DeleteAgentRequest) Descriptor deprecated

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

Deprecated: Use DeleteAgentRequest.ProtoReflect.Descriptor instead.

func (*DeleteAgentRequest) GetId

func (x *DeleteAgentRequest) GetId() string

func (*DeleteAgentRequest) ProtoMessage

func (*DeleteAgentRequest) ProtoMessage()

func (*DeleteAgentRequest) ProtoReflect

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

func (*DeleteAgentRequest) Reset

func (x *DeleteAgentRequest) Reset()

func (*DeleteAgentRequest) String

func (x *DeleteAgentRequest) String() string

type GetAgentReply

type GetAgentReply struct {
	Code    int32       `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string      `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *AgentReply `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAgentReply) Descriptor deprecated

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

Deprecated: Use GetAgentReply.ProtoReflect.Descriptor instead.

func (*GetAgentReply) GetCode added in v0.0.3

func (x *GetAgentReply) GetCode() int32

func (*GetAgentReply) GetData added in v0.0.3

func (x *GetAgentReply) GetData() *AgentReply

func (*GetAgentReply) GetMessage added in v0.0.3

func (x *GetAgentReply) GetMessage() string

func (*GetAgentReply) ProtoMessage

func (*GetAgentReply) ProtoMessage()

func (*GetAgentReply) ProtoReflect

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

func (*GetAgentReply) Reset

func (x *GetAgentReply) Reset()

func (*GetAgentReply) String

func (x *GetAgentReply) String() string

type GetAgentRequest

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

func (*GetAgentRequest) Descriptor deprecated

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

Deprecated: Use GetAgentRequest.ProtoReflect.Descriptor instead.

func (*GetAgentRequest) GetId

func (x *GetAgentRequest) GetId() string

func (*GetAgentRequest) ProtoMessage

func (*GetAgentRequest) ProtoMessage()

func (*GetAgentRequest) ProtoReflect

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

func (*GetAgentRequest) Reset

func (x *GetAgentRequest) Reset()

func (*GetAgentRequest) String

func (x *GetAgentRequest) String() string

type ListAgentInstanceReq added in v0.0.6

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

func (*ListAgentInstanceReq) Descriptor deprecated added in v0.0.6

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

Deprecated: Use ListAgentInstanceReq.ProtoReflect.Descriptor instead.

func (*ListAgentInstanceReq) GetPeerId added in v0.0.6

func (x *ListAgentInstanceReq) GetPeerId() string

func (*ListAgentInstanceReq) ProtoMessage added in v0.0.6

func (*ListAgentInstanceReq) ProtoMessage()

func (*ListAgentInstanceReq) ProtoReflect added in v0.0.6

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

func (*ListAgentInstanceReq) Reset added in v0.0.6

func (x *ListAgentInstanceReq) Reset()

func (*ListAgentInstanceReq) String added in v0.0.6

func (x *ListAgentInstanceReq) String() string

type ListAgentReply

type ListAgentReply struct {
	Code    int32            `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string           `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    []*GetAgentReply `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentReply) Descriptor deprecated

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

Deprecated: Use ListAgentReply.ProtoReflect.Descriptor instead.

func (*ListAgentReply) GetCode added in v0.0.3

func (x *ListAgentReply) GetCode() int32

func (*ListAgentReply) GetData added in v0.0.3

func (x *ListAgentReply) GetData() []*GetAgentReply

func (*ListAgentReply) GetMessage added in v0.0.3

func (x *ListAgentReply) GetMessage() string

func (*ListAgentReply) ProtoMessage

func (*ListAgentReply) ProtoMessage()

func (*ListAgentReply) ProtoReflect

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

func (*ListAgentReply) Reset

func (x *ListAgentReply) Reset()

func (*ListAgentReply) String

func (x *ListAgentReply) String() string

type ListAgentRequest

type ListAgentRequest struct {
	NameLike *string `protobuf:"bytes,1,opt,name=nameLike,proto3,oneof" json:"nameLike,omitempty"`
	// contains filtered or unexported fields
}

func (*ListAgentRequest) Descriptor deprecated

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

Deprecated: Use ListAgentRequest.ProtoReflect.Descriptor instead.

func (*ListAgentRequest) GetNameLike

func (x *ListAgentRequest) GetNameLike() string

func (*ListAgentRequest) ProtoMessage

func (*ListAgentRequest) ProtoMessage()

func (*ListAgentRequest) ProtoReflect

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

func (*ListAgentRequest) Reset

func (x *ListAgentRequest) Reset()

func (*ListAgentRequest) String

func (x *ListAgentRequest) String() string

type ReportInstanceStatusReply added in v0.0.6

type ReportInstanceStatusReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*ReportInstanceStatusReply) Descriptor deprecated added in v0.0.6

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

Deprecated: Use ReportInstanceStatusReply.ProtoReflect.Descriptor instead.

func (*ReportInstanceStatusReply) GetCode added in v0.0.6

func (x *ReportInstanceStatusReply) GetCode() int32

func (*ReportInstanceStatusReply) GetMessage added in v0.0.6

func (x *ReportInstanceStatusReply) GetMessage() string

func (*ReportInstanceStatusReply) ProtoMessage added in v0.0.6

func (*ReportInstanceStatusReply) ProtoMessage()

func (*ReportInstanceStatusReply) ProtoReflect added in v0.0.6

func (*ReportInstanceStatusReply) Reset added in v0.0.6

func (x *ReportInstanceStatusReply) Reset()

func (*ReportInstanceStatusReply) String added in v0.0.6

func (x *ReportInstanceStatusReply) String() string

type UnimplementedAgentServer

type UnimplementedAgentServer struct {
}

UnimplementedAgentServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentServer) CreateAgent

func (UnimplementedAgentServer) DeleteAgent

func (UnimplementedAgentServer) GetAgent

func (UnimplementedAgentServer) ListAgent

func (UnimplementedAgentServer) ListAgentInstance added in v0.0.6

func (UnimplementedAgentServer) ReportInstanceStatus added in v0.0.6

func (UnimplementedAgentServer) UpdateAgent

type UnsafeAgentServer

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

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

type UpdateAgentReply

type UpdateAgentReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAgentReply) Descriptor deprecated

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

Deprecated: Use UpdateAgentReply.ProtoReflect.Descriptor instead.

func (*UpdateAgentReply) GetCode added in v0.0.3

func (x *UpdateAgentReply) GetCode() int32

func (*UpdateAgentReply) GetMessage added in v0.0.3

func (x *UpdateAgentReply) GetMessage() string

func (*UpdateAgentReply) ProtoMessage

func (*UpdateAgentReply) ProtoMessage()

func (*UpdateAgentReply) ProtoReflect

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

func (*UpdateAgentReply) Reset

func (x *UpdateAgentReply) Reset()

func (*UpdateAgentReply) String

func (x *UpdateAgentReply) String() string

type UpdateAgentRequest

type UpdateAgentRequest struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateAgentRequest) Descriptor deprecated

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

Deprecated: Use UpdateAgentRequest.ProtoReflect.Descriptor instead.

func (*UpdateAgentRequest) GetId

func (x *UpdateAgentRequest) GetId() string

func (*UpdateAgentRequest) GetName

func (x *UpdateAgentRequest) GetName() string

func (*UpdateAgentRequest) ProtoMessage

func (*UpdateAgentRequest) ProtoMessage()

func (*UpdateAgentRequest) ProtoReflect

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

func (*UpdateAgentRequest) Reset

func (x *UpdateAgentRequest) Reset()

func (*UpdateAgentRequest) String

func (x *UpdateAgentRequest) String() string

Jump to

Keyboard shortcuts

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