Documentation ¶
Overview ¶
Copyright 2021 KubeCube Authors
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
const ( Labels = "labels" Annotations = "annotations" )
Variables ¶
This section is empty.
Functions ¶
func GetDeepFloat64 ¶
get float64 value by metadata.xx.xx.xx, multi level key
func GetDeepValue ¶
get value by metadata.xx.xx.xx, multi level key
Types ¶
type Access ¶
type Access struct { Cluster string Name string Operator string APIGroup string Namespace string Resource string ResourceRequest bool }
func NewSimpleAccess ¶
type Filter ¶
type Filter struct { Exact map[string]string Fuzzy map[string]string Limit int Offset int SortName string SortOrder string SortFunc string }
func (*Filter) FilterResult ¶
filter result by exact/fuzzy match, sort, page
func (*Filter) FilterResultToMap ¶
filter result by exact/fuzzy match, sort, page
type K8sJson ¶
type K8sJson = map[string]interface{}
func GetDeepMap ¶
get map by spec.selector.matchLabels={xx= xx}
type K8sJsonArr ¶
type K8sJsonArr = []interface{}
func GetDeepArray ¶
func GetDeepArray(item interface{}, keyStr string) (value K8sJsonArr)
get metadata.ownerReference[0]