Suffix appends segments to the end of the path. These items will be placed after the prefix and optional Namespace, Resource, or Name sections.
(segments ...string)
| 156 | // Suffix appends segments to the end of the path. These items will be placed after the prefix and optional |
| 157 | // Namespace, Resource, or Name sections. |
| 158 | func (r *Request) Suffix(segments ...string) *Request { |
| 159 | if r.err != nil { |
| 160 | return r |
| 161 | } |
| 162 | r.subpath = path.Join(r.subpath, path.Join(segments...)) |
| 163 | return r |
| 164 | } |
| 165 | |
| 166 | // Resource sets the resource to access (<resource>/[ns/<namespace>/]<name>) |
| 167 | func (r *Request) Resource(resource string) *Request { |
no outgoing calls