Skip to content

Commit

Permalink
Merge pull request #8 from LyridInc/putri-one-deploy
Browse files Browse the repository at this point in the history
Add database and storage definition
  • Loading branch information
coolize authored Apr 25, 2022
2 parents 798ee20 + 7250b6d commit cadcf33
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions model/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ type AppDefinition struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Modules []ModuleDefinition `yaml:"modules"`

Database DatabaseDefinition `yaml:"database"`
ObjectStorage ObjectStorageDefinition `yaml:"objectStorage"`
}

type ModuleDefinition struct {
Expand Down Expand Up @@ -113,6 +116,15 @@ type FunctionDefinition struct {
Description string `yaml:"description"`
}

type DatabaseDefinition struct {
Alias string `yaml:"alias"`
Type string `yaml:"type"`
}

type ObjectStorageDefinition struct {
Alias string `yaml:"alias"`
}

type PublishedApp struct {
ID string `json:"globalId"`
Name string `json:"name"`
Expand Down

0 comments on commit cadcf33

Please sign in to comment.