1. Remove ks-iam standalone binary, move it to ks-apiserver 2. Generate all devops apis inside kubesphere repository, no need to import s2ioperator. 3. Reorganize ldap code, make it more flexible to use.
32 lines
691 B
Go
32 lines
691 B
Go
package query
|
|
|
|
type Field string
|
|
|
|
const (
|
|
FieldName = "name"
|
|
FieldCreationTimeStamp = "creationTimestamp"
|
|
FieldLastUpdateTimestamp = "lastUpdateTimestamp"
|
|
FieldLabel = "label"
|
|
FieldNamespace = "namespace"
|
|
FieldStatus = "status"
|
|
FieldApplication = "application"
|
|
FieldOwner = "owner"
|
|
FieldOwnerKind = "ownerKind"
|
|
)
|
|
|
|
var SortableFields = []Field{
|
|
FieldCreationTimeStamp,
|
|
FieldLastUpdateTimestamp,
|
|
FieldName,
|
|
}
|
|
|
|
// Field contains all the query field that can be compared
|
|
var ComparableFields = []Field{
|
|
FieldName,
|
|
FieldNamespace,
|
|
FieldStatus,
|
|
FieldApplication,
|
|
FieldOwner,
|
|
FieldOwnerKind,
|
|
}
|