Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultJSONPathParser = NewJSONPathParser()
Functions ¶
func RelaxedJSONPathExpression ¶
copied from kubectl
Types ¶
type ESImporter ¶ added in v0.3.1
type ESImporter struct {
// contains filtered or unexported fields
}
func NewESImporter ¶ added in v0.3.1
func NewESImporter(esClient *elasticsearch.Storage, cluster string, gvr schema.GroupVersionResource) *ESImporter
type ESListerGetter ¶ added in v0.3.0
type ESListerGetter struct {
// contains filtered or unexported fields
}
func NewESListerGetter ¶ added in v0.3.0
func NewESListerGetter(cluster string, esClient *elasticsearch.Storage, gvr schema.GroupVersionResource) *ESListerGetter
func (*ESListerGetter) GetByKey ¶ added in v0.3.0
func (e *ESListerGetter) GetByKey(key string) (value interface{}, exists bool, err error)
func (*ESListerGetter) ListKeys ¶ added in v0.3.0
func (e *ESListerGetter) ListKeys() []string
type FieldsSelector ¶
func (FieldsSelector) Empty ¶
func (fs FieldsSelector) Empty() bool
type JSONPathFields ¶
type JSONPathFields struct {
// contains filtered or unexported fields
}
func NewJSONPathFields ¶
func NewJSONPathFields(jpParser *JSONPathParser, data interface{}) *JSONPathFields
func (JSONPathFields) Get ¶
func (fs JSONPathFields) Get(fieldPath string) (value string)
func (JSONPathFields) Has ¶
func (fs JSONPathFields) Has(fieldPath string) (exists bool)
type JSONPathParser ¶
func NewJSONPathParser ¶
func NewJSONPathParser() *JSONPathParser
type MultiSelectors ¶
type MultiSelectors []Selector
func (MultiSelectors) ApplyToList ¶
func (m MultiSelectors) ApplyToList(options *metav1.ListOptions)
func (MultiSelectors) Matches ¶
func (m MultiSelectors) Matches(obj Selectable) bool
func (MultiSelectors) Predicate ¶
func (m MultiSelectors) Predicate(obj interface{}) bool
type Selector ¶
type Selector struct {
Label labels.Selector
Field FieldsSelector
}
func (Selector) Matches ¶
func (s Selector) Matches(obj Selectable) bool
func (Selector) ServerSupported ¶
Click to show internal directories.
Click to hide internal directories.