com.github.guang19.cosservice.template.buckettemplate.TenCloudCOSBucketTemplate Maven / Gradle / Ivy
package com.github.guang19.cosservice.template.buckettemplate;
import com.qcloud.cos.model.Bucket;
/**
* @author yangguang
* @date 2020/2/3
* @description 腾讯云COS存储桶操作模板
*
*/
public interface TenCloudCOSBucketTemplate extends COSBucketTemplate
{
/**
* 创建存储桶,默认为私有读写
* @param bucketName 存储桶名
* @return 存储桶
*/
public Bucket createBucket(String bucketName);
/**
* 创建公有读写的存储桶
* @param bucketName 存储桶名
* @return 存储桶
*/
public Bucket createBucketPublicReadAndWrite(String bucketName);
/**
* 创建公有读私有写的存储桶
* @param bucketName 存储桶名
* @return 存储桶
*/
public Bucket createBucketPublicRead(String bucketName);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy