16 Star 62 Fork 25

Gitee 极速下载 / Wayne

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Qihoo360/wayne
克隆/下载
common.go 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
package job
import (
batchv1 "k8s.io/api/batch/v1"
"github.com/Qihoo360/wayne/src/backend/resources/dataselector"
)
// implements dataselector.DataCell
type ObjectCell batchv1.Job
// implements dataselector.DataCell
func (cell ObjectCell) GetProperty(name dataselector.PropertyName) dataselector.ComparableValue {
switch name {
case dataselector.NameProperty:
cell.GetObjectKind()
return dataselector.StdComparableString(cell.ObjectMeta.Name)
case dataselector.CreationTimestampProperty:
return dataselector.StdComparableTime(cell.ObjectMeta.CreationTimestamp.Time)
case dataselector.NamespaceProperty:
return dataselector.StdComparableString(cell.ObjectMeta.Namespace)
default:
// if name is not supported then just return a constant dummy value, sort will have no effect.
return nil
}
}
TypeScript
1
https://gitee.com/mirrors/Wayne.git
git@gitee.com:mirrors/Wayne.git
mirrors
Wayne
Wayne
v1.6.1

搜索帮助