2014-10-05 01:42:43 +02:00
|
|
|
package null
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"math/rand"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/hashicorp/terraform/helper/schema"
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
rand.Seed(time.Now().Unix())
|
|
|
|
}
|
|
|
|
|
|
|
|
func resource() *schema.Resource {
|
|
|
|
return &schema.Resource{
|
|
|
|
Create: resourceCreate,
|
|
|
|
Read: resourceRead,
|
|
|
|
Delete: resourceDelete,
|
|
|
|
|
2015-09-15 23:00:12 +02:00
|
|
|
Schema: map[string]*schema.Schema{
|
|
|
|
"triggers": &schema.Schema{
|
|
|
|
Type: schema.TypeMap,
|
|
|
|
Optional: true,
|
|
|
|
ForceNew: true,
|
|
|
|
},
|
|
|
|
},
|
2014-10-05 01:42:43 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func resourceCreate(d *schema.ResourceData, meta interface{}) error {
|
|
|
|
d.SetId(fmt.Sprintf("%d", rand.Int()))
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func resourceRead(d *schema.ResourceData, meta interface{}) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func resourceDelete(d *schema.ResourceData, meta interface{}) error {
|
|
|
|
d.SetId("")
|
|
|
|
return nil
|
|
|
|
}
|