mock

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

func (*Client) Delete

func (c *Client) Delete(url *url.URL, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) DeleteData

func (c *Client) DeleteData(url *url.URL, data interface{}, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) DownloadFile

func (c *Client) DownloadFile(hash string, w io.Writer) (int64, error)

func (*Client) Get

func (c *Client) Get(url *url.URL, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) GetData

func (c *Client) GetData(url *url.URL, target interface{}, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) GetMetadata

func (c *Client) GetMetadata() (*vt.Metadata, error)

func (*Client) GetObject

func (c *Client) GetObject(url *url.URL, options ...vt.RequestOption) (*vt.Object, error)

func (*Client) Iterator

func (c *Client) Iterator(url *url.URL, options ...vt.IteratorOption) (*vt.Iterator, error)

func (*Client) NewFileScanner

func (c *Client) NewFileScanner() *vt.FileScanner

func (*Client) NewMonitorUploader

func (c *Client) NewMonitorUploader() *vt.MonitorUploader

func (*Client) NewURLScanner

func (c *Client) NewURLScanner() *vt.URLScanner

func (*Client) Patch

func (c *Client) Patch(url *url.URL, req *vt.Request, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) PatchObject

func (c *Client) PatchObject(url *url.URL, obj *vt.Object, options ...vt.RequestOption) error

func (*Client) Post

func (c *Client) Post(url *url.URL, req *vt.Request, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) PostData

func (c *Client) PostData(url *url.URL, data interface{}, options ...vt.RequestOption) (*vt.Response, error)

func (*Client) PostObject

func (c *Client) PostObject(url *url.URL, obj *vt.Object, options ...vt.RequestOption) error

func (*Client) Search

func (c *Client) Search(query string, options ...vt.IteratorOption) (*vt.Iterator, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL