Documentation
¶
Index ¶
- func ConvertImageFile(src, dst, format string, quality int) error
- func DNSLookup(host string) ([]string, error)
- func EncodeToken(bytes int) (string, error)
- func ExpandTemplate(tpl string, info fs.FileInfo, seq int) string
- func FFmpegStatus() map[string]any
- func FileChecksum(path string, h Hooks) (map[string]any, error)
- func GenerateSecret(length int, alphabet string) (string, error)
- func HTTPProbe(target string, timeout time.Duration) map[string]any
- func ImageInfo(path string, h Hooks) (map[string]any, error)
- func MediaInfo(path string, h Hooks) (map[string]any, error)
- func MediaInfoWithFFprobe(path string, h Hooks, useFFprobe bool) (map[string]any, error)
- func OfficeRead(path string, h Hooks) (map[string]any, error)
- func OfficeText(path string, h Hooks) (string, error)
- func SortOperations(ops []Operation)
- func SystemInfo() map[string]any
- func TCPCheck(address string, timeout time.Duration) map[string]any
- type FileInfo
- type Hooks
- type Operation
- func BulkRename(dir string, opts map[string]any, h Hooks) ([]Operation, error)
- func Compress(src, dst string, opts map[string]any, h Hooks) Operation
- func CopyOrMove(src, dst string, move, apply bool, h Hooks) Operation
- func CropImage(src, dst string, opts map[string]any, h Hooks) Operation
- func DecryptFile(src, dst, passphrase string, apply bool, h Hooks) Operation
- func Dedupe(root string, opts map[string]any, h Hooks) ([]Operation, error)
- func EncryptFile(src, dst, passphrase string, apply bool, h Hooks) Operation
- func Extract(src, dst string, opts map[string]any, h Hooks) Operation
- func ImageConvertBatch(srcDir, dstDir string, opts map[string]any, h Hooks) ([]Operation, error)
- func InstallFFmpeg(apply bool) Operation
- func MediaConvert(src, dst string, opts map[string]any, h Hooks) Operation
- func OrganizeByExt(root, dstRoot string, opts map[string]any, h Hooks) ([]Operation, error)
- func RemovePath(path string, opts map[string]any, h Hooks) Operation
- func ResizeImage(src, dst string, opts map[string]any, h Hooks) Operation
- func Thumbnail(src, dst string, opts map[string]any, h Hooks) Operation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageFile ¶
func EncodeToken ¶
func FFmpegStatus ¶
func MediaInfoWithFFprobe ¶
func SortOperations ¶
func SortOperations(ops []Operation)
func SystemInfo ¶
Types ¶
type FileInfo ¶
type Operation ¶
type Operation struct {
Status string `json:"status"`
Op string `json:"op"`
Src string `json:"src,omitempty"`
Dst string `json:"dst,omitempty"`
Reason string `json:"reason,omitempty"`
Error string `json:"error,omitempty"`
SizeBefore int64 `json:"size_before,omitempty"`
SizeAfter int64 `json:"size_after,omitempty"`
}
func ImageConvertBatch ¶
func InstallFFmpeg ¶
func OrganizeByExt ¶
Click to show internal directories.
Click to hide internal directories.