Versions in this module Expand all Collapse all v0 v0.2.0 Sep 16, 2015 Changes in this version + var DefaultDownload = Download + var DefaultUpload = Upload + func IsRegularError(err error) bool + func IsSoapFault(err error) bool + func IsVimFault(err error) bool + func ToRegularError(err error) error + func ToVimFault(err error) types.BaseMethodFault + func Wrap(err error) error + func WrapRegularError(err error) error + func WrapSoapFault(f *Fault) error + func WrapVimFault(v types.BaseMethodFault) error + type Client struct + func NewClient(u *url.URL, insecure bool) *Client + func (c *Client) CloseIdleConnections() + func (c *Client) DownloadFile(file string, u *url.URL, param *Download) error + func (c *Client) MarshalJSON() ([]byte, error) + func (c *Client) ParseURL(urlStr string) (*url.URL, error) + func (c *Client) RoundTrip(ctx context.Context, reqBody, resBody HasFault) error + func (c *Client) URL() *url.URL + func (c *Client) UnmarshalJSON(b []byte) error + func (c *Client) Upload(f io.Reader, u *url.URL, param *Upload) error + func (c *Client) UploadFile(file string, u *url.URL, param *Upload) error + type Download struct + Method string + Progress progress.Sinker + type Envelope struct + Body interface{} + Header *Header + XMLName xml.Name + type Fault struct + Code string + Detail struct{ ... } + String string + XMLName xml.Name + func ToSoapFault(err error) *Fault + func (f *Fault) VimFault() types.AnyType + type HasFault interface + Fault func() *Fault + type Header struct + XMLName xml.Name + type RoundTripper interface + RoundTrip func(ctx context.Context, req, res HasFault) error + type Upload struct + ContentLength int64 + Headers map[string]string + Method string + Progress progress.Sinker + Type string