Skip to content

Commit

Permalink
Generate Go examples for V2
Browse files Browse the repository at this point in the history
  • Loading branch information
stack72 committed Sep 9, 2020
1 parent 4b995f6 commit 030da08
Show file tree
Hide file tree
Showing 38 changed files with 73 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ builds:
- windows
- linux
ldflags:
- -X github.com/pulumi/pulumi-github/provider/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-github/provider/v2/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-github/
changelog:
skip: true
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ builds:
- windows
- linux
ldflags:
- -X github.com/pulumi/pulumi-github/provider/pkg/version.Version={{.Tag}}
- -X github.com/pulumi/pulumi-github/provider/v2/pkg/version.Version={{.Tag}}
main: ./cmd/pulumi-resource-github/
changelog:
skip: true
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ORG := pulumi
PROJECT := github.com/${ORG}/pulumi-${PACK}
NODE_MODULE_NAME := @pulumi/${PACK}
TF_NAME := ${PACK}
PROVIDER_PATH := provider
PROVIDER_PATH := provider/v2
VERSION_PATH := ${PROVIDER_PATH}/pkg/version.Version

TFGEN := pulumi-tfgen-${PACK}
Expand Down
4 changes: 2 additions & 2 deletions provider/cmd/pulumi-resource-github/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ package main
import (
"github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfbridge"

github "github.com/pulumi/pulumi-github/provider"
"github.com/pulumi/pulumi-github/provider/pkg/version"
github "github.com/pulumi/pulumi-github/provider/v2"
"github.com/pulumi/pulumi-github/provider/v2/pkg/version"
)

func main() {
Expand Down
58 changes: 29 additions & 29 deletions provider/cmd/pulumi-resource-github/schema.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions provider/cmd/pulumi-tfgen-github/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ package main
import (
"github.com/pulumi/pulumi-terraform-bridge/v2/pkg/tfgen"

github "github.com/pulumi/pulumi-github/provider"
"github.com/pulumi/pulumi-github/provider/pkg/version"
github "github.com/pulumi/pulumi-github/provider/v2"
"github.com/pulumi/pulumi-github/provider/v2/pkg/version"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion provider/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pulumi/pulumi-github/provider
module github.com/pulumi/pulumi-github/provider/v2

go 1.14

Expand Down
3 changes: 3 additions & 0 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,9 @@ github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R
github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
github.com/pulumi/pulumi-github v1.5.0 h1:6drwtzHqnTYciJ7JF6IZtPAHSpELQgKAxpj6MoJIwfI=
github.com/pulumi/pulumi-github/provider v0.0.0-20200909101800-4b995f6330fd h1:/PC0Pxjqa4GtBDuwSpwqbBEoNdElEx010hc+O7Y6G08=
github.com/pulumi/pulumi-github/provider v0.0.0-20200909101800-4b995f6330fd/go.mod h1:x7CatlDYoGbnlOY1RL2xk6NHCzybvxwLNa+DZ+S1clk=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.0.0/go.mod h1:CShKXRvffj8fOwzDfBM8qxEpqfMpLLbEAb6QCtcGeUw=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.4.1-0.20200608011815-6feeb51f2d39 h1:8Y0+ZfJpafOyPsxXf+TFLjCEMudDlsl/uv3o1Pg7qWM=
github.com/pulumi/pulumi-terraform-bridge/v2 v2.4.1-0.20200608011815-6feeb51f2d39/go.mod h1:GI/1DagEgBD0PJUCt5wmaPLI8cx66IMzLRpy0oeucoo=
Expand Down
2 changes: 1 addition & 1 deletion sdk/go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pulumi/pulumi-github/sdk
module github.com/pulumi/pulumi-github/sdk/v2

go 1.14

Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/branch.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getActionsPublicKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getBranch.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getCollaborators.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getIpRanges.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getMembership.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getOrganization.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getOrganizationTeamSyncGroups.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
6 changes: 3 additions & 3 deletions sdk/go/github/getRelease.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand All @@ -42,7 +42,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand All @@ -68,7 +68,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getRepositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getRepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getTeam.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/getUser.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/organizationBlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/organizationProject.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/organizationWebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/projectColumn.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/repositoryCollaborator.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/repositoryDeployKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/repositoryFile.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/repositoryProject.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/repositoryWebhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/teamMembership.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/teamRepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/github/userGpgKey.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
// import (
// "fmt"
//
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down
4 changes: 2 additions & 2 deletions sdk/go/github/userInvitationAccepter.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
// package main
//
// import (
// "github.com/pulumi/pulumi-github/sdk/go/github"
// "github.com/pulumi/pulumi-github/sdk/go/github/providers"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github"
// "github.com/pulumi/pulumi-github/sdk/v2/go/github/providers"
// "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
// )
//
Expand Down

0 comments on commit 030da08

Please sign in to comment.