model

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

README

DB model

  • 대상 system에 따라 folder 로 분류 : dragonfly, ladybug, spider, tumblebug

  • 기본 struct : 업무Info 등

  • 조회(request용) struct : 업무reqInfo 등 기본 struct에서 요청에 필요한 것들만 추출

  • list의 경우 [] 를 사용한다.

  • 첫번째 자리 : 변수명

  • 두번째 자리 : 자료형

  • 세번째 자리 : json객체명 type InspectResourcesResponse struct { ResourcesOnCsp ResourcesOnCsp json:"resourcesOnCsp" ResourcesOnSpider ResourcesOnSpider json:"resourcesOnSpider" ResourcesOnTumblebug []ResourcesOnTumblebug json:"resourcesOnTumblebug" }

. Renderling 할 때에는 변수명을 사용하나 axios 등 통신을 할 경우에는 json객체명을 사용

. 변수명의 경우 첫글자 대문자 . json 인 경우 첫글자 소문자

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudConnectionInfo

type CloudConnectionInfo struct {
	ID             string `json:"id"`
	ConfigName     string `json:"ConfigName"`
	ProviderName   string `json:"ProviderName"`
	DriverName     string `json:"DriverName"`
	CredentialName string `json:"CredentialName"`
	RegionName     string `json:"RegionName"`
	Description    string `json:"description"`
}

ConnectionConfigData와 뭐가 다른건지... TODO : ConnectionConfigData와 합칠 수 있는지 검토할 것 --> 사용하지 않는것으로 보임

type CloudConnectionInfos

type CloudConnectionInfos []CloudConnectionInfo

type ErrorInfo

type ErrorInfo struct {
	Message string `json:"message"`
}

client와 서버가 통신하면서 사용자정보로 이용할 객체 최초로그인 시 Username set. page redirect 될 때 default namespace 설정 - namespace가 없으면 새로 생성 - namespace가 1개면 default로 set - namespace가 2개 이상이면 화면에서 default set 하도록

type LoginInfo

type LoginInfo struct {
	UserID               string `json:"UserID"`
	Username             string `json:"Username"`
	DefaultNameSpaceID   string `json:"DefaultNameSpaceID"`
	DefaultNameSpaceName string `json:"DefaultNameSpaceName"`
	AccessToken          string `json:"AccessToken"`
}

client와 서버가 통신하면서 사용자정보로 이용할 객체 최초로그인 시 Username set. page redirect 될 때 default namespace 설정 - namespace가 없으면 새로 생성 - namespace가 1개면 default로 set - namespace가 2개 이상이면 화면에서 default set 하도록

type McisRequest

type McisRequest struct {
	VmSpec           []string `form:"vmspec"`
	NameSpace        string   `form:"namespace"`
	McisName         string   `form:"mcis_name"`
	VmName           []string `form:"vmName"`
	Provider         []string `form:"provider"`
	SecurityGroupIds []string `form:"sg"`
}

사용하지 않는것으로 보임

type ReqInfo

type ReqInfo struct {
	UserID   string `json:"userid"`
	UserName string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

사용하지 않는것으로 보임

type ResultInfo

type ResultInfo struct {
	Message string `json:"message"`
	Result  string `json:"result"`
}

호출 후 결과값을 return하기 위한 객체 Create, Delete 등의 결과로 message만 넘기는 경우가 있어 필요함.

type User

type User struct {
	//user(username, password, email)
	UserID   string `json:"userid"`
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

사용하지 않는것으로 보임

type Users

type Users []User

type WebStatus

type WebStatus struct {
	StatusCode int    `json:"code"`
	Message    string `json:"message"`
}

호출 후 상태값을 return하기 위한 객체

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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