github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/docker/resource_docker_image.go (about) 1 package docker 2 3 import ( 4 "github.com/hashicorp/terraform/helper/schema" 5 ) 6 7 func resourceDockerImage() *schema.Resource { 8 return &schema.Resource{ 9 Create: resourceDockerImageCreate, 10 Read: resourceDockerImageRead, 11 Update: resourceDockerImageUpdate, 12 Delete: resourceDockerImageDelete, 13 14 Schema: map[string]*schema.Schema{ 15 "name": &schema.Schema{ 16 Type: schema.TypeString, 17 Required: true, 18 }, 19 20 "latest": &schema.Schema{ 21 Type: schema.TypeString, 22 Computed: true, 23 }, 24 25 "keep_locally": &schema.Schema{ 26 Type: schema.TypeBool, 27 Optional: true, 28 }, 29 30 "pull_trigger": &schema.Schema{ 31 Type: schema.TypeString, 32 Optional: true, 33 ForceNew: true, 34 }, 35 }, 36 } 37 }