Skip to content

Commit

Permalink
rename-sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhadas committed Aug 2, 2023
1 parent f183c92 commit 4518245
Show file tree
Hide file tree
Showing 19 changed files with 321 additions and 321 deletions.
560 changes: 280 additions & 280 deletions CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ test-typescript: ## Test Typescript templates
update-runtimes: pull-runtimes generate/zz_filesystem_generated.go ## Update Scaffolding Runtimes

pull-runtimes:
cd templates/go/scaffolding/instanced-http && go get -u github.com/knative-sandbox/func-go/http
cd templates/go/scaffolding/static-http && go get -u github.com/knative-sandbox/func-go/http
cd templates/go/scaffolding/instanced-cloudevents && go get -u github.com/knative-sandbox/func-go/cloudevents
cd templates/go/scaffolding/static-cloudevents && go get -u github.com/knative-sandbox/func-go/cloudevents
cd templates/go/scaffolding/instanced-http && go get -u github.com/knative-extensions/func-go/http
cd templates/go/scaffolding/static-http && go get -u github.com/knative-extensions/func-go/http
cd templates/go/scaffolding/instanced-cloudevents && go get -u github.com/knative-extensions/func-go/cloudevents
cd templates/go/scaffolding/static-cloudevents && go get -u github.com/knative-extensions/func-go/cloudevents

.PHONY: cert
certs: templates/certs/ca-certificates.crt ## Update root certificates
Expand Down
6 changes: 3 additions & 3 deletions cmd/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ EXAMPLES
$ {{rootCmdUse}} repository -c
o Add a repository and create a new function using a template from it:
$ {{rootCmdUse}} repository add functastic https://github.com/knative-sandbox/func-tastic
$ {{rootCmdUse}} repository add functastic https://github.com/knative-extensions/func-tastic
$ {{rootCmdUse}} repository list
default
functastic
$ {{rootCmdUse}} create -l go -t functastic/hello-world
...
o Add a repository specifying the branch to use (metacontroller):
$ {{rootCmdUse}} repository add metacontroller https://github.com/knative-sandbox/func-tastic#metacontroler
$ {{rootCmdUse}} repository add metacontroller https://github.com/knative-extensions/func-tastic#metacontroler
$ {{rootCmdUse}} repository list
default
metacontroller
Expand All @@ -126,7 +126,7 @@ EXAMPLES
o List all repositories including the URL from which remotes were installed
$ {{rootCmdUse}} repository list -v
default
metacontroller https://github.com/knative-sandbox/func-tastic#metacontroller
metacontroller https://github.com/knative-extensions/func-tastic#metacontroller
o Rename an installed repository
$ {{rootCmdUse}} repository list
Expand Down
4 changes: 2 additions & 2 deletions docs/language-packs/language-pack-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Built in to the Functions library are Language Packs for Go, Node.js, Python, Qu
Language Packs are distributed as a set of templates for one or more languages via Git repositories, and installed by the developer locally using the `func` CLI.

```
func repository add func https://github.com/knative-sandbox/func-tastic
func repository add func https://github.com/knative-extensions/func-tastic
func create -l go -t func/hello-world
```

Expand Down Expand Up @@ -190,7 +190,7 @@ When `func create` is used to generate a Function project, the Language Pack pro
Using external Language Packs is made possible through the `func repository` command, which allows Function developers to add and remove Language Packs from their local development environment. For example:

```
❯ func repository add https://github.com/knative-sandbox/func-tastic functastic # Add the func-tastic repo to the local environment
❯ func repository add https://github.com/knative-extensions/func-tastic functastic # Add the func-tastic repo to the local environment
❯ func repo list # list repos
default
functastic
Expand Down
6 changes: 3 additions & 3 deletions docs/language-packs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ To make use of more complex initial function implementions, or to define runtime

## External Git Repositories

When creating a new function, a Git repository can be specified as the source for the template files. For example, the the [knative-sandbox/func-tastic repository](https://github.com/knative-sandbox/func-tastic) contains a set of example functions which can be used during project creation.
When creating a new function, a Git repository can be specified as the source for the template files. For example, the the [knative-extensions/func-tastic repository](https://github.com/knative-extensions/func-tastic) contains a set of example functions which can be used during project creation.

For example, the func-tastic repository contains an example ["metacontroller"](https://metacontroller.github.io/metacontroller) function implementation for Node.js. To use this template via the CLI, use the flags:

func create <name> --template metacontroller --repository https://github.com/knative-sandbox/func-tastic
func create <name> --template metacontroller --repository https://github.com/knative-extensions/func-tastic

## Locally Installing Repositories

Expand All @@ -21,7 +21,7 @@ Template repositories can also be installed locally by placing them in the funct
To install the func-tastic templates locally, for example, use the `func repository add` command:

```
func repository add https://github.com/knative-sandbox/func-tastic
func repository add https://github.com/knative-extensions/func-tastic
```

Once installed, the metacontroller template can be specified:
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/func_repository.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ EXAMPLES
$ func repository -c

o Add a repository and create a new function using a template from it:
$ func repository add functastic https://github.com/knative-sandbox/func-tastic
$ func repository add functastic https://github.com/knative-extensions/func-tastic
$ func repository list
default
functastic
$ func create -l go -t functastic/hello-world
...

o Add a repository specifying the branch to use (metacontroller):
$ func repository add metacontroller https://github.com/knative-sandbox/func-tastic#metacontroler
$ func repository add metacontroller https://github.com/knative-extensions/func-tastic#metacontroler
$ func repository list
default
metacontroller
Expand All @@ -109,7 +109,7 @@ EXAMPLES
o List all repositories including the URL from which remotes were installed
$ func repository list -v
default
metacontroller https://github.com/knative-sandbox/func-tastic#metacontroller
metacontroller https://github.com/knative-extensions/func-tastic#metacontroller

o Rename an installed repository
$ func repository list
Expand Down
4 changes: 2 additions & 2 deletions hack/update-builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func patchBuilder(config *builder.Config) {
},
{
ModuleInfo: dist.ModuleInfo{
ID: "dev.knative-sandbox.go",
ID: "dev.knative-extensions.go",
Version: "0.0.4",
},
ImageOrURI: dist.ImageOrURI{
Expand Down Expand Up @@ -285,7 +285,7 @@ func patchBuilder(config *builder.Config) {
},
{
ModuleInfo: dist.ModuleInfo{
ID: "dev.knative-sandbox.go",
ID: "dev.knative-extensions.go",
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/instanced-cloudevents/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
f v0.0.0-00010101000000-000000000000
github.com/knative-sandbox/func-go v0.18.2
github.com/knative-extensions/func-go v0.18.2
)

require (
Expand Down
8 changes: 4 additions & 4 deletions templates/go/scaffolding/instanced-cloudevents/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/knative-sandbox/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-sandbox/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-sandbox/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-sandbox/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-extensions/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-extensions/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/instanced-cloudevents/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

ce "github.com/knative-sandbox/func-go/cloudevents"
ce "github.com/knative-extensions/func-go/cloudevents"

f "f"
)
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/instanced-http/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
f v0.0.0-00010101000000-000000000000
github.com/knative-sandbox/func-go v0.18.2
github.com/knative-extensions/func-go v0.18.2
)

require (
Expand Down
8 changes: 4 additions & 4 deletions templates/go/scaffolding/instanced-http/go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/knative-sandbox/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-sandbox/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-sandbox/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-sandbox/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-extensions/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-extensions/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/instanced-http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/knative-sandbox/func-go/http"
"github.com/knative-extensions/func-go/http"

f "f"
)
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/static-cloudevents/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
f v0.0.0-00010101000000-000000000000
github.com/knative-sandbox/func-go v0.18.2
github.com/knative-extensions/func-go v0.18.2
)

require (
Expand Down
8 changes: 4 additions & 4 deletions templates/go/scaffolding/static-cloudevents/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+
github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM=
github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo=
github.com/knative-sandbox/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-sandbox/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-sandbox/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-sandbox/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-extensions/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-extensions/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/static-cloudevents/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

ce "github.com/knative-sandbox/func-go/cloudevents"
ce "github.com/knative-extensions/func-go/cloudevents"

f "f"
)
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/static-http/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ go 1.19

require (
f v0.0.0-00010101000000-000000000000
github.com/knative-sandbox/func-go v0.18.2
github.com/knative-extensions/func-go v0.18.2
)

require (
Expand Down
8 changes: 4 additions & 4 deletions templates/go/scaffolding/static-http/go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc=
github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
github.com/knative-sandbox/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-sandbox/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-sandbox/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-sandbox/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.1 h1:PkOsWmgefI130mJBmozFkanBmHGt1Eam6CxXN4GrImQ=
github.com/knative-extensions/func-go v0.18.1/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/knative-extensions/func-go v0.18.2 h1:uwGrpFXcchEtfr2CLHIXYHnrw3vIyHWjIs/QSX2zwbc=
github.com/knative-extensions/func-go v0.18.2/go.mod h1:QDKfq6BotMkLL/mppdVfwGnZzZz4FvxfzSqJa414sB4=
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
Expand Down
2 changes: 1 addition & 1 deletion templates/go/scaffolding/static-http/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/knative-sandbox/func-go/http"
"github.com/knative-extensions/func-go/http"

f "f"
)
Expand Down

0 comments on commit 4518245

Please sign in to comment.