func installDataContainers(b backend.Backend) error { fmt.Println("Scheduling data containers...") if err := b.Create(DefaultDataContainers); err != nil { return err } fmt.Println("Data containers scheduled.") return nil }
func Install(b backend.Backend, targets []string) error { // if target is platform, install all services if len(targets) == 1 && targets[0] == PlatformInstallCommand { return InstallPlatform(b) } // otherwise create the specific targets for i, target := range targets { // if we're installing a component without a number attached, // consider the user doesn't know better if !strings.Contains(target, "@") { targets[i] += "@1" } } return b.Create(targets) }