Versions in this module Expand all Collapse all v1 v1.1.3 May 9, 2022 v1.1.1 Feb 26, 2021 v1.1.0 Feb 26, 2021 Changes in this version + type AddTagsRequest struct + FileIDs []string + Tags []string + type BulkJobStatusResponse struct + JobID string + Status string + Type string + type CopyFileRequest struct + DestinationPath string + SourceFilePath string + type CopyFolderRequest struct + DestinationPath string + SourceFolderPath string + type CopyFolderResponse struct + JobID string + type CreateFolderRequest struct + FolderName string + ParentFolderPath string + type DeleteFolderRequest struct + FolderPath string type GetFileDetailsResponse + CreatedAt time.Time + HasAlpha bool + Height int + MIME string + Size int + Width int type ListAndSearchFileResponse + CreatedAt time.Time + HasAlpha bool + Height int + MIME string + Size int + Width int type MediaService + func (s *MediaService) AddTags(ctx context.Context, r *AddTagsRequest) error + func (s *MediaService) BulkJobStatus(ctx context.Context, jid string) (*BulkJobStatusResponse, error) + func (s *MediaService) CopyFile(ctx context.Context, r *CopyFileRequest) error + func (s *MediaService) CopyFolder(ctx context.Context, r *CopyFolderRequest) (*CopyFolderResponse, error) + func (s *MediaService) CreateFolder(ctx context.Context, r *CreateFolderRequest) error + func (s *MediaService) DeleteFolder(ctx context.Context, r *DeleteFolderRequest) error + func (s *MediaService) MoveFile(ctx context.Context, r *MoveFileRequest) error + func (s *MediaService) MoveFolder(ctx context.Context, r *MoveFolderRequest) (*MoveFolderResponse, error) + func (s *MediaService) RemoveTags(ctx context.Context, r *RemoveTagsRequest) error + type MoveFileRequest struct + DestinationPath string + SourceFilePath string + type MoveFolderRequest struct + DestinationPath string + SourceFolderPath string + type MoveFolderResponse struct + JobID string + type RemoveTagsRequest struct + FileIDs []string + Tags []string type UpdateFileDetailsResponse + CreatedAt time.Time + HasAlpha bool + Height int + MIME string + Size int + Width int type UploadResponse + ThumbnailURL string v1.0.5 Sep 17, 2020 Changes in this version + type Client struct + Media *MediaService + Metadata *MetadataService + Upload *UploadService + func NewClient(opts *Options) (*Client, error) + type DeleteFilesRequest struct + FileIDs []string + type DeleteFilesResponse struct + SuccessfullyDeletedFileIDs []string + type ErrorResponse struct + Help string + Message string + MissingFileIDs []string + Response *http.Response + func (r *ErrorResponse) Error() string + type GetFileDetailsResponse struct + CustomCoordinates string + FileID string + FilePath string + FileType string + IsPrivateFile bool + Name string + Tags []string + Thumbnail string + Type string + URL string + type ListAndSearchFileRequest struct + FileType string + IncludeFolder bool + Limit int + Name string + Path string + Skip int + Tags []string + type ListAndSearchFileResponse struct + CustomCoordinates string + FileID string + FilePath string + FileType string + IsPrivateFile bool + Name string + Tags []string + Thumbnail string + Type string + URL string + type MediaService service + func (s *MediaService) DeleteFile(ctx context.Context, fid string) error + func (s *MediaService) DeleteFiles(ctx context.Context, r *DeleteFilesRequest) (*DeleteFilesResponse, error) + func (s *MediaService) GetFileDetails(ctx context.Context, fid string) (*GetFileDetailsResponse, error) + func (s *MediaService) ListAndSearchFile(ctx context.Context, r *ListAndSearchFileRequest) (*[]ListAndSearchFileResponse, error) + func (s *MediaService) PurgeCache(ctx context.Context, r *PurgeCacheRequest) (*PurgeCacheResponse, error) + func (s *MediaService) PurgeCacheStatus(ctx context.Context, rid string) (*PurgeCacheStatusResponse, error) + func (s *MediaService) UpdateFileDetails(ctx context.Context, fid string, r *UpdateFileDetailsRequest) (*UpdateFileDetailsResponse, error) + type MetadataEXIF struct + ApertureValue float32 + ColorSpace int + CreateDate string + CustomRendered int + DateTimeOriginal string + ExifImageHeight int + ExifImageWidth int + ExifVersion string + ExposureCompensation int + ExposureMode int + ExposureProgram int + ExposureTime float32 + FNumber float32 + Flash int + FlashpixVersion string + FocalLength int + FocalPlaneResolutionUnit int + FocalPlaneXResolution float32 + FocalPlaneYResolution float32 + ISO int + InteropOffset int + MeteringMode int + SceneCaptureType int + ShutterSpeedValue float32 + SubSecTime string + SubSecTimeDigitized string + SubSecTimeOriginal string + WhiteBalance int + type MetadataGPS struct + GPSVersionID []int + type MetadataImage struct + EXIFOffset int + GPSInfo int + Make string + Model string + ModifyDate string + Orientation int + ResolutionUnit int + Software string + XResolution int + YCbCrPositioning int + YResolution int + type MetadataInteroperability struct + InteropIndex string + InteropVersion string + type MetadataMakernote struct + type MetadataResponse struct + Density int + EXIF *MetadataResponseEXIF + Format string + HasColorProfile bool + HasTransparency bool + Height int + PHash string + Quality int + Size int + Width int + type MetadataResponseEXIF struct + EXIF *MetadataEXIF + GPS *MetadataGPS + Image *MetadataImage + Interoperability *MetadataInteroperability + Makernote *MetadataMakernote + Thumbnail *MetadataThumbnail + type MetadataService service + func (s *MetadataService) GetForUploaded(ctx context.Context, fid string) (*MetadataResponse, error) + func (s *MetadataService) GetFromRemote(ctx context.Context, URL string) (*MetadataResponse, error) + type MetadataThumbnail struct + Compression int + ResolutionUnit int + ThumbnailLength int + ThumbnailOffset int + XResolution int + YResolution int + type Options struct + PrivateKey string + PublicKey string + type PurgeCacheRequest struct + URL string + type PurgeCacheResponse struct + RequestID string + type PurgeCacheStatusResponse struct + Status string + type UpdateFileDetailsRequest struct + CustomCoordinates string + Tags []string + type UpdateFileDetailsResponse struct + CustomCoordinates string + FileID string + FilePath string + FileType string + IsPrivateFile bool + Name string + Tags []string + Thumbnail string + Type string + URL string + type UploadRequest struct + CustomCoordinates string + File interface{} + FileName string + Folder string + IsPrivateFile bool + ResponseFields []string + Tags []string + UseUniqueFileName bool + type UploadResponse struct + CustomCoordinates string + FileID string + FilePath string + FileType string + Height int + IsPrivateFile bool + Metadata interface{} + Name string + Size int + Tags []string + Thumbnail string + URL string + Width int + type UploadService service + func (s *UploadService) ServerUpload(ctx context.Context, r *UploadRequest) (*UploadResponse, error)