SecretID: SecretId, SecretKey: SecretKey, }, }) c := context.Background() opt := &cos.BucketGetOptions 问题应该是在这里: c := context.Background() opt := &cos.BucketGetOptions{ MaxKeys: 1000, // 修改这个值以获取更多或更少的对象 for { opt := &cos.BucketGetOptions{ MaxKeys: 10000, Marker: nextMarker, } v, _, err := for { opt := &cos.BucketGetOptions{ MaxKeys: MaxKeys, // 使用常量 MaxKeys Marker: nextMarker, for { opt := &cos.BucketGetOptions{ MaxKeys: MaxKeys, // 使用常量 MaxKeys Marker: nextMarker,
在使用的时候遇到了一些问题,具体来说是cos.BucketGetOptions中的Delimiter的使用问题。 fmt.Printf("count:%d marker:%s isTruncated:%v", count, marker, isTruncated) count++ opt := &cos.BucketGetOptions listAllFileInPrefix(prefix string, delimiter string, c *cos.Client) { var marker string opt := &cos.BucketGetOptions
在使用的时候遇到了一些问题,具体来说是cos.BucketGetOptions中的Delimiter的使用问题。 isTruncated {fmt.Printf("count:%d marker:%s isTruncated:%v", count, marker, isTruncated)count++opt := &cos.BucketGetOptions func listAllFileInPrefix(prefix string, delimiter string, c *cos.Client) {var marker stringopt := &cos.BucketGetOptions
cos.AuthorizationTransport{ SecretID: "secretid", SecretKey: "secretkey", }, }) opt := &cos.BucketGetOptions
cos.AuthorizationTransport{ SecretID: "xxxxxxxxxxxxxxxxxx", SecretKey: "xxxxxxxxxxxxxxxxxxxx", }, }) opt := &cos.BucketGetOptions
:func pullJob() *JobInfo {res, _, err := cos.GetInstance().Bucket.Get(context.Background(), &cossdk.BucketGetOptions