forked from openshift/origin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
register.go
33 lines (29 loc) · 1.07 KB
/
register.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package v1
import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
_ "github.com/openshift/origin/pkg/image/api/docker10"
_ "github.com/openshift/origin/pkg/image/api/dockerpre012"
)
func init() {
api.Scheme.AddKnownTypes("v1",
&Image{},
&ImageList{},
&ImageStream{},
&ImageStreamList{},
&ImageStreamMapping{},
&ImageStreamTag{},
&ImageStreamImage{},
)
// Legacy names are supported
api.Scheme.AddKnownTypeWithName("v1", "ImageRepository", &ImageStream{})
api.Scheme.AddKnownTypeWithName("v1", "ImageRepositoryList", &ImageStreamList{})
api.Scheme.AddKnownTypeWithName("v1", "ImageRepositoryMapping", &ImageStreamMapping{})
api.Scheme.AddKnownTypeWithName("v1", "ImageRepositoryTag", &ImageStreamTag{})
api.Scheme.AddKnownTypeWithName("v1", "ImageRepositoryImage", &ImageStreamImage{})
}
func (*Image) IsAnAPIObject() {}
func (*ImageList) IsAnAPIObject() {}
func (*ImageStream) IsAnAPIObject() {}
func (*ImageStreamList) IsAnAPIObject() {}
func (*ImageStreamMapping) IsAnAPIObject() {}
func (*ImageStreamTag) IsAnAPIObject() {}