backend/types/statefulset.go
package types
import (
appsv1 "k8s.io/api/apps/v1"
)
type StatefulSetsResponse struct {
Success bool `json:"success"`
Msg string `json:"msg"`
Data []appsv1.StatefulSet `json:"data"`
}
type StatefulSetResponse struct {
Success bool `json:"success"`
Msg string `json:"msg"`
Data appsv1.StatefulSet `json:"data"`
}
func NewStatefulSetsResponse() StatefulSetsResponse {
r := StatefulSetsResponse{
Success: false,
Msg: "",
Data: []appsv1.StatefulSet{},
}
return r
}
func NewStatefulSetResponse() StatefulSetResponse {
r := StatefulSetResponse{
Success: false,
Msg: "",
Data: appsv1.StatefulSet{},
}
return r
}