Documentation ¶
Index ¶
- Constants
- Variables
- func GetEndpointForRegion(region string) string
- func GetFilesystemTypeByMountTargetDomain(domain string) string
- func IsAccessPointNotFoundError(err error) bool
- func IsMountTargetNotFoundError(err error) bool
- type NasClientFactory
- type NasClientV2
- func (c *NasClientV2) CancelDirQuota(req *sdk.CancelDirQuotaRequest) error
- func (c *NasClientV2) CreateAccesspoint(req *sdk.CreateAccessPointRequest) (*sdk.CreateAccessPointResponse, error)
- func (c *NasClientV2) CreateDir(req *sdk.CreateDirRequest) error
- func (c *NasClientV2) DeleteAccesspoint(filesystemId, accessPointId string) error
- func (c *NasClientV2) DescribeAccesspoint(filesystemId, accessPointId string) (*sdk.DescribeAccessPointResponse, error)
- func (c *NasClientV2) GetRecycleBinAttribute(filesystemId string) (*sdk.GetRecycleBinAttributeResponse, error)
- func (c *NasClientV2) SetDirQuota(req *sdk.SetDirQuotaRequest) error
Constants ¶
View Source
const ( FilesystemTypeStandard = "standard" FilesystemTypeCpfs = "cpfs" FilesystemTypeExtreme = "extreme" DefaultAccessGroup = "DEFAULT_VPC_GROUP_NAME" )
Variables ¶
View Source
var KubernetesAlicloudIdentity = fmt.Sprintf("Kubernetes.Alicloud/CsiProvision.Nas-%s", version.VERSION)
Functions ¶
func GetEndpointForRegion ¶
Types ¶
type NasClientFactory ¶
type NasClientFactory struct {
// contains filtered or unexported fields
}
func NewNasClientFactory ¶
func NewNasClientFactory() *NasClientFactory
func (*NasClientFactory) V1
deprecated
func (fac *NasClientFactory) V1(region string) (interfaces.NasV1Interface, error)
Deprecated: NAS openapi client provided by github.com/aliyun/alibaba-cloud-sdk-go/services/nas.
func (*NasClientFactory) V2 ¶
func (fac *NasClientFactory) V2(region string) (interfaces.NasClientV2Interface, error)
V2 gets a NAS OpenAPI client sourced from github.com/alibabacloud-go/nas-20170626. As github.com/aliyun/alibaba-cloud-sdk-go/services/nas won't be updated with new NAS APIs (e.g., access points), we will fully migrate to github.com/alibabacloud-go/nas-20170626 in the future.
type NasClientV2 ¶
type NasClientV2 struct {
// contains filtered or unexported fields
}
func (*NasClientV2) CancelDirQuota ¶
func (c *NasClientV2) CancelDirQuota(req *sdk.CancelDirQuotaRequest) error
func (*NasClientV2) CreateAccesspoint ¶
func (c *NasClientV2) CreateAccesspoint(req *sdk.CreateAccessPointRequest) (*sdk.CreateAccessPointResponse, error)
func (*NasClientV2) CreateDir ¶
func (c *NasClientV2) CreateDir(req *sdk.CreateDirRequest) error
func (*NasClientV2) DeleteAccesspoint ¶
func (c *NasClientV2) DeleteAccesspoint(filesystemId, accessPointId string) error
func (*NasClientV2) DescribeAccesspoint ¶
func (c *NasClientV2) DescribeAccesspoint(filesystemId, accessPointId string) (*sdk.DescribeAccessPointResponse, error)
func (*NasClientV2) GetRecycleBinAttribute ¶
func (c *NasClientV2) GetRecycleBinAttribute(filesystemId string) (*sdk.GetRecycleBinAttributeResponse, error)
func (*NasClientV2) SetDirQuota ¶
func (c *NasClientV2) SetDirQuota(req *sdk.SetDirQuotaRequest) error
Click to show internal directories.
Click to hide internal directories.