mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 13:46:51 +08:00
23 lines
423 B
Go
23 lines
423 B
Go
package server
|
|
|
|
import (
|
|
"github.com/onepanelio/core/api"
|
|
"github.com/onepanelio/core/model"
|
|
"github.com/onepanelio/core/util"
|
|
)
|
|
|
|
var userError *util.UserError
|
|
|
|
func modelListOptions(lo *api.ListOptions) (listOptions model.ListOptions) {
|
|
if lo == nil {
|
|
listOptions = model.ListOptions{}
|
|
return
|
|
}
|
|
listOptions = model.ListOptions{
|
|
LabelSelector: lo.LabelSelector,
|
|
FieldSelector: lo.FieldSelector,
|
|
}
|
|
|
|
return
|
|
}
|