github.com/simonferquel/app@v0.6.1-0.20181012141724-68b7cccf26ac/types/init.go (about) 1 package types 2 3 const defaultComposefileVersion = "3.6" 4 5 // InitialComposeFile represents an initial composefile (used by the init command) 6 type InitialComposeFile struct { 7 Version string 8 Services map[string]InitialService 9 } 10 11 // InitialService represents an initial service (used by the init command) 12 type InitialService struct { 13 Image string 14 } 15 16 // NewInitialComposeFile returns an empty InitialComposeFile object 17 func NewInitialComposeFile() InitialComposeFile { 18 return InitialComposeFile{ 19 Version: defaultComposefileVersion, 20 Services: map[string]InitialService{}, 21 } 22 }