commands

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCopyCommand

func NewCopyCommand(stdout, stderr io.Writer) *cobra.Command

func NewHistoryCommand added in v0.4.0

func NewHistoryCommand(stdout, stderr io.Writer) *cobra.Command

func NewPasteCommand

func NewPasteCommand(stdout, stderr io.Writer) *cobra.Command

func NewServeCommand

func NewServeCommand(stdout, stderr io.Writer) *cobra.Command

func NewVersionCommand

func NewVersionCommand(stderr io.Writer) *cobra.Command

Types

type CipherWithSessKey added in v0.3.0

type CipherWithSessKey struct {
	EncryptedData       []byte `json:"encryptedData"`
	EncryptedSessionKey []byte `json:"encryptedSessionKey"`
}

CipherWithSessKey is used when hybrid encryption.

type HistoryEntry added in v0.4.0

type HistoryEntry struct {
	ID        string    `json:"id"`
	CreatedAt time.Time `json:"created_at"`
	Size      int       `json:"size"`
	Latest    bool      `json:"latest"`
	MIME      string    `json:"mime"`
	Kind      string    `json:"kind"`
	Preview   string    `json:"preview"`
	SHA256    string    `json:"sha256"`
}

HistoryEntry is the metadata returned by the history API.

Jump to

Keyboard shortcuts

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