forked from cheelim1/terraform-provider-jumpcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
84b3d57
commit 8f42d5b
Showing
3 changed files
with
57 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package jumpcloud | ||
|
||
import "github.com/hashicorp/terraform/helper/schema" | ||
|
||
func Provider() *schema.Provider { | ||
return &schema.Provider{ | ||
ResourcesMap: map[string]*schema.Resource{ | ||
"jumpcloud_group": resourceGroup(), | ||
}, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package jumpcloud | ||
|
||
import ( | ||
"github.com/hashicorp/terraform/helper/schema" | ||
) | ||
|
||
func resourceGroup() *schema.Resource { | ||
return &schema.Resource{ | ||
Create: resourceGroupCreate, | ||
Read: resourceGroupRead, | ||
Update: resourceGroupUpdate, //optional | ||
Delete: resourceGroupDelete, | ||
Schema: map[string]*schema.Schema{}, | ||
} | ||
} | ||
|
||
func resourceGroupCreate(d *schema.ResourceData, m interface{}) error { | ||
return resourceGroupRead(d, m) | ||
} | ||
|
||
func resourceGroupRead(d *schema.ResourceData, m interface{}) error { | ||
return nil | ||
} | ||
|
||
func resourceGroupUpdate(d *schema.ResourceData, m interface{}) error { | ||
return resourceGroupRead(d, m) | ||
} | ||
|
||
func resourceGroupDelete(d *schema.ResourceData, m interface{}) error { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/cognotektgmbh/terraform-provider-jumpcloud/jumpcloud" | ||
"github.com/hashicorp/terraform/plugin" | ||
"github.com/hashicorp/terraform/terraform" | ||
) | ||
|
||
func main() { | ||
plugin.Serve(&plugin.ServeOpts{ | ||
ProviderFunc: func() terraform.ResourceProvider { | ||
return jumpcloud.Provider() | ||
}, | ||
}) | ||
} |