Documentation ¶
Index ¶
- func HandleHttpRequestForUploading(service *Service, httpRequest *models.HttpRequest, response interface{})
- func RefreshTokenFunc(service *Service)
- type Service
- func (service *Service) CopyItem(itemInfo *models.ItemInfo, newItemName string) (bool, error)
- func (service *Service) CopyItemByPath(itemPath string, newFileName string) (bool, error)
- func (service *Service) CreateFolder(newFolderName string, parentFolder *models.ItemInfo) (*models.ItemInfo, error)
- func (service *Service) CreateFolderForParentName(newFolderName string, parentFolderName string)
- func (service *Service) DeleteItem(itemInfo *models.ItemInfo) (bool, error)
- func (service *Service) DeleteItemByPath(itemPath string) (bool, error)
- func (service *Service) GetChildItemsByPath(path string) ([]*models.ItemInfo, error)
- func (service *Service) GetDownloadLinkItem(itemInfo *models.ItemInfo) (string, error)
- func (service *Service) GetDownloadLinkItemByPath(itemPath string) (string, error)
- func (service *Service) GetItemByPath(path string) (*models.ItemInfo, error)
- func (service *Service) MoveItem(itemInfo *models.ItemInfo, parentFolderInfo *models.ItemInfo, ...) (bool, error)
- func (service *Service) MoveItemByPath(itemPath string, parentFolderPath string) (bool, error)
- func (service *Service) MoveItemByPathWithNewName(itemPath string, parentFolderPath string, newFileName string) (bool, error)
- func (service *Service) ShareLinkFunc(uploadFinishedResponse *models.UploadFinishedResponse) *models.SharedLinkResponse
- func (service *Service) UploadFile(localFilePath string) (*models.UploadFinishedResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleHttpRequestForUploading ¶
func HandleHttpRequestForUploading(service *Service, httpRequest *models.HttpRequest, response interface{})
func RefreshTokenFunc ¶
func RefreshTokenFunc(service *Service)
Types ¶
type Service ¶
type Service struct { ClientID string ClientSecret string AccessToken string Scope string RedirectUrl string TenantID string RefreshToken string Expiry int64 TokenType string UploadFolderPath string RefreshAPIEndPoint string UploadAPIEndPoint string CreateFolderAPIEndPoint string FragSize int GetItemsPathEndPoint string GetItemAPIEndPoint string DeleteItemAPIEndPoint string MoveItemAPIEndPoint string CopyItemAPIEndPoint string DownloadItemAPIEndPoint string UploadBodyJSON string CreateFolderBodyJSON string MoveItemBodyJSON string CopyItemBodyJSON string ExpiredTime time.Time //Token SavedToken *oauth2.Token //Auths OauthConf *oauth2.Config }
func LoadConfigFromFile ¶
func (*Service) CopyItemByPath ¶
func (*Service) CreateFolder ¶
func (*Service) CreateFolderForParentName ¶
func (*Service) DeleteItem ¶
func (*Service) DeleteItemByPath ¶
func (*Service) GetChildItemsByPath ¶
func (*Service) GetDownloadLinkItem ¶
func (*Service) GetDownloadLinkItemByPath ¶
func (*Service) GetItemByPath ¶
func (*Service) MoveItemByPath ¶
func (*Service) MoveItemByPathWithNewName ¶
func (*Service) ShareLinkFunc ¶
func (service *Service) ShareLinkFunc(uploadFinishedResponse *models.UploadFinishedResponse) *models.SharedLinkResponse
func (*Service) UploadFile ¶
func (service *Service) UploadFile(localFilePath string) (*models.UploadFinishedResponse, error)
Click to show internal directories.
Click to hide internal directories.