Documentation ¶
Index ¶
- Constants
- Variables
- func DataSourceTencentCloudCfsAccessGroups() *schema.Resource
- func DataSourceTencentCloudCfsAccessRules() *schema.Resource
- func DataSourceTencentCloudCfsAvailableZone() *schema.Resource
- func DataSourceTencentCloudCfsFileSystemClients() *schema.Resource
- func DataSourceTencentCloudCfsFileSystems() *schema.Resource
- func DataSourceTencentCloudCfsMountTargets() *schema.Resource
- func ResourceTencentCloudCfsAccessGroup() *schema.Resource
- func ResourceTencentCloudCfsAccessRule() *schema.Resource
- func ResourceTencentCloudCfsAutoSnapshotPolicy() *schema.Resource
- func ResourceTencentCloudCfsAutoSnapshotPolicyAttachment() *schema.Resource
- func ResourceTencentCloudCfsFileSystem() *schema.Resource
- func ResourceTencentCloudCfsSignUpCfsService() *schema.Resource
- func ResourceTencentCloudCfsSnapshot() *schema.Resource
- type CfsService
- func (me *CfsService) CfsSnapshotStateRefreshFunc(snapshotId string, failStates []string) resource.StateRefreshFunc
- func (me *CfsService) CreateAccessGroup(ctx context.Context, name, description string) (id string, errRet error)
- func (me *CfsService) DeleteAccessGroup(ctx context.Context, id string) error
- func (me *CfsService) DeleteAccessRule(ctx context.Context, accessGroupId, accessRuleId string) error
- func (me *CfsService) DeleteCfsAutoSnapshotPolicyAttachmentById(ctx context.Context, autoSnapshotPolicyId string, fileSystemIds string) (errRet error)
- func (me *CfsService) DeleteCfsAutoSnapshotPolicyById(ctx context.Context, autoSnapshotPolicyId string) (errRet error)
- func (me *CfsService) DeleteCfsSnapshotById(ctx context.Context, snapshotId string) (errRet error)
- func (me *CfsService) DeleteCfsUserQuotaById(ctx context.Context, fileSystemId string, userType string, userId string) (errRet error)
- func (me *CfsService) DeleteFileSystem(ctx context.Context, fsId string) error
- func (me *CfsService) DescribeAccessGroup(ctx context.Context, id, name string) (accessGroups []*cfs.PGroupInfo, errRet error)
- func (me *CfsService) DescribeAccessRule(ctx context.Context, accessGroupId, accessRuleId string) (accessRules []*cfs.PGroupRuleInfo, errRet error)
- func (me *CfsService) DescribeCfsAutoSnapshotPolicyAttachmentById(ctx context.Context, autoSnapshotPolicyId string, fileSystemIds string) (autoSnapshotPolicyAttachment *cfs.AutoSnapshotPolicyInfo, errRet error)
- func (me *CfsService) DescribeCfsAutoSnapshotPolicyById(ctx context.Context, autoSnapshotPolicyId string) (autoSnapshotPolicy *cfs.AutoSnapshotPolicyInfo, errRet error)
- func (me *CfsService) DescribeCfsAvailableZoneByFilter(ctx context.Context) (availableZone []*cfs.AvailableRegion, errRet error)
- func (me *CfsService) DescribeCfsFileSystemClientsById(ctx context.Context, fileSystemId string) (fileSystemClients []*cfs.FileSystemClient, errRet error)
- func (me *CfsService) DescribeCfsMountTargetsById(ctx context.Context, fileSystemId string) (mountTargets []*cfs.MountInfo, errRet error)
- func (me *CfsService) DescribeCfsSnapshotById(ctx context.Context, snapshotId string) (snapshot *cfs.SnapshotInfo, errRet error)
- func (me *CfsService) DescribeCfsUserQuotaById(ctx context.Context, fileSystemId string, userType string, userId string) (userQuota *cfs.UserQuota, errRet error)
- func (me *CfsService) DescribeFileSystem(ctx context.Context, fsId, vpcId, subnetId string) (fs []*cfs.FileSystemInfo, errRet error)
- func (me *CfsService) DescribeMountTargets(ctx context.Context, fsId string) (targets []*cfs.MountInfo, errRet error)
- func (me *CfsService) ModifyFileSystemAccessGroup(ctx context.Context, fsId, accessGroupId string) error
- func (me *CfsService) ModifyFileSystemName(ctx context.Context, fsId, fsName string) error
- type TagService
- func (me *TagService) DeleteTagResourceById(ctx context.Context, tagKey string, tagValue string) (errRet error)
- func (me *TagService) DeleteTagTagAttachmentById(ctx context.Context, tagKey string, resource string) (errRet error)
- func (me *TagService) DescribeProjectById(ctx context.Context, projectId uint64) (project *tag.Project, disable *uint64, errRet error)
- func (me *TagService) DescribeProjects(ctx context.Context, param map[string]interface{}) (project []*tag.Project, errRet error)
- func (me *TagService) DescribeResourceTags(ctx context.Context, serviceType, resourceType, region, resourceId string) (tags map[string]string, err error)
- func (me *TagService) DescribeTagResourceById(ctx context.Context, tagKey string, tagValue string) (tagRes *tag.Tag, errRet error)
- func (me *TagService) DescribeTagTagAttachmentById(ctx context.Context, tagKey string, tagValue string, resource string) (resourceTag *tag.ResourceTagMapping, errRet error)
- func (me *TagService) DisableProjectById(ctx context.Context, projectId uint64) (errRet error)
- func (me *TagService) ModifyTags(ctx context.Context, resourceName string, replaceTags map[string]string, ...) error
Constants ¶
View Source
const ( CFS_PROTOCOL_NFS = "NFS" CFS_PROTOCOL_CIFS = "CIFS" CFS_PROTOCOL_TURBO = "TURBO" CFS_STORAGETYPE_SD = "SD" CFS_STORAGETYPE_HP = "HP" CFS_STORAGETYPE_TB = "TB" CFS_STORAGETYPE_TP = "TP" CFS_NET_VPC = "VPC" CFS_NET_CCN = "CCN" CFS_FILE_SYSTEM_STATUS_CREATING = "creating" CFS_FILE_SYSTEM_STATUS_SUCCESS = "available" CFS_FILE_SYSTEM_STATUS_FAILED = "create_failed" CFS_RW_PERMISSION_RO = "RO" CFS_RW_PERMISSION_RW = "RW" CFS_USER_PERMISSION_ALL_SQUASH = "all_squash" CFS_USER_PERMISSION_NO_ALL_SQUASH = "no_all_squash" CFS_USER_PERMISSION_ROOT_SQUASH = "root_squash" CFS_USER_PERMISSION_NO_ROOT_SQUASH = "no_root_squash" )
View Source
const CfsInvalidPgroup = "InvalidParameterValue.InvalidPgroup"
View Source
const DESCRIBE_TAGS_LIMIT = 20
Variables ¶
View Source
var CFS_NET = []string{ CFS_NET_VPC, CFS_NET_CCN, }
View Source
var CFS_PROTOCOL = []string{ CFS_PROTOCOL_NFS, CFS_PROTOCOL_CIFS, CFS_PROTOCOL_TURBO, }
View Source
var CFS_RW_PERMISSION = []string{ CFS_RW_PERMISSION_RO, CFS_RW_PERMISSION_RW, }
View Source
var CFS_STORAGETYPE = []string{ CFS_STORAGETYPE_SD, CFS_STORAGETYPE_HP, CFS_STORAGETYPE_TB, CFS_STORAGETYPE_TP, }
View Source
var CFS_USER_PERMISSION = []string{ CFS_USER_PERMISSION_ALL_SQUASH, CFS_USER_PERMISSION_NO_ALL_SQUASH, CFS_USER_PERMISSION_ROOT_SQUASH, CFS_USER_PERMISSION_NO_ROOT_SQUASH, }
Functions ¶
Types ¶
type CfsService ¶
type CfsService struct {
// contains filtered or unexported fields
}
func NewCfsService ¶
func NewCfsService(client *connectivity.TencentCloudClient) CfsService
func (*CfsService) CfsSnapshotStateRefreshFunc ¶
func (me *CfsService) CfsSnapshotStateRefreshFunc(snapshotId string, failStates []string) resource.StateRefreshFunc
func (*CfsService) CreateAccessGroup ¶
func (*CfsService) DeleteAccessGroup ¶
func (me *CfsService) DeleteAccessGroup(ctx context.Context, id string) error
func (*CfsService) DeleteAccessRule ¶
func (me *CfsService) DeleteAccessRule(ctx context.Context, accessGroupId, accessRuleId string) error
func (*CfsService) DeleteCfsAutoSnapshotPolicyAttachmentById ¶
func (*CfsService) DeleteCfsAutoSnapshotPolicyById ¶
func (me *CfsService) DeleteCfsAutoSnapshotPolicyById(ctx context.Context, autoSnapshotPolicyId string) (errRet error)
func (*CfsService) DeleteCfsSnapshotById ¶
func (me *CfsService) DeleteCfsSnapshotById(ctx context.Context, snapshotId string) (errRet error)
func (*CfsService) DeleteCfsUserQuotaById ¶
func (*CfsService) DeleteFileSystem ¶
func (me *CfsService) DeleteFileSystem(ctx context.Context, fsId string) error
func (*CfsService) DescribeAccessGroup ¶
func (me *CfsService) DescribeAccessGroup(ctx context.Context, id, name string) (accessGroups []*cfs.PGroupInfo, errRet error)
func (*CfsService) DescribeAccessRule ¶
func (me *CfsService) DescribeAccessRule(ctx context.Context, accessGroupId, accessRuleId string) (accessRules []*cfs.PGroupRuleInfo, errRet error)
func (*CfsService) DescribeCfsAutoSnapshotPolicyAttachmentById ¶
func (me *CfsService) DescribeCfsAutoSnapshotPolicyAttachmentById(ctx context.Context, autoSnapshotPolicyId string, fileSystemIds string) (autoSnapshotPolicyAttachment *cfs.AutoSnapshotPolicyInfo, errRet error)
func (*CfsService) DescribeCfsAutoSnapshotPolicyById ¶
func (me *CfsService) DescribeCfsAutoSnapshotPolicyById(ctx context.Context, autoSnapshotPolicyId string) (autoSnapshotPolicy *cfs.AutoSnapshotPolicyInfo, errRet error)
func (*CfsService) DescribeCfsAvailableZoneByFilter ¶
func (me *CfsService) DescribeCfsAvailableZoneByFilter(ctx context.Context) (availableZone []*cfs.AvailableRegion, errRet error)
func (*CfsService) DescribeCfsFileSystemClientsById ¶
func (me *CfsService) DescribeCfsFileSystemClientsById(ctx context.Context, fileSystemId string) (fileSystemClients []*cfs.FileSystemClient, errRet error)
func (*CfsService) DescribeCfsMountTargetsById ¶
func (*CfsService) DescribeCfsSnapshotById ¶
func (me *CfsService) DescribeCfsSnapshotById(ctx context.Context, snapshotId string) (snapshot *cfs.SnapshotInfo, errRet error)
func (*CfsService) DescribeCfsUserQuotaById ¶
func (*CfsService) DescribeFileSystem ¶
func (me *CfsService) DescribeFileSystem(ctx context.Context, fsId, vpcId, subnetId string) (fs []*cfs.FileSystemInfo, errRet error)
func (*CfsService) DescribeMountTargets ¶
func (*CfsService) ModifyFileSystemAccessGroup ¶
func (me *CfsService) ModifyFileSystemAccessGroup(ctx context.Context, fsId, accessGroupId string) error
func (*CfsService) ModifyFileSystemName ¶
func (me *CfsService) ModifyFileSystemName(ctx context.Context, fsId, fsName string) error
type TagService ¶
type TagService struct {
// contains filtered or unexported fields
}
func (*TagService) DeleteTagResourceById ¶
func (*TagService) DeleteTagTagAttachmentById ¶
func (*TagService) DescribeProjectById ¶
func (*TagService) DescribeProjects ¶
func (*TagService) DescribeResourceTags ¶
func (*TagService) DescribeTagResourceById ¶
func (*TagService) DescribeTagTagAttachmentById ¶
func (me *TagService) DescribeTagTagAttachmentById(ctx context.Context, tagKey string, tagValue string, resource string) (resourceTag *tag.ResourceTagMapping, errRet error)
func (*TagService) DisableProjectById ¶
func (me *TagService) DisableProjectById(ctx context.Context, projectId uint64) (errRet error)
func (*TagService) ModifyTags ¶
Source Files ¶
- data_source_tc_cfs_access_groups.go
- data_source_tc_cfs_access_rules.go
- data_source_tc_cfs_available_zone.go
- data_source_tc_cfs_file_system_clients.go
- data_source_tc_cfs_file_systems.go
- data_source_tc_cfs_mount_targets.go
- extension_cfs.go
- extension_tags.go
- resource_tc_cfs_access_group.go
- resource_tc_cfs_access_rule.go
- resource_tc_cfs_auto_snapshot_policy.go
- resource_tc_cfs_auto_snapshot_policy_attachment.go
- resource_tc_cfs_file_system.go
- resource_tc_cfs_sign_up_cfs_service.go
- resource_tc_cfs_snapshot.go
- service_tencentcloud_cfs.go
- service_tencentcloud_tag.go
Click to show internal directories.
Click to hide internal directories.