flockcli

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 24 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package flockcli implements the versioned, non-interactive Flock interface.

Index

Constants

View Source
const Release = "0.1.0"

Release identifies the Flock distribution, independently of the event schema.

Variables

This section is empty.

Functions

func Main

func Main()

Main runs the installed Flock command with signal cancellation.

func Run

func Run(parent context.Context, args []string, input io.Reader, output, diagnostics io.Writer) int

Run never prompts and writes only JSON Lines to stdout. Stderr is diagnostics.

Types

type File

type File struct {
	Path   string `json:"path"`
	Size   int64  `json:"bytes"`
	SHA256 string `json:"sha256"`
}

File identifies the exact bytes the recipient must verify before completion.

type Invitation

type Invitation struct {
	Version     int      `json:"version"`
	Transport   string   `json:"transport"`
	Capability  string   `json:"capability"`
	Relay       string   `json:"relay"`
	Expires     int64    `json:"expires"`
	Files       []File   `json:"files"`
	Directories []string `json:"directories"`
}

Invitation is an expiring bearer capability, intended for trusted agent handoff.

Jump to

Keyboard shortcuts

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