devlopment branch (#1736)
This commit is contained in:
19
pkg/models/resources/v1alpha3/interface.go
Normal file
19
pkg/models/resources/v1alpha3/interface.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package v1alpha3
|
||||
|
||||
import (
|
||||
"kubesphere.io/kubesphere/pkg/apiserver/query"
|
||||
)
|
||||
|
||||
type Interface interface {
|
||||
// Get retrieves a single object by its namespace and name
|
||||
Get(namespace, name string) (interface{}, error)
|
||||
|
||||
// List retrieves a collection of objects matches given query
|
||||
List(namespace string) ([]interface{}, error)
|
||||
|
||||
//
|
||||
Filter(item interface{}, filter query.Filter) bool
|
||||
|
||||
//
|
||||
Compare(left interface{}, right interface{}, field query.Field) bool
|
||||
}
|
||||
Reference in New Issue
Block a user