Documentation
¶
Index ¶
- Constants
- func CleanAgentInstall(info AgentInstallInfo, sshInfo *sshrun.SSHInfo, osType *string, ...)
- func DeleteAgent(info AgentInstallInfo) (string, error)
- func DeleteAgentByUUID(agentUUID string) error
- func GetAllFilesinPath(path string) ([]string, error)
- func GetPackageName(path string) (string, error)
- func ListAgent() (map[string]AgentInfo, error)
- func MakeAgentUUID(info AgentInstallInfo) string
- type AgentHealth
- type AgentInfo
- type AgentInstallInfo
- type AgentState
- type AgentType
Constants ¶
View Source
const ( UBUNTU = "UBUNTU" CENTOS = "CENTOS" AGENT_NAMESPACE = "cb-dragonfly" AGENT_CLUSTERROLE = "cb-dragonfly-agent-clusterrole" AGENT_CLUSTERROLEBINDING = "cb-dragonfly-agent-clusterrolebinding" PULL_MECHANISM = "pull" )
Variables ¶
This section is empty.
Functions ¶
func CleanAgentInstall ¶
func CleanAgentInstall(info AgentInstallInfo, sshInfo *sshrun.SSHInfo, osType *string, kubeClient *kubernetes.Clientset)
func DeleteAgent ¶
func DeleteAgent(info AgentInstallInfo) (string, error)
DeleteAgent 에이전트 메타데이터 삭제
func DeleteAgentByUUID ¶
DeleteAgentByUUID UUID 기준 에이전트 메타데이터 삭제
func GetAllFilesinPath ¶
func GetPackageName ¶
func MakeAgentUUID ¶
func MakeAgentUUID(info AgentInstallInfo) string
Types ¶
type AgentHealth ¶
type AgentHealth string
AgentHealth 에이전트 구동 상태 (정상, 비정상)
const ( Healthy AgentHealth = "healthy" Unhealthy AgentHealth = "unhealthy" )
type AgentInfo ¶
type AgentInfo struct { ServiceType string `json:"service_type"` NsId string `json:"ns_id"` McisId string `json:"mcis_id"` VmId string `json:"vm_id"` CspType string `json:"cspType"` 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"` Mck8sId string `json:"mck8s_id"` }
AgentInfo 에이전트 상세 정보
func GetAgent ¶
func GetAgent(info AgentInstallInfo) (*AgentInfo, error)
func GetAgentByUUID ¶
GetAgentByUUID UUID 기준 에이전트 메타데이터 조회
func PutAgent ¶
func PutAgent(info AgentInstallInfo, unHealthyRespCnt int, agentState AgentState, agentHealth AgentHealth) (string, AgentInfo, error)
PutAgent 에이전트 메타데이터 수정
type AgentInstallInfo ¶
type AgentState ¶
type AgentState string
AgentState 에이전트 설치 상태 (설치, 제거)
const ( Enable AgentState = "enable" Disable AgentState = "disable" )
Click to show internal directories.
Click to hide internal directories.