handler

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 CommonHttp(url string, s interface{}, httpMethod string, auth string) ([]byte, error)

func CommonHttpCaller

func CommonHttpCaller(callMethod string, targetFwUrl string, endPoint string, commonRequest *CommonRequest, auth string) ([]byte, error)

func CommonHttpCallerWithoutToken

func CommonHttpCallerWithoutToken(callMethod string, targetFwUrl string, endPoint string, commonRequest *CommonRequest) ([]byte, error)

func CopyStruct

func CopyStruct(source interface{}, target interface{}) error

CopyStruct 함수는 source 구조체의 데이터를 target 구조체로 복사합니다. 이 함수는 source와 target이 모두 구조체여야 하며, 동일한 이름과 타입을 가진 필드만 복사됩니다.

Parameters:

  • source: 원본 구조체 데이터 (interface{})
  • target: 변환할 구조체를 가리키는 포인터 (interface{})

func CreateProject

func CreateProject(tx *pop.Connection, s *models.Project) (*models.Project, error)

func CreateRole

func CreateRole(tx *pop.Connection, s *models.Role) (*models.Role, error)

func CreateWPmapping

func CreateWPmapping(tx *pop.Connection, s *models.WorkspaceProjectMapping) (*models.WorkspaceProjectMapping, error)

func CreateWorkspace

func CreateWorkspace(tx *pop.Connection, s *models.Workspace) (*models.Workspace, error)

func CreateWorkspaceUserRoleMapping

func CreateWorkspaceUserRoleMapping(tx *pop.Connection, s *models.WorkspaceUserRoleMapping) (*models.WorkspaceUserRoleMapping, error)

func DeleteProject

func DeleteProject(tx *pop.Connection, s *models.Project) error

func DeleteRole

func DeleteRole(tx *pop.Connection, s *models.Role) error

func DeleteWPmapping

func DeleteWPmapping(tx *pop.Connection, s *models.WorkspaceProjectMapping) error

func DeleteWorkspace

func DeleteWorkspace(tx *pop.Connection, s *models.Workspace) error

func DeleteWorkspaceUserRoleMapping

func DeleteWorkspaceUserRoleMapping(tx *pop.Connection, workspaceId string, userId string) error

func DeleteWorkspaceUserRoleMappingByRoleId added in v0.2.14

func DeleteWorkspaceUserRoleMappingByRoleId(tx *pop.Connection, roleId string) error

func GetProjectById

func GetProjectById(tx *pop.Connection, id uuid.UUID) (*models.Project, error)

func GetProjectList

func GetProjectList(tx *pop.Connection) (*models.Projects, error)

func GetRoleById

func GetRoleById(tx *pop.Connection, id uuid.UUID) (*models.Role, error)

func GetRoleByPolicyId added in v0.2.8

func GetRoleByPolicyId(tx *pop.Connection, id string) (*models.Role, error)

func GetRoleList

func GetRoleList(tx *pop.Connection) (*models.Roles, error)

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 GetWPmappingListByWorkspaceId

func GetWPmappingListByWorkspaceId(tx *pop.Connection, worksapceId uuid.UUID) (*getWPmappingListOrderbyWorkspaceResp, error)

func GetWPmappingListOrderbyWorkspace

func GetWPmappingListOrderbyWorkspace(tx *pop.Connection) (*getWPmappingListOrderbyWorkspaceResps, error)

func GetWorkspaceById

func GetWorkspaceById(tx *pop.Connection, id uuid.UUID) (*models.Workspace, error)

func GetWorkspaceList

func GetWorkspaceList(tx *pop.Connection) (*models.Workspaces, error)

func GetWorkspaceUserRoleMappingById

func GetWorkspaceUserRoleMappingById(tx *pop.Connection, workspaceId string, userId string) (*models.Role, error)

func GetWorkspaceUserRoleMappingListByUserId

func GetWorkspaceUserRoleMappingListByUserId(tx *pop.Connection, userId string) (*[]GetWorkspaceUserRoleMappingListByUserIdResponse, error)

func GetWorkspaceUserRoleMappingListOrderbyWorkspace

func GetWorkspaceUserRoleMappingListOrderbyWorkspace(tx *pop.Connection) (*[]GetWorkspaceUserRoleMappingListResponse, error)

func IsErrorContainsThen

func IsErrorContainsThen(err error, containString string, errmsg string) error

func IsExistProjectByNsId added in v0.2.8

func IsExistProjectByNsId(tx *pop.Connection, nsid string) (*models.Project, error)

func IsSlicesContains

func IsSlicesContains(arr []string, target string) bool

IsSlicesContains 함수는 배열 string arr에 target string이 존재하는지 확인합니다.

func JoinErrors

func JoinErrors(errs []error, separator string) string

func SearchProjectsByName

func SearchProjectsByName(tx *pop.Connection, name string, option string) (*models.Projects, error)

func SearchRolesByName

func SearchRolesByName(tx *pop.Connection, name string, option string) (*models.Roles, error)

func SearchWorkspacesByName

func SearchWorkspacesByName(tx *pop.Connection, name string, option string) (*models.Workspaces, error)

func UpdateProject

func UpdateProject(tx *pop.Connection, s *models.Project) (*models.Project, error)

func UpdateRole

func UpdateRole(tx *pop.Connection, s *models.Role) (*models.Role, error)

func UpdateWPmappings

func UpdateWPmappings(tx *pop.Connection, worksapceId string, projectIds []string) (*getWPmappingListOrderbyWorkspaceResp, error)

func UpdateWorkspace

func UpdateWorkspace(tx *pop.Connection, s *models.Workspace) (*models.Workspace, error)

Types

type CommonRequest

type CommonRequest struct {
	PathParams  map[string]string `json:"pathParams"`
	QueryParams map[string]string `json:"queryParams"`
	Request     interface{}       `json:"request"`
}

type GetWorkspaceUserRoleMappingListByUserIdResponse

type GetWorkspaceUserRoleMappingListByUserIdResponse struct {
	Role models.Role                          `json:"role"`
	WPM  getWPmappingListOrderbyWorkspaceResp `json:"workspaceProject"`
}

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)

type WebStatus

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

Directories

Path Synopsis
aws

Jump to

Keyboard shortcuts

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