backend/types/deployment.go
package types
import (
appsv1 "k8s.io/api/apps/v1"
)
type DeploymentsResponse struct {
Success bool `json:"success"`
Msg string `json:"msg"`
Data []appsv1.Deployment `json:"data"`
}
type DeploymentResponse struct {
Success bool `json:"success"`
Msg string `json:"msg"`
Data appsv1.Deployment `json:"data"`
}
func NewDeploymentsResponse() DeploymentsResponse {
r := DeploymentsResponse{
Success: false,
Msg: "",
Data: []appsv1.Deployment{},
}
return r
}
func NewDeploymentResponse() DeploymentResponse {
r := DeploymentResponse{
Success: false,
Msg: "",
Data: appsv1.Deployment{},
}
return r
}