agent

package
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: 11 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 AgentInstallProgressRequest

type AgentInstallProgressRequest struct {
	//
	//安装agent的目标ip
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip" form:"ip"`
	//
	//安装agent的目标端口
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port" form:"port"`
	//
	//机器用户名
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username" form:"username"`
	//
	//机器密码
	Password             string   `protobuf:"bytes,4,opt,name=password,proto3" json:"password" form:"password"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AgentInstallProgress请求

func (*AgentInstallProgressRequest) Descriptor

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

func (*AgentInstallProgressRequest) GetIp

func (*AgentInstallProgressRequest) GetPassword

func (m *AgentInstallProgressRequest) GetPassword() string

func (*AgentInstallProgressRequest) GetPort

func (m *AgentInstallProgressRequest) GetPort() int32

func (*AgentInstallProgressRequest) GetUsername

func (m *AgentInstallProgressRequest) GetUsername() string

func (*AgentInstallProgressRequest) ProtoMessage

func (*AgentInstallProgressRequest) ProtoMessage()

func (*AgentInstallProgressRequest) Reset

func (m *AgentInstallProgressRequest) Reset()

func (*AgentInstallProgressRequest) String

func (m *AgentInstallProgressRequest) String() string

func (*AgentInstallProgressRequest) Validate

func (this *AgentInstallProgressRequest) Validate() error

func (*AgentInstallProgressRequest) XXX_DiscardUnknown

func (m *AgentInstallProgressRequest) XXX_DiscardUnknown()

func (*AgentInstallProgressRequest) XXX_Marshal

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

func (*AgentInstallProgressRequest) XXX_Merge

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

func (*AgentInstallProgressRequest) XXX_Size

func (m *AgentInstallProgressRequest) XXX_Size() int

func (*AgentInstallProgressRequest) XXX_Unmarshal

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

type AgentInstallProgressResponse

type AgentInstallProgressResponse struct {
	//
	//状态
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status" form:"status"`
	//
	//状态码
	RetCode int32 `protobuf:"varint,2,opt,name=retCode,proto3" json:"retCode" form:"retCode"`
	//
	//详细信息
	Detail               string   `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail" form:"detail"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AgentInstallProgress返回

func (*AgentInstallProgressResponse) Descriptor

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

func (*AgentInstallProgressResponse) GetDetail

func (m *AgentInstallProgressResponse) GetDetail() string

func (*AgentInstallProgressResponse) GetRetCode

func (m *AgentInstallProgressResponse) GetRetCode() int32

func (*AgentInstallProgressResponse) GetStatus

func (m *AgentInstallProgressResponse) GetStatus() string

func (*AgentInstallProgressResponse) ProtoMessage

func (*AgentInstallProgressResponse) ProtoMessage()

func (*AgentInstallProgressResponse) Reset

func (m *AgentInstallProgressResponse) Reset()

func (*AgentInstallProgressResponse) String

func (*AgentInstallProgressResponse) Validate

func (this *AgentInstallProgressResponse) Validate() error

func (*AgentInstallProgressResponse) XXX_DiscardUnknown

func (m *AgentInstallProgressResponse) XXX_DiscardUnknown()

func (*AgentInstallProgressResponse) XXX_Marshal

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

func (*AgentInstallProgressResponse) XXX_Merge

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

func (*AgentInstallProgressResponse) XXX_Size

func (m *AgentInstallProgressResponse) XXX_Size() int

func (*AgentInstallProgressResponse) XXX_Unmarshal

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

type AgentInstallProgressResponseWrapper

type AgentInstallProgressResponseWrapper 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                 *AgentInstallProgressResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

AgentInstallProgressApi返回

func (*AgentInstallProgressResponseWrapper) Descriptor

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

func (*AgentInstallProgressResponseWrapper) GetCode

func (*AgentInstallProgressResponseWrapper) GetCodeExplain

func (m *AgentInstallProgressResponseWrapper) GetCodeExplain() string

func (*AgentInstallProgressResponseWrapper) GetData

func (*AgentInstallProgressResponseWrapper) GetError

func (*AgentInstallProgressResponseWrapper) ProtoMessage

func (*AgentInstallProgressResponseWrapper) ProtoMessage()

func (*AgentInstallProgressResponseWrapper) Reset

func (*AgentInstallProgressResponseWrapper) String

func (*AgentInstallProgressResponseWrapper) Validate

func (this *AgentInstallProgressResponseWrapper) Validate() error

func (*AgentInstallProgressResponseWrapper) XXX_DiscardUnknown

func (m *AgentInstallProgressResponseWrapper) XXX_DiscardUnknown()

func (*AgentInstallProgressResponseWrapper) XXX_Marshal

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

func (*AgentInstallProgressResponseWrapper) XXX_Merge

func (*AgentInstallProgressResponseWrapper) XXX_Size

func (*AgentInstallProgressResponseWrapper) XXX_Unmarshal

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

type AgentInstallRequest

type AgentInstallRequest struct {
	//
	//安装agent的目标ip
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip" form:"ip"`
	//
	//安装agent的目标端口
	Port int32 `protobuf:"varint,2,opt,name=port,proto3" json:"port" form:"port"`
	//
	//机器用户名
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username" form:"username"`
	//
	//机器密码
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password" form:"password"`
	//
	//是否异步安装
	Async                bool     `protobuf:"varint,5,opt,name=async,proto3" json:"async" form:"async"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AgentInstall请求

func (*AgentInstallRequest) Descriptor

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

func (*AgentInstallRequest) GetAsync

func (m *AgentInstallRequest) GetAsync() bool

func (*AgentInstallRequest) GetIp

func (m *AgentInstallRequest) GetIp() string

func (*AgentInstallRequest) GetPassword

func (m *AgentInstallRequest) GetPassword() string

func (*AgentInstallRequest) GetPort

func (m *AgentInstallRequest) GetPort() int32

func (*AgentInstallRequest) GetUsername

func (m *AgentInstallRequest) GetUsername() string

func (*AgentInstallRequest) ProtoMessage

func (*AgentInstallRequest) ProtoMessage()

func (*AgentInstallRequest) Reset

func (m *AgentInstallRequest) Reset()

func (*AgentInstallRequest) String

func (m *AgentInstallRequest) String() string

func (*AgentInstallRequest) Validate

func (this *AgentInstallRequest) Validate() error

func (*AgentInstallRequest) XXX_DiscardUnknown

func (m *AgentInstallRequest) XXX_DiscardUnknown()

func (*AgentInstallRequest) XXX_Marshal

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

func (*AgentInstallRequest) XXX_Merge

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

func (*AgentInstallRequest) XXX_Size

func (m *AgentInstallRequest) XXX_Size() int

func (*AgentInstallRequest) XXX_Unmarshal

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

type AgentInstallResponse

type AgentInstallResponse struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//错误信息
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回消息
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message" form:"message"`
	//
	//错误码
	Data                 int32    `protobuf:"varint,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

AgentInstall返回

func (*AgentInstallResponse) Descriptor

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

func (*AgentInstallResponse) GetCode

func (m *AgentInstallResponse) GetCode() int32

func (*AgentInstallResponse) GetData

func (m *AgentInstallResponse) GetData() int32

func (*AgentInstallResponse) GetError

func (m *AgentInstallResponse) GetError() string

func (*AgentInstallResponse) GetMessage

func (m *AgentInstallResponse) GetMessage() string

func (*AgentInstallResponse) ProtoMessage

func (*AgentInstallResponse) ProtoMessage()

func (*AgentInstallResponse) Reset

func (m *AgentInstallResponse) Reset()

func (*AgentInstallResponse) String

func (m *AgentInstallResponse) String() string

func (*AgentInstallResponse) Validate

func (this *AgentInstallResponse) Validate() error

func (*AgentInstallResponse) XXX_DiscardUnknown

func (m *AgentInstallResponse) XXX_DiscardUnknown()

func (*AgentInstallResponse) XXX_Marshal

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

func (*AgentInstallResponse) XXX_Merge

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

func (*AgentInstallResponse) XXX_Size

func (m *AgentInstallResponse) XXX_Size() int

func (*AgentInstallResponse) XXX_Unmarshal

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

type AgentInstallResponseWrapper

type AgentInstallResponseWrapper 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                 *AgentInstallResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

AgentInstallApi返回

func (*AgentInstallResponseWrapper) Descriptor

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

func (*AgentInstallResponseWrapper) GetCode

func (m *AgentInstallResponseWrapper) GetCode() int32

func (*AgentInstallResponseWrapper) GetCodeExplain

func (m *AgentInstallResponseWrapper) GetCodeExplain() string

func (*AgentInstallResponseWrapper) GetData

func (*AgentInstallResponseWrapper) GetError

func (m *AgentInstallResponseWrapper) GetError() string

func (*AgentInstallResponseWrapper) ProtoMessage

func (*AgentInstallResponseWrapper) ProtoMessage()

func (*AgentInstallResponseWrapper) Reset

func (m *AgentInstallResponseWrapper) Reset()

func (*AgentInstallResponseWrapper) String

func (m *AgentInstallResponseWrapper) String() string

func (*AgentInstallResponseWrapper) Validate

func (this *AgentInstallResponseWrapper) Validate() error

func (*AgentInstallResponseWrapper) XXX_DiscardUnknown

func (m *AgentInstallResponseWrapper) XXX_DiscardUnknown()

func (*AgentInstallResponseWrapper) XXX_Marshal

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

func (*AgentInstallResponseWrapper) XXX_Merge

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

func (*AgentInstallResponseWrapper) XXX_Size

func (m *AgentInstallResponseWrapper) XXX_Size() int

func (*AgentInstallResponseWrapper) XXX_Unmarshal

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

type Client

type Client interface {
	AgentInstall(ctx context.Context, in *AgentInstallRequest) (*AgentInstallResponse, error)
	AgentInstallProgress(ctx context.Context, in *AgentInstallProgressRequest) (*AgentInstallProgressResponse, error)
	GetInstallKey(ctx context.Context, in *types.Empty) (*GetInstallKeyResponse, error)
}

Client is the client API for agent 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 GetInstallKeyResponse

type GetInstallKeyResponse struct {
	//
	//返回码
	Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code" form:"code"`
	//
	//返回信息
	Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error" form:"error"`
	//
	//返回信息
	Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message" form:"message"`
	//
	//密钥数据
	Data                 string   `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

GetInstallKey返回

func (*GetInstallKeyResponse) Descriptor

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

func (*GetInstallKeyResponse) GetCode

func (m *GetInstallKeyResponse) GetCode() int32

func (*GetInstallKeyResponse) GetData

func (m *GetInstallKeyResponse) GetData() string

func (*GetInstallKeyResponse) GetError

func (m *GetInstallKeyResponse) GetError() string

func (*GetInstallKeyResponse) GetMessage

func (m *GetInstallKeyResponse) GetMessage() string

func (*GetInstallKeyResponse) ProtoMessage

func (*GetInstallKeyResponse) ProtoMessage()

func (*GetInstallKeyResponse) Reset

func (m *GetInstallKeyResponse) Reset()

func (*GetInstallKeyResponse) String

func (m *GetInstallKeyResponse) String() string

func (*GetInstallKeyResponse) Validate

func (this *GetInstallKeyResponse) Validate() error

func (*GetInstallKeyResponse) XXX_DiscardUnknown

func (m *GetInstallKeyResponse) XXX_DiscardUnknown()

func (*GetInstallKeyResponse) XXX_Marshal

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

func (*GetInstallKeyResponse) XXX_Merge

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

func (*GetInstallKeyResponse) XXX_Size

func (m *GetInstallKeyResponse) XXX_Size() int

func (*GetInstallKeyResponse) XXX_Unmarshal

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

type GetInstallKeyResponseWrapper

type GetInstallKeyResponseWrapper 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                 *GetInstallKeyResponse `protobuf:"bytes,4,opt,name=data,proto3" json:"data" form:"data"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

GetInstallKeyApi返回

func (*GetInstallKeyResponseWrapper) Descriptor

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

func (*GetInstallKeyResponseWrapper) GetCode

func (m *GetInstallKeyResponseWrapper) GetCode() int32

func (*GetInstallKeyResponseWrapper) GetCodeExplain

func (m *GetInstallKeyResponseWrapper) GetCodeExplain() string

func (*GetInstallKeyResponseWrapper) GetData

func (*GetInstallKeyResponseWrapper) GetError

func (m *GetInstallKeyResponseWrapper) GetError() string

func (*GetInstallKeyResponseWrapper) ProtoMessage

func (*GetInstallKeyResponseWrapper) ProtoMessage()

func (*GetInstallKeyResponseWrapper) Reset

func (m *GetInstallKeyResponseWrapper) Reset()

func (*GetInstallKeyResponseWrapper) String

func (*GetInstallKeyResponseWrapper) Validate

func (this *GetInstallKeyResponseWrapper) Validate() error

func (*GetInstallKeyResponseWrapper) XXX_DiscardUnknown

func (m *GetInstallKeyResponseWrapper) XXX_DiscardUnknown()

func (*GetInstallKeyResponseWrapper) XXX_Marshal

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

func (*GetInstallKeyResponseWrapper) XXX_Merge

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

func (*GetInstallKeyResponseWrapper) XXX_Size

func (m *GetInstallKeyResponseWrapper) XXX_Size() int

func (*GetInstallKeyResponseWrapper) XXX_Unmarshal

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

type Service

Service is the server API for agent service.

Jump to

Keyboard shortcuts

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