Documentation ¶
Overview ¶
*
- This sample demonstrates how to do bucket-related operations
- (such as do bucket ACL/CORS/Lifecycle/Logging/Website/Location/Tagging)
- on OBS using the OBS SDK for Go.
*
- This sample demonstrates how to multipart upload an object concurrently by copy mode
- to OBS using the OBS SDK for Go.
*
- This sample demonstrates how to download an object concurrently
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to multipart upload an object concurrently
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to create an empty folder under
- specified bucket to OBS using the OBS SDK for Go.
*
- This sample demonstrates how to delete objects under specified bucket
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to download an object
- from OBS in different ways using the OBS SDK for Go.
*
- This sample demonstrates how to list objects under a specified folder of a bucket
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to list objects under specified bucket
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to list versions under specified bucket
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to set/get self-defined metadata for object
- on OBS using the OBS SDK for Go.
*
- This sample demonstrates how to do object-related operations
- (such as create/delete/get/copy object, do object ACL)
- on OBS using the OBS SDK for Go.
*
- This sample demonstrates how to download an cold object
- from OBS using the OBS SDK for Go.
*
- This sample demonstrates how to upload multiparts to OBS
- using the OBS SDK for Go.
*
- This sample demonstrates how to do common operations in temporary signature way
- on OBS using the OBS SDK for Go.
Index ¶
- Constants
- func RunBucketOperationsSample()
- func RunConcurrentCopyPartSample()
- func RunConcurrentDownloadObjectSample()
- func RunConcurrentUploadPartSample()
- func RunCreateFolderSample()
- func RunDeleteObjectsSample()
- func RunDownloadSample()
- func RunListObjectsInFolderSample()
- func RunListObjectsSample()
- func RunListVersionsSample()
- func RunObjectMetaSample()
- func RunObjectOperationsSample()
- func RunRestoreObjectSample()
- func RunSimpleMultipartUploadSample()
- func RunTemporarySignatureSample()
- type BucketOperationsSample
- func (sample BucketOperationsSample) CreateBucket()
- func (sample BucketOperationsSample) DeleteBucket()
- func (sample BucketOperationsSample) DoBucketAclOperation()
- func (sample BucketOperationsSample) DoBucketCorsOperation()
- func (sample BucketOperationsSample) DoBucketLifycleOperation()
- func (sample BucketOperationsSample) DoBucketLoggingOperation()
- func (sample BucketOperationsSample) DoBucketQuotaOperation()
- func (sample BucketOperationsSample) DoBucketTaggingOperation()
- func (sample BucketOperationsSample) DoBucketVersioningOperation()
- func (sample BucketOperationsSample) DoBucketWebsiteOperation()
- func (sample BucketOperationsSample) GetBucketLocation()
- func (sample BucketOperationsSample) GetBucketMetadata()
- func (sample BucketOperationsSample) GetBucketStorageInfo()
- type ConcurrentCopyPartSample
- type ConcurrentDownloadObjectSample
- type ConcurrentUploadPartSample
- type CreateFolderSample
- type DeleteObjectsSample
- type DownloadSample
- type ListObjectsInFolderSample
- func (sample ListObjectsInFolderSample) BatchDeleteObjects()
- func (sample ListObjectsInFolderSample) CreateBucket()
- func (sample ListObjectsInFolderSample) ListObjectsGroupByFolder()
- func (sample ListObjectsInFolderSample) ListObjectsInFolders()
- func (sample ListObjectsInFolderSample) PrepareFoldersAndObjects()
- type ListObjectsSample
- func (sample ListObjectsSample) CreateBucket()
- func (sample ListObjectsSample) DeleteObjects(keys []string)
- func (sample ListObjectsSample) DoInsertObjects() []string
- func (sample ListObjectsSample) ListObjects()
- func (sample ListObjectsSample) ListObjectsByMarker()
- func (sample ListObjectsSample) ListObjectsByPage()
- type ListVersionsSample
- func (sample ListVersionsSample) BatchDeleteVersions()
- func (sample ListVersionsSample) CreateBucket()
- func (sample ListVersionsSample) ListVersionsByPage()
- func (sample ListVersionsSample) ListVersionsGroupByFolder()
- func (sample ListVersionsSample) ListVersionsInFolders()
- func (sample ListVersionsSample) PrepareFoldersAndObjects()
- type ObjectMetaSample
- type ObjectOperationsSample
- func (sample ObjectOperationsSample) CopyObject()
- func (sample ObjectOperationsSample) CreateBucket()
- func (sample ObjectOperationsSample) CreateObject()
- func (sample ObjectOperationsSample) DeleteObject()
- func (sample ObjectOperationsSample) DoObjectAcl()
- func (sample ObjectOperationsSample) GetObject()
- func (sample ObjectOperationsSample) GetObjectMeta()
- type RestoreObjectSample
- type SimpleMultipartUploadSample
- func (sample SimpleMultipartUploadSample) CompleteMultipartUpload(uploadId, etag string, partNumber int)
- func (sample SimpleMultipartUploadSample) CreateBucket()
- func (sample SimpleMultipartUploadSample) InitiateMultipartUpload() string
- func (sample SimpleMultipartUploadSample) UploadPart(uploadId string) (string, int)
- type TemporarySignatureSample
- func (sample TemporarySignatureSample) CreateBucket()
- func (sample TemporarySignatureSample) DeleteBucket()
- func (sample TemporarySignatureSample) DeleteObject()
- func (sample TemporarySignatureSample) DoBucketCors()
- func (sample TemporarySignatureSample) DoObjectAcl()
- func (sample TemporarySignatureSample) GetObject()
- func (sample TemporarySignatureSample) ListBuckets()
- func (sample TemporarySignatureSample) PutFile(sampleFilePath string)
- func (sample TemporarySignatureSample) PutObject()
Constants ¶
View Source
const (
MyObjectKey string = "MyObjectKey"
)
Variables ¶
This section is empty.
Functions ¶
func RunBucketOperationsSample ¶
func RunBucketOperationsSample()
func RunConcurrentCopyPartSample ¶
func RunConcurrentCopyPartSample()
func RunConcurrentDownloadObjectSample ¶
func RunConcurrentDownloadObjectSample()
func RunConcurrentUploadPartSample ¶
func RunConcurrentUploadPartSample()
func RunCreateFolderSample ¶
func RunCreateFolderSample()
func RunDeleteObjectsSample ¶
func RunDeleteObjectsSample()
func RunDownloadSample ¶
func RunDownloadSample()
func RunListObjectsInFolderSample ¶
func RunListObjectsInFolderSample()
func RunListObjectsSample ¶
func RunListObjectsSample()
func RunListVersionsSample ¶
func RunListVersionsSample()
func RunObjectMetaSample ¶
func RunObjectMetaSample()
func RunObjectOperationsSample ¶
func RunObjectOperationsSample()
func RunRestoreObjectSample ¶
func RunRestoreObjectSample()
func RunSimpleMultipartUploadSample ¶
func RunSimpleMultipartUploadSample()
func RunTemporarySignatureSample ¶
func RunTemporarySignatureSample()
Types ¶
type BucketOperationsSample ¶
type BucketOperationsSample struct {
// contains filtered or unexported fields
}
func (BucketOperationsSample) CreateBucket ¶
func (sample BucketOperationsSample) CreateBucket()
func (BucketOperationsSample) DeleteBucket ¶
func (sample BucketOperationsSample) DeleteBucket()
func (BucketOperationsSample) DoBucketAclOperation ¶
func (sample BucketOperationsSample) DoBucketAclOperation()
func (BucketOperationsSample) DoBucketCorsOperation ¶
func (sample BucketOperationsSample) DoBucketCorsOperation()
func (BucketOperationsSample) DoBucketLifycleOperation ¶
func (sample BucketOperationsSample) DoBucketLifycleOperation()
func (BucketOperationsSample) DoBucketLoggingOperation ¶
func (sample BucketOperationsSample) DoBucketLoggingOperation()
func (BucketOperationsSample) DoBucketQuotaOperation ¶
func (sample BucketOperationsSample) DoBucketQuotaOperation()
func (BucketOperationsSample) DoBucketTaggingOperation ¶
func (sample BucketOperationsSample) DoBucketTaggingOperation()
func (BucketOperationsSample) DoBucketVersioningOperation ¶
func (sample BucketOperationsSample) DoBucketVersioningOperation()
func (BucketOperationsSample) DoBucketWebsiteOperation ¶
func (sample BucketOperationsSample) DoBucketWebsiteOperation()
func (BucketOperationsSample) GetBucketLocation ¶
func (sample BucketOperationsSample) GetBucketLocation()
func (BucketOperationsSample) GetBucketMetadata ¶
func (sample BucketOperationsSample) GetBucketMetadata()
func (BucketOperationsSample) GetBucketStorageInfo ¶
func (sample BucketOperationsSample) GetBucketStorageInfo()
type ConcurrentCopyPartSample ¶
type ConcurrentCopyPartSample struct {
// contains filtered or unexported fields
}
func (ConcurrentCopyPartSample) CreateBucket ¶
func (sample ConcurrentCopyPartSample) CreateBucket()
func (ConcurrentCopyPartSample) DoConcurrentCopyPart ¶
func (sample ConcurrentCopyPartSample) DoConcurrentCopyPart()
func (ConcurrentCopyPartSample) PutFile ¶
func (sample ConcurrentCopyPartSample) PutFile(sampleFilePath string)
type ConcurrentDownloadObjectSample ¶
type ConcurrentDownloadObjectSample struct {
// contains filtered or unexported fields
}
func (ConcurrentDownloadObjectSample) CreateBucket ¶
func (sample ConcurrentDownloadObjectSample) CreateBucket()
func (ConcurrentDownloadObjectSample) DoConcurrentDownload ¶
func (sample ConcurrentDownloadObjectSample) DoConcurrentDownload(sampleFilePath string)
func (ConcurrentDownloadObjectSample) PutFile ¶
func (sample ConcurrentDownloadObjectSample) PutFile(sampleFilePath string)
type ConcurrentUploadPartSample ¶
type ConcurrentUploadPartSample struct {
// contains filtered or unexported fields
}
func (ConcurrentUploadPartSample) CreateBucket ¶
func (sample ConcurrentUploadPartSample) CreateBucket()
func (ConcurrentUploadPartSample) DoConcurrentUploadPart ¶
func (sample ConcurrentUploadPartSample) DoConcurrentUploadPart(sampleFilePath string)
func (ConcurrentUploadPartSample) PutFile ¶
func (sample ConcurrentUploadPartSample) PutFile(sampleFilePath string)
type CreateFolderSample ¶
type CreateFolderSample struct {
// contains filtered or unexported fields
}
func (CreateFolderSample) CreateBucket ¶
func (sample CreateFolderSample) CreateBucket()
type DeleteObjectsSample ¶
type DeleteObjectsSample struct {
// contains filtered or unexported fields
}
func (DeleteObjectsSample) BatchDeleteObjects ¶
func (sample DeleteObjectsSample) BatchDeleteObjects()
func (DeleteObjectsSample) BatchPutObjects ¶
func (sample DeleteObjectsSample) BatchPutObjects()
func (DeleteObjectsSample) CreateBucket ¶
func (sample DeleteObjectsSample) CreateBucket()
type DownloadSample ¶
type DownloadSample struct {
// contains filtered or unexported fields
}
func (DownloadSample) CreateBucket ¶
func (sample DownloadSample) CreateBucket()
func (DownloadSample) DeleteObject ¶
func (sample DownloadSample) DeleteObject()
func (DownloadSample) GetObject ¶
func (sample DownloadSample) GetObject()
func (DownloadSample) PutFile ¶
func (sample DownloadSample) PutFile(sampleFilePath string)
func (DownloadSample) PutObject ¶
func (sample DownloadSample) PutObject()
type ListObjectsInFolderSample ¶
type ListObjectsInFolderSample struct {
// contains filtered or unexported fields
}
func (ListObjectsInFolderSample) BatchDeleteObjects ¶
func (sample ListObjectsInFolderSample) BatchDeleteObjects()
func (ListObjectsInFolderSample) CreateBucket ¶
func (sample ListObjectsInFolderSample) CreateBucket()
func (ListObjectsInFolderSample) ListObjectsGroupByFolder ¶
func (sample ListObjectsInFolderSample) ListObjectsGroupByFolder()
func (ListObjectsInFolderSample) ListObjectsInFolders ¶
func (sample ListObjectsInFolderSample) ListObjectsInFolders()
func (ListObjectsInFolderSample) PrepareFoldersAndObjects ¶
func (sample ListObjectsInFolderSample) PrepareFoldersAndObjects()
type ListObjectsSample ¶
type ListObjectsSample struct {
// contains filtered or unexported fields
}
func (ListObjectsSample) CreateBucket ¶
func (sample ListObjectsSample) CreateBucket()
func (ListObjectsSample) DeleteObjects ¶
func (sample ListObjectsSample) DeleteObjects(keys []string)
func (ListObjectsSample) DoInsertObjects ¶
func (sample ListObjectsSample) DoInsertObjects() []string
func (ListObjectsSample) ListObjects ¶
func (sample ListObjectsSample) ListObjects()
func (ListObjectsSample) ListObjectsByMarker ¶
func (sample ListObjectsSample) ListObjectsByMarker()
func (ListObjectsSample) ListObjectsByPage ¶
func (sample ListObjectsSample) ListObjectsByPage()
type ListVersionsSample ¶
type ListVersionsSample struct {
// contains filtered or unexported fields
}
func (ListVersionsSample) BatchDeleteVersions ¶
func (sample ListVersionsSample) BatchDeleteVersions()
func (ListVersionsSample) CreateBucket ¶
func (sample ListVersionsSample) CreateBucket()
func (ListVersionsSample) ListVersionsByPage ¶
func (sample ListVersionsSample) ListVersionsByPage()
func (ListVersionsSample) ListVersionsGroupByFolder ¶
func (sample ListVersionsSample) ListVersionsGroupByFolder()
func (ListVersionsSample) ListVersionsInFolders ¶
func (sample ListVersionsSample) ListVersionsInFolders()
func (ListVersionsSample) PrepareFoldersAndObjects ¶
func (sample ListVersionsSample) PrepareFoldersAndObjects()
type ObjectMetaSample ¶
type ObjectMetaSample struct {
// contains filtered or unexported fields
}
func (ObjectMetaSample) CreateBucket ¶
func (sample ObjectMetaSample) CreateBucket()
func (ObjectMetaSample) DeleteObject ¶
func (sample ObjectMetaSample) DeleteObject()
func (ObjectMetaSample) GetObjectMeta ¶
func (sample ObjectMetaSample) GetObjectMeta()
func (ObjectMetaSample) SetObjectMeta ¶
func (sample ObjectMetaSample) SetObjectMeta()
type ObjectOperationsSample ¶
type ObjectOperationsSample struct {
// contains filtered or unexported fields
}
func (ObjectOperationsSample) CopyObject ¶
func (sample ObjectOperationsSample) CopyObject()
func (ObjectOperationsSample) CreateBucket ¶
func (sample ObjectOperationsSample) CreateBucket()
func (ObjectOperationsSample) CreateObject ¶
func (sample ObjectOperationsSample) CreateObject()
func (ObjectOperationsSample) DeleteObject ¶
func (sample ObjectOperationsSample) DeleteObject()
func (ObjectOperationsSample) DoObjectAcl ¶
func (sample ObjectOperationsSample) DoObjectAcl()
func (ObjectOperationsSample) GetObject ¶
func (sample ObjectOperationsSample) GetObject()
func (ObjectOperationsSample) GetObjectMeta ¶
func (sample ObjectOperationsSample) GetObjectMeta()
type RestoreObjectSample ¶
type RestoreObjectSample struct {
// contains filtered or unexported fields
}
func (RestoreObjectSample) CreateColdBucket ¶
func (sample RestoreObjectSample) CreateColdBucket()
func (RestoreObjectSample) CreateObject ¶
func (sample RestoreObjectSample) CreateObject()
func (RestoreObjectSample) DeleteObject ¶
func (sample RestoreObjectSample) DeleteObject()
func (RestoreObjectSample) GetObject ¶
func (sample RestoreObjectSample) GetObject()
func (RestoreObjectSample) RestoreObject ¶
func (sample RestoreObjectSample) RestoreObject()
type SimpleMultipartUploadSample ¶
type SimpleMultipartUploadSample struct {
// contains filtered or unexported fields
}
func (SimpleMultipartUploadSample) CompleteMultipartUpload ¶
func (sample SimpleMultipartUploadSample) CompleteMultipartUpload(uploadId, etag string, partNumber int)
func (SimpleMultipartUploadSample) CreateBucket ¶
func (sample SimpleMultipartUploadSample) CreateBucket()
func (SimpleMultipartUploadSample) InitiateMultipartUpload ¶
func (sample SimpleMultipartUploadSample) InitiateMultipartUpload() string
func (SimpleMultipartUploadSample) UploadPart ¶
func (sample SimpleMultipartUploadSample) UploadPart(uploadId string) (string, int)
type TemporarySignatureSample ¶
type TemporarySignatureSample struct {
// contains filtered or unexported fields
}
func (TemporarySignatureSample) CreateBucket ¶
func (sample TemporarySignatureSample) CreateBucket()
func (TemporarySignatureSample) DeleteBucket ¶
func (sample TemporarySignatureSample) DeleteBucket()
func (TemporarySignatureSample) DeleteObject ¶
func (sample TemporarySignatureSample) DeleteObject()
func (TemporarySignatureSample) DoBucketCors ¶
func (sample TemporarySignatureSample) DoBucketCors()
func (TemporarySignatureSample) DoObjectAcl ¶
func (sample TemporarySignatureSample) DoObjectAcl()
func (TemporarySignatureSample) GetObject ¶
func (sample TemporarySignatureSample) GetObject()
func (TemporarySignatureSample) ListBuckets ¶
func (sample TemporarySignatureSample) ListBuckets()
func (TemporarySignatureSample) PutFile ¶
func (sample TemporarySignatureSample) PutFile(sampleFilePath string)
func (TemporarySignatureSample) PutObject ¶
func (sample TemporarySignatureSample) PutObject()
Source Files ¶
- bucket_operations_sample.go
- concurrent_copy_part_sample.go
- concurrent_download_object_sample.go
- concurrent_upload_part_sample.go
- create_folder_sample.go
- delete_objects_sample.go
- download_sample.go
- list_objects_in_folder_sample.go
- list_objects_sample.go
- list_versions_sample.go
- object_meta_sample.go
- object_operations_sample.go
- restore_object_sample.go
- simple_multipart_upload_sample.go
- temporary_signature_sample.go
Click to show internal directories.
Click to hide internal directories.