api

package
v1.74.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package api has type definitions for shade

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletedPart

type CompletedPart struct {
	ETag       string
	PartNumber int32
}

CompletedPart Type for completed parts when making a multipart upload.

type ListDirResponse

type ListDirResponse struct {
	Type  string `json:"type"`  // "file" or "tree"
	Path  string `json:"path"`  // Full path including root
	Ino   int    `json:"ino"`   // inode number
	Mtime int64  `json:"mtime"` // Modified time in milliseconds
	Ctime int64  `json:"ctime"` // Created time in milliseconds
	Size  int64  `json:"size"`  // Size in bytes
	Hash  string `json:"hash"`  // MD5 hash
	Draft bool   `json:"draft"` // Whether this is a draft file
}

ListDirResponse ------------------------------------------------- Format from shade api

type PartURL

type PartURL struct {
	URL     string            `json:"url"`
	Headers map[string]string `json:"headers,omitempty"`
}

PartURL Type for multipart upload/download

Jump to

Keyboard shortcuts

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