Versions in this module Expand all Collapse all v0 v0.1.1 Oct 13, 2026 Changes in this version + const CodeDeviceSessionExpired + const CodeInvalidArgument + const CodeServerRequired + const ExitNotFound + const ExitOK + const ExitPermissionDenied + const ExitServerError + const ExitTimeout + const ExitUnauthenticated + const ExitUsage + func DeviceSessionExpired(reason string) error + func ExitCode(err error) int + type Client struct + Auth v1connect.AuthServiceClient + Database v1connect.DatabaseServiceClient + Instance v1connect.InstanceServiceClient + Lineage v1connect.LineageServiceClient + Server string + User v1connect.UserServiceClient + func New(server string, options Options) (*Client, error) + type Options struct + CACert string + Insecure bool + Timeout time.Duration + Token string + type SessionExpiredError struct + Reason string + func (*SessionExpiredError) Code() string + func (e *SessionExpiredError) Error() string + type UsageError struct + Code string + Hint string + Message string + func ServerRequired() *UsageError + func Usage(format string, args ...any) *UsageError + func (e *UsageError) Error() string + func (e *UsageError) WithCode(code string) *UsageError + func (e *UsageError) WithHint(format string, args ...any) *UsageError v0.1.0 Oct 10, 2026