Documentation ¶
Overview ¶
Package sample examples
Index ¶
- func AppendObjectSample()
- func ArchiveSample()
- func BucketACLSample()
- func BucketCORSSample()
- func BucketEncryptionSample()
- func BucketInventorySample()
- func BucketLifecycleSample()
- func BucketLoggingSample()
- func BucketPolicySample()
- func BucketQoSInfoSample()
- func BucketRefererSample()
- func BucketWebsiteSample()
- func BucketrRequestPaymentSample()
- func CnameSample()
- func CopyObjectSample()
- func CreateBucketSample()
- func CreateLiveChannelSample()
- func CreateObjects(bucket *oss.Bucket, objects []Object) error
- func DeleteLiveChannelSample()
- func DeleteObjectSample()
- func DeleteObjects(bucket *oss.Bucket, objects []Object) error
- func DeleteTestBucketAndLiveChannel(bucketName string) error
- func DeleteTestBucketAndObject(bucketName string) error
- func GetLiveChannelHistorySample()
- func GetLiveChannelInfoSample()
- func GetLiveChannelStatSample()
- func GetObjectSample()
- func GetTestBucket(bucketName string) (*oss.Bucket, error)
- func GetVodPlayListSample()
- func HandleError(err error)
- func ListBucketsSample()
- func ListLiveChannelSample()
- func ListObjectsSample()
- func NewBucketSample()
- func ObjectACLSample()
- func ObjectMetaSample()
- func ObjectTaggingSample()
- func PostVodPlayListSample()
- func PutLiveChannelStatusSample()
- func PutObjectSample()
- func SelectObjectSample()
- func SignRtmpURLSample()
- func SignURLSample()
- type Object
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendObjectSample ¶
func AppendObjectSample()
AppendObjectSample shows the append file's usage
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 CreateLiveChannelSample ¶
func CreateLiveChannelSample()
CreateLiveChannelSample Samples for create a live-channel
func CreateObjects ¶
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 ¶
DeleteObjects deletes some objects.
func DeleteTestBucketAndLiveChannel ¶
DeleteTestBucketAndLiveChannel 删除sample的channelname和bucket,该函数为了简化sample,让sample代码更明了
func DeleteTestBucketAndObject ¶
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 ¶
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 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.
Types ¶
Source Files ¶
- append_object.go
- archive.go
- bucket_acl.go
- bucket_cors.go
- bucket_encryption.go
- bucket_inventory.go
- bucket_lifecycle.go
- bucket_logging.go
- bucket_policy.go
- bucket_qosInfo.go
- bucket_referer.go
- bucket_requestpayment.go
- bucket_website.go
- cname_sample.go
- comm.go
- config.go
- copy_object.go
- create_bucket.go
- delete_object.go
- get_object.go
- list_buckets.go
- list_objects.go
- livechannel.go
- new_bucket.go
- object_acl.go
- object_meta.go
- object_tagging.go
- put_object.go
- select_object.go
- sign_url.go