Documentation ¶
Index ¶
- func Adapt(rpcClient rpc_client.Client) group.Plugin
- func NewClient(socketPath string) (group.Plugin, error)
- type CommitGroupRequest
- type CommitGroupResponse
- type DescribeGroupRequest
- type DescribeGroupResponse
- type DestroyGroupRequest
- type DestroyGroupResponse
- type DestroyInstancesRequest
- type DestroyInstancesResponse
- type FreeGroupRequest
- type FreeGroupResponse
- type Group
- func (p *Group) CommitGroup(_ *http.Request, req *CommitGroupRequest, resp *CommitGroupResponse) error
- func (p *Group) DescribeGroup(_ *http.Request, req *DescribeGroupRequest, resp *DescribeGroupResponse) error
- func (p *Group) DestroyGroup(_ *http.Request, req *DestroyGroupRequest, resp *DestroyGroupResponse) error
- func (p *Group) DestroyInstances(_ *http.Request, req *DestroyInstancesRequest, resp *DestroyInstancesResponse) error
- func (p *Group) ExampleProperties() *types.Any
- func (p *Group) FreeGroup(_ *http.Request, req *FreeGroupRequest, resp *FreeGroupResponse) error
- func (p *Group) ImplementedInterface() spi.InterfaceSpec
- func (p *Group) InspectGroups(_ *http.Request, req *InspectGroupsRequest, resp *InspectGroupsResponse) error
- func (p *Group) SetSize(_ *http.Request, req *SetSizeRequest, resp *SetSizeResponse) error
- func (p *Group) Size(_ *http.Request, req *SizeRequest, resp *SizeResponse) error
- func (p *Group) Types() []string
- func (p *Group) VendorInfo() *spi.VendorInfo
- type InspectGroupsRequest
- type InspectGroupsResponse
- type SetSizeRequest
- type SetSizeResponse
- type SizeRequest
- type SizeResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommitGroupRequest ¶
CommitGroupRequest is the rpc wrapper for input to commit a group
type CommitGroupResponse ¶
CommitGroupResponse is the rpc wrapper for the results to commit a group
type DescribeGroupRequest ¶
DescribeGroupRequest is the rpc wrapper for the input to inspect a group
type DescribeGroupResponse ¶
type DescribeGroupResponse struct { ID group.ID Description group.Description }
DescribeGroupResponse is the rpc wrapper for the results from inspecting a group
type DestroyGroupRequest ¶
DestroyGroupRequest is the rpc wrapper for the input to destroy a group
type DestroyGroupResponse ¶
DestroyGroupResponse is the rpc wrapper for the output from destroying a group
type DestroyInstancesRequest ¶
DestroyInstancesRequest is the rpc wrapper for the input to destroy instances
type DestroyInstancesResponse ¶
DestroyInstancesResponse is the rpc wrapper for the output from destroy instances
type FreeGroupRequest ¶
FreeGroupRequest is the rpc wrapper for input to free a group
type FreeGroupResponse ¶
FreeGroupResponse is the rpc wrapper for the results to free a group
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group the exported type needed to conform to json-rpc call convention
func PluginServer ¶
PluginServer returns a RPCService that conforms to the net/rpc rpc call convention.
func PluginServerWithGroups ¶
PluginServerWithGroups returns a Group map of plugins by group.ID
func (*Group) CommitGroup ¶
func (p *Group) CommitGroup(_ *http.Request, req *CommitGroupRequest, resp *CommitGroupResponse) error
CommitGroup is the rpc method to commit a group
func (*Group) DescribeGroup ¶
func (p *Group) DescribeGroup(_ *http.Request, req *DescribeGroupRequest, resp *DescribeGroupResponse) error
DescribeGroup is the rpc method to describe a group
func (*Group) DestroyGroup ¶
func (p *Group) DestroyGroup(_ *http.Request, req *DestroyGroupRequest, resp *DestroyGroupResponse) error
DestroyGroup is the rpc method to destroy a group
func (*Group) DestroyInstances ¶
func (p *Group) DestroyInstances(_ *http.Request, req *DestroyInstancesRequest, resp *DestroyInstancesResponse) error
DestroyInstances is the rpc method to destroy specific instances
func (*Group) ExampleProperties ¶
ExampleProperties returns an example properties used by the plugin
func (*Group) FreeGroup ¶
func (p *Group) FreeGroup(_ *http.Request, req *FreeGroupRequest, resp *FreeGroupResponse) error
FreeGroup is the rpc method to free a group
func (*Group) ImplementedInterface ¶
func (p *Group) ImplementedInterface() spi.InterfaceSpec
ImplementedInterface returns the interface implemented by this RPC service.
func (*Group) InspectGroups ¶
func (p *Group) InspectGroups(_ *http.Request, req *InspectGroupsRequest, resp *InspectGroupsResponse) error
InspectGroups is the rpc method to inspect groups
func (*Group) SetSize ¶
func (p *Group) SetSize(_ *http.Request, req *SetSizeRequest, resp *SetSizeResponse) error
SetSize is the rpc method to set the group target size
func (*Group) Size ¶
func (p *Group) Size(_ *http.Request, req *SizeRequest, resp *SizeResponse) error
Size is the rpc method to get the group target size
func (*Group) VendorInfo ¶
func (p *Group) VendorInfo() *spi.VendorInfo
VendorInfo returns a metadata object about the plugin, if the plugin implements it. See plugin.Vendor
type InspectGroupsRequest ¶
InspectGroupsRequest is the rpc wrapper for the input to inspect groups
type InspectGroupsResponse ¶
InspectGroupsResponse is the rpc wrapper for the output from inspecting groups
type SetSizeRequest ¶
SetSizeRequest is the rpc wrapper for the getting size
type SetSizeResponse ¶
SetSizeResponse is the rpc wrapper for the output of sizefrom destroy instances
type SizeRequest ¶
SizeRequest is the rpc wrapper for the getting size
type SizeResponse ¶
SizeResponse is the rpc wrapper for the output of sizefrom destroy instances