Documentation ¶
Index ¶
Constants ¶
View Source
const ( Labels = "labels" Annotations = "annotations" )
Variables ¶
This section is empty.
Functions ¶
func GetDeepFloat64 ¶
GetDeepFloat64 get float64 value by metadata.xx.xx.xx, multi level key
func GetDeepValue ¶
GetDeepValue get value by metadata.xx.xx.xx, multi level key
Types ¶
type ConverterContext ¶
type ConverterContext struct { EnableConvert bool RawGvr *schema.GroupVersionResource ConvertedGvr *schema.GroupVersionResource Converter *conversion.VersionConverter }
type Filter ¶
type Filter struct { Exact map[string]sets.String Fuzzy map[string][]string Limit int Offset int SortName string SortOrder string SortFunc string EnableFilter bool // ConverterContext holds methods to convert objects ConverterContext }
Filter is the filter condition
func (*Filter) ConvertItems ¶
ConvertItems converts items by given version
func (*Filter) FilterResult ¶
FilterResult filter result by exact/fuzzy match, sort, page
func (*Filter) FilterResultToMap ¶
FilterResultToMap filter result by exact/fuzzy match, sort, page
type K8sJson ¶
type K8sJson = map[string]interface{}
func GetDeepMap ¶
GetDeepMap get map by spec.selector.matchLabels={xx= xx}
type K8sJsonArr ¶
type K8sJsonArr = []interface{}
func GetDeepArray ¶
func GetDeepArray(item interface{}, keyStr string) (value K8sJsonArr)
GetDeepArray get metadata.ownerReference[0]
Click to show internal directories.
Click to hide internal directories.