summary history files

backend/types/configmap.go
package types

import corev1 "k8s.io/api/core/v1"

type ConfigMapsResponse struct {
	Success bool               `json:"success"`
	Msg     string             `json:"msg"`
	Data    []corev1.ConfigMap `json:"data"`
}

type ConfigMapResponse struct {
	Success bool             `json:"success"`
	Msg     string           `json:"msg"`
	Data    corev1.ConfigMap `json:"data"`
}

func NewConfigMapsResponse() ConfigMapsResponse {
	r := ConfigMapsResponse{
		Success: false,
		Msg:     "",
		Data:    []corev1.ConfigMap{},
	}
	return r
}

func NewConfigMapResponse() ConfigMapResponse {
	r := ConfigMapResponse{
		Success: false,
		Msg:     "",
		Data:    corev1.ConfigMap{},
	}
	return r
}

type DescribeConfigMapResponse struct {
	Success bool   `json:"success"`
	Msg     string `json:"msg"`
	Data    string `json:"data"`
}

func NewDescribeConfigMapResponse() DescribeConfigMapResponse {
	return DescribeConfigMapResponse{}
}