Documentation
¶
Index ¶
- func NewCopyCommand(stdout, stderr io.Writer) *cobra.Command
- func NewHistoryCommand(stdout, stderr io.Writer) *cobra.Command
- func NewPasteCommand(stdout, stderr io.Writer) *cobra.Command
- func NewServeCommand(stdout, stderr io.Writer) *cobra.Command
- func NewVersionCommand(stderr io.Writer) *cobra.Command
- type CipherWithSessKey
- type HistoryEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHistoryCommand ¶ added in v0.4.0
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.
Click to show internal directories.
Click to hide internal directories.