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 MergeVolumeData(vol *pb.Volume, volFinal *pb.Volume) error
- func ParseStructFields(fields map[string]*pstruct.Value) (map[string]interface{}, error)
- func UpdateVolumeModel(volPb *pb.Volume, volModel *model.Volume) error
- func UpdateVolumeStruct(volModel *model.Volume, volPb *pb.Volume) error
Constants ¶
View Source
const ( // VolumeCreating is a VolumeState enum value VolumeStateCreating = "creating" // VolumeStateAvailable is a VolumeState enum value VolumeStateAvailable = "available" // VolumeStateInUse is a VolumeState enum value VolumeStateInUse = "inUse" // VolumeStateError is a VolumeState enum value VolumeStateError = "error" // VolumeStateUpdating is a VolumeState enum value VolumeStateUpdating = "updating" // VolumeStateDeleting is a VolumeState enum value VolumeStateDeleting = "deleting" // VolumeStateErrorDeleting is a VolumeState enum value VolumeStateErrorDeleting = "errorDeleting" // VolumeStateDeleted is a VolumeState enum value VolumeStateDeleted = "deleted" )
View Source
const ( // It's RFC 8601 format that decodes and encodes with // exactly precision to seconds. TimeFormat = `2006-01-02T15:04:05` )
Variables ¶
This section is empty.
Functions ¶
func GetBackend ¶
func ParseStructFields ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.