Documentation ¶
Overview ¶
Package vcr defines the VCR services of BCE. The supported APIs are all defined in sub-package
Index ¶
- Constants
- type Client
- func (c *Client) GetMedia(source string) (*api.GetMediaResult, error)
- func (c *Client) PutImageSync(args *api.PutImageSyncArgs) (*api.PutImageSyncResult, error)
- func (c *Client) PutMedia(args *api.PutMediaArgs) error
- func (c *Client) PutText(args *api.PutTextArgs) (*api.PutTextResult, error)
- func (c *Client) SimplePutImageSync(source string) (*api.PutImageSyncResult, error)
- func (c *Client) SimplePutMedia(source string, description string, preset string, notification string) error
- func (c *Client) SimplePutText(text string) (*api.PutTextResult, error)
Constants ¶
View Source
const (
DEFAULT_SERVICE_DOMAIN = "vcr." + bce.DEFAULT_REGION + "." + bce.DEFAULT_DOMAIN
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client of VCR service is a kind of BceClient, so derived from BceClient
func NewClient ¶
NewClient make the VCR service client with default configuration. Use `cli.Config.xxx` to access the config or change it to non-default value.
func (*Client) PutImageSync ¶ added in v0.9.87
func (c *Client) PutImageSync(args *api.PutImageSyncArgs) (*api.PutImageSyncResult, error)
func (*Client) PutText ¶
func (c *Client) PutText(args *api.PutTextArgs) (*api.PutTextResult, error)
func (*Client) SimplePutImageSync ¶ added in v0.9.87
func (c *Client) SimplePutImageSync(source string) (*api.PutImageSyncResult, error)
func (*Client) SimplePutMedia ¶
func (*Client) SimplePutText ¶
func (c *Client) SimplePutText(text string) (*api.PutTextResult, error)
Click to show internal directories.
Click to hide internal directories.