projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '17566-max-request-size'
[arvados.git]
/
lib
/
controller
/
federation
/
generate.go
diff --git
a/lib/controller/federation/generate.go
b/lib/controller/federation/generate.go
index 11f021e518e4b5cdb0e0ff3d7aad946b27f87750..6a2a4858560b84d01e14c3e5d170eb595d4ba512 100644
(file)
--- a/
lib/controller/federation/generate.go
+++ b/
lib/controller/federation/generate.go
@@
-31,7
+31,7
@@
func main() {
if err != nil {
panic(err)
}
if err != nil {
panic(err)
}
- orig := regexp.MustCompile(`(?ms)\nfunc [^\n]*CollectionList\(.*?\n}\n`).Find(buf)
+ orig := regexp.MustCompile(`(?ms)\nfunc [^\n]*
generated_
CollectionList\(.*?\n}\n`).Find(buf)
if len(orig) == 0 {
panic("can't find CollectionList func")
}
if len(orig) == 0 {
panic("can't find CollectionList func")
}
@@
-52,7
+52,7
@@
func main() {
defer out.Close()
out.Write(regexp.MustCompile(`(?ms)^.*package .*?import.*?\n\)\n`).Find(buf))
io.WriteString(out, "//\n// -- this file is auto-generated -- do not edit -- edit list.go and run \"go generate\" instead --\n//\n\n")
defer out.Close()
out.Write(regexp.MustCompile(`(?ms)^.*package .*?import.*?\n\)\n`).Find(buf))
io.WriteString(out, "//\n// -- this file is auto-generated -- do not edit -- edit list.go and run \"go generate\" instead --\n//\n\n")
- for _, t := range []string{"Container", "
Specimen
"} {
+ for _, t := range []string{"Container", "
ContainerRequest", "Group", "Specimen", "User
"} {
_, err := out.Write(bytes.ReplaceAll(orig, []byte("Collection"), []byte(t)))
if err != nil {
panic(err)
_, err := out.Write(bytes.ReplaceAll(orig, []byte("Collection"), []byte(t)))
if err != nil {
panic(err)