Documentation
¶
Index ¶
- Variables
- func CommonHttp(url string, s interface{}, httpMethod string, auth string) ([]byte, error)
- func CommonHttpCaller(callMethod string, targetFwUrl string, endPoint string, ...) ([]byte, error)
- func CommonHttpCallerWithoutToken(callMethod string, targetFwUrl string, endPoint string, ...) ([]byte, error)
- func CopyStruct(source interface{}, target interface{}) error
- func CreateProject(tx *pop.Connection, s *models.Project) (*models.Project, error)
- func CreateRole(tx *pop.Connection, s *models.Role) (*models.Role, error)
- func CreateWPmapping(tx *pop.Connection, s *models.WorkspaceProjectMapping) (*models.WorkspaceProjectMapping, error)
- func CreateWorkspace(tx *pop.Connection, s *models.Workspace) (*models.Workspace, error)
- func CreateWorkspaceUserRoleMapping(tx *pop.Connection, s *models.WorkspaceUserRoleMapping) (*models.WorkspaceUserRoleMapping, error)
- func DeleteProject(tx *pop.Connection, s *models.Project) error
- func DeleteRole(tx *pop.Connection, s *models.Role) error
- func DeleteWPmapping(tx *pop.Connection, s *models.WorkspaceProjectMapping) error
- func DeleteWorkspace(tx *pop.Connection, s *models.Workspace) error
- func DeleteWorkspaceUserRoleMapping(tx *pop.Connection, workspaceId string, userId string) error
- func DeleteWorkspaceUserRoleMappingByRoleId(tx *pop.Connection, roleId string) error
- func GetProjectById(tx *pop.Connection, id uuid.UUID) (*models.Project, error)
- func GetProjectList(tx *pop.Connection) (*models.Projects, error)
- func GetRoleById(tx *pop.Connection, id uuid.UUID) (*models.Role, error)
- func GetRoleByPolicyId(tx *pop.Connection, id string) (*models.Role, error)
- func GetRoleList(tx *pop.Connection) (*models.Roles, error)
- func GetWPmappingById(tx *pop.Connection, workspaceId string, projectId string) (*models.WorkspaceProjectMapping, error)
- func GetWPmappingByProjectId(tx *pop.Connection, projectId string) (*models.WorkspaceProjectMapping, error)
- func GetWPmappingList(tx *pop.Connection) (*models.WorkspaceProjectMappings, error)
- func GetWPmappingListByWorkspaceId(tx *pop.Connection, worksapceId uuid.UUID) (*getWPmappingListOrderbyWorkspaceResp, error)
- func GetWPmappingListOrderbyWorkspace(tx *pop.Connection) (*getWPmappingListOrderbyWorkspaceResps, error)
- func GetWorkspaceById(tx *pop.Connection, id uuid.UUID) (*models.Workspace, error)
- func GetWorkspaceList(tx *pop.Connection) (*models.Workspaces, error)
- func GetWorkspaceUserRoleMappingById(tx *pop.Connection, workspaceId string, userId string) (*models.Role, error)
- func GetWorkspaceUserRoleMappingListByUserId(tx *pop.Connection, userId string) (*[]GetWorkspaceUserRoleMappingListByUserIdResponse, error)
- func GetWorkspaceUserRoleMappingListOrderbyWorkspace(tx *pop.Connection) (*[]GetWorkspaceUserRoleMappingListResponse, error)
- func IsErrorContainsThen(err error, containString string, errmsg string) error
- func IsExistProjectByNsId(tx *pop.Connection, nsid string) (*models.Project, error)
- func IsSlicesContains(arr []string, target string) bool
- func JoinErrors(errs []error, separator string) string
- func SearchProjectsByName(tx *pop.Connection, name string, option string) (*models.Projects, error)
- func SearchRolesByName(tx *pop.Connection, name string, option string) (*models.Roles, error)
- func SearchWorkspacesByName(tx *pop.Connection, name string, option string) (*models.Workspaces, error)
- func UpdateProject(tx *pop.Connection, s *models.Project) (*models.Project, error)
- func UpdateRole(tx *pop.Connection, s *models.Role) (*models.Role, error)
- func UpdateWPmappings(tx *pop.Connection, worksapceId string, projectIds []string) (*getWPmappingListOrderbyWorkspaceResp, error)
- func UpdateWorkspace(tx *pop.Connection, s *models.Workspace) (*models.Workspace, error)
- type CommonRequest
- type GetWorkspaceUserRoleMappingListByUserIdResponse
- type GetWorkspaceUserRoleMappingListResponse
- type WebStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var KEYCLOAK_CLIENT = os.Getenv("KEYCLOAK_CLIENT")
View Source
var KEYCLOAK_CLIENT_SECRET = os.Getenv("KEYCLOAK_CLIENT_SECRET")
View Source
var KEYCLOAK_HOST = os.Getenv("KEYCLOAK_HOST")
View Source
var KEYCLOAK_REALM = os.Getenv("KEYCLOAK_REALM")
View Source
var MCINFRAMANAGER = os.Getenv("MCINFRAMANAGER")
View Source
var MCINFRAMANAGER_APIPASSWORD = os.Getenv("MCINFRAMANAGER_APIPASSWORD")
View Source
var MCINFRAMANAGER_APIUSERNAME = os.Getenv("MCINFRAMANAGER_APIUSERNAME")
View Source
var USE_TICKET_VALID = os.Getenv("USE_TICKET_VALID") // 임시 티켓 처리 사용 유무
Functions ¶
func CommonHttp ¶
func CommonHttpCaller ¶
func CopyStruct ¶
func CopyStruct(source interface{}, target interface{}) error
CopyStruct 함수는 source 구조체의 데이터를 target 구조체로 복사합니다. 이 함수는 source와 target이 모두 구조체여야 하며, 동일한 이름과 타입을 가진 필드만 복사됩니다.
Parameters:
- source: 원본 구조체 데이터 (interface{})
- target: 변환할 구조체를 가리키는 포인터 (interface{})
func CreateProject ¶
func CreateWPmapping ¶
func CreateWPmapping(tx *pop.Connection, s *models.WorkspaceProjectMapping) (*models.WorkspaceProjectMapping, error)
func CreateWorkspace ¶
func CreateWorkspaceUserRoleMapping ¶
func CreateWorkspaceUserRoleMapping(tx *pop.Connection, s *models.WorkspaceUserRoleMapping) (*models.WorkspaceUserRoleMapping, error)
func DeleteProject ¶
func DeleteRole ¶
func DeleteWPmapping ¶
func DeleteWPmapping(tx *pop.Connection, s *models.WorkspaceProjectMapping) error
func DeleteWorkspace ¶
func DeleteWorkspaceUserRoleMappingByRoleId ¶ added in v0.2.14
func GetProjectById ¶
func GetProjectList ¶
func GetRoleByPolicyId ¶ added in v0.2.8
func GetRoleList ¶
func GetWPmappingById ¶
func GetWPmappingById(tx *pop.Connection, workspaceId string, projectId string) (*models.WorkspaceProjectMapping, error)
func GetWPmappingByProjectId ¶
func GetWPmappingByProjectId(tx *pop.Connection, projectId string) (*models.WorkspaceProjectMapping, error)
func GetWPmappingList ¶
func GetWPmappingList(tx *pop.Connection) (*models.WorkspaceProjectMappings, error)
func GetWPmappingListOrderbyWorkspace ¶
func GetWPmappingListOrderbyWorkspace(tx *pop.Connection) (*getWPmappingListOrderbyWorkspaceResps, error)
func GetWorkspaceById ¶
func GetWorkspaceList ¶
func GetWorkspaceList(tx *pop.Connection) (*models.Workspaces, error)
func GetWorkspaceUserRoleMappingListByUserId ¶
func GetWorkspaceUserRoleMappingListByUserId(tx *pop.Connection, userId string) (*[]GetWorkspaceUserRoleMappingListByUserIdResponse, error)
func GetWorkspaceUserRoleMappingListOrderbyWorkspace ¶
func GetWorkspaceUserRoleMappingListOrderbyWorkspace(tx *pop.Connection) (*[]GetWorkspaceUserRoleMappingListResponse, error)
func IsErrorContainsThen ¶
func IsExistProjectByNsId ¶ added in v0.2.8
func IsSlicesContains ¶
IsSlicesContains 함수는 배열 string arr에 target string이 존재하는지 확인합니다.
func JoinErrors ¶
func SearchProjectsByName ¶
func SearchRolesByName ¶
func SearchWorkspacesByName ¶
func SearchWorkspacesByName(tx *pop.Connection, name string, option string) (*models.Workspaces, error)
func UpdateProject ¶
func UpdateWPmappings ¶
Types ¶
type CommonRequest ¶
type GetWorkspaceUserRoleMappingListResponse ¶
type GetWorkspaceUserRoleMappingListResponse struct { Workspace models.Workspace `json:"workspace"` UserInfo []userinfo `json:"userinfo"` }
func GetWorkspaceUserRoleMappingListByWorkspaceId ¶
func GetWorkspaceUserRoleMappingListByWorkspaceId(tx *pop.Connection, workspaceId string) (*GetWorkspaceUserRoleMappingListResponse, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.