(name string, namespace string)
| 29 | } |
| 30 | |
| 31 | func (c *CachedFunctionQuery) GetAnnotations(name string, namespace string) (annotations map[string]string, err error) { |
| 32 | res, err := c.Get(name, namespace) |
| 33 | if err != nil { |
| 34 | return c.emptyAnnotations, err |
| 35 | } |
| 36 | |
| 37 | if res.Annotations == nil { |
| 38 | return c.emptyAnnotations, nil |
| 39 | } |
| 40 | return *res.Annotations, nil |
| 41 | } |
| 42 | |
| 43 | func (c *CachedFunctionQuery) Get(fn string, ns string) (ServiceQueryResponse, error) { |
| 44 |