Versions in this module Expand all Collapse all v0 v0.2.0 Jun 18, 2024 v0.1.0 Jul 29, 2022 Changes in this version + var BridgeProviderNS = uuid.MustParse("cc67b0e5-7152-4d54-85ff-49a5c17fbbfe") + var ErrorBadRequest = errors.New("invalid request") + var ErrorConflict = errors.New("non-unique name specified in request") + var ErrorOldSecretFormat = errors.New("unexpected format for api secret, regeneration may be needed") + func DefaultClusterName() string + type APIMessage struct + Message string + RequestID string + type Account struct + DefaultTeamID string + ID string + type Client struct + func NewClient(apiURL *url.URL, cred Login, opts ...ClientOption) (*Client, error) + func (c *Client) Account() (Account, error) + func (c *Client) AccountTeams() (Teams, error) + func (c *Client) Close() error + func (c *Client) ClusterDetail(id string) (ClusterDetail, error) + func (c *Client) ClusterRoles(id string) ([]ClusterRole, error) + func (c *Client) ClusterStatus(id string) (ClusterStatus, error) + func (c *Client) ClustersForTeam(team_id string) ([]ClusterDetail, error) + func (c *Client) CreateCluster(cr CreateRequest) (string, error) + func (c *Client) DeleteCluster(id string) error + func (c *Client) GetAllClusters() ([]ClusterDetail, error) + func (c *Client) Providers() ([]Provider, error) + func (c *Client) UpdateCluster(id string, ur ClusterUpdateRequest) error + func (c *Client) UpgradeCluster(id string, ur ClusterUpgradeRequest) error + type ClientOption func(*Client) error + func WithContext(ctx context.Context) ClientOption + func WithHTTPClient(hc *http.Client) ClientOption + func WithIdempotencyKey() ClientOption + func WithImmediateLogin() ClientOption + func WithTokenExchange() ClientOption + func WithUserAgent(ua string) ClientOption + type ClusterDetail struct + CPU int + Created time.Time + HighAvailability bool + ID string + MaintWindowStart int + MemoryGB int + Name string + PGMajorVersion int + PlanID string + ProviderID string + RegionID string + State string + StorageGB int + TeamID string + Updated time.Time + type ClusterDiskUsage struct + Available int + Total int + Used int + type ClusterList struct + Clusters []ClusterDetail + type ClusterRole struct + ClusterID string + Name string + Password string + TeamID string + URI string + type ClusterStatus struct + DiskUsage ClusterDiskUsage + OldestBackup time.Time + OngoingUpgrade ClusterUpgrade + State string + type ClusterUpdateRequest struct + MaintWindowStart *int + Name *string + type ClusterUpgrade struct + Operations []ClusterUpgradeOperation + type ClusterUpgradeOperation struct + Flavor string + State string + type ClusterUpgradeRequest struct + HighAvailability *bool + PGMajorVersion *int + PlanID *string + StorageGB *int + type CreateRequest struct + HighAvailability bool + Name string + PGMajorVersion int + Plan string + Provider string + Region string + StorageGB int + TeamID string + type Login struct + Key string + Secret string + func (l Login) Zero() bool + type Plan struct + CPU int + ID string + Memory int + Name string + Rate int + type Provider struct + Disk ProviderDisk + ID string + IconName string + Name string + Plans []Plan + Regions []Region + type ProviderDisk struct + Rate int + type Region struct + ID string + Location string + Multiplier float64 + Name string + type Team struct + Default bool + ID string + Name string + Role string + type Teams []Team