Documentation
¶
Index ¶
- Constants
- type HwSfsAdapter
- func (hd *HwSfsAdapter) CreateFileShare(ctx context.Context, in *pb.CreateFileShareRequest) (*pb.CreateFileShareResponse, error)
- func (hd *HwSfsAdapter) DeleteFileShare(ctx context.Context, in *pb.DeleteFileShareRequest) (*pb.DeleteFileShareResponse, error)
- func (hd *HwSfsAdapter) GetFileShare(ctx context.Context, in *pb.GetFileShareRequest) (*pb.GetFileShareResponse, error)
- func (hd *HwSfsAdapter) ListFileShare(ctx context.Context, in *pb.ListFileShareRequest) (*pb.ListFileShareResponse, error)
- func (hd *HwSfsAdapter) ParseFileShare(share *shares.Share) (*pb.FileShare, error)
- func (hd *HwSfsAdapter) UpdateFileShareVPC(client *golangsdk.ServiceClient, share *shares.Share, fs *pb.FileShare)
- func (hd *HwSfsAdapter) UpdatefileShare(ctx context.Context, in *pb.UpdateFileShareRequest) (*pb.UpdateFileShareResponse, error)
Constants ¶
View Source
const ( VpcID = "VpcID" ShareID = "ShareID" // The type of the volume in Hw Cloud Backend VolumeType = "VolumeType" // Timestamp when the file share was created in Hw Cloud Backend CreatedAt = "CreatedAt" // Specifies the mount location ExportLocation = "ExportLocation" //Lists the mount locations ExportLocations = "ExportLocations" // The host name of the file share in Hw Cloud Backend Host = "Host" // The visibility of the file share IsPublic = "IsPublic" // File Share links for pagination in Hw Cloud Backend Links = "Links" // The UUID of the project to which the file share belongs to in Hw Cloud Backend ProjectID = "ProjectID" ShareNetworkID = "ShareNetworkID" ShareType = "ShareType" // UUID of the snapshot from which to create the file share in Hw Cloud Backend SnapshotID = "SnapshotID" // The encryption key ID KmsKeyId = "KmsKeyId" // The encryption key alias KmsKeyName = "KmsKeyName" // The tenant domain ID DomainId = "DomainId" // The encryption key ID in Hw Cloud Backend SfsCryptKeyId = "#sfs_crypt_key_id" // The encryption key alias in Hw Cloud Backend SfsCryptAlias = "#sfs_crypt_alias" // The tenant domain ID in Hw Cloud Backend SfsCryptDomainId = "#sfs_crypt_domain_id" // The key to specify FS Type HwSFSType = "HwSFSType" // The SFS type supported in Hw Cloud Backend HwSFS = "SFS" // The SFS "available" state in Hw Cloud Backend AvailableState = "available" // The access rule "cert" type in Hw Cloud Backend CertAccessType = "cert" // The access level "rw" to the file share in Hw Cloud Backend RWAccessLevel = "rw" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HwSfsAdapter ¶
type HwSfsAdapter struct {
Client *golangsdk.ServiceClient
}
func (*HwSfsAdapter) CreateFileShare ¶
func (hd *HwSfsAdapter) CreateFileShare(ctx context.Context, in *pb.CreateFileShareRequest) (*pb.CreateFileShareResponse, error)
func (*HwSfsAdapter) DeleteFileShare ¶
func (hd *HwSfsAdapter) DeleteFileShare(ctx context.Context, in *pb.DeleteFileShareRequest) (*pb.DeleteFileShareResponse, error)
func (*HwSfsAdapter) GetFileShare ¶
func (hd *HwSfsAdapter) GetFileShare(ctx context.Context, in *pb.GetFileShareRequest) (*pb.GetFileShareResponse, error)
func (*HwSfsAdapter) ListFileShare ¶
func (hd *HwSfsAdapter) ListFileShare(ctx context.Context, in *pb.ListFileShareRequest) (*pb.ListFileShareResponse, error)
func (*HwSfsAdapter) ParseFileShare ¶
func (*HwSfsAdapter) UpdateFileShareVPC ¶
func (hd *HwSfsAdapter) UpdateFileShareVPC(client *golangsdk.ServiceClient, share *shares.Share, fs *pb.FileShare)
func (*HwSfsAdapter) UpdatefileShare ¶
func (hd *HwSfsAdapter) UpdatefileShare(ctx context.Context, in *pb.UpdateFileShareRequest) (*pb.UpdateFileShareResponse, error)
Click to show internal directories.
Click to hide internal directories.