github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/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  			"keep_updated": &schema.Schema{
    21  				Type:     schema.TypeBool,
    22  				Optional: true,
    23  			},
    24  
    25  			"latest": &schema.Schema{
    26  				Type:     schema.TypeString,
    27  				Computed: true,
    28  			},
    29  		},
    30  	}
    31  }