-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: split types in the v1/types.go to separate files to maintai…
…n consistency with the coding style of the rest of the code
- Loading branch information
Showing
2 changed files
with
25 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package v1 | ||
|
||
// Stack is a definition of Kusion Stack resource. | ||
// | ||
// Stack provides a mechanism to isolate multiple deploys of same application, | ||
// it's the target workspace that an application will be deployed to, also the | ||
// smallest operation unit that can be configured and deployed independently. | ||
type Stack struct { | ||
// Name is a required fully qualified name. | ||
Name string `json:"name" yaml:"name"` | ||
// Description is an optional informational description. | ||
Description *string `json:"description,omitempty" yaml:"description,omitempty"` | ||
// Labels is the list of labels that are assigned to this stack. | ||
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` | ||
// Path is a directory path within the Git repository. | ||
Path string `json:"path,omitempty" yaml:"path,omitempty"` | ||
} |