Versions in this module Expand all Collapse all v0 v0.2.1 Nov 2, 2026 v0.2.0 Oct 28, 2026 v0.1.1 Oct 5, 2026 v0.1.0 Sep 29, 2026 Changes in this version + func IsNotFound(err error) bool + func IsRateLimited(err error) bool + func IsUnexpected(err error) bool + type APIError struct + Errors map[string]string + Message string + StatusCode int + func (e *APIError) Error() string + type Client struct + func New(cfg ClientConfig, opts ...Option) (*Client, error) + func (c *Client) Close() error + func (c *Client) Cluster() *cluster.Client + func (c *Client) Create(ctx context.Context, path string, out any, params map[string]string) error + func (c *Client) CreateValues(ctx context.Context, path string, out any, params url.Values) error + func (c *Client) Delete(ctx context.Context, path string, out any, params map[string]string) error + func (c *Client) Get(ctx context.Context, path string, out any, params map[string]string) error + func (c *Client) Nodes(node string) *nodes.Client + func (c *Client) Patch(ctx context.Context, path string, out any, params map[string]string) error + func (c *Client) Pools() *pools.Client + func (c *Client) Storage() *storage.Client + func (c *Client) ToRESTConfig() ClientConfig + func (c *Client) Update(ctx context.Context, path string, out any, params map[string]string) error + func (c *Client) UpdateValues(ctx context.Context, path string, out any, params url.Values) error + func (c *Client) Upload(ctx context.Context, path string, out any, fields map[string]string, ...) error + func (c *Client) Version(ctx context.Context) (*Version, error) + type ClientConfig struct + BaseURL string + CACerts []string + Insecure bool + Password string + Proxy string + Token string + TokenSecret string + UserAgent string + Username string + func (c ClientConfig) ToRESTConfig() ClientConfig + type Option func(*ClientConfig) + func WithBasePath(p string) Option + func WithCACert(paths ...string) Option + func WithInsecure(skip bool) Option + func WithLoadBalancer(lb resty.LoadBalancer) Option + func WithLogger(l resty.Logger) Option + func WithPasswordAuth(username, password string) Option + func WithProxy(p string) Option + func WithRetryCount(n int) Option + func WithRetryMaxWaitTime(d time.Duration) Option + func WithRetryWaitTime(d time.Duration) Option + func WithRoundRobin(urls ...string) Option + func WithSRVWeightedRoundRobin(service, proto, domain, scheme string) Option + func WithTimeout(d time.Duration) Option + func WithTokenAuth(tokenID, secret string) Option + func WithURL(u string) Option + func WithUserAgent(ua string) Option + func WithWeightedRoundRobin(hosts ...*resty.Host) Option + type Session struct + CSRFPreventionToken string + Cap any + ClusterName string + Ticket string + Username string + type Version struct + Release string + Repoid string + Version string