add client for podTemplate resource

This commit is contained in:
Masahiro Sano
2015-05-14 22:05:03 +09:00
parent c90d381d0d
commit 3b27e73726
5 changed files with 342 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ import (
// an interface to allow mock testing.
type Interface interface {
PodsNamespacer
PodTemplatesNamespacer
ReplicationControllersNamespacer
ServicesNamespacer
EndpointsNamespacer
@@ -67,6 +68,10 @@ func (c *Client) Pods(namespace string) PodInterface {
return newPods(c, namespace)
}
func (c *Client) PodTemplates(namespace string) PodTemplateInterface {
return newPodTemplates(c, namespace)
}
func (c *Client) Services(namespace string) ServiceInterface {
return newServices(c, namespace)
}