Rename generated files to make them obvious
This commit is contained in:
1 parent
050b914447
commit
828fee20a1
10 files changed
+8
-8
No files matched your search
@@ -37,7 +37,7 @@ var createFuncs = map[string][]*createInfo{
|
||||
|
||||
func writeCreateFuncs() {
|
||||
for outPkg, funcs := range createFuncs {
|
||||
outFile := os.Getenv("APIGEN_BASEPATH") + fmt.Sprintf("/api/%s/create.go", outPkg)
|
||||
outFile := os.Getenv("APIGEN_BASEPATH") + fmt.Sprintf("/api/%s/create.gen.go", outPkg)
|
||||
outBuf := bytes.NewBuffer([]byte(fmt.Sprintf(
|
||||
`// Code generated by "make api"; DO NOT EDIT.
|
||||
package %s
|
||||
|
||||
@@ -20,7 +20,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/error.pb.go",
|
||||
"Error",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/error.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/error.gen.go",
|
||||
"Error",
|
||||
"api",
|
||||
"",
|
||||
@@ -31,7 +31,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/error.pb.go",
|
||||
"ErrorDetails",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/error_details.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/error_details.gen.go",
|
||||
"ErrorDetails",
|
||||
"api",
|
||||
"",
|
||||
@@ -42,7 +42,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host.pb.go",
|
||||
"Host",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/host.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/host.gen.go",
|
||||
"Host",
|
||||
"hosts",
|
||||
"",
|
||||
@@ -53,7 +53,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host_set.pb.go",
|
||||
"HostSet",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/host_set.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/host_set.gen.go",
|
||||
"HostSet",
|
||||
"hosts",
|
||||
"",
|
||||
@@ -64,7 +64,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host_catalog.pb.go",
|
||||
"HostCatalog",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/host_catalog.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/host_catalog.gen.go",
|
||||
"HostCatalog",
|
||||
"hosts",
|
||||
"",
|
||||
@@ -75,7 +75,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host_catalog.pb.go",
|
||||
"StaticHostCatalogDetails",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/static_host_catalog.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/static_host_catalog.gen.go",
|
||||
"StaticHostCatalogDetails",
|
||||
"hosts",
|
||||
"",
|
||||
@@ -86,7 +86,7 @@ var inputStructs = []*structInfo{
|
||||
{
|
||||
os.Getenv("APIGEN_BASEPATH") + "/internal/gen/controller/api/resources/hosts/host_catalog.pb.go",
|
||||
"AwsEc2HostCatalogDetails",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/awsec2_host_catalog.go",
|
||||
os.Getenv("APIGEN_BASEPATH") + "/api/hosts/awsec2_host_catalog.gen.go",
|
||||
"AwsEc2HostCatalogDetails",
|
||||
"hosts",
|
||||
"",
|
||||
|
||||
Reference in new issue
Block a user