mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-08 23:23:59 -06:00
e4a1d21a4b
- Add option keep_locally - Add unit test - Add documentation
37 lines
703 B
Go
37 lines
703 B
Go
package docker
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/helper/schema"
|
|
)
|
|
|
|
func resourceDockerImage() *schema.Resource {
|
|
return &schema.Resource{
|
|
Create: resourceDockerImageCreate,
|
|
Read: resourceDockerImageRead,
|
|
Update: resourceDockerImageUpdate,
|
|
Delete: resourceDockerImageDelete,
|
|
|
|
Schema: map[string]*schema.Schema{
|
|
"name": &schema.Schema{
|
|
Type: schema.TypeString,
|
|
Required: true,
|
|
},
|
|
|
|
"keep_updated": &schema.Schema{
|
|
Type: schema.TypeBool,
|
|
Optional: true,
|
|
},
|
|
|
|
"latest": &schema.Schema{
|
|
Type: schema.TypeString,
|
|
Computed: true,
|
|
},
|
|
|
|
"keep_locally": &schema.Schema{
|
|
Type: schema.TypeBool,
|
|
Optional: true,
|
|
},
|
|
},
|
|
}
|
|
}
|