Versions in this module Expand all Collapse all v1 v1.8.1 Mar 27, 2026 Changes in this version type ApplicationsResponse + Links PaginationLinks + Meta PaginationMeta + type PaginationLinks struct + First string + Last string + Next string + Prev string + type PaginationMeta struct + CurrentPage int + PerPage int + TotalCount int + TotalPages int v1.8.0 Mar 23, 2026 Changes in this version + var DefaultAPIURL = "" + var DefaultDashboardURL = "" + var DefaultOAuthScope = "" + var ErrSessionExpired = errors.New("session expired") + var WriteACL = []string + type APIKeyAttributes struct + Value string + type APIKeyResource struct + Attributes APIKeyAttributes + ID string + Type string + type Application struct + APIKey string + ID string + Name string + type ApplicationAttributes struct + APIKey string + ApplicationID string + Name string + type ApplicationResource struct + Attributes ApplicationAttributes + ID string + Type string + type ApplicationsResponse struct + Data []ApplicationResource + type Client struct + APIURL string + ClientID string + DashboardURL string + OAuthScope string + func NewClient(clientID string) *Client + func NewClientWithHTTPClient(clientID string, httpClient *http.Client) *Client + func (c *Client) AuthorizationCodeGrant(code, codeVerifier, redirectURI string) (*OAuthTokenResponse, error) + func (c *Client) AuthorizeURL(codeChallenge, redirectURI string) string + func (c *Client) CreateAPIKey(accessToken, appID string, acl []string, description string) (string, error) + func (c *Client) CreateApplication(accessToken, region, name string) (*Application, error) + func (c *Client) GetApplication(accessToken, appID string) (*Application, error) + func (c *Client) ListApplications(accessToken string) ([]Application, error) + func (c *Client) ListRegions(accessToken string) ([]Region, error) + func (c *Client) RefreshToken(refreshToken string) (*OAuthTokenResponse, error) + func (c *Client) RevokeToken(token string) error + func (c *Client) SignupAuthorizeURL(codeChallenge, redirectURI string) string + type CreateAPIKeyRequest struct + ACL []string + Description string + type CreateAPIKeyResponse struct + Data APIKeyResource + type CreateApplicationRequest struct + Name string + RegionCode string + type ErrClusterUnavailable struct + Message string + Region string + func (e *ErrClusterUnavailable) Error() string + type OAuthErrorResponse struct + Error string + ErrorDescription string + type OAuthTokenResponse struct + AccessToken string + CreatedAt int64 + ExpiresIn int + RefreshToken string + Scope string + TokenType string + User *User + type Region struct + Code string + Name string + type RegionsResponse struct + RegionCodes []Region + type SingleApplicationResponse struct + Data ApplicationResource + type User struct + AvatarURL string + Email string + ID int + Name string