Skip to content

Commit

Permalink
Merge branch 'master' of github.com:leapfrogtechnology/shift into sla…
Browse files Browse the repository at this point in the history
…ck-err-fixes

* 'master' of github.com:leapfrogtechnology/shift:
  Add backend attributes to deployment structure
  Update Gitignore: Added deploy binary package
  Added logger module
  Initialize Go Mod for Core
  • Loading branch information
razzkumar committed Sep 24, 2019
2 parents d58c095 + 509daa7 commit 6222380
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 15 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
# Built Go Packages
shift
shift-infrastructure
deploy

# Configfiles
config.json

# artifacts
artifact
artifact
8 changes: 8 additions & 0 deletions core/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/leapfrogtechnology/shift/core

go 1.12

require (
github.com/logrusorgru/aurora v0.0.0-20190803045625-94edacc10f9b
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271
)
4 changes: 4 additions & 0 deletions core/go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
github.com/logrusorgru/aurora v0.0.0-20190803045625-94edacc10f9b h1:PMbSa9CgaiQR9NLlUTwKi+7aeLl3GG5JX5ERJxfQ3IE=
github.com/logrusorgru/aurora v0.0.0-20190803045625-94edacc10f9b/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4=
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271 h1:WhxRHzgeVGETMlmVfqhRn8RIeeNoPr2Czh33I4Zdccw=
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw=
Binary file removed deployment/deploy
Binary file not shown.
36 changes: 22 additions & 14 deletions deployment/domain/project/project.go
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
package project

type deployment struct {
Name string `json:"name"`
Platform string `json:"platform"`
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey"`
Type string `json:"type"`
GitProvider string `json:"gitProvider"`
GitToken string `json:"gitToken"`
CloneURL string `json:"cloneURL"`
BuildCommand string `json:"buildCommand"`
DistFolder string `json:"distFolder"`
Bucket string `json:"bucket"`
SlackURL string `json:"slackURL"`
Name string `json:"name"`
Platform string `json:"platform"`
AccessKey string `json:"accessKey"`
SecretKey string `json:"secretKey"`
Type string `json:"type"`
GitProvider string `json:"gitProvider"`
GitToken string `json:"gitToken"`
CloneURL string `json:"cloneUrl"`
BuildCommand string `json:"buildCommand"`
DistFolder string `json:"distFolder"`
Port string `json:"port"`
HealthCheckPath string `json:"healthCheckPath"`
DockerFilePath string `json:"dockerFilePath"`
SlackURL string `json:"slackURL"`
RepoName string `json:"repoName"`
}

type terraformOutput struct {
Expand All @@ -22,8 +25,13 @@ type terraformOutput struct {
}

type infrastructure struct {
BucketName terraformOutput `json:"bucketName"`
FrontendWebURL terraformOutput `json:"appUrl"`
BucketName terraformOutput `json:"bucketName"`
FrontendWebURL terraformOutput `json:"appUrl"`
BackendClusterName terraformOutput `json:"backendClusterName"`
BackendContainerDefinition terraformOutput `json:"backendContainerDefinition"`
BackendServiceId terraformOutput `json:"backendServiceId"`
BackendTaskDefinitionId terraformOutput `json:"backendTaskDefinitionId"`
RepoUrl terraformOutput `json:"repoUrl"`
}

// Response defines the response from message queue.
Expand Down

0 comments on commit 6222380

Please sign in to comment.