Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionFactory ¶
type ActionFactory interface {
Create(method string, apiVersion int, context apiv1.CallContext) (interface{}, error)
}
type CloudError ¶
type Dispatcher ¶
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func (Factory) NewCLIWithInOut ¶
type JSONCaller ¶
type JSONCaller struct{}
JSONCaller unmarshals call arguments with json package and calls action.Run
func NewJSONCaller ¶
func NewJSONCaller() JSONCaller
func (JSONCaller) Call ¶
func (r JSONCaller) Call(action interface{}, args []interface{}) (value interface{}, err error)
type JSONDispatcher ¶
type JSONDispatcher struct {
// contains filtered or unexported fields
}
func NewJSONDispatcher ¶
func NewJSONDispatcher(actionFactory ActionFactory, caller Caller, logger boshlog.Logger) JSONDispatcher
func (JSONDispatcher) Dispatch ¶
func (c JSONDispatcher) Dispatch(reqBytes []byte) []byte
type Request ¶
type Request struct { Method string `json:"method"` Arguments []interface{} `json:"arguments"` Context apiv1.CloudPropsImpl `json:"context"` APIVersion int `json:"api_version"` }
type Response ¶
type Response struct { Result interface{} `json:"result"` Error *ResponseError `json:"error"` Log string `json:"log"` }
type ResponseError ¶
type RetryableError ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter
|
This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter This file was generated by counterfeiter |
Click to show internal directories.
Click to hide internal directories.