sample.go 678 B

123456789101112131415161718192021222324252627282930313233343536
  1. // main of samples
  2. package main
  3. import (
  4. "fmt"
  5. "github.com/aliyun/aliyun-oss-go-sdk/sample"
  6. )
  7. func main() {
  8. sample.CreateBucketSample()
  9. sample.NewBucketSample()
  10. sample.ListBucketsSample()
  11. sample.BucketACLSample()
  12. sample.BucketLifecycleSample()
  13. sample.BucketRefererSample()
  14. sample.BucketLoggingSample()
  15. sample.BucketCORSSample()
  16. sample.ObjectACLSample()
  17. sample.ObjectMetaSample()
  18. sample.ListObjectsSample()
  19. sample.DeleteObjectSample()
  20. sample.AppendObjectSample()
  21. sample.CopyObjectSample()
  22. sample.PutObjectSample()
  23. sample.GetObjectSample()
  24. sample.CnameSample()
  25. sample.SignURLSample()
  26. sample.ArchiveSample()
  27. fmt.Println("All samples completed")
  28. }