Skip to content

Commit 541a739

Browse files
author
Jim Minter
committed
Template service broker API
1 parent f2128f5 commit 541a739

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+5029
-305
lines changed

api/protobuf-spec/github_com_openshift_origin_pkg_template_api_v1.proto

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/api/install/install.go

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,50 @@ func init() {
251251
return true, templatev1.Convert_api_TemplateList_To_v1_TemplateList(a, b, s)
252252
}
253253

254+
case *templatev1.TemplateInstance:
255+
switch b := objB.(type) {
256+
case *templateapi.TemplateInstance:
257+
return true, templatev1.Convert_v1_TemplateInstance_To_api_TemplateInstance(a, b, s)
258+
}
259+
case *templateapi.TemplateInstance:
260+
switch b := objB.(type) {
261+
case *templatev1.TemplateInstance:
262+
return true, templatev1.Convert_api_TemplateInstance_To_v1_TemplateInstance(a, b, s)
263+
}
264+
265+
case *templatev1.TemplateInstanceList:
266+
switch b := objB.(type) {
267+
case *templateapi.TemplateInstanceList:
268+
return true, templatev1.Convert_v1_TemplateInstanceList_To_api_TemplateInstanceList(a, b, s)
269+
}
270+
case *templateapi.TemplateInstanceList:
271+
switch b := objB.(type) {
272+
case *templatev1.TemplateInstanceList:
273+
return true, templatev1.Convert_api_TemplateInstanceList_To_v1_TemplateInstanceList(a, b, s)
274+
}
275+
276+
case *templatev1.BrokerTemplateInstance:
277+
switch b := objB.(type) {
278+
case *templateapi.BrokerTemplateInstance:
279+
return true, templatev1.Convert_v1_BrokerTemplateInstance_To_api_BrokerTemplateInstance(a, b, s)
280+
}
281+
case *templateapi.BrokerTemplateInstance:
282+
switch b := objB.(type) {
283+
case *templatev1.BrokerTemplateInstance:
284+
return true, templatev1.Convert_api_BrokerTemplateInstance_To_v1_BrokerTemplateInstance(a, b, s)
285+
}
286+
287+
case *templatev1.BrokerTemplateInstanceList:
288+
switch b := objB.(type) {
289+
case *templateapi.BrokerTemplateInstanceList:
290+
return true, templatev1.Convert_v1_BrokerTemplateInstanceList_To_api_BrokerTemplateInstanceList(a, b, s)
291+
}
292+
case *templateapi.BrokerTemplateInstanceList:
293+
switch b := objB.(type) {
294+
case *templatev1.BrokerTemplateInstanceList:
295+
return true, templatev1.Convert_api_BrokerTemplateInstanceList_To_v1_BrokerTemplateInstanceList(a, b, s)
296+
}
297+
254298
case *deployv1.DeploymentConfig:
255299
switch b := objB.(type) {
256300
case *deployapi.DeploymentConfig:
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/quota/api,github.com/openshift/origin/pkg/quota/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
2+
3+
package internalversion
4+
5+
import (
6+
api "github.com/openshift/origin/pkg/template/api"
7+
pkg_api "k8s.io/kubernetes/pkg/api"
8+
"k8s.io/kubernetes/pkg/api/errors"
9+
"k8s.io/kubernetes/pkg/client/cache"
10+
"k8s.io/kubernetes/pkg/labels"
11+
)
12+
13+
// BrokerTemplateInstanceLister helps list BrokerTemplateInstances.
14+
type BrokerTemplateInstanceLister interface {
15+
// List lists all BrokerTemplateInstances in the indexer.
16+
List(selector labels.Selector) (ret []*api.BrokerTemplateInstance, err error)
17+
// Get retrieves the BrokerTemplateInstance from the index for a given name.
18+
Get(name string) (*api.BrokerTemplateInstance, error)
19+
BrokerTemplateInstanceListerExpansion
20+
}
21+
22+
// brokerTemplateInstanceLister implements the BrokerTemplateInstanceLister interface.
23+
type brokerTemplateInstanceLister struct {
24+
indexer cache.Indexer
25+
}
26+
27+
// NewBrokerTemplateInstanceLister returns a new BrokerTemplateInstanceLister.
28+
func NewBrokerTemplateInstanceLister(indexer cache.Indexer) BrokerTemplateInstanceLister {
29+
return &brokerTemplateInstanceLister{indexer: indexer}
30+
}
31+
32+
// List lists all BrokerTemplateInstances in the indexer.
33+
func (s *brokerTemplateInstanceLister) List(selector labels.Selector) (ret []*api.BrokerTemplateInstance, err error) {
34+
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
35+
ret = append(ret, m.(*api.BrokerTemplateInstance))
36+
})
37+
return ret, err
38+
}
39+
40+
// Get retrieves the BrokerTemplateInstance from the index for a given name.
41+
func (s *brokerTemplateInstanceLister) Get(name string) (*api.BrokerTemplateInstance, error) {
42+
key := &api.BrokerTemplateInstance{ObjectMeta: pkg_api.ObjectMeta{Name: name}}
43+
obj, exists, err := s.indexer.Get(key)
44+
if err != nil {
45+
return nil, err
46+
}
47+
if !exists {
48+
return nil, errors.NewNotFound(api.Resource("brokertemplateinstance"), name)
49+
}
50+
return obj.(*api.BrokerTemplateInstance), nil
51+
}

pkg/client/listers/core/internalversion/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
1+
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/quota/api,github.com/openshift/origin/pkg/quota/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
22

33
package internalversion
44

pkg/client/listers/core/internalversion/clusternetwork.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
1+
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/quota/api,github.com/openshift/origin/pkg/quota/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
22

33
package internalversion
44

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/quota/api,github.com/openshift/origin/pkg/quota/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
2+
3+
package internalversion
4+
5+
import (
6+
api "github.com/openshift/origin/pkg/quota/api"
7+
pkg_api "k8s.io/kubernetes/pkg/api"
8+
"k8s.io/kubernetes/pkg/api/errors"
9+
"k8s.io/kubernetes/pkg/client/cache"
10+
"k8s.io/kubernetes/pkg/labels"
11+
)
12+
13+
// ClusterResourceQuotaLister helps list ClusterResourceQuotas.
14+
type ClusterResourceQuotaLister interface {
15+
// List lists all ClusterResourceQuotas in the indexer.
16+
List(selector labels.Selector) (ret []*api.ClusterResourceQuota, err error)
17+
// Get retrieves the ClusterResourceQuota from the index for a given name.
18+
Get(name string) (*api.ClusterResourceQuota, error)
19+
ClusterResourceQuotaListerExpansion
20+
}
21+
22+
// clusterResourceQuotaLister implements the ClusterResourceQuotaLister interface.
23+
type clusterResourceQuotaLister struct {
24+
indexer cache.Indexer
25+
}
26+
27+
// NewClusterResourceQuotaLister returns a new ClusterResourceQuotaLister.
28+
func NewClusterResourceQuotaLister(indexer cache.Indexer) ClusterResourceQuotaLister {
29+
return &clusterResourceQuotaLister{indexer: indexer}
30+
}
31+
32+
// List lists all ClusterResourceQuotas in the indexer.
33+
func (s *clusterResourceQuotaLister) List(selector labels.Selector) (ret []*api.ClusterResourceQuota, err error) {
34+
err = cache.ListAll(s.indexer, selector, func(m interface{}) {
35+
ret = append(ret, m.(*api.ClusterResourceQuota))
36+
})
37+
return ret, err
38+
}
39+
40+
// Get retrieves the ClusterResourceQuota from the index for a given name.
41+
func (s *clusterResourceQuotaLister) Get(name string) (*api.ClusterResourceQuota, error) {
42+
key := &api.ClusterResourceQuota{ObjectMeta: pkg_api.ObjectMeta{Name: name}}
43+
obj, exists, err := s.indexer.Get(key)
44+
if err != nil {
45+
return nil, err
46+
}
47+
if !exists {
48+
return nil, errors.NewNotFound(api.Resource("clusterresourcequota"), name)
49+
}
50+
return obj.(*api.ClusterResourceQuota), nil
51+
}

pkg/client/listers/core/internalversion/deploymentconfig.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
1+
// This file was automatically generated by lister-gen with arguments: --input-dirs=[github.com/openshift/origin/pkg/authorization/api,github.com/openshift/origin/pkg/authorization/api/v1,github.com/openshift/origin/pkg/build/api,github.com/openshift/origin/pkg/build/api/v1,github.com/openshift/origin/pkg/deploy/api,github.com/openshift/origin/pkg/deploy/api/v1,github.com/openshift/origin/pkg/image/api,github.com/openshift/origin/pkg/image/api/v1,github.com/openshift/origin/pkg/oauth/api,github.com/openshift/origin/pkg/oauth/api/v1,github.com/openshift/origin/pkg/project/api,github.com/openshift/origin/pkg/project/api/v1,github.com/openshift/origin/pkg/quota/api,github.com/openshift/origin/pkg/quota/api/v1,github.com/openshift/origin/pkg/route/api,github.com/openshift/origin/pkg/route/api/v1,github.com/openshift/origin/pkg/sdn/api,github.com/openshift/origin/pkg/sdn/api/v1,github.com/openshift/origin/pkg/template/api,github.com/openshift/origin/pkg/template/api/v1,github.com/openshift/origin/pkg/user/api,github.com/openshift/origin/pkg/user/api/v1] --logtostderr=true
22

33
package internalversion
44

0 commit comments

Comments
 (0)