sample-controller/docs/controller-client-go.md: Use italics font on package name

Kubernetes-commit: 79a7caeb76ea0b04bb02e250d05040ab0d8bc2c1
This commit is contained in:
Yuanhao Hsueh 2021-10-21 15:38:28 +08:00 committed by Kubernetes Publisher
parent 3927bee026
commit a67d4807c7

View File

@ -32,7 +32,7 @@ is to save the object for later retrieval, and to invoke our controller passing
It is defined in [type *Indexer* inside package *cache*](https://github.com/kubernetes/client-go/blob/master/tools/cache/index.go). A typical indexing use-case is to create an index based on object labels. Indexer can
maintain indexes based on several indexing functions.
Indexer uses a thread-safe data store to store objects and their keys.
There is a default function named *MetaNamespaceKeyFunc* defined in [type Store inside package cache](https://github.com/kubernetes/client-go/blob/master/tools/cache/store.go)
There is a default function named *MetaNamespaceKeyFunc* defined in [type *Store* inside package *cache*](https://github.com/kubernetes/client-go/blob/master/tools/cache/store.go)
that generates an objects key as `<namespace>/<name>` combination for that object.