Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add download starter project endpoints #109

Merged
merged 28 commits into from
Apr 12, 2022
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
03a9f60
Squashed commit of the following:
michael-valdron Mar 16, 2022
8c5da21
update generator dependency to f06d84c42b54 along with other dependen…
michael-valdron Mar 16, 2022
ec54e07
tidy dependencies.
michael-valdron Mar 16, 2022
15f231f
serveDevfileStarterProject uses util functions from index/generator c…
michael-valdron Mar 16, 2022
9274b7a
fetchDevfile changed to match process of current multi-version serveD…
michael-valdron Mar 16, 2022
3120278
devfileIndexSchema return on fetchDevfile invoke for serveDevfileStar…
michael-valdron Mar 21, 2022
4d8f78e
multi version devfile source added to starter project endpoint. new v…
michael-valdron Mar 21, 2022
4bffa01
serveDevfileWithVersion uses fetchDevfile function.
michael-valdron Mar 21, 2022
5bd8e11
c.Data(http.StatusOK, http.DetectContentType(bytes), bytes) moved fro…
michael-valdron Mar 21, 2022
695eebd
generator conflicts fixed.
michael-valdron Mar 21, 2022
aa1a91b
backtrack dependency versions.
michael-valdron Mar 23, 2022
84ec3fa
backtrack dependencies further. back to go v1.14
michael-valdron Mar 23, 2022
94f9c97
backtrack server Dockerfile to alpine3.11
michael-valdron Mar 23, 2022
23e40ba
Update registry dependencies
johnmcollier Mar 24, 2022
95d286a
gin-gonic/gin v1.6.3->v1.7.7 update restored.
michael-valdron Mar 24, 2022
0669707
Merge branch 'fixdeps' of https://github.com/johnmcollier/registry-su…
michael-valdron Mar 24, 2022
73743a0
Merge branch 'johnmcollier-fixdeps' into sAddStarterProject
michael-valdron Mar 24, 2022
cee3a7c
integration testing for starter projects endpoint added.
michael-valdron Mar 24, 2022
1889e25
Read bytes before checking status code.
michael-valdron Mar 24, 2022
70d6723
integration tests for starter project endpoint now checks for status …
michael-valdron Mar 24, 2022
2022093
Empty byte array checks added for starter project endpoint int tests.
michael-valdron Mar 24, 2022
882fb76
reading response in starter project integration tests changed.
michael-valdron Mar 24, 2022
608375f
starter project endpoint downloads zip file with the name and ext.
michael-valdron Mar 24, 2022
bcf0c87
Merge branch 'main' into sAddStarterProject
michael-valdron Mar 24, 2022
2f2c8b0
serveRootEndpoint doc comment typo fixed.
michael-valdron Apr 7, 2022
98a82b6
'devfile of %s' corrected to '%s devfile' for response status message…
michael-valdron Apr 7, 2022
7384f33
fetchDevfile doc comment improved to request of revision.
michael-valdron Apr 7, 2022
ba394fd
starterProject.Git.CheckoutFrom.Remote only overwrites RemoteName if …
michael-valdron Apr 12, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update registry dependencies
Signed-off-by: John Collier <[email protected]>
johnmcollier committed Mar 24, 2022

Verified

This commit was signed with the committer’s verified signature.
markpash Mark Pashmfouroush
commit 23e40ba71f9ff7851e8e60b9fd16dbac91a2aa7b
2 changes: 1 addition & 1 deletion index/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Index Server build stage
FROM golang:alpine3.11 AS index-builder
FROM golang:1.17-alpine AS index-builder
WORKDIR /tools
COPY . .
RUN CGO_ENABLED=0 go build -mod=vendor -o index-server main.go
98 changes: 93 additions & 5 deletions index/server/go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,110 @@
module github.com/devfile/registry-support/index/server

go 1.14
go 1.17

require (
github.com/containerd/containerd v1.4.1
github.com/deislabs/oras v0.8.1
github.com/devfile/api/v2 v2.0.0-20220117162434-6e6e6a8bc14c
github.com/devfile/library v1.2.1-0.20220308191614-f0f7e11b17de
github.com/devfile/registry-support/index/generator v0.0.0-20220316161530-f06d84c42b54
github.com/gin-gonic/gin v1.6.3
github.com/gorilla/mux v1.7.3 // indirect
github.com/gin-gonic/gin v1.7.7
github.com/hashicorp/go-version v1.4.0
github.com/kylelemons/godebug v0.0.0-20170820004349-d65d576e9348
github.com/opencontainers/image-spec v1.0.1
github.com/prometheus/client_golang v1.11.0
github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 // indirect
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
golang.org/x/text v0.3.6
gopkg.in/segmentio/analytics-go.v3 v3.1.0
k8s.io/apimachinery v0.21.3
)

require (
github.com/Microsoft/go-winio v0.4.16 // indirect
github.com/Microsoft/hcsshim v0.8.7 // indirect
github.com/ProtonMail/go-crypto v0.0.0-20210428141323-04723f9f07d7 // indirect
github.com/acomagu/bufpipe v1.0.3 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.1.1 // indirect
github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/emirpasic/gods v1.12.0 // indirect
github.com/evanphx/json-patch v4.11.0+incompatible // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/fsnotify/fsnotify v1.4.9 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-git/gcfg v1.5.0 // indirect
github.com/go-git/go-billy/v5 v5.3.1 // indirect
github.com/go-git/go-git/v5 v5.4.2 // indirect
github.com/go-logr/logr v0.4.0 // indirect
github.com/go-playground/locales v0.13.0 // indirect
github.com/go-playground/universal-translator v0.17.0 // indirect
github.com/go-playground/validator/v10 v10.4.1 // indirect
github.com/gobwas/glob v0.2.3 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/mock v1.5.0 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/go-cmp v0.5.5 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/googleapis/gnostic v0.5.5 // indirect
github.com/gorilla/mux v1.7.3 // indirect
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/hashicorp/go-multierror v1.1.1 // indirect
github.com/imdario/mergo v0.3.12 // indirect
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
github.com/json-iterator/go v1.1.11 // indirect
github.com/kevinburke/ssh_config v0.0.0-20201106050909-4977a11b4351 // indirect
github.com/leodido/go-urn v1.2.0 // indirect
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_model v0.2.0 // indirect
github.com/prometheus/common v0.26.0 // indirect
github.com/prometheus/procfs v0.6.0 // indirect
github.com/segmentio/backo-go v0.0.0-20200129164019-23eae7c10bd3 // indirect
github.com/sergi/go-diff v1.1.0 // indirect
github.com/sirupsen/logrus v1.7.0 // indirect
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/ugorji/go/codec v1.1.7 // indirect
github.com/xanzy/ssh-agent v0.3.0 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.2.0 // indirect
github.com/xtgo/uuid v0.0.0-20140804021211-a0b114877d4c // indirect
go.opencensus.io v0.22.3 // indirect
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b // indirect
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 // indirect
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d // indirect
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a // indirect
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d // indirect
golang.org/x/time v0.0.0-20210723032227-1f47c861a9ac // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20201110150050-8816d57aaa9a // indirect
google.golang.org/grpc v1.27.1 // indirect
google.golang.org/protobuf v1.26.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/warnings.v0 v0.1.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
k8s.io/api v0.21.3 // indirect
k8s.io/apiextensions-apiserver v0.21.3 // indirect
k8s.io/client-go v0.21.3 // indirect
k8s.io/klog v1.0.0 // indirect
k8s.io/klog/v2 v2.8.0 // indirect
k8s.io/kube-openapi v0.0.0-20210305001622-591a79e4bda7 // indirect
k8s.io/utils v0.0.0-20210722164352-7f3ee0f31471 // indirect
sigs.k8s.io/controller-runtime v0.9.5 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.1.2 // indirect
sigs.k8s.io/yaml v1.2.0 // indirect
)
779 changes: 10 additions & 769 deletions index/server/go.sum

Large diffs are not rendered by default.

This file was deleted.

16 changes: 0 additions & 16 deletions index/server/vendor/github.com/Microsoft/go-winio/go.sum

This file was deleted.

37 changes: 0 additions & 37 deletions index/server/vendor/github.com/Microsoft/hcsshim/go.mod

This file was deleted.

131 changes: 0 additions & 131 deletions index/server/vendor/github.com/Microsoft/hcsshim/go.sum

This file was deleted.

5 changes: 0 additions & 5 deletions index/server/vendor/github.com/acomagu/bufpipe/go.mod

This file was deleted.

2 changes: 0 additions & 2 deletions index/server/vendor/github.com/acomagu/bufpipe/go.sum

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions index/server/vendor/github.com/gin-contrib/sse/go.mod

This file was deleted.

7 changes: 0 additions & 7 deletions index/server/vendor/github.com/gin-contrib/sse/go.sum

This file was deleted.

10 changes: 5 additions & 5 deletions index/server/vendor/github.com/gin-gonic/gin/.travis.yml
1,283 changes: 628 additions & 655 deletions index/server/vendor/github.com/gin-gonic/gin/BENCHMARKS.md

Large diffs are not rendered by default.

97 changes: 89 additions & 8 deletions index/server/vendor/github.com/gin-gonic/gin/CHANGELOG.md
265 changes: 195 additions & 70 deletions index/server/vendor/github.com/gin-gonic/gin/README.md

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions index/server/vendor/github.com/gin-gonic/gin/auth.go
142 changes: 114 additions & 28 deletions index/server/vendor/github.com/gin-gonic/gin/context.go
4 changes: 2 additions & 2 deletions index/server/vendor/github.com/gin-gonic/gin/debug.go
25 changes: 15 additions & 10 deletions index/server/vendor/github.com/gin-gonic/gin/errors.go
6 changes: 3 additions & 3 deletions index/server/vendor/github.com/gin-gonic/gin/fs.go
184 changes: 165 additions & 19 deletions index/server/vendor/github.com/gin-gonic/gin/gin.go
14 changes: 0 additions & 14 deletions index/server/vendor/github.com/gin-gonic/gin/go.mod

This file was deleted.

45 changes: 0 additions & 45 deletions index/server/vendor/github.com/gin-gonic/gin/go.sum

This file was deleted.

13 changes: 8 additions & 5 deletions index/server/vendor/github.com/gin-gonic/gin/mode.go
7 changes: 4 additions & 3 deletions index/server/vendor/github.com/gin-gonic/gin/path.go
34 changes: 27 additions & 7 deletions index/server/vendor/github.com/gin-gonic/gin/recovery.go
685 changes: 434 additions & 251 deletions index/server/vendor/github.com/gin-gonic/gin/tree.go

Large diffs are not rendered by default.

18 changes: 10 additions & 8 deletions index/server/vendor/github.com/gin-gonic/gin/utils.go
10 changes: 0 additions & 10 deletions index/server/vendor/github.com/go-git/go-billy/v5/go.mod

This file was deleted.

14 changes: 0 additions & 14 deletions index/server/vendor/github.com/go-git/go-billy/v5/go.sum

This file was deleted.

31 changes: 0 additions & 31 deletions index/server/vendor/github.com/go-git/go-git/v5/go.mod

This file was deleted.

103 changes: 0 additions & 103 deletions index/server/vendor/github.com/go-git/go-git/v5/go.sum

This file was deleted.

3 changes: 0 additions & 3 deletions index/server/vendor/github.com/go-logr/logr/go.mod

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading