Versions in this module Expand all Collapse all v0 v0.1.3 Sep 28, 2026 Changes in this version + func Discover(ctx context.Context, raw string, hc *http.Client) (string, error) v0.1.2 Sep 28, 2026 v0.1.1 Sep 28, 2026 v0.1.0 Sep 28, 2026 Changes in this version + const MaxLogBatch + const MaxObjectSize + const MaxPayloadSize + const Version + func IsStatus(err error, status int) bool + func ObjectID(ciphertext []byte) string + func SigningMessage(vaultID string, deviceSeq int64, objectID string, payload []byte) []byte + func ValidateURL(raw string) (string, error) + type APIError struct + Code string + Message string + Status int + func (e *APIError) Error() string + type AppendLogRequest struct + Entries []LogEntry + type AppendLogResponse struct + Accepted int + type Client struct + BaseURL string + HTTP *http.Client + Token string + UA string + func (c *Client) AppendLog(ctx context.Context, vault string, entries []LogEntry) error + func (c *Client) CreateVault(ctx context.Context, name string) (*Vault, error) + func (c *Client) DeviceCode(ctx context.Context, name string) (*DeviceCodeResponse, error) + func (c *Client) DeviceToken(ctx context.Context, deviceCode string) (*DeviceTokenResponse, error) + func (c *Client) GetKeyring(ctx context.Context, vault string) ([]byte, error) + func (c *Client) GetObject(ctx context.Context, vault, id string) ([]byte, error) + func (c *Client) Me(ctx context.Context) (*Me, error) + func (c *Client) PutKeyring(ctx context.Context, vault string, keyfile []byte) error + func (c *Client) PutObject(ctx context.Context, vault string, data []byte) (string, error) + func (c *Client) ReadLog(ctx context.Context, vault string, since int64) (*ReadLogResponse, error) + func (c *Client) RevokeSelf(ctx context.Context) error + func (c *Client) Vaults(ctx context.Context) ([]Vault, error) + type CreateVaultRequest struct + Name string + type Device struct + ID string + Name string + type DeviceCodeRequest struct + DeviceName string + PublicKey string + type DeviceCodeResponse struct + DeviceCode string + ExpiresIn int + Interval int + UserCode string + VerificationURI string + VerificationURIComplete string + type DeviceTokenRequest struct + DeviceCode string + type DeviceTokenResponse struct + AccessToken string + Device Device + TokenType string + type EntryPayload struct + CreatedAt int64 + Device string + Path string + Project string + Size int + Source string + V int + type ErrorBody struct + Error struct{ ... } + type LogEntry struct + DeviceCert []byte + DeviceKey []byte + DeviceSeq int64 + ObjectID string + Payload []byte + Signature []byte + type Me struct + Device *Device + User User + type ReadLogResponse struct + Entries []StoredEntry + More bool + Next int64 + type StoredEntry struct + CreatedAt int64 + DeviceCert []byte + DeviceID string + DeviceKey []byte + DeviceSeq int64 + ID int64 + ObjectID string + Payload []byte + Signature []byte + type User struct + Email string + ID string + type Vault struct + CreatedAt int64 + Fingerprint string + ID string + type VaultList struct + Vaults []Vault