Affected by GO-2022-0792
and 2 other vulnerabilities
GO-2022-0792 : Privilege Escalation in Kubernetes in github.com/kubernetes/kubernetes
GO-2022-0857 : Information Exposure in Kubernetes in github.com/kubernetes/kubernetes
GO-2022-0893 : Access Restriction Bypass in kubernetes in github.com/kubernetes/kubernetes
Discover Packages
github.com/kubernetes/kubernetes
pkg
registry
generic
package
Version:
v0.6.1
Opens a new window with list of versions in this module.
Published: Dec 9, 2014
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package generic provides a generic object store interface and a
generic label/field matching type.
FilterList filters any list object that conforms to the api conventions,
provided that 'm' works with the concrete type of list.
AttrFunc returns label and field sets for List or Watch to compare against, or an error.
Matcher can return true if an object matches the Matcher's selection
criteria.
MatcherFunc makes a matcher from the provided function. For easy definition
of matchers for testing.
type Registry interface {
List(api .Context , Matcher ) (runtime .Object , error )
Create(ctx api .Context , id string , obj runtime .Object ) error
Update(ctx api .Context , id string , obj runtime .Object ) error
Get(ctx api .Context , id string ) (runtime .Object , error )
Delete(ctx api .Context , id string ) error
Watch(ctx api .Context , m Matcher , resourceVersion string ) (watch .Interface , error )
}
Registry knows how to store & list any runtime.Object. Can be used for
any object types which don't require special features from the storage
layer.
SelectionPredicate implements a generic predicate that can be passed to
GenericRegistry's List or Watch methods. Implements the Matcher interface.
Matches returns true if the given object's labels and fields (as
returned by s.GetAttrs) match s.Label and s.Field. An error is
returned if s.GetAttrs fails.
Source Files
¶
Directories
¶
Package etcd has a generic implementation of a registry that stores things in etcd.
Package etcd has a generic implementation of a registry that stores things in etcd.
Click to show internal directories.
Click to hide internal directories.