Files
cloudpods/pkg/scheduler/api/cleanup.go
T
2018-07-30 11:18:02 +08:00

22 lines
343 B
Go

package api
import (
"github.com/bitly/go-simplejson"
)
type CleanupArgs struct {
ResType string
}
type CleanupResult struct {
}
func NewCleanupArgs(sjson *simplejson.Json) (*CleanupArgs, error) {
args := new(CleanupArgs)
if resType, ok := sjson.CheckGet("res_type"); ok {
args.ResType = resType.MustString()
}
return args, nil
}