Documentation
¶
Index ¶
- func ConvertToCloudAccountList(accounts []*model.Account) []response.CloudAccount
- func ConvertToClusterTags(tags []model.ClusterTag) map[string]map[string]string
- func ConvertToClusterThumbList(clusters []model.Cluster, countMap map[string]int64, ...) []response.ClusterThumb
- func ConvertToClusterThumbListWithTag(clusters []model.Cluster, tags map[string]map[string]string) []response.ClusterThumbWithTag
- func ConvertToCustomClusterDetail(cluster *model.Cluster) *response.CustomClusterResponse
- func ConvertToCustomInstanceList(instances []model.Instance) []response.CustomClusterInstance
- func ConvertToInstanceDetail(ctx context.Context, instance *model.Instance) (*response.InstanceDetail, error)
- func ConvertToInstanceThumbList(ctx context.Context, instances []model.Instance, clusters []model.Cluster) []response.InstanceThumb
- func ConvertToInstanceUsageList(ctx context.Context, instances []model.Instance) []response.InstanceUsage
- func ConvertToOrgInfo(org *model.Org) response.OrgInfo
- func ConvertToReadableStr(userType int8) string
- func ConvertToTaskDetail(instances []model.Instance, task *model.Task) *response.TaskDetailResponse
- func ConvertToTaskDetailList(ctx context.Context, tasks []model.Task) ([]*response.TaskDetailResponse, error)
- func ConvertToTaskThumbList(tasks []model.Task) []response.TaskThumb
- func ConvertToUserThumbList(users []model.User) []response.UserThumb
- func ConvertUserTypeToInt(userType string) int8
- func ExtractTaskInfo(task *model.Task) model.TaskInfo
- func GetInstanceTypeDesc(cluster *model.Cluster) string
- func GetPagerParamFromQuery(c *gin.Context) (pageNumber int, pageSize int)
- func GetUserClaims(ctx *gin.Context) *authorization.CustomClaims
- func GetUserToken(c *gin.Context) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToCloudAccountList ¶
func ConvertToCloudAccountList(accounts []*model.Account) []response.CloudAccount
ConvertToCloudAccountList convert to account list display format
func ConvertToClusterTags ¶ added in v0.1.5
func ConvertToClusterTags(tags []model.ClusterTag) map[string]map[string]string
func ConvertToClusterThumbListWithTag ¶ added in v0.1.5
func ConvertToCustomClusterDetail ¶ added in v0.4.0
func ConvertToCustomClusterDetail(cluster *model.Cluster) *response.CustomClusterResponse
func ConvertToCustomInstanceList ¶ added in v0.4.0
func ConvertToCustomInstanceList(instances []model.Instance) []response.CustomClusterInstance
func ConvertToInstanceDetail ¶
func ConvertToReadableStr ¶
func ConvertToTaskDetail ¶
func ConvertToTaskDetailList ¶
func ConvertUserTypeToInt ¶ added in v0.5.1
func GetInstanceTypeDesc ¶ added in v0.5.0
func GetPagerParamFromQuery ¶ added in v0.2.0
func GetUserClaims ¶
func GetUserClaims(ctx *gin.Context) *authorization.CustomClaims
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.