packer-plugin-xenserver/vendor/github.com/nilshell/xmlrpc/xmlrpc.go
Phus Lu addd20360c Add Godeps
Signed-off-by: Phus Lu <phus.lu@citrix.com>
2016-07-15 09:44:41 -07:00

28 lines
566 B
Go

package xmlrpc
import (
"fmt"
)
// Struct presents hash type used in xmlprc requests and responses.
type Struct map[string]interface{}
// Base64 represents base64 data
type Base64 string
// Params represents a list of parameters to a method.
type Params struct {
Params []interface{}
}
// xmlrpcError represents errors returned on xmlrpc request.
type xmlrpcError struct {
code string
message string
}
// Error() method implements Error interface
func (e *xmlrpcError) Error() string {
return fmt.Sprintf("Error: \"%s\" Code: %s", e.message, e.code)
}