github.com/minamijoyo/terraform@v0.7.8-0.20161029001309-18b3736ba44b/builtin/providers/archive/provider.go (about)

     1  package archive
     2  
     3  import (
     4  	"github.com/hashicorp/terraform/helper/schema"
     5  	"github.com/hashicorp/terraform/terraform"
     6  )
     7  
     8  func Provider() terraform.ResourceProvider {
     9  	return &schema.Provider{
    10  		DataSourcesMap: map[string]*schema.Resource{
    11  			"archive_file": dataSourceFile(),
    12  		},
    13  		ResourcesMap: map[string]*schema.Resource{
    14  			"archive_file": schema.DataSourceResourceShim(
    15  				"archive_file",
    16  				dataSourceFile(),
    17  			),
    18  		},
    19  	}
    20  }