Documentation
¶
Overview ¶
Package api provides types used by the Teldrive API.
Index ¶
- type CategorySize
- type CopyFile
- type CreateDirRequest
- type CreateFileRequest
- type DirMove
- type Error
- type Event
- type EventSource
- type FileInfo
- type FilePart
- type FileShare
- type Meta
- type MetadataRequestOptions
- type MoveFileRequest
- type Part
- type PartFile
- type ReadMetadataResponse
- type RemoveFileRequest
- type Session
- type UpdateFileInformation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategorySize ¶
type CategorySize struct {
Size int64 `json:"totalSize"`
}
type CreateDirRequest ¶
type CreateDirRequest struct {
Path string `json:"path"`
}
type CreateFileRequest ¶
type CreateFileRequest struct {
Name string `json:"name"`
Type string `json:"type"`
Path string `json:"path,omitempty"`
MimeType string `json:"mimeType,omitempty"`
Size int64 `json:"size,omitempty"`
ChannelID int64 `json:"channelId,omitempty"`
Encrypted bool `json:"encrypted,omitempty"`
Parts []FilePart `json:"parts,omitempty"`
ParentId string `json:"parentId,omitempty"`
ModTime time.Time `json:"updatedAt,omitempty"`
}
type Event ¶
type Event struct {
ID string `json:"id"`
Type string `json:"type"`
CreatedAt time.Time `json:"createdAt"`
Source EventSource `json:"source"`
}
type EventSource ¶
type FileInfo ¶
type FileInfo struct {
Id string `json:"id"`
Name string `json:"name"`
MimeType string `json:"mimeType"`
Size int64 `json:"size"`
ParentId string `json:"parentId"`
Type string `json:"type"`
ModTime time.Time `json:"updatedAt"`
}
FileInfo represents a file when listing folder contents
type MetadataRequestOptions ¶
MetadataRequestOptions represents all the options when listing folder contents
type MoveFileRequest ¶
type ReadMetadataResponse ¶
type RemoveFileRequest ¶
type UpdateFileInformation ¶
type UpdateFileInformation struct {
Name string `json:"name,omitempty"`
ModTime *time.Time `json:"updatedAt,omitempty"`
Parts []FilePart `json:"parts,omitempty"`
Size int64 `json:"size,omitempty"`
UploadId string `json:"uploadId,omitempty"`
ChannelID int64 `json:"channelId,omitempty"`
ParentID string `json:"parentId,omitempty"`
Encrypted bool `json:"encrypted,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.