mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-29 06:01:57 -04:00
* Add a Arukas provider * Add dependencies for the Arukas provider * Add documents for the Arukas
20 lines
370 B
Go
20 lines
370 B
Go
package arukas
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func startContainer(containerID string, quiet bool) {
|
|
client := NewClientWithOsExitOnErr()
|
|
|
|
if err := client.Post(nil, "/containers/"+containerID+"/power", nil); err != nil {
|
|
client.Println(nil, "Failed to start the container")
|
|
log.Print(err)
|
|
ExitCode = 1
|
|
} else {
|
|
if !quiet {
|
|
client.Println(nil, "Starting...")
|
|
}
|
|
}
|
|
}
|