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