agent_admin

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminTask

type AdminTask struct {
	//
	//ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//类型
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type" form:"type"`
	//
	//状态
	Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status" form:"status"`
	//
	//信息
	Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message" form:"message"`
	//
	//信息存活时间
	Ttl                  int32    `protobuf:"varint,5,opt,name=ttl,proto3" json:"ttl" form:"ttl"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

任务

func (*AdminTask) Descriptor

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

func (*AdminTask) GetId

func (m *AdminTask) GetId() string

func (*AdminTask) GetMessage

func (m *AdminTask) GetMessage() string

func (*AdminTask) GetStatus

func (m *AdminTask) GetStatus() string

func (*AdminTask) GetTtl

func (m *AdminTask) GetTtl() int32

func (*AdminTask) GetType

func (m *AdminTask) GetType() string

func (*AdminTask) ProtoMessage

func (*AdminTask) ProtoMessage()

func (*AdminTask) Reset

func (m *AdminTask) Reset()

func (*AdminTask) String

func (m *AdminTask) String() string

func (*AdminTask) Validate

func (this *AdminTask) Validate() error

func (*AdminTask) XXX_DiscardUnknown

func (m *AdminTask) XXX_DiscardUnknown()

func (*AdminTask) XXX_Marshal

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

func (*AdminTask) XXX_Merge

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

func (*AdminTask) XXX_Size

func (m *AdminTask) XXX_Size() int

func (*AdminTask) XXX_Unmarshal

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

type Agent

type Agent struct {
	//
	//实例唯一标识
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//状态
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status" form:"status"`
	//
	//是否存活
	Alive bool `protobuf:"varint,3,opt,name=alive,proto3" json:"alive" form:"alive"`
	//
	//版本
	Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version" form:"version"`
	//
	//Agent唯一标识
	Uuid string `protobuf:"bytes,5,opt,name=uuid,proto3" json:"uuid" form:"uuid"`
	//
	//时区
	Timezone int32 `protobuf:"varint,6,opt,name=timezone,proto3" json:"timezone" form:"timezone"`
	//
	//Agent端心跳时间戳
	HbAgentTime int32 `protobuf:"varint,7,opt,name=hbAgentTime,proto3" json:"hbAgentTime" form:"hbAgentTime"`
	//
	//Server端心跳时间戳
	HbServerTime int32 `protobuf:"varint,8,opt,name=hbServerTime,proto3" json:"hbServerTime" form:"hbServerTime"`
	//
	//Agent启动时间戳
	StartTime int32 `protobuf:"varint,9,opt,name=startTime,proto3" json:"startTime" form:"startTime"`
	//
	//Agent所属主机InstanceID
	HostID string `protobuf:"bytes,10,opt,name=hostID,proto3" json:"hostID" form:"hostID"`
	//
	//AgentIp
	Ip                   string   `protobuf:"bytes,11,opt,name=ip,proto3" json:"ip" form:"ip"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Agent

func (*Agent) Descriptor

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

func (*Agent) GetAlive

func (m *Agent) GetAlive() bool

func (*Agent) GetHbAgentTime

func (m *Agent) GetHbAgentTime() int32

func (*Agent) GetHbServerTime

func (m *Agent) GetHbServerTime() int32

func (*Agent) GetHostID

func (m *Agent) GetHostID() string

func (*Agent) GetId

func (m *Agent) GetId() string

func (*Agent) GetIp

func (m *Agent) GetIp() string

func (*Agent) GetStartTime

func (m *Agent) GetStartTime() int32

func (*Agent) GetStatus

func (m *Agent) GetStatus() string

func (*Agent) GetTimezone

func (m *Agent) GetTimezone() int32

func (*Agent) GetUuid

func (m *Agent) GetUuid() string

func (*Agent) GetVersion

func (m *Agent) GetVersion() string

func (*Agent) ProtoMessage

func (*Agent) ProtoMessage()

func (*Agent) Reset

func (m *Agent) Reset()

func (*Agent) String

func (m *Agent) String() string

func (*Agent) Validate

func (this *Agent) Validate() error

func (*Agent) XXX_DiscardUnknown

func (m *Agent) XXX_DiscardUnknown()

func (*Agent) XXX_Marshal

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

func (*Agent) XXX_Merge

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

func (*Agent) XXX_Size

func (m *Agent) XXX_Size() int

func (*Agent) XXX_Unmarshal

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

type Plugin

type Plugin struct {
	//
	//ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//名称
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" form:"name"`
	//
	//部署路径
	DeployPath []string `protobuf:"bytes,3,rep,name=deployPath,proto3" json:"deployPath" form:"deployPath"`
	//
	//备注
	Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo" form:"memo"`
	//
	//仓库对应包ID
	RepoPackageId string `protobuf:"bytes,5,opt,name=repoPackageId,proto3" json:"repoPackageId" form:"repoPackageId"`
	//
	//创建者
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间
	Ctime int32 `protobuf:"varint,7,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间
	Mtime int32 `protobuf:"varint,8,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	//
	//是否锁定
	IsLocked             bool     `protobuf:"varint,9,opt,name=isLocked,proto3" json:"isLocked" form:"isLocked"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

插件

func (*Plugin) Descriptor

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

func (*Plugin) GetCreator

func (m *Plugin) GetCreator() string

func (*Plugin) GetCtime

func (m *Plugin) GetCtime() int32

func (*Plugin) GetDeployPath

func (m *Plugin) GetDeployPath() []string

func (*Plugin) GetId

func (m *Plugin) GetId() string

func (*Plugin) GetIsLocked

func (m *Plugin) GetIsLocked() bool

func (*Plugin) GetMemo

func (m *Plugin) GetMemo() string

func (*Plugin) GetMtime

func (m *Plugin) GetMtime() int32

func (*Plugin) GetName

func (m *Plugin) GetName() string

func (*Plugin) GetRepoPackageId

func (m *Plugin) GetRepoPackageId() string

func (*Plugin) ProtoMessage

func (*Plugin) ProtoMessage()

func (*Plugin) Reset

func (m *Plugin) Reset()

func (*Plugin) String

func (m *Plugin) String() string

func (*Plugin) Validate

func (this *Plugin) Validate() error

func (*Plugin) XXX_DiscardUnknown

func (m *Plugin) XXX_DiscardUnknown()

func (*Plugin) XXX_Marshal

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

func (*Plugin) XXX_Merge

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

func (*Plugin) XXX_Size

func (m *Plugin) XXX_Size() int

func (*Plugin) XXX_Unmarshal

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

type PluginInstance

type PluginInstance struct {
	//
	//实例Id
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//AgentID
	AgentId string `protobuf:"bytes,2,opt,name=agentId,proto3" json:"agentId" form:"agentId"`
	//
	//插件ID
	PluginId string `protobuf:"bytes,3,opt,name=pluginId,proto3" json:"pluginId" form:"pluginId"`
	//
	//插件名称
	PluginName string `protobuf:"bytes,4,opt,name=pluginName,proto3" json:"pluginName" form:"pluginName"`
	//
	//插件版本Id
	PluginVersionId string `protobuf:"bytes,5,opt,name=pluginVersionId,proto3" json:"pluginVersionId" form:"pluginVersionId"`
	//
	//插件版本名称
	PluginVersionName string `protobuf:"bytes,6,opt,name=pluginVersionName,proto3" json:"pluginVersionName" form:"pluginVersionName"`
	//
	//真实安装路径
	DeployPath string `protobuf:"bytes,7,opt,name=deployPath,proto3" json:"deployPath" form:"deployPath"`
	//
	//创建时间
	Ctime int32 `protobuf:"varint,8,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间
	Mtime                int32    `protobuf:"varint,9,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Agent插件关系

func (*PluginInstance) Descriptor

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

func (*PluginInstance) GetAgentId

func (m *PluginInstance) GetAgentId() string

func (*PluginInstance) GetCtime

func (m *PluginInstance) GetCtime() int32

func (*PluginInstance) GetDeployPath

func (m *PluginInstance) GetDeployPath() string

func (*PluginInstance) GetId

func (m *PluginInstance) GetId() string

func (*PluginInstance) GetMtime

func (m *PluginInstance) GetMtime() int32

func (*PluginInstance) GetPluginId

func (m *PluginInstance) GetPluginId() string

func (*PluginInstance) GetPluginName

func (m *PluginInstance) GetPluginName() string

func (*PluginInstance) GetPluginVersionId

func (m *PluginInstance) GetPluginVersionId() string

func (*PluginInstance) GetPluginVersionName

func (m *PluginInstance) GetPluginVersionName() string

func (*PluginInstance) ProtoMessage

func (*PluginInstance) ProtoMessage()

func (*PluginInstance) Reset

func (m *PluginInstance) Reset()

func (*PluginInstance) String

func (m *PluginInstance) String() string

func (*PluginInstance) Validate

func (this *PluginInstance) Validate() error

func (*PluginInstance) XXX_DiscardUnknown

func (m *PluginInstance) XXX_DiscardUnknown()

func (*PluginInstance) XXX_Marshal

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

func (*PluginInstance) XXX_Merge

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

func (*PluginInstance) XXX_Size

func (m *PluginInstance) XXX_Size() int

func (*PluginInstance) XXX_Unmarshal

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

type PluginVersion

type PluginVersion struct {
	//
	//ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" form:"id"`
	//
	//仓库版本ID
	RepoVersionId string `protobuf:"bytes,2,opt,name=repoVersionId,proto3" json:"repoVersionId" form:"repoVersionId"`
	//
	//版本名称
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name" form:"name"`
	//
	//备注
	Memo string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo" form:"memo"`
	//
	//所属插件ID
	PluginId string `protobuf:"bytes,5,opt,name=pluginId,proto3" json:"pluginId" form:"pluginId"`
	//
	//创建者
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator" form:"creator"`
	//
	//创建时间
	Ctime int32 `protobuf:"varint,7,opt,name=ctime,proto3" json:"ctime" form:"ctime"`
	//
	//修改时间
	Mtime                int32    `protobuf:"varint,8,opt,name=mtime,proto3" json:"mtime" form:"mtime"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

插件版本

func (*PluginVersion) Descriptor

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

func (*PluginVersion) GetCreator

func (m *PluginVersion) GetCreator() string

func (*PluginVersion) GetCtime

func (m *PluginVersion) GetCtime() int32

func (*PluginVersion) GetId

func (m *PluginVersion) GetId() string

func (*PluginVersion) GetMemo

func (m *PluginVersion) GetMemo() string

func (*PluginVersion) GetMtime

func (m *PluginVersion) GetMtime() int32

func (*PluginVersion) GetName

func (m *PluginVersion) GetName() string

func (*PluginVersion) GetPluginId

func (m *PluginVersion) GetPluginId() string

func (*PluginVersion) GetRepoVersionId

func (m *PluginVersion) GetRepoVersionId() string

func (*PluginVersion) ProtoMessage

func (*PluginVersion) ProtoMessage()

func (*PluginVersion) Reset

func (m *PluginVersion) Reset()

func (*PluginVersion) String

func (m *PluginVersion) String() string

func (*PluginVersion) Validate

func (this *PluginVersion) Validate() error

func (*PluginVersion) XXX_DiscardUnknown

func (m *PluginVersion) XXX_DiscardUnknown()

func (*PluginVersion) XXX_Marshal

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

func (*PluginVersion) XXX_Merge

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

func (*PluginVersion) XXX_Size

func (m *PluginVersion) XXX_Size() int

func (*PluginVersion) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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