utils

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 is a FileShareState enum value
	FileShareStateCreating = "creating"

	// FileShareStateAvailable is a FileShareState enum value
	FileShareStateAvailable = "available"

	// FileShareStateInUse is a FileShareState enum value
	FileShareStateInUse = "inUse"

	// FileShareStateError is a FileShareState enum value
	FileShareStateError = "error"

	// FileShareStateUpdating is a FileShareState enum value
	FileShareStateUpdating = "updating"

	// FileShareStateDeleting is a FileShareState enum value
	FileShareStateDeleting = "deleting"

	// FileShareStateErrorDeleting is a FileShareState enum value
	FileShareStateErrorDeleting = "errorDeleting"

	// FileShareStateDeleted is a FileShareState enum value
	FileShareStateDeleted = "deleted"
)

Variables

This section is empty.

Functions

func ConvertMetadataStructToMap

func ConvertMetadataStructToMap(metaStruct *pstruct.Struct) (map[string]interface{}, error)

func ConvertTags

func ConvertTags(pbtags []*pb.Tag) ([]model.Tag, error)

func GetBackend

func GetBackend(ctx context.Context, backendClient backend.BackendService,
	backendId string) (*backend.GetBackendResponse, error)

func MergeFileShareData

func MergeFileShareData(fs *pb.FileShare, fsFinal *pb.FileShare) error

func ParseStructFields

func ParseStructFields(fields map[string]*pstruct.Value) (map[string]interface{}, error)

func UpdateFileShareModel

func UpdateFileShareModel(fs *pb.FileShare, fsModel *model.FileShare) error

func UpdateFileShareStruct

func UpdateFileShareStruct(fsModel *model.FileShare, fs *pb.FileShare) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL