Documentation ¶
Index ¶
- func Register(server *rpc.Server, thing interface{}) (name string, err error)
- type BasicError
- type ResourceProvider
- func (p *ResourceProvider) Apply(s *terraform.ResourceState, d *terraform.ResourceDiff) (*terraform.ResourceState, error)
- func (p *ResourceProvider) Configure(c *terraform.ResourceConfig) error
- func (p *ResourceProvider) Diff(s *terraform.ResourceState, c *terraform.ResourceConfig) (*terraform.ResourceDiff, error)
- func (p *ResourceProvider) Refresh(s *terraform.ResourceState) (*terraform.ResourceState, error)
- func (p *ResourceProvider) Resources() []terraform.ResourceType
- func (p *ResourceProvider) Validate(c *terraform.ResourceConfig) ([]string, []error)
- func (p *ResourceProvider) ValidateResource(t string, c *terraform.ResourceConfig) ([]string, []error)
- type ResourceProviderApplyArgs
- type ResourceProviderApplyResponse
- type ResourceProviderConfigureResponse
- type ResourceProviderDiffArgs
- type ResourceProviderDiffResponse
- type ResourceProviderRefreshResponse
- type ResourceProviderServer
- func (s *ResourceProviderServer) Apply(args *ResourceProviderApplyArgs, result *ResourceProviderApplyResponse) error
- func (s *ResourceProviderServer) Configure(config *terraform.ResourceConfig, reply *ResourceProviderConfigureResponse) error
- func (s *ResourceProviderServer) Diff(args *ResourceProviderDiffArgs, result *ResourceProviderDiffResponse) error
- func (s *ResourceProviderServer) Refresh(state *terraform.ResourceState, result *ResourceProviderRefreshResponse) error
- func (s *ResourceProviderServer) Resources(nothing interface{}, result *[]terraform.ResourceType) error
- func (s *ResourceProviderServer) Validate(args *ResourceProviderValidateArgs, reply *ResourceProviderValidateResponse) error
- func (s *ResourceProviderServer) ValidateResource(args *ResourceProviderValidateResourceArgs, ...) error
- type ResourceProviderValidateArgs
- type ResourceProviderValidateResourceArgs
- type ResourceProviderValidateResourceResponse
- type ResourceProviderValidateResponse
- type ResourceProvisioner
- type ResourceProvisionerApplyArgs
- type ResourceProvisionerApplyResponse
- type ResourceProvisionerServer
- type ResourceProvisionerValidateArgs
- type ResourceProvisionerValidateResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasicError ¶
type BasicError struct {
Message string
}
This is a type that wraps error types so that they can be messaged across RPC channels. Since "error" is an interface, we can't always gob-encode the underlying structure. This is a valid error interface implementer that we will push across.
func NewBasicError ¶
func NewBasicError(err error) *BasicError
func (*BasicError) Error ¶
func (e *BasicError) Error() string
type ResourceProvider ¶
ResourceProvider is an implementation of terraform.ResourceProvider that communicates over RPC.
func (*ResourceProvider) Apply ¶
func (p *ResourceProvider) Apply( s *terraform.ResourceState, d *terraform.ResourceDiff) (*terraform.ResourceState, error)
func (*ResourceProvider) Configure ¶
func (p *ResourceProvider) Configure(c *terraform.ResourceConfig) error
func (*ResourceProvider) Diff ¶
func (p *ResourceProvider) Diff( s *terraform.ResourceState, c *terraform.ResourceConfig) (*terraform.ResourceDiff, error)
func (*ResourceProvider) Refresh ¶
func (p *ResourceProvider) Refresh( s *terraform.ResourceState) (*terraform.ResourceState, error)
func (*ResourceProvider) Resources ¶
func (p *ResourceProvider) Resources() []terraform.ResourceType
func (*ResourceProvider) Validate ¶
func (p *ResourceProvider) Validate(c *terraform.ResourceConfig) ([]string, []error)
func (*ResourceProvider) ValidateResource ¶
func (p *ResourceProvider) ValidateResource( t string, c *terraform.ResourceConfig) ([]string, []error)
type ResourceProviderApplyArgs ¶
type ResourceProviderApplyArgs struct { State *terraform.ResourceState Diff *terraform.ResourceDiff }
type ResourceProviderApplyResponse ¶
type ResourceProviderApplyResponse struct { State *terraform.ResourceState Error *BasicError }
type ResourceProviderConfigureResponse ¶
type ResourceProviderConfigureResponse struct {
Error *BasicError
}
type ResourceProviderDiffArgs ¶
type ResourceProviderDiffArgs struct { State *terraform.ResourceState Config *terraform.ResourceConfig }
type ResourceProviderDiffResponse ¶
type ResourceProviderDiffResponse struct { Diff *terraform.ResourceDiff Error *BasicError }
type ResourceProviderRefreshResponse ¶
type ResourceProviderRefreshResponse struct { State *terraform.ResourceState Error *BasicError }
type ResourceProviderServer ¶
type ResourceProviderServer struct {
Provider terraform.ResourceProvider
}
ResourceProviderServer is a net/rpc compatible structure for serving a ResourceProvider. This should not be used directly.
func (*ResourceProviderServer) Apply ¶
func (s *ResourceProviderServer) Apply( args *ResourceProviderApplyArgs, result *ResourceProviderApplyResponse) error
func (*ResourceProviderServer) Configure ¶
func (s *ResourceProviderServer) Configure( config *terraform.ResourceConfig, reply *ResourceProviderConfigureResponse) error
func (*ResourceProviderServer) Diff ¶
func (s *ResourceProviderServer) Diff( args *ResourceProviderDiffArgs, result *ResourceProviderDiffResponse) error
func (*ResourceProviderServer) Refresh ¶
func (s *ResourceProviderServer) Refresh( state *terraform.ResourceState, result *ResourceProviderRefreshResponse) error
func (*ResourceProviderServer) Resources ¶
func (s *ResourceProviderServer) Resources( nothing interface{}, result *[]terraform.ResourceType) error
func (*ResourceProviderServer) Validate ¶
func (s *ResourceProviderServer) Validate( args *ResourceProviderValidateArgs, reply *ResourceProviderValidateResponse) error
func (*ResourceProviderServer) ValidateResource ¶
func (s *ResourceProviderServer) ValidateResource( args *ResourceProviderValidateResourceArgs, reply *ResourceProviderValidateResourceResponse) error
type ResourceProviderValidateArgs ¶
type ResourceProviderValidateArgs struct {
Config *terraform.ResourceConfig
}
type ResourceProviderValidateResourceArgs ¶
type ResourceProviderValidateResourceArgs struct { Config *terraform.ResourceConfig Type string }
type ResourceProviderValidateResourceResponse ¶
type ResourceProviderValidateResourceResponse struct { Warnings []string Errors []*BasicError }
type ResourceProviderValidateResponse ¶
type ResourceProviderValidateResponse struct { Warnings []string Errors []*BasicError }
type ResourceProvisioner ¶
ResourceProvisioner is an implementation of terraform.ResourceProvisioner that communicates over RPC.
func (*ResourceProvisioner) Apply ¶
func (p *ResourceProvisioner) Apply( s *terraform.ResourceState, c *terraform.ResourceConfig) error
func (*ResourceProvisioner) Validate ¶
func (p *ResourceProvisioner) Validate(c *terraform.ResourceConfig) ([]string, []error)
type ResourceProvisionerApplyArgs ¶
type ResourceProvisionerApplyArgs struct { State *terraform.ResourceState Config *terraform.ResourceConfig }
type ResourceProvisionerApplyResponse ¶
type ResourceProvisionerApplyResponse struct {
Error *BasicError
}
type ResourceProvisionerServer ¶
type ResourceProvisionerServer struct {
Provisioner terraform.ResourceProvisioner
}
ResourceProvisionerServer is a net/rpc compatible structure for serving a ResourceProvisioner. This should not be used directly.
func (*ResourceProvisionerServer) Apply ¶
func (s *ResourceProvisionerServer) Apply( args *ResourceProvisionerApplyArgs, result *ResourceProvisionerApplyResponse) error
func (*ResourceProvisionerServer) Validate ¶
func (s *ResourceProvisionerServer) Validate( args *ResourceProvisionerValidateArgs, reply *ResourceProvisionerValidateResponse) error
type ResourceProvisionerValidateArgs ¶
type ResourceProvisionerValidateArgs struct {
Config *terraform.ResourceConfig
}
type ResourceProvisionerValidateResponse ¶
type ResourceProvisionerValidateResponse struct { Warnings []string Errors []*BasicError }