Documentation
¶
Index ¶
- Constants
- func GetPackageName(path string) (string, error)
- func InstallAgent(nsId string, mcisId string, vmId string, publicIp string, userName string, ...) (int, error)
- func MakeAgentUUID(nsId string, mcisId string, vmId string, cspType string) string
- func PutAgentMetadataToStore(agentUUID string, agentInfo AgentInfo) error
- func SetMetadataByAgentInstall(nsId string, mcisId string, vmId string, cspType string, publicIp string) error
- func SetMetadataByAgentUninstall(nsId string, mcisId string, vmId string, cspType string) error
- func UninstallAgent(nsId string, mcisId string, vmId string, publicIp string, userName string, ...) (int, error)
- type AgentHealth
- type AgentInfo
- type AgentListManager
- type AgentState
- type AgentType
Constants ¶
View Source
const ( UBUNTU = "UBUNTU" CENTOS = "CENTOS" )
Variables ¶
This section is empty.
Functions ¶
func GetPackageName ¶
func InstallAgent ¶ added in v0.4.2
func MakeAgentUUID ¶ added in v0.3.5
func PutAgentMetadataToStore ¶ added in v0.3.5
func SetMetadataByAgentInstall ¶ added in v0.3.5
func SetMetadataByAgentUninstall ¶ added in v0.3.5
Types ¶
type AgentHealth ¶ added in v0.3.5
type AgentHealth string
AgentHealth 에이전트 구동 상태 (정상, 비정상)
const ( Healthy AgentHealth = "healthy" Unhealthy AgentHealth = "unhealthy" )
type AgentInfo ¶ added in v0.3.5
type AgentInfo struct {
NsId string `json:"ns_id"`
McisId string `json:"mcis_id"`
VmId string `json:"vm_id"`
CspType string `json:"csp_type"`
AgentType string `json:"agent_type"`
AgentState string `json:"agent_state"`
AgentHealth string `json:"agent_health"`
AgentUnhealthyRespCnt int `json:"agent_unhealthy_resp_cnt"`
PublicIp string `json:"public_ip"`
}
AgentInfo 에이전트 상세 정보
type AgentListManager ¶ added in v0.3.5
type AgentListManager struct{}
AgentListManager 에이전트 목록 관리
func (AgentListManager) DeleteAgent ¶ added in v0.3.5
func (a AgentListManager) DeleteAgent(uuid string) error
func (AgentListManager) GetAgentInfo ¶ added in v0.3.5
func (a AgentListManager) GetAgentInfo(uuid string) (AgentInfo, error)
func (AgentListManager) GetAgentList ¶ added in v0.3.5
func (a AgentListManager) GetAgentList() (map[string]AgentInfo, error)
type AgentState ¶ added in v0.3.5
type AgentState string
AgentState 에이전트 설치 상태 (설치, 제거)
const ( Enable AgentState = "enable" Disable AgentState = "disable" )
Click to show internal directories.
Click to hide internal directories.