-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
40 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
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,23 @@ | ||
package types | ||
|
||
// ServiceScript is a struct at the ServiceScriptReturn | ||
type ServiceScript struct { | ||
Order string | ||
ServiceName string | ||
ComposeFile string | ||
} | ||
|
||
// ServiceScriptReturn represent the return of some internal methods | ||
type ServiceScriptReturn []ServiceScript | ||
|
||
// Service represents a service in the docker-compose.yml file. | ||
type Service struct { | ||
Image string `yaml:"image"` | ||
Ports []string `yaml:"ports"` | ||
Labels map[string]string `yaml:"labels"` | ||
} | ||
|
||
// DockerCompose represents the structure of the docker-compose.yml file. | ||
type DockerCompose struct { | ||
Services map[string]Service `yaml:"services"` | ||
} |