26 lines
546 B
Go
26 lines
546 B
Go
|
package remoteexec
|
||
|
|
||
|
import (
|
||
|
"github.com/hashicorp/terraform/helper/config"
|
||
|
"github.com/hashicorp/terraform/terraform"
|
||
|
)
|
||
|
|
||
|
type ResourceProvisioner struct{}
|
||
|
|
||
|
func (p *ResourceProvisioner) Apply(
|
||
|
s *terraform.ResourceState,
|
||
|
c *terraform.ResourceConfig) (*terraform.ResourceState, error) {
|
||
|
panic("not implemented")
|
||
|
return s, nil
|
||
|
}
|
||
|
|
||
|
func (p *ResourceProvisioner) Validate(c *terraform.ResourceConfig) ([]string, []error) {
|
||
|
validator := config.Validator{
|
||
|
Optional: []string{
|
||
|
"command",
|
||
|
"inline",
|
||
|
},
|
||
|
}
|
||
|
return validator.Validate(c)
|
||
|
}
|