vcr

package
v0.9.32 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package vcr defines the VCR services of BCE. The supported APIs are all defined in sub-package

Index

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

type Client struct {
	*bce.BceClient
}

Client of VCR service is a kind of BceClient, so derived from BceClient

func NewClient

func NewClient(ak, sk, endpoint string) (*Client, error)

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) GetMedia

func (c *Client) GetMedia(source string) (*api.GetMediaResult, error)

func (*Client) PutMedia

func (c *Client) PutMedia(args *api.PutMediaArgs) error

func (*Client) PutText

func (c *Client) PutText(args *api.PutTextArgs) (*api.PutTextResult, error)

func (*Client) SimplePutMedia

func (c *Client) SimplePutMedia(source string, description string, preset string, notification string) error

func (*Client) SimplePutText

func (c *Client) SimplePutText(text string) (*api.PutTextResult, error)

Directories

Path Synopsis
Package api defines all APIs supported by the VCR service of BCE.
Package api defines all APIs supported by the VCR service of BCE.

Jump to

Keyboard shortcuts

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