Documentation ¶
Overview ¶
Package asset provides the /assets APIs
Index ¶
- Constants
- func Analyze(ctx context.Context, assetId string, params *trimmer.AssetAnalyzeParams) (*trimmer.Job, error)
- func CommitRevision(ctx context.Context, assetId string, params *trimmer.MetaUpdateParams) (*trimmer.MetaRevision, error)
- func Count(ctx context.Context, assetId string, params *trimmer.AssetCountParams) (*trimmer.Asset, error)
- func Delete(ctx context.Context, assetId string) error
- func DeleteMedia(ctx context.Context, assetId, mediaId string) error
- func DeleteVersions(ctx context.Context, assetId string) error
- func DiffRevisions(ctx context.Context, assetId string, params *trimmer.MetaDiffParams) ([]byte, error)
- func ForkCopy(ctx context.Context, assetId string, params *trimmer.AssetForkParams) (*trimmer.Asset, error)
- func ForkVersion(ctx context.Context, assetId string, params *trimmer.AssetForkParams) (*trimmer.Asset, error)
- func Get(ctx context.Context, assetId string, params *trimmer.AssetParams) (*trimmer.Asset, error)
- func GetRevision(ctx context.Context, assetId string, params *trimmer.MetaQueryParams) (*trimmer.MetaRevision, error)
- func ListLinks(ctx context.Context, assetId string, params *trimmer.LinkListParams) *link.Iter
- func ListMedia(ctx context.Context, assetId string, params *trimmer.MediaListParams) *media.Iter
- func ListRevisions(ctx context.Context, assetId string, params *trimmer.MetaListParams) *meta.Iter
- func ListTags(ctx context.Context, assetId string, params *trimmer.TagListParams) *tag.Iter
- func Lock(ctx context.Context, assetId string, params *trimmer.EmbedParams) (*trimmer.Asset, error)
- func NewMedia(ctx context.Context, assetId string, params *trimmer.MediaParams) (*trimmer.Media, error)
- func NewTag(ctx context.Context, assetId string, params *trimmer.TagParams) (*trimmer.Tag, error)
- func NewUpload(ctx context.Context, assetId string, params *trimmer.MediaParams) (*trimmer.Media, error)
- func ParseAssetListEvent(s string) trimmer.AssetListEvent
- func ParseAssetState(s string) trimmer.AssetState
- func Snapshot(ctx context.Context, assetId string, params *trimmer.AssetSnapshotParams) (*trimmer.Job, error)
- func Transcode(ctx context.Context, assetId string, params *trimmer.AssetTranscodeParams) (*trimmer.Job, error)
- func Trash(ctx context.Context, assetId string) (*trimmer.Asset, error)
- func Trim(ctx context.Context, assetId string, params *trimmer.AssetTrimParams) (*trimmer.Media, error)
- func Undelete(ctx context.Context, assetId string) (*trimmer.Asset, error)
- func Unlock(ctx context.Context, assetId string, params *trimmer.EmbedParams) (*trimmer.Asset, error)
- func Update(ctx context.Context, assetId string, params *trimmer.AssetUpdateParams) (*trimmer.Asset, error)
- func UploadMedia(ctx context.Context, assetId string, params *trimmer.MediaParams, ...) (*trimmer.Media, error)
- type Client
- func (c Client) Analyze(ctx context.Context, assetId string, params *trimmer.AssetAnalyzeParams) (*trimmer.Job, error)
- func (c Client) CommitRevision(ctx context.Context, assetId string, params *trimmer.MetaUpdateParams) (*trimmer.MetaRevision, error)
- func (c Client) Count(ctx context.Context, assetId string, params *trimmer.AssetCountParams) (*trimmer.Asset, error)
- func (c Client) Delete(ctx context.Context, assetId string) error
- func (c Client) DeleteMedia(ctx context.Context, assetId, mediaId string) error
- func (c Client) DeleteVersions(ctx context.Context, assetId string) error
- func (c Client) DiffRevisions(ctx context.Context, assetId string, params *trimmer.MetaDiffParams) ([]byte, error)
- func (c Client) ForkCopy(ctx context.Context, assetId string, params *trimmer.AssetForkParams) (*trimmer.Asset, error)
- func (c Client) ForkVersion(ctx context.Context, assetId string, params *trimmer.AssetForkParams) (*trimmer.Asset, error)
- func (c Client) Get(ctx context.Context, assetId string, params *trimmer.AssetParams) (*trimmer.Asset, error)
- func (c Client) GetRevision(ctx context.Context, assetId string, params *trimmer.MetaQueryParams) (*trimmer.MetaRevision, error)
- func (c Client) ListLinks(ctx context.Context, assetId string, params *trimmer.LinkListParams) *link.Iter
- func (c Client) ListMedia(ctx context.Context, assetId string, params *trimmer.MediaListParams) *media.Iter
- func (c Client) ListRevisions(ctx context.Context, assetId string, params *trimmer.MetaListParams) *meta.Iter
- func (c Client) ListTags(ctx context.Context, assetId string, params *trimmer.TagListParams) *tag.Iter
- func (c Client) ListVersions(ctx context.Context, assetId string, params *trimmer.AssetListParams) *Iter
- func (c Client) Lock(ctx context.Context, assetId string, params *trimmer.EmbedParams) (*trimmer.Asset, error)
- func (c Client) NewMedia(ctx context.Context, assetId string, params *trimmer.MediaParams) (*trimmer.Media, error)
- func (c Client) NewTag(ctx context.Context, assetId string, params *trimmer.TagParams) (*trimmer.Tag, error)
- func (c Client) NewUpload(ctx context.Context, assetId string, params *trimmer.MediaParams) (*trimmer.Media, error)
- func (c Client) Snapshot(ctx context.Context, assetId string, params *trimmer.AssetSnapshotParams) (*trimmer.Job, error)
- func (c Client) Transcode(ctx context.Context, assetId string, params *trimmer.AssetTranscodeParams) (*trimmer.Job, error)
- func (c Client) Trash(ctx context.Context, assetId string) (*trimmer.Asset, error)
- func (c Client) Trim(ctx context.Context, assetId string, params *trimmer.AssetTrimParams) (*trimmer.Media, error)
- func (c Client) Undelete(ctx context.Context, assetId string) (*trimmer.Asset, error)
- func (c Client) Unlock(ctx context.Context, assetId string, params *trimmer.EmbedParams) (*trimmer.Asset, error)
- func (c Client) Update(ctx context.Context, assetId string, params *trimmer.AssetUpdateParams) (*trimmer.Asset, error)
- func (c Client) UploadMedia(ctx context.Context, assetId string, params *trimmer.MediaParams, ...) (*trimmer.Media, error)
- type Iter
Constants ¶
View Source
const ( AssetStateUndefined trimmer.AssetState = "" AssetStateEmpty trimmer.AssetState = "empty" AssetStateUploading trimmer.AssetState = "uploading" AssetStateProcessing trimmer.AssetState = "processing" AssetStatePublishing trimmer.AssetState = "publishing" AssetStatePublished trimmer.AssetState = "published" AssetStateReviewing trimmer.AssetState = "reviewing" AssetStateApproved trimmer.AssetState = "approved" AssetStateRejected trimmer.AssetState = "rejected" AssetStateArchived trimmer.AssetState = "archived" AssetStateAttention trimmer.AssetState = "attention" AssetStateReady trimmer.AssetState = "ready" AssetStateBlocked trimmer.AssetState = "blocked" AssetStateBanned trimmer.AssetState = "banned" AssetStateDeleting trimmer.AssetState = "deleting" AssetStateCleaning trimmer.AssetState = "cleaning" AssetStateDeleted trimmer.AssetState = "deleted" )
View Source
const ( AssetListEventUndefined trimmer.AssetListEvent = "" AssetListEventCreated trimmer.AssetListEvent = "created" AssetListEventUpdated trimmer.AssetListEvent = "updated" )
AssetListEvent
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func CommitRevision ¶
func CommitRevision(ctx context.Context, assetId string, params *trimmer.MetaUpdateParams) (*trimmer.MetaRevision, error)
func Count ¶
func DiffRevisions ¶
func ForkCopy ¶
func ForkVersion ¶
func Get ¶
func GetRevision ¶
func GetRevision(ctx context.Context, assetId string, params *trimmer.MetaQueryParams) (*trimmer.MetaRevision, error)
func ListLinks ¶
func ListMedia ¶
func ListRevisions ¶
func ListTags ¶
func Lock ¶
func NewMedia ¶
func NewTag ¶
func NewUpload ¶
func ParseAssetListEvent ¶
func ParseAssetListEvent(s string) trimmer.AssetListEvent
func ParseAssetState ¶
func ParseAssetState(s string) trimmer.AssetState
func Snapshot ¶
func Transcode ¶
func Trim ¶
func Unlock ¶
func Update ¶
Types ¶
type Client ¶
Client is used to invoke /users APIs.
func (Client) Analyze ¶
func (Client) CommitRevision ¶
func (c Client) CommitRevision(ctx context.Context, assetId string, params *trimmer.MetaUpdateParams) (*trimmer.MetaRevision, error)
func (Client) Count ¶
func (Client) DeleteMedia ¶
func (Client) DeleteVersions ¶
func (Client) DiffRevisions ¶
func (Client) ForkCopy ¶
func (Client) ForkVersion ¶
func (Client) Get ¶
func (Client) GetRevision ¶
func (c Client) GetRevision(ctx context.Context, assetId string, params *trimmer.MetaQueryParams) (*trimmer.MetaRevision, error)
func (Client) ListLinks ¶
func (Client) ListMedia ¶
func (Client) ListRevisions ¶
func (Client) ListTags ¶
func (Client) ListVersions ¶
func (Client) Lock ¶
func (Client) NewMedia ¶
func (Client) NewTag ¶
func (Client) NewUpload ¶
func (Client) Snapshot ¶
func (Client) Transcode ¶
func (Client) Trash ¶
func (Client) Trim ¶
func (Client) Undelete ¶
func (Client) Unlock ¶
func (Client) Update ¶
Click to show internal directories.
Click to hide internal directories.