Versions in this module Expand all Collapse all v0 v0.2.0 May 26, 2026 v0.1.0 Apr 30, 2026 Changes in this version + type Client struct + func NewClient(cfg Config, opts ...Option) (*Client, error) + func (c *Client) DoJSON(ctx context.Context, method, path string, in, out any) error + func (c *Client) DoUnsigned(ctx context.Context, method, rawURL string) (RawResponse, error) + func (c *Client) NewJSONRequest(ctx context.Context, method, path string, body []byte) (*http.Request, error) + type Config struct + DefaultOrg string + PrivateKeyPath string + RequestorName string + RequestorType string + ServerAPIVersion string + ServerURL string + func LoadConfigFromEnv() Config + func (c *Config) BindFlags(fs *flag.FlagSet) + func (c Config) String() string + type Error struct + Code ErrorCode + Message string + func (e *Error) Error() string + type ErrorCode string + const CodeDecodeFailed + const CodeInvalidConfiguration + const CodeRequestFailed + const CodeSigningFailed + type HTTPDoer interface + Do func(*http.Request) (*http.Response, error) + type Option func(*Client) + func WithHTTPDoer(doer HTTPDoer) Option + func WithNow(now func() time.Time) Option + func WithPrivateKey(key *rsa.PrivateKey) Option + type RawResponse struct + Body []byte + Header http.Header + StatusCode int