Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ConfigMapGVR = corev1.SchemeGroupVersion.WithResource("configmaps")
ConfigMapGVR is the GroupVersionResource for v1 ConfigMaps.
var FakeCreationTimestamp = metav1.NewTime(time.Unix(1601548012, 0))
FakeCreationTimestamp is a dummy creation timestamp for test objects.
Functions ¶
func NewConfigMap ¶
NewConfigMap returns a ConfigMap with the given namespace, name, and data.
func NewUnstructuredConfigMap ¶
func NewUnstructuredConfigMap(ns, name string, data map[string]string) *unstructured.Unstructured
NewUnstructuredConfigMap returns an unstructured.Unstructured object representing a ConfigMap with the given namespace, name, and data.
func SortRuntimeObjects ¶
SortRuntimeObjects sorts the given objects by their namespace and name.
Types ¶
type ObjectMap ¶
ObjectMap represents a map of namespaces to a list of objects.
func (ObjectMap) KeysForNamespace ¶
KeysForNamespace returns the namespace/name pairs for each object in the given namespace.
func (ObjectMap) Namespaces ¶
Namespaces returns all the namespaces in the map.
type SimpleMultiIndexer ¶
type SimpleMultiIndexer struct {
// contains filtered or unexported fields
}
SimpleMultiIndexer is a simple map of namespace names to a cache.Indexer instance. This satisfies the MultiIndexer interface.
func NewMultiIndexer ¶
func NewMultiIndexer(objects ObjectMap) *SimpleMultiIndexer
NewMultiIndexer returns a new SimpleMultiIndexer with indexers containing the data from the given ObjectMap.
func (*SimpleMultiIndexer) GetIndexers ¶
func (i *SimpleMultiIndexer) GetIndexers() map[string]cache.Indexer
GetIndexers returns the namespace to indexer map.