示例#1
0
// makePodKey constructs etcd paths to pod items enforcing namespace rules.
func MakePodKey(ctx api.Context, id string) (string, error) {
	return etcd.MakeEtcdItemKey(ctx, PodPath, id)
}
示例#2
0
文件: etcd.go 项目: Tlacenka/origin
func makeRouteKey(ctx kapi.Context, id string) (string, error) {
	return kubeetcd.MakeEtcdItemKey(ctx, RoutePath, id)
}