mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-28 21:01:16 -04:00
* Add a Arukas provider * Add dependencies for the Arukas provider * Add documents for the Arukas
25 lines
485 B
Go
25 lines
485 B
Go
package arukas
|
|
|
|
import (
|
|
"log"
|
|
)
|
|
|
|
func removeContainer(containerID string) {
|
|
client := NewClientWithOsExitOnErr()
|
|
var container Container
|
|
|
|
if err := client.Get(&container, "/containers/"+containerID); err != nil {
|
|
client.Println(nil, "Failed to rm the container")
|
|
log.Println(err)
|
|
ExitCode = 1
|
|
return
|
|
}
|
|
|
|
if err := client.Delete("/apps/" + container.App.ID); err != nil {
|
|
client.Println(nil, "Failed to rm the container")
|
|
log.Println(err)
|
|
ExitCode = 1
|
|
return
|
|
}
|
|
}
|