Versions in this module Expand all Collapse all v1 v1.0.0 Oct 24, 2024 Changes in this version + var ContextAPIKey = contextKey("apikey") + var ContextAccessToken = contextKey("accesstoken") + var ContextBasicAuth = contextKey("basic") + var ContextOAuth2 = contextKey("token") + func CacheExpires(r *http.Response) time.Time + type APIClient struct + FileApi *FileApiService + FolderApi *FolderApiService + InfoApi *InfoApiService + LicenseApi *LicenseApiService + StorageApi *StorageApiService + ViewApi *ViewApiService + func NewAPIClient(cfg *Configuration) *APIClient + func (c *APIClient) ChangeBasePath(path string) + type APIKey struct + Key string + Prefix string + type APIResponse struct + Message string + Method string + Operation string + Payload []byte + RequestURL string + func NewAPIResponse(r *http.Response) *APIResponse + func NewAPIResponseWithError(errorMessage string) *APIResponse + type BasicAuth struct + Password string + UserName string + type Configuration struct + BasePath string + DefaultHeader map[string]string + HTTPClient *http.Client + Host string + Scheme string + UserAgent string + func NewConfiguration() *Configuration + func (c *Configuration) AddDefaultHeader(key string, value string) + type FileApiCopyFileOpts struct + DestStorageName optional.String + SrcStorageName optional.String + VersionId optional.String + type FileApiDeleteFileOpts struct + StorageName optional.String + VersionId optional.String + type FileApiDownloadFileOpts struct + StorageName optional.String + VersionId optional.String + type FileApiMoveFileOpts struct + DestStorageName optional.String + SrcStorageName optional.String + VersionId optional.String + type FileApiService service + func (a *FileApiService) CopyFile(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *FileApiService) DeleteFile(ctx context.Context, path string, localVarOptionals *FileApiDeleteFileOpts) (*http.Response, error) + func (a *FileApiService) DownloadFile(ctx context.Context, path string, localVarOptionals *FileApiDownloadFileOpts) (*os.File, *http.Response, error) + func (a *FileApiService) MoveFile(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *FileApiService) UploadFile(ctx context.Context, path string, file *os.File, ...) (FilesUploadResult, *http.Response, error) + type FileApiUploadFileOpts struct + StorageName optional.String + type FolderApiCopyFolderOpts struct + DestStorageName optional.String + SrcStorageName optional.String + type FolderApiCreateFolderOpts struct + StorageName optional.String + type FolderApiDeleteFolderOpts struct + Recursive optional.Bool + StorageName optional.String + type FolderApiGetFilesListOpts struct + StorageName optional.String + type FolderApiMoveFolderOpts struct + DestStorageName optional.String + SrcStorageName optional.String + type FolderApiService service + func (a *FolderApiService) CopyFolder(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + func (a *FolderApiService) CreateFolder(ctx context.Context, path string, localVarOptionals *FolderApiCreateFolderOpts) (*http.Response, error) + func (a *FolderApiService) DeleteFolder(ctx context.Context, path string, localVarOptionals *FolderApiDeleteFolderOpts) (*http.Response, error) + func (a *FolderApiService) GetFilesList(ctx context.Context, path string, localVarOptionals *FolderApiGetFilesListOpts) (FilesList, *http.Response, error) + func (a *FolderApiService) MoveFolder(ctx context.Context, srcPath string, destPath string, ...) (*http.Response, error) + type GenericSwaggerError struct + func (e GenericSwaggerError) Body() []byte + func (e GenericSwaggerError) Error() string + func (e GenericSwaggerError) Model() interface{} + type InfoApiService service + func (a *InfoApiService) GetInfo(ctx context.Context, viewOptions ViewOptions) (InfoResult, *http.Response, error) + func (a *InfoApiService) GetSupportedFileFormats(ctx context.Context) (FormatsResult, *http.Response, error) + type LicenseApiService service + func (a *LicenseApiService) GetConsumptionCredit(ctx context.Context) (ConsumptionResult, *http.Response, error) + type StorageApiGetDiscUsageOpts struct + StorageName optional.String + type StorageApiGetFileVersionsOpts struct + StorageName optional.String + type StorageApiObjectExistsOpts struct + StorageName optional.String + VersionId optional.String + type StorageApiService service + func (a *StorageApiService) GetDiscUsage(ctx context.Context, localVarOptionals *StorageApiGetDiscUsageOpts) (DiscUsage, *http.Response, error) + func (a *StorageApiService) GetFileVersions(ctx context.Context, path string, ...) (FileVersions, *http.Response, error) + func (a *StorageApiService) ObjectExists(ctx context.Context, path string, ...) (ObjectExist, *http.Response, error) + func (a *StorageApiService) StorageExists(ctx context.Context, storageName string) (StorageExist, *http.Response, error) + type ViewApiConvertAndDownloadOpts struct + Pages optional.String + Password optional.String + type ViewApiService service + func (a *ViewApiService) ConvertAndDownload(ctx context.Context, format string, file *os.File, ...) (*os.File, *http.Response, error) + func (a *ViewApiService) CreateView(ctx context.Context, viewOptions ViewOptions) (ViewResult, *http.Response, error) + func (a *ViewApiService) DeleteView(ctx context.Context, deleteViewOptions DeleteViewOptions) (*http.Response, error)