Skip to content

Commit

Permalink
Merge pull request #424 from Dray56/stack_fields
Browse files Browse the repository at this point in the history
Added all fields for stack
  • Loading branch information
sneal authored Jun 26, 2024
2 parents f4562b0 + f01f62f commit 0ff4362
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
11 changes: 7 additions & 4 deletions resource/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ package resource
// application will execute in. A stack is how you configure applications to run against different
// operating systems (like Windows or Linux) and different versions of those operating systems.
type Stack struct {
Name string `json:"name"`
Description string `json:"description"`
Metadata *Metadata `json:"metadata"`
Resource `json:",inline"`
Name string `json:"name"`
Description *string `json:"description"`
RunRootfsImage string `json:"run_rootfs_image"`
BuildRootfsImage string `json:"build_rootfs_image"`
Default bool `json:"default"`
Metadata *Metadata `json:"metadata"`
Resource `json:",inline"`
}

type StackCreate struct {
Expand Down
3 changes: 3 additions & 0 deletions testutil/template/stack.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"updated_at": "2018-11-09T22:43:28Z",
"name": "{{.Name}}",
"description": "Here is my stack!",
"build_rootfs_image": "{{.Name}}",
"run_rootfs_image": "{{.Name}}",
"default": false,
"metadata": {
"labels": { },
"annotations": { }
Expand Down

0 comments on commit 0ff4362

Please sign in to comment.