controller

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

README

html template controller

main.go 에서 선언한 method 구현. 필요한 서비스들을 호출하여 로직을 수행한 뒤 return

. 화면이 있는 경우 : template에서 master file 경로를 설정하여 return . 화면이 없는 경우 : json으로 return

return 시 구현해야 하는 parameter : message, status model.WebStatus{StatusCode: 500, Message: err.Error()}

if respStatus.StatusCode != 200 && respStatus.StatusCode != 201 { log.Println(" respStatus ", respStatus) return c.JSON(http.StatusBadRequest, map[string]interface{}{ "message": respStatus.Message, "status": respStatus.StatusCode, }) }

-> 최종 변경 : return시 error로 send, error code 도 return받는 respStatus if respStatus.StatusCode != 200 && respStatus.StatusCode != 201 {

return c.JSON(respStatus.StatusCode, map[string]interface{}{
    "error":  respStatus.Message,
    "status": respStatus.StatusCode,
})

}

참고 : net.Dial을 이용하여 Keep Alive Check를 각 Framework로 하려했으나, IP_PORT 의 응답만 되므로 굳이 구현 필요가 없음. (Dial로 연결된 후 server로부터 응답을 받을 때까지 conn.read()에서 대기) WebsocketController.go 에 구현되어 있으나 사용하지 않음.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DragonFlyURL = os.Getenv("DRAGONFLY_IP_PORT")
View Source
var LadyBugURL = os.Getenv("LADYBUG_IP_PORT")
View Source
var SpiderURL = os.Getenv("SPIDER_IP_PORT")
View Source
var TumbleBugURL = os.Getenv("TUMBLE_IP_PORT")

Functions

func About

func About(c echo.Context) error

func Accessible

func Accessible(c echo.Context) error

func AddVmToNLBTargetGroup

func AddVmToNLBTargetGroup(c echo.Context) error

nlb targetgroup에 vm추가

func AllNlbListOfNamespace

func AllNlbListOfNamespace(c echo.Context) error

Namespace의 모든 NLB 목록 조회

func AllVirtualMachineImageDelProc

func AllVirtualMachineImageDelProc(c echo.Context) error

해당 namespace의 모든 VMImage 삭제

func ApiCall

func ApiCall(c echo.Context) error

API 호출 Test

func ApiLogin

func ApiLogin(c echo.Context) error

Api를 통한 로그인 Token을 생성하여 해당 token 반환

func ApiNamespaceList

func ApiNamespaceList(c echo.Context) error

func ApiTestMngForm

func ApiTestMngForm(c echo.Context) error

func ApiUserInfo

func ApiUserInfo(c echo.Context) error

name이 admin이고 claims["admin"] == true 면 namespace 목록을 가져온다.

func AttachDetachDataDiskToVmUpdateProc

func AttachDetachDataDiskToVmUpdateProc(c echo.Context) error

vm에 disk attach/detech

func ChangeCloudBaristaConfig

func ChangeCloudBaristaConfig(c echo.Context) error

func CheckReadyHoneybee

func CheckReadyHoneybee(c echo.Context) error

Honeybee Ready 여부

func CloudConnectionConfigDelProc

func CloudConnectionConfigDelProc(c echo.Context) error

삭제

func CloudConnectionConfigMngForm

func CloudConnectionConfigMngForm(c echo.Context) error

func ConnectionConfigList(c echo.Context) error {

func CloudConnectionConfigRegProc

func CloudConnectionConfigRegProc(c echo.Context) error

cloud connection 등록 :

func CommandMcis

func CommandMcis(c echo.Context) error

MCIS에 Command 전송

func CommandVmOfMcis

func CommandVmOfMcis(c echo.Context) error

Vm에 Command 전송

func ConfigDelProc

func ConfigDelProc(c echo.Context) error

Config 삭제

func ConfigRegProc

func ConfigRegProc(c echo.Context) error

Config 등록 func ConfigRegProc

func ConnectionList

func ConnectionList(c echo.Context) error

/////// condif ////////// Cloud 연결정보 표시(driver)

func CredentialDelProc

func CredentialDelProc(c echo.Context) error

Credential 삭제

func CredentialRegProc

func CredentialRegProc(c echo.Context) error

Credential 등록

func DashBoardByNameSpaceMngForm

func DashBoardByNameSpaceMngForm(c echo.Context) error

특정 Namespace의 Dashboard -- > 모든 Namespace의 Dashboard도 있음.

func DataDiskAllDelProc

func DataDiskAllDelProc(c echo.Context) error

e.DELETE("/setting/resources/datadisk/del", controller.)

func DataDiskDelProc

func DataDiskDelProc(c echo.Context) error

e.DELETE("/setting/resources/datadisk/del/:dataDiskID", controller.)

func DataDiskGet

func DataDiskGet(c echo.Context) error

e.GET("/setting/resources/datadisk/:dataDiskID", controller.DataDiskGet)

func DataDiskList

func DataDiskList(c echo.Context) error

e.GET("/setting/resources/datadisk/list", controller.DataDiskList)

func DataDiskLookupList

func DataDiskLookupList(c echo.Context) error

Provider, connection 에서 사용가능한 DiskType 조회 현재 : spider의 cloudos_meta.yaml 값 사용

func DataDiskMngForm

func DataDiskMngForm(c echo.Context) error

resourcesGroup.GET("/datadisk/mngform", controller.DataDiskMngForm)

func DataDiskMngProc

func DataDiskMngProc(c echo.Context) error

Create, Update, Delete를 한번에 하는 Controller 단, Attach, Detach 는 1개 vm에 대해서만 가능하게?

func DataDiskPutProc

func DataDiskPutProc(c echo.Context) error

e.PUT("/setting/resources/datadisk/:dataDiskID", controller.DataDiskPutProc)

func DataDiskRegProc

func DataDiskRegProc(c echo.Context) error

e.POST("/setting/resources/datadisk/reg", controller.DataDiskRegProc):

func DriverDelProc

func DriverDelProc(c echo.Context) error

Driver 삭제

func DriverRegController

func DriverRegController(c echo.Context) error

Driver Contorller

func DriverRegProc

func DriverRegProc(c echo.Context) error

Driver 등록 func DriverRegProc

func Echo

func Echo(conn *websocket.Conn)

func FetchVirtualMachineImageList

func FetchVirtualMachineImageList(c echo.Context) error

TODO : Fetch 의 의미 파악

func FetchVmSpecList

func FetchVmSpecList(c echo.Context) error

Fetch는 Spider에 있는 VM Image정보를 Tumblebug으로 가져오는 작업. 시간이 오래걸리므로 이전에는 전체 Image목록을 가져왔으나 결과만 return하는 것으로 변경 됨.

func FilterVmSpecListByRange

func FilterVmSpecListByRange(c echo.Context) error

Spec Range search

func FirewallDelProc

func FirewallDelProc(c echo.Context) error

firewall rule 삭제 :

func FirewallRegProc

func FirewallRegProc(c echo.Context) error

security group rule 추가

func GetAvailableDataDiskListForVM

func GetAvailableDataDiskListForVM(c echo.Context) error

VM이 사용가능한 DataDisk 목록

func GetCloudConnectionConfigData

func GetCloudConnectionConfigData(c echo.Context) error

cloud connection 상세정보

func GetCloudConnectionConfigList

func GetCloudConnectionConfigList(c echo.Context) error

현재 설정된 connection 목록

func GetCloudOSList

func GetCloudOSList(c echo.Context) error

func CloudOSListForm CloudOS(Provider) 목록

func GetConfig

func GetConfig(c echo.Context) error

Config 조회

func GetConfigList

func GetConfigList(c echo.Context) error

현재 설정된 Config 목록

func GetConnectionConfigCandidateList

func GetConnectionConfigCandidateList(c echo.Context) error

// Check avaiable ConnectionConfig list for creating MCIS Dynamically

사용 가능한 connection config  목록 조회

GetMcisListByID

func GetCredential

func GetCredential(c echo.Context) error

Credential 상세정보

func GetCredentialList

func GetCredentialList(c echo.Context) error

현재 설정된 Credential 목록 : 목록에서는 key의 value는 보여주지 않는다. ... 표시 (상세정보에서는 표시)

func GetDriver

func GetDriver(c echo.Context) error

Driver 조회

func GetDriverList

func GetDriverList(c echo.Context) error

현재 설정된 driver 목록

func GetInspectResourceList

func GetInspectResourceList(c echo.Context) error
	connection에 대해 resource 목록 CSP와 Tumblebug을 비교
    비교 가능 resource : vnet/securityGroup/sshKey/vm

func GetInspectResourcesOverview

func GetInspectResourcesOverview(c echo.Context) error
	connection에 대해 resource 목록 CSP와 Tumblebug을 비교
    비교 가능 resource : vnet/securityGroup/sshKey/vm

func GetLegacySourceConnectionData

func GetLegacySourceConnectionData(c echo.Context) error

Legacy Connection 단건 조회

func GetLegacySourceConnectionDataByID

func GetLegacySourceConnectionDataByID(c echo.Context) error

Connection 조회. connection은 sourceGroup 아래에 있으나 sourceGroup 무관하게 connectionID로 조회.

func GetLegacySourceConnectionList

func GetLegacySourceConnectionList(c echo.Context) error

Legacy Connection 목록 조회

func GetLegacySourceGroupConnectionCheck

func GetLegacySourceGroupConnectionCheck(c echo.Context) error

Connection check

func GetLegacySourceGroupData

func GetLegacySourceGroupData(c echo.Context) error

Legacy SourceGroup 단건 조회

func GetLegacySourceGroupList

func GetLegacySourceGroupList(c echo.Context) error

Legacy SourceGroup 목록 조회

func GetLegacySourceInfraInfo

func GetLegacySourceInfraInfo(c echo.Context) error

저장된 Infra 정보 조회

func GetLegacySourceSoftwareInfo

func GetLegacySourceSoftwareInfo(c echo.Context) error

저장된 Software 정보 조회

func GetMcisInfoData

func GetMcisInfoData(c echo.Context) error

GetMcisInfoData 특정 MCIS의 상세정보를 가져온다.

func GetMcisList

func GetMcisList(c echo.Context) error

MCIS 목록 조회

func GetMcisPolicyInfoData

func GetMcisPolicyInfoData(c echo.Context) error

GetMcisPolishInfoData 특정 MCIS의 Polish 상세정보를 가져온다.

func GetMcisPolicyInfoList

func GetMcisPolicyInfoList(c echo.Context) error

func GetMcisRecommendVmSpecList

func GetMcisRecommendVmSpecList(c echo.Context) error

추천 vm spec 조회 Recommend MCIS plan (filter and priority)

func GetMcksList

func GetMcksList(c echo.Context) error

MCKS 목록 조회

func GetMigrationInfraData

func GetMigrationInfraData(c echo.Context) error

MigrationInfra 상세정보

func GetMigrationInfraList

func GetMigrationInfraList(c echo.Context) error

func GetMonitoringAlertEventHandlerList

func GetMonitoringAlertEventHandlerList(c echo.Context) error

Monitoring Alert Event-Handler 목록 조회

func GetMonitoringAlertLogList

func GetMonitoringAlertLogList(c echo.Context) error

MonitoringPolicy 목록 조회

func GetMonitoringAlertPolicyData

func GetMonitoringAlertPolicyData(c echo.Context) error

Monitoring Threshold 단건 조회

func GetMonitoringAlertPolicyList

func GetMonitoringAlertPolicyList(c echo.Context) error

Monitoring Threshold 목록 조회

func GetMonitoringConfigPolicyList

func GetMonitoringConfigPolicyList(c echo.Context) error

MonitoringPolicy 목록 조회

func GetNameSpace

func GetNameSpace(c echo.Context) error

기본 namespace get. get default Namespace

func GetNameSpaceList

func GetNameSpaceList(c echo.Context) error

사용자의 namespace 목록 조회

func GetPlacementPolicyList

func GetPlacementPolicyList(c echo.Context) error

Placement Policy 목록 조회

func GetPmksInfoData

func GetPmksInfoData(c echo.Context) error

PMKS 단건 조회

func GetPmksList

func GetPmksList(c echo.Context) error

func GetPmksListOfNamespace

func GetPmksListOfNamespace(c echo.Context) error

namespace 내 모든 pmks 목록.

func GetReadyz

func GetReadyz(c echo.Context) error

연관 framework의 readyz 호출 결과 return

func GetRegion

func GetRegion(c echo.Context) error

region 상세정보

func GetRegionList

func GetRegionList(c echo.Context) error

현재 설정된 region 목록

func GetSecirityGroupData

func GetSecirityGroupData(c echo.Context) error

상세정보

func GetSecirityGroupList

func GetSecirityGroupList(c echo.Context) error

SecurityGroup 목록

func GetSshKeyData

func GetSshKeyData(c echo.Context) error

SSHKey 상세정보

func GetSshKeyList

func GetSshKeyList(c echo.Context) error

func GetTaskComponentData

func GetTaskComponentData(c echo.Context) error

TaskComponent 단건 조회

func GetTaskComponentList

func GetTaskComponentList(c echo.Context) error

TaskComponent 목록 조회

func GetVirtualMachineImageData

func GetVirtualMachineImageData(c echo.Context) error

VirtualMachineImage 상세정보

func GetVirtualMachineImageList

func GetVirtualMachineImageList(c echo.Context) error

해당 namespace에 등록된 Spec목록 조회

func GetVmInfoData

func GetVmInfoData(c echo.Context) error

MCIS 의 특정 VM의 정보를 가져온다. 단. 텀블벅 조회가 아니라 이미 저장되어 있는 store에서 꺼낸다.

func GetVmInfoDataByVnet

func GetVmInfoDataByVnet(c echo.Context) error

MCIS의 특정 vnet을 사용하는 vm 들만 추출

func GetVmMonitoring

func GetVmMonitoring(c echo.Context) error

VM 통게보기

func GetVmMonitoringInfoData

func GetVmMonitoringInfoData(c echo.Context) error

GetMcisInfoData 특정 MCIS의 상세정보를 가져온다.

func GetVmSpecData

func GetVmSpecData(c echo.Context) error

VMSpec 상세정보

func GetVmSpecList

func GetVmSpecList(c echo.Context) error

func GetVpcData

func GetVpcData(c echo.Context) error

Vpc 상세정보

func GetVpcList

func GetVpcList(c echo.Context) error

func GetWebSocketData

func GetWebSocketData(c echo.Context) error

WebSocket 통신 받은 Event 값에서 calltime 가지고 조회 목록에서 해당시간 이후만 가져오도록 한다. callTime이 없는 경우(open) 이면 현재시간 - 2시간(default) 이후의 값을 가져오도록 한다.

func GetWorkflowInfoData

func GetWorkflowInfoData(c echo.Context) error

GetWorkflowInfoData

func GetWorkflowList

func GetWorkflowList(c echo.Context) error

Workflow 목록 조회

func GetWorkflowTemplateData

func GetWorkflowTemplateData(c echo.Context) error

WorkflowTemplate 단건 조회

func GetWorkflowTemplateList

func GetWorkflowTemplateList(c echo.Context) error

WorkflowTemplate 목록 조회

func GlobalDashBoardMngForm

func GlobalDashBoardMngForm(c echo.Context) error

func HelloForm

func HelloForm(c echo.Context) error

Websocket 호출 Test form

func HelloGorillaWebSocket

func HelloGorillaWebSocket(c echo.Context) error

Websocket 호출 및 Set sample 검토할 내용. 여러브라우저에서 호출 후 페이지 이동시 해당 소켓 닫히는지. 비활성화 소켓 닫는 방법. 특정 시점 이후의 Data만 가져올 수 있는지 특정 시퀀스 이후 Data만 가져올 수 있는지 특정 시간 이전 Data는 삭제처리 map의 key를 현재시간의 unixtime = 숫자로 하면 가능할 것 같은데...

func ImageRegForm

func ImageRegForm(c echo.Context) error

Image Controller

func ImportLegacySourceInfraInfo

func ImportLegacySourceInfraInfo(c echo.Context) error

Infra 정보 수집

func ImportLegacySourceSoftwareInfo

func ImportLegacySourceSoftwareInfo(c echo.Context) error

Software 정보 수집

func Index

func Index(c echo.Context) error

func IndexController

func IndexController(c echo.Context) error

func InfraMigrationMngForm

func InfraMigrationMngForm(c echo.Context) error

func LegacySourceConnectionDelProc

func LegacySourceConnectionDelProc(c echo.Context) error

Legacy SourceConnection delete

func LegacySourceConnectionMngForm

func LegacySourceConnectionMngForm(c echo.Context) error

func LegacySourceConnectionRegProc

func LegacySourceConnectionRegProc(c echo.Context) error

Legacy Connection 등록

func LegacySourceConnectionUpdateProc

func LegacySourceConnectionUpdateProc(c echo.Context) error

Legacy Connection update

func LegacySourceGroupDelProc

func LegacySourceGroupDelProc(c echo.Context) error

SourceGroup 삭제

func LegacySourceGroupMngForm

func LegacySourceGroupMngForm(c echo.Context) error

func LegacySourceGroupRegProc

func LegacySourceGroupRegProc(c echo.Context) error

Legacy SourceGroup 등록

func LegacySourceGroupUpdateProc

func LegacySourceGroupUpdateProc(c echo.Context) error

Source Group 수정

func LoginForm

func LoginForm(c echo.Context) error

func LoginProc

func LoginProc(c echo.Context) error

func LoginToken

func LoginToken(c echo.Context) error

Login 하고 Login정보만 return(token)

func LogoutForm

func LogoutForm(c echo.Context) error

func LogoutProc

func LogoutProc(c echo.Context) error

세션을 초기화 하고 login 화면으로 보낸다.

func LookupCspVirtualMachineImageList

func LookupCspVirtualMachineImageList(c echo.Context) error

해당 connection( provider, region ) 에서 사용가능한 image목록 조회 : 등록시 사용하므로 오래걸려도 기다려야 함.

func LookupVirtualMachineImageData

func LookupVirtualMachineImageData(c echo.Context) error

lookupImage 상세정보

func LookupVmSpecData

func LookupVmSpecData(c echo.Context) error

lookupImage 상세정보

func LookupVmSpecList

func LookupVmSpecList(c echo.Context) error

lookupImage 목록

func MainForm

func MainForm(c echo.Context) error

func Map

func Map(c echo.Context) error

func McisDelProc

func McisDelProc(c echo.Context) error

MCIS 삭제

func McisDynamicRegProc

func McisDynamicRegProc(c echo.Context) error

MCIS 등록

func McisLifeCycle

func McisLifeCycle(c echo.Context) error

MCIS의 status변경

func McisMngForm

func McisMngForm(c echo.Context) error

MCIS 관리 화면 McisListForm 에서 이름 변경 McisMngForm으로 func McisListForm(c echo.Context) error {

func McisMonitoringMngForm

func McisMonitoringMngForm(c echo.Context) error

MCIS Monitoring 화면

func McisPolicyDelProc

func McisPolicyDelProc(c echo.Context) error

삭제

func McisPolicyMngForm

func McisPolicyMngForm(c echo.Context) error

McisPolishMngForm 화면

func McisPolicyRegProc

func McisPolicyRegProc(c echo.Context) error

func McisRegForm

func McisRegForm(c echo.Context) error

func McisRegProc

func McisRegProc(c echo.Context) error

MCIS 등록

func McisSubGroupList

func McisSubGroupList(c echo.Context) error

mcis의 subGroup 목록

func McisVmLifeCycle

func McisVmLifeCycle(c echo.Context) error

VM의 LifeCycle status변경

func McisVmRegForm

func McisVmRegForm(c echo.Context) error

MCIS에 VM 추가

func McksDelProc

func McksDelProc(c echo.Context) error

MCKS 삭제처리

func McksMngForm

func McksMngForm(c echo.Context) error

func McksMonitoringMngForm

func McksMonitoringMngForm(c echo.Context) error

//////////// MCKS Monitoring 화면

func McksNodeRegForm

func McksNodeRegForm(c echo.Context) error

Node 등록 form

func McksRegForm

func McksRegForm(c echo.Context) error

func McksRegProc

func McksRegProc(c echo.Context) error

Cluster 등록 처리

func MigrationInfraDelProc

func MigrationInfraDelProc(c echo.Context) error

MigrationInfra 삭제

func MigrationInfraRegProc

func MigrationInfraRegProc(c echo.Context) error

VMigrationInfra 등록 :

func MonitoringAlertEventHandlerDelProc

func MonitoringAlertEventHandlerDelProc(c echo.Context) error

Monitoring Alert Event-Handler 삭제

func MonitoringAlertEventHandlerRegProc

func MonitoringAlertEventHandlerRegProc(c echo.Context) error

Monitoring Alert Event-Handler 등록 처리

func MonitoringAlertPolicyDelProc

func MonitoringAlertPolicyDelProc(c echo.Context) error

Monitoring Threshold 삭제

func MonitoringAlertPolicyMngForm

func MonitoringAlertPolicyMngForm(c echo.Context) error

Policy Threshold 관리 화면

func MonitoringAlertPolicyRegProc

func MonitoringAlertPolicyRegProc(c echo.Context) error

Threshold 등록 처리

func MonitoringConfigPolicyMngForm

func MonitoringConfigPolicyMngForm(c echo.Context) error

Policy Monitoring 관리 화면

func MonitoringConfigPolicyPutProc

func MonitoringConfigPolicyPutProc(c echo.Context) error

MonitoringPolicy 등록 처리

func MonitoringConfigPolicyRegForm

func MonitoringConfigPolicyRegForm(c echo.Context) error

PolicyMonitoring 등록화면

func MornitoringListForm

func MornitoringListForm(c echo.Context) error

func MyImageAllDelProc

func MyImageAllDelProc(c echo.Context) error

MyImage 모두 제거 : ui에서는 빼는게 나을 지...

func MyImageDelProc

func MyImageDelProc(c echo.Context) error

MyImage삭제

func MyImageGet

func MyImageGet(c echo.Context) error

MyImage상세 조회

func MyImageList

func MyImageList(c echo.Context) error

MyImage 목록조회

func MyImageMngForm

func MyImageMngForm(c echo.Context) error

MyImage 관리화면 호출

func MyImageRegProc

func MyImageRegProc(c echo.Context) error

MyImage 등록 : csp에만 등록된 customImage를 cb-tb에 등록

func NSDashBoard

func NSDashBoard(c echo.Context) error

func NameSpaceDelProc

func NameSpaceDelProc(c echo.Context) error

NameSpace 삭제

func NameSpaceMngForm

func NameSpaceMngForm(c echo.Context) error

NsListForm -> NameSpaceMngForm으로 변경 func NsListForm(c echo.Context) error {

func NameSpaceRegForm

func NameSpaceRegForm(c echo.Context) error

func NsRegForm(c echo.Context) error {

func NameSpaceRegProc

func NameSpaceRegProc(c echo.Context) error

namespace 등록 처리

func NameSpaceUpdateProc

func NameSpaceUpdateProc(c echo.Context) error

Namespace 수정

func NlbAllDelProc

func NlbAllDelProc(c echo.Context) error

func NlbDelProc

func NlbDelProc(c echo.Context) error

Nlb 삭제

func NlbGet

func NlbGet(c echo.Context) error

GetNlbInfoData 특정 MCIS의 상세정보를 가져온다.

func NlbHealthGet

func NlbHealthGet(c echo.Context) error

func NlbList

func NlbList(c echo.Context) error

NLB 목록 조회

func NlbMngForm

func NlbMngForm(c echo.Context) error

MCIS 관리 화면 McisListForm 에서 이름 변경 McisMngForm으로 func McisListForm(c echo.Context) error {

func NlbRegForm

func NlbRegForm(c echo.Context) error

func NlbRegProc

func NlbRegProc(c echo.Context) error

Nlb 등록

func NlbVmDelProc

func NlbVmDelProc(c echo.Context) error

Nlb에 VM 삭제

func NlbVmRegProc

func NlbVmRegProc(c echo.Context) error

Nlb에 VM 추가 등록

func NodeDelProc

func NodeDelProc(c echo.Context) error

Node 삭제 처리

func NodeRegProc

func NodeRegProc(c echo.Context) error

Node 등록 처리

func PlacementPolicyMngForm

func PlacementPolicyMngForm(c echo.Context) error

Policy Monitoring 관리 화면

func PlacementPolicyRegForm

func PlacementPolicyRegForm(c echo.Context) error

PolicyPlacement 등록화면

func PlacementPolicyRegProc

func PlacementPolicyRegProc(c echo.Context) error

Placement 등록 처리

func PmksClusterRegForm

func PmksClusterRegForm(c echo.Context) error

PMKS Cluster 등록 form

func PmksClusterUpdateProc

func PmksClusterUpdateProc(c echo.Context) error

Cluster Update

func PmksDelProc

func PmksDelProc(c echo.Context) error

PMKS 삭제처리

func PmksMngForm

func PmksMngForm(c echo.Context) error

PMKS 관리화면 보통 등록된 것이 없으면 RegForm으로 보내는데 전체조회해서 redirect하는게 애매해서 그냥 mng화면을 보여줌

func PmksNodeGroupDelProc

func PmksNodeGroupDelProc(c echo.Context) error

NodeGroup 삭제 처리

func PmksNodeGroupRegForm

func PmksNodeGroupRegForm(c echo.Context) error

PMKS NodeGroup 등록 form

func PmksNodeGroupRegProc

func PmksNodeGroupRegProc(c echo.Context) error

NodeGroup 등록 처리

func PmksNodeGroupUpdateProc

func PmksNodeGroupUpdateProc(c echo.Context) error

NodeGroup Update reqParameter에서 onautoscaling, nodesize, ...

func PmksRegProc

func PmksRegProc(c echo.Context) error

Cluster 등록 처리

func PopSpec

func PopSpec(c echo.Context) error

func RegAdaptiveNetwork

func RegAdaptiveNetwork(c echo.Context) error

func RegBenchmarkAgentInVm

func RegBenchmarkAgentInVm(c echo.Context) error

모니터링 BenchmarkAgent 설치 /ns/{nsId}/monitoring/install/mcis/{mcisId}

func RegUser

func RegUser(c echo.Context) error

func RegionDelProc

func RegionDelProc(c echo.Context) error

Region 삭제

func RegionRegProc

func RegionRegProc(c echo.Context) error

region 등록

func RegisterCspResourcesAllProc

func RegisterCspResourcesAllProc(c echo.Context) error

func RegisterCspResourcesProc

func RegisterCspResourcesProc(c echo.Context) error

Register CSP Native Resources to CB-Tumblebug

func RegisterCspVm

func RegisterCspVm(c echo.Context) error

Register existing VM in a CSP to Cloud-Barista MCIS

func RemoveVmToNLBTargetGroup

func RemoveVmToNLBTargetGroup(c echo.Context) error

nlb targetgroup에서 vm제거

func ResourceBoard

func ResourceBoard(c echo.Context) error

func Restricted

func Restricted(c echo.Context) error

접속후 확인용 : token이 생성된 경우 /api/auth/restricted/user", method: "get" 호출시 Welcome + name 을 return 함.

func SSHRegForm

func SSHRegForm(c echo.Context) error

Controller

func SearchVirtualMachineImageList

func SearchVirtualMachineImageList(c echo.Context) error

lookupImage 상세정보

func SecirityGroupDelProc

func SecirityGroupDelProc(c echo.Context) error

SecurityGroup 삭제

func SecirityGroupMngForm

func SecirityGroupMngForm(c echo.Context) error

SecurityGroup 관리 화면

func SecirityGroupRegProc

func SecirityGroupRegProc(c echo.Context) error

등록 :

func ServerCall

func ServerCall(c echo.Context) error

Server API 호출 Test : 너무 복잡함....

func SetNameSpace

func SetNameSpace(c echo.Context) error

기본 namespace set. set default Namespace

func SourceModelMngForm

func SourceModelMngForm(c echo.Context) error

소스모델 관련화면

func SourceModelRegForm

func SourceModelRegForm(c echo.Context) error

소스모델 등록 화면

func SshKeyDelProc

func SshKeyDelProc(c echo.Context) error

삭제

func SshKeyMngForm

func SshKeyMngForm(c echo.Context) error

SshKey 등록 form

func SshKeyRegProc

func SshKeyRegProc(c echo.Context) error

SSHKey 등록 :

func SshKeyUpdateProc

func SshKeyUpdateProc(c echo.Context) error

func SubGroupRegProc

func SubGroupRegProc(c echo.Context) error

mcis에 subGroup 추가

func SubGroupScaleOutUpdateProc

func SubGroupScaleOutUpdateProc(c echo.Context) error

subGroup vm추가

func SubGroupVmList

func SubGroupVmList(c echo.Context) error

subGroup 내 vm 목록

func TargetModelMngForm

func TargetModelMngForm(c echo.Context) error

TargetModel 관리화면

func TargetModelRegForm

func TargetModelRegForm(c echo.Context) error

TargetModel 등록화면

func ThresholdPolicyRegForm

func ThresholdPolicyRegForm(c echo.Context) error

PolicyThresholdMngForm PolicyThreshold 등록화면

func UpdateAdaptiveNetwork

func UpdateAdaptiveNetwork(c echo.Context) error

func VirtualMachineImageDelProc

func VirtualMachineImageDelProc(c echo.Context) error

삭제

func VirtualMachineImageMngForm

func VirtualMachineImageMngForm(c echo.Context) error

VirtualMachine Image 등록 form

func VirtualMachineImageRegProc

func VirtualMachineImageRegProc(c echo.Context) error

VirtualMachineImage 등록 :

func VmDynamicRegProc

func VmDynamicRegProc(c echo.Context) error

VM (Subgroup 추가)

func VmListRegProc

func VmListRegProc(c echo.Context) error

MCIS에 VM 목록으로 추가 등록

func VmMonitoringAgentRegForm

func VmMonitoringAgentRegForm(c echo.Context) error

/mcis/:mcisID/vm/:vmID/agent/mngform vm에 monitoring Agent 등록 하는 폼. TODO : 이거 지금 쓰는데가 없는데???

func VmMonitoringAgentRegProc

func VmMonitoringAgentRegProc(c echo.Context) error

func VmRegProc

func VmRegProc(c echo.Context) error

MCIS에 VM 추가 등록

func VmSnapshotRegProc

func VmSnapshotRegProc(c echo.Context) error

vm의 snapshot을 떠서 myImage로 사용

func VmSpecDelProc

func VmSpecDelProc(c echo.Context) error

삭제

func VmSpecMngForm

func VmSpecMngForm(c echo.Context) error

VMSpecMng 등록 form

func VmSpecRegProc

func VmSpecRegProc(c echo.Context) error

VMSpec 등록 :

func VpcDelProc

func VpcDelProc(c echo.Context) error

삭제

func VpcMngForm

func VpcMngForm(c echo.Context) error

func VpcListForm(c echo.Context) error {

func VpcRegProc

func VpcRegProc(c echo.Context) error

Vpc 등록 :

func WorkflowDefaultMngForm

func WorkflowDefaultMngForm(c echo.Context) error

/////////////////////////////// Sample Form 1

func WorkflowDelProc

func WorkflowDelProc(c echo.Context) error

Workflow 삭제

func WorkflowDemoMngForm

func WorkflowDemoMngForm(c echo.Context) error

Sample form 3 : from org site.

func WorkflowExecute

func WorkflowExecute(c echo.Context) error

Workflow 실행

func WorkflowFullscreenMngForm

func WorkflowFullscreenMngForm(c echo.Context) error

Sample form 2

func WorkflowMngForm

func WorkflowMngForm(c echo.Context) error

func WorkflowRegForm

func WorkflowRegForm(c echo.Context) error

func WorkflowRegProc

func WorkflowRegProc(c echo.Context) error

Workflow 등록

func WorkflowUpdateProc

func WorkflowUpdateProc(c echo.Context) error

Workflow 수정

Types

type RespPublicIPInfo

type RespPublicIPInfo struct {
	PublicIPInfo []struct {
		PublicIp string `json:"publicIP"`
		Status   string `json:"status"`
		VmID     string `json:"id"`
		VmName   string `json:"name"`
	} `json:"vm"`
}

type SignUpForm

type SignUpForm struct {
	UserID     string `json:"userID" form:"userID" query:"userID"`
	Identifier string `json:"identifier" form:"identifier" query:"identifier"`
	Password   string `json:"password" form:"password" query:"password"`
}

type TokenDetails

type TokenDetails struct {
	AccessToken  string
	RefreshToken string
	AccessUuid   string
	RefreshUuid  string
	AtExpires    int64
	RtExpires    int64
}

Jump to

Keyboard shortcuts

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