models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChecksumfileResponse

type ChecksumfileResponse struct {
	Sha      string `json:"sha1"`
	Md       string `json:"md5"`
	Metadata struct {
		Category       int    `json:"category"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		ParentFolderID int    `json:"parentfolderid"`
		FolderID       int    `json:"folderid"`
		Size           int    `json:"size"`
		ContentType    string `json:"contenttype"`
	} `json:"metadata"`
}

ChecksumfileResponse contains server response after checksumfile call

type CopyfileResponse

type CopyfileResponse struct {
	Metadata struct {
		Category       int    `json:"category"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		ParentFolderID int    `json:"parentfolderid"`
		FolderID       int    `json:"folderid"`
		Size           int    `json:"size"`
		ContentType    string `json:"contenttype"`
	} `json:"metadata"`
}

CopyfileResponse contains server response after copyfile call

type CreatefolderResponse

type CreatefolderResponse struct {
	Metadata struct {
		Path           string `json:"path"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		ParentFolderID int    `json:"parentfolderid"`
		FolderID       int    `json:"folderid"`
	} `json:"metadata"`
}

CreatefolderResponse contains server response after createfolder call

type DeletefileResponse

type DeletefileResponse struct {
	Metadata struct {
		Category       int    `json:"category"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		IsDeleted      bool   `json:"isdeleted"`
		ParentFolderID int    `json:"parentfolderid"`
		Size           int    `json:"size"`
		ContentType    string `json:"contenttype"`
		FileID         int    `json:"fileid"`
	} `json:"metadata"`
}

DeletefileResponse contains server response after deletefile call

type DeletefolderRecursiveResponse

type DeletefolderRecursiveResponse struct {
	DeletedFiles   int `json:"deletedfiles"`
	DeletedFolders int `json:"deletedfolders"`
}

DeletefolderRecursiveResponse contains server response after recursive delete folder call

type DeletefolderResponse

type DeletefolderResponse struct {
	ID       string `json:"id"`
	Metadata struct {
		Path           string `json:"path"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		IsDeleted      bool   `json:"isdeleted"`
		ParentFolderID int    `json:"parentfolderid"`
		FolderID       int    `json:"folderid"`
	} `json:"metadata"`
}

DeletefolderResponse contains server response after deletefolder call

type FolderItem

type FolderItem struct {
	Path           string       `json:"path"`
	Name           string       `json:"name"`
	Modified       string       `json:"modified"`
	Size           int64        `json:"size"`
	IsMine         bool         `json:"ismine"`
	ID             string       `json:"id"`
	IsShared       bool         `json:"isshared"`
	IsFolder       bool         `json:"isfolder"`
	ParentFolderID int          `json:"parentfolderid"`
	FolderID       int          `json:"folderid"`
	FileID         int          `json:"fileid"`
	Contents       []FolderItem `json:"contents"` // only populated with Recursive=true
}

FolderItem represents a single file or sub-folder entry in a listing. When ListFolder is called with Recursive=true the Contents field is populated for sub-folders, allowing the entire tree to be traversed in one API call.

type GetfileResponse

type GetfileResponse struct {
	Path    string   `json:"path"`
	Size    int      `json:"size"`
	Expires string   `json:"expires"`
	Hosts   []string `json:"hosts"`
}

GetfileResponse contains server response after getfile call

type GetziplinkResponse

type GetziplinkResponse struct {
	Path    string   `json:"path"`
	Expires string   `json:"expires"`
	Hosts   []string `json:"hosts"`
}

GetziplinkResponse contains server response after getziplink call.

type ListfolderResponse

type ListfolderResponse struct {
	Metadata struct {
		Path           string       `json:"path"`
		Name           string       `json:"name"`
		Modified       string       `json:"modified"`
		IsMine         bool         `json:"ismine"`
		ID             string       `json:"id"`
		IsShared       bool         `json:"isshared"`
		IsFolder       bool         `json:"isfolder"`
		ParentFolderID int          `json:"parentfolderid"`
		FolderID       int          `json:"folderid"`
		Contents       []FolderItem `json:"contents"`
	} `json:"metadata"`
}

ListfolderResponse contains server response after listfolder call

type RenamefileResponse

type RenamefileResponse struct {
	Metadata struct {
		Category       int    `json:"category"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		FileID         int    `json:"fileid"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		ParentFolderID int    `json:"parentfolderid"`
		FolderID       int    `json:"folderid"`
		Size           int    `json:"size"`
		ContentType    string `json:"contenttype"`
	} `json:"metadata"`
}

RenamefileResponse contains server response after rename file call

type RenamefolderResponse

type RenamefolderResponse struct {
	Metadata struct {
		Path           string `json:"path"`
		Name           string `json:"name"`
		Modified       string `json:"modified"`
		IsMine         bool   `json:"ismine"`
		ID             string `json:"id"`
		IsShared       bool   `json:"isshared"`
		IsFolder       bool   `json:"isfolder"`
		ParentFolderID int    `json:"parentfolderid"`
		FolderID       int    `json:"folderid"`
	} `json:"metadata"`
}

RenamefolderResponse contains server response after rename call

type UploadfileResponse

type UploadfileResponse struct {
	FiledIds []int `json:"fileids"`
	Metadata []struct {
		Name           string `json:"name"`
		Path           string `json:"path"`
		Category       int    `json:"category"`
		Modified       string `json:"modified"`
		ID             string `json:"id"`
		FileID         int    `json:"fileid"`
		IsFolder       bool   `json:"isfolder"`
		ParentFolderID int    `json:"parentfolderid"`
		Size           int    `json:"size"`
		ContentType    string `json:"contenttype"`
	} `json:"metadata"`
}

UploadfileResponse contains server response after update call

Jump to

Keyboard shortcuts

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