Versions in this module Expand all Collapse all v1 v1.2.0 Mar 13, 2026 Changes in this version + func ConfigDir() (string, error) + func ConfigPath() (string, error) + func Execute() + func ReadError(resp *http.Response) error + func ReadJSON(resp *http.Response, v any) error + func SetBuildInfo(version, commit, buildTime string) + type Client struct + BaseURL string + HTTPClient *http.Client + func NewClient(baseURL, accessToken string) *Client + func (c *Client) Delete(path string) (*http.Response, error) + func (c *Client) Get(path string) (*http.Response, error) + func (c *Client) Post(path string, body io.Reader) (*http.Response, error) + func (c *Client) Put(path string, body io.Reader) (*http.Response, error) + type Config struct + AccessExp *time.Time + AccessToken string + LoginToken string + Server string + func LoadConfig() (Config, error) + func (c Config) HasValidAccessToken() bool + func (c Config) Save() error + type LoginResponse struct + AccessToken string + AccessTokenExp *time.Time + func Login(baseURL, loginToken string) (*LoginResponse, error)