Beispiel #1
0
func TestParseCustomType(t *testing.T) {
	runtime.AddKnownTypes("", TestParseType{})
	runtime.AddKnownTypes("v1beta1", TestParseType{})
	parser := NewParser(map[string]interface{}{
		"custom": TestParseType{},
	})
	DoParseTest(t, "custom", TestParseType{
		JSONBase: api.JSONBase{APIVersion: "", ID: "my custom object", Kind: "TestParseType"},
		Data:     "test data",
	}, parser)
}
Beispiel #2
0
func init() {
	runtime.AddKnownTypes("",
		Build{},
		BuildList{},
		BuildConfig{},
		BuildConfigList{},
	)
}
Beispiel #3
0
func init() {
	runtime.AddKnownTypes("v1beta1",
		Image{},
		ImageList{},
		ImageRepository{},
		ImageRepositoryList{},
		ImageRepositoryMapping{},
	)
}
Beispiel #4
0
func init() {
	runtime.AddKnownTypes("v1beta1",
		PodList{},
		Pod{},
		ReplicationControllerList{},
		ReplicationController{},
		ServiceList{},
		Service{},
		MinionList{},
		Minion{},
		Status{},
		ServerOpList{},
		ServerOp{},
		ContainerManifestList{},
		Endpoints{},
		EndpointsList{},
		Binding{},
	)
}
Beispiel #5
0
func init() {
	runtime.AddKnownTypes("v1beta1", Config{})
}
Beispiel #6
0
func init() {
	runtime.AddKnownTypes("v1beta1", Template{})
}
Beispiel #7
0
func init() {
	runtime.AddKnownTypes("v1beta1")
}
Beispiel #8
0
func init() {
	runtime.AddKnownTypes("")
}
Beispiel #9
0
func init() {
	runtime.AddKnownTypes("", Config{})
}
Beispiel #10
0
func init() {
	runtime.AddKnownTypes("", Simple{}, SimpleList{})
	runtime.AddKnownTypes("v1beta1", Simple{}, SimpleList{})
}