api

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package api defines all APIs supported by the VCA service of BCE.

Index

Constants

This section is empty.

Variables

Functions

func AddImage

func AddImage(cli bce.Client, uri string, args *model.ImageArgs) error

若brief不存在会自动创建

func AddImages

func AddImages(cli bce.Client, uri string, images *model.ImageList) *model.ImageList

func CreateImageLib

func CreateImageLib(cli bce.Client, uri string, args *model.PostImageLibArgs) error

func DeleteImage

func DeleteImage(cli bce.Client, uri string, image *model.ImageArgs) error

若删除的图片为brief中最后一张图片,则brief同时会被删除

func DeleteImageBrief

func DeleteImageBrief(cli bce.Client, uri, brief string) error

目前不能直接删除图集

func DeleteImages

func DeleteImages(cli bce.Client, uri string, images *model.ImageList) *model.ImageList

func GetImageLib

func GetImageLib(cli bce.Client, uri string) (*model.ImageLibList, error)

func GetMedia

func GetMedia(cli bce.Client, params map[string]string) (*model.GetMediaResult, error)

func GetStream

func GetStream(cli bce.Client, params map[string]string) (*model.GetStreamResult, error)

func GetSubTask

func GetSubTask(cli bce.Client, task model.SubTask, params map[string]string) (*model.SubTaskResult, error)

func ListImage

func ListImage(cli bce.Client, uri string, images *model.ImageList) error

func ListImageBrief

func ListImageBrief(cli bce.Client, uri string) (*model.BriefList, error)

func NewSubTaskResult

func NewSubTaskResult(taskType model.SubTask) *model.SubTaskResult

func PutMedia

func PutMedia(cli bce.Client, args *model.PutMediaArgs) (*model.MediaResultCommon, error)

func PutStream

func PutStream(cli bce.Client, args *model.StreamArgs) (*model.StreamResultCommon, error)

func StopStream

func StopStream(cli bce.Client, args *model.StreamArgs) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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