package testapi
import "k8s.io/kubernetes/pkg/expapi/testapi"
Index ¶
- func ResourcePath(resource, namespace, name string) string
- func ResourcePathWithPrefix(prefix, resource, namespace, name string) string
Functions ¶
func ResourcePath ¶
Returns the appropriate path for the given resource, namespace and name. For example, this is of the form: /experimental/v1/namespaces/foo/pods/pod0 for v1.
func ResourcePathWithPrefix ¶
Returns the appropriate path for the given prefix (watch, proxy, redirect, etc), resource, namespace and name. For example, this is of the form: /experimental/v1/watch/namespaces/foo/pods/pod0 for v1.
Source Files ¶
testapi.go
- Version
- v1.1.0-alpha.1
- Published
- Aug 28, 2015
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 2 minutes ago –
Tools for package owners.