sample

package
v2.1.8+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package sample examples

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendObjectSample

func AppendObjectSample()

AppendObjectSample shows the append file's usage

func ArchiveSample

func ArchiveSample()

ArchiveSample archives sample

func BucketACLSample

func BucketACLSample()

BucketACLSample shows how to get and set the bucket ACL

func BucketCORSSample

func BucketCORSSample()

BucketCORSSample shows how to get or set the bucket CORS.

func BucketEncryptionSample

func BucketEncryptionSample()

BucketEncryptionSample shows how to get and set the bucket encryption Algorithm

func BucketInventorySample

func BucketInventorySample()

BucketInventorySample shows how to set, get, list and delete the bucket inventory configuration

func BucketLifecycleSample

func BucketLifecycleSample()

BucketLifecycleSample shows how to set, get and delete bucket's lifecycle.

func BucketLoggingSample

func BucketLoggingSample()

BucketLoggingSample shows how to set, get and delete the bucket logging configuration

func BucketPolicySample

func BucketPolicySample()

BucketPolicySample shows how to set, get and delete the bucket policy configuration

func BucketQoSInfoSample

func BucketQoSInfoSample()

BucketQoSInfoSample shows how to set, get and delete the bucket QoS configuration

func BucketRefererSample

func BucketRefererSample()

BucketRefererSample shows how to set, get and delete the bucket referer.

func BucketWebsiteSample

func BucketWebsiteSample()

BucketWebsiteSample shows how to set, get and delete the bucket website.

func BucketrRequestPaymentSample

func BucketrRequestPaymentSample()

BucketrRequestPaymentSample shows how to set, get the bucket request payment.

func CnameSample

func CnameSample()

CnameSample shows the cname usage

func CopyObjectSample

func CopyObjectSample()

CopyObjectSample shows the copy files usage

func CreateBucketSample

func CreateBucketSample()

CreateBucketSample shows how to create bucket

func CreateLiveChannelSample

func CreateLiveChannelSample()

CreateLiveChannelSample Samples for create a live-channel

func CreateObjects

func CreateObjects(bucket *oss.Bucket, objects []Object) error

CreateObjects creates some objects

func DeleteLiveChannelSample

func DeleteLiveChannelSample()

DeleteLiveChannelSample Sample for delete live-channel

func DeleteObjectSample

func DeleteObjectSample()

DeleteObjectSample shows how to delete single file or multiple files

func DeleteObjects

func DeleteObjects(bucket *oss.Bucket, objects []Object) error

DeleteObjects deletes some objects.

func DeleteTestBucketAndLiveChannel

func DeleteTestBucketAndLiveChannel(bucketName string) error

DeleteTestBucketAndLiveChannel 删除sample的channelname和bucket,该函数为了简化sample,让sample代码更明了

func DeleteTestBucketAndObject

func DeleteTestBucketAndObject(bucketName string) error

DeleteTestBucketAndObject deletes the test bucket and its objects

func GetLiveChannelHistorySample

func GetLiveChannelHistorySample()

GetLiveChannelHistorySample Sample for get push records of live-channel

func GetLiveChannelInfoSample

func GetLiveChannelInfoSample()

GetLiveChannelInfoSample Sample for get the configuration infomation of live-channel

func GetLiveChannelStatSample

func GetLiveChannelStatSample()

GetLiveChannelStatSample Sample for get the state of live-channel

func GetObjectSample

func GetObjectSample()

GetObjectSample shows the streaming download, range download and resumable download.

func GetTestBucket

func GetTestBucket(bucketName string) (*oss.Bucket, error)

GetTestBucket creates the test bucket

func GetVodPlayListSample

func GetVodPlayListSample()

GetVodPlayListSample Sample for generate playlist and return the content of the playlist

func HandleError

func HandleError(err error)

HandleError is the error handling method in the sample code

func ListBucketsSample

func ListBucketsSample()

ListBucketsSample shows the list bucket, including default and specified parameters.

func ListLiveChannelSample

func ListLiveChannelSample()

ListLiveChannelSample Samples for list live-channels with specified bucket name

func ListObjectsSample

func ListObjectsSample()

ListObjectsSample shows the file list, including default and specified parameters.

func NewBucketSample

func NewBucketSample()

NewBucketSample shows how to initialize client and bucket

func ObjectACLSample

func ObjectACLSample()

ObjectACLSample shows how to set and get object ACL

func ObjectMetaSample

func ObjectMetaSample()

ObjectMetaSample shows how to get and set the object metadata

func ObjectTaggingSample

func ObjectTaggingSample()

ObjectTaggingSample shows how to set and get object Tagging

func PostVodPlayListSample

func PostVodPlayListSample()

PostVodPlayListSample Sample for generate playlist

func PutLiveChannelStatusSample

func PutLiveChannelStatusSample()

PutLiveChannelStatusSample Set the status of the live-channel sample: enabled/disabled

func PutObjectSample

func PutObjectSample()

PutObjectSample illustrates two methods for uploading a file: simple upload and multipart upload.

func SelectObjectSample

func SelectObjectSample()

SelectObjectSample shows how to get data from csv/json object by sql

func SignRtmpURLSample

func SignRtmpURLSample()

SignRtmpURLSample Sample for generate a RTMP push-stream signature URL for the trusted user to push the RTMP stream to the live channel.

func SignURLSample

func SignURLSample()

SignURLSample signs URL sample

Types

type Object

type Object struct {
	Key   string
	Value string
}

Object defines pair of key and value

Jump to

Keyboard shortcuts

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