Documentation
¶
Index ¶
Constants ¶
const ( MaxFiles = 10 MaxFileSize = 10 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶ added in v0.1.1
type Options struct {
Paths client.WorkspacePaths
Staging *Staging
Now func() time.Time
Force bool
}
Options carries the configurable guest layout, the local staging record and the explicit overwrite consent for one upload run.
type Pending ¶ added in v0.1.1
type Pending struct {
OperationUUID string `json:"operation_uuid"`
Selector string `json:"selector"`
Filename string `json:"filename"`
Bytes int64 `json:"bytes"`
StartedAt string `json:"started_at"`
}
Pending records one upload the CLI has started but not yet seen resolved. It carries identity and intent only: no file bytes are ever staged locally, so recovery resolves a receipt and never replays a mutation.
type Problem ¶
type Problem struct {
Code string `json:"code"`
Message string `json:"message"`
FailedIndex int `json:"failed_index"`
// Operation names the upload identity to resolve with daemons files recover
// or daemons files receipt. It is empty when no request was sent.
Operation string `json:"operation,omitempty"`
}
type Report ¶
type Staging ¶ added in v0.1.1
type Staging struct {
// contains filtered or unexported fields
}
Staging is the per-daemon local record of in-flight upload operations.
func OpenStaging ¶ added in v0.1.1
OpenStaging resolves the private staging record beside the credential file. The daemon identifier becomes one path segment, so it is validated first.
func (Staging) List ¶ added in v0.1.1
List returns the pending operations, oldest first. A missing record is empty.