sample

package
v0.0.0-...-56d287b Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 12 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 BucketAccessMonitorSample

func BucketAccessMonitorSample()

BucketAccessMonitorSample how to set, get the bucket access monitor.

func BucketCORSSample

func BucketCORSSample()

BucketCORSSample shows how to get or set the bucket CORS.

func BucketCnameSample

func BucketCnameSample()

BucketCnameSample shows how to get,put,list or delete the bucket cname.

func BucketEncryptionSample

func BucketEncryptionSample()

BucketEncryptionSample shows how to get and set the bucket encryption Algorithm

func BucketInfoSample

func BucketInfoSample()

BucketInfoSample shows how to get the bucket info.

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 BucketMetaQuerySample

func BucketMetaQuerySample()

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 BucketReplicationSample

func BucketReplicationSample()

BucketReplicationSample how to set, get or delete the bucket replication.

func BucketResourceGroupSample

func BucketResourceGroupSample()

BucketResourceGroupSample shows how to set and get the bucket's resource group.

func BucketResponseHeaderSample

func BucketResponseHeaderSample()

BucketResponseHeaderSample shows how to set, get and delete the bucket's response header.

func BucketStatSample

func BucketStatSample()

BucketStatSample shows how to get the bucket stat.

func BucketStyleSample

func BucketStyleSample()

BucketStyleSample shows how to set,get list and delete the bucket's style.

func BucketTaggingSample

func BucketTaggingSample()

BucketTaggingSample shows how to set,get and the bucket stat.

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 DescribeRegionsSample

func DescribeRegionsSample()

DescribeRegionsSample shows how to get or list describe regions

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