Documentation ¶
Index ¶
- Constants
- func ConvertMetadataStructToMap(metaStruct *pstruct.Struct) (map[string]interface{}, error)
- func ConvertTags(pbtags []*pb.Tag) ([]model.Tag, error)
- func GetBackend(ctx context.Context, backendClient backend.BackendService, backendId string) (*backend.GetBackendResponse, error)
- func MergeFileShareData(fs *pb.FileShare, fsFinal *pb.FileShare) error
- func ParseStructFields(fields map[string]*pstruct.Value) (map[string]interface{}, error)
- func UpdateFileShareModel(fs *pb.FileShare, fsModel *model.FileShare) error
- func UpdateFileShareStruct(fsModel *model.FileShare, fs *pb.FileShare) error
Constants ¶
View Source
const ( // It's RFC 8601 format that decodes and encodes with // exactly precision to seconds. TimeFormat = `2006-01-02T15:04:05` AZURE_FILESHARE_USAGE_BYTES = "Share-Usage-Bytes" AZURE_X_MS_SHARE_QUOTA = "X-Ms-Share-Quota" CONTENT_LENGTH = "Content-Length" )
View Source
const (FileShareStateCreating = "creating" FileShareStateAvailable = "available" FileShareStateInUse = "inUse" FileShareStateError = "error" FileShareStateUpdating = "updating" FileShareStateDeleting = "deleting" FileShareStateErrorDeleting = "errorDeleting" FileShareStateDeleted = "deleted" )
Variables ¶
This section is empty.
Functions ¶
func GetBackend ¶
func ParseStructFields ¶
func UpdateFileShareModel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.