Esempio n. 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)
}
Esempio n. 2
0
func init() {
	runtime.AddKnownTypes("",
		Build{},
		BuildList{},
		BuildConfig{},
		BuildConfigList{},
	)
}
Esempio n. 3
0
func init() {
	runtime.AddKnownTypes("v1beta1",
		Image{},
		ImageList{},
		ImageRepository{},
		ImageRepositoryList{},
		ImageRepositoryMapping{},
	)
}
Esempio n. 4
0
func init() {
	runtime.AddKnownTypes("v1beta1",
		PodList{},
		Pod{},
		ReplicationControllerList{},
		ReplicationController{},
		ServiceList{},
		Service{},
		MinionList{},
		Minion{},
		Status{},
		ServerOpList{},
		ServerOp{},
		ContainerManifestList{},
		Endpoints{},
		EndpointsList{},
		Binding{},
	)
}
Esempio n. 5
0
func init() {
	runtime.AddKnownTypes("v1beta1", Config{})
}
Esempio n. 6
0
func init() {
	runtime.AddKnownTypes("v1beta1", Template{})
}
Esempio n. 7
0
func init() {
	runtime.AddKnownTypes("v1beta1")
}
Esempio n. 8
0
func init() {
	runtime.AddKnownTypes("")
}
Esempio n. 9
0
func init() {
	runtime.AddKnownTypes("", Config{})
}
Esempio n. 10
0
func init() {
	runtime.AddKnownTypes("", Simple{}, SimpleList{})
	runtime.AddKnownTypes("v1beta1", Simple{}, SimpleList{})
}