Documentation
      ¶
    
    
  
    
  
    Index ¶
- func NewClient(socketPath string) instance.Plugin
 - type DescribeInstancesRequest
 - type DescribeInstancesResponse
 - type DestroyRequest
 - type DestroyResponse
 - type Instance
 - func (p *Instance) DescribeInstances(_ *http.Request, req *DescribeInstancesRequest, ...) error
 - func (p *Instance) Destroy(_ *http.Request, req *DestroyRequest, resp *DestroyResponse) error
 - func (p *Instance) ImplementedInterface() spi.InterfaceSpec
 - func (p *Instance) Provision(_ *http.Request, req *ProvisionRequest, resp *ProvisionResponse) error
 - func (p *Instance) Validate(_ *http.Request, req *ValidateRequest, resp *ValidateResponse) error
 
- type ProvisionRequest
 - type ProvisionResponse
 - type ValidateRequest
 - type ValidateResponse
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DescribeInstancesRequest ¶
DescribeInstancesRequest is the rpc wrapper for DescribeInstances request
type DescribeInstancesResponse ¶
type DescribeInstancesResponse struct {
	Descriptions []instance.Description
}
    DescribeInstancesResponse is the rpc wrapper for the DescribeInstances response
type DestroyRequest ¶
DestroyRequest is the rpc wrapper for Destroy request
type DestroyResponse ¶
type DestroyResponse struct {
	OK bool
}
    DestroyResponse is the rpc wrapper for Destroy response
type Instance ¶
type Instance struct {
	// contains filtered or unexported fields
}
    Instance is the JSON RPC service representing the Instance Plugin. It must be exported in order to be registered by the rpc server package.
func PluginServer ¶
PluginServer returns a RPCService that conforms to the net/rpc rpc call convention.
func (*Instance) DescribeInstances ¶
func (p *Instance) DescribeInstances(_ *http.Request, req *DescribeInstancesRequest, resp *DescribeInstancesResponse) error
DescribeInstances returns descriptions of all instances matching all of the provided tags.
func (*Instance) Destroy ¶
func (p *Instance) Destroy(_ *http.Request, req *DestroyRequest, resp *DestroyResponse) error
Destroy terminates an existing instance.
func (*Instance) ImplementedInterface ¶
func (p *Instance) ImplementedInterface() spi.InterfaceSpec
ImplementedInterface returns the interface implemented by this RPC service.
func (*Instance) Provision ¶
func (p *Instance) Provision(_ *http.Request, req *ProvisionRequest, resp *ProvisionResponse) error
Provision creates a new instance based on the spec.
func (*Instance) Validate ¶
func (p *Instance) Validate(_ *http.Request, req *ValidateRequest, resp *ValidateResponse) error
Validate performs local validation on a provision request.
type ProvisionRequest ¶
ProvisionRequest is the rpc wrapper for Provision request
type ProvisionResponse ¶
ProvisionResponse is the rpc wrapper for Provision response
type ValidateRequest ¶
type ValidateRequest struct {
	Properties *json.RawMessage
}
    ValidateRequest is the rpc wrapper for the Validate method args
type ValidateResponse ¶
type ValidateResponse struct {
	OK bool
}
    ValidateResponse is the rpc wrapper for the Validate response values