Versions in this module Expand all Collapse all v0 v0.0.1 Mar 4, 2026 Changes in this version + const DefaultEndpoint + func ConvertPhaseToString(phase clusterv1.ClusterPhase) string + func ConvertStorageTier(tier string) commonv1.StorageTierType + func IsFailedPhase(phase clusterv1.ClusterPhase) bool + func IsHealthyPhase(phase clusterv1.ClusterPhase) bool + func IsTransitionalPhase(phase clusterv1.ClusterPhase) bool + type Client struct + BookingService bookingv1.BookingServiceClient + ClusterService clusterv1.ClusterServiceClient + DatabaseKeyService authv2.DatabaseApiKeyServiceClient + func NewClient(apiKey string, opts ...Option) (*Client, error) + func (c *Client) Close() error + func (c *Client) CreateCluster(ctx context.Context, req *clusterv1.CreateClusterRequest) (*clusterv1.CreateClusterResponse, error) + func (c *Client) CreateDatabaseApiKey(ctx context.Context, req *authv2.CreateDatabaseApiKeyRequest) (*authv2.CreateDatabaseApiKeyResponse, error) + func (c *Client) DeleteCluster(ctx context.Context, accountID, clusterID string) (*clusterv1.DeleteClusterResponse, error) + func (c *Client) DeleteDatabaseApiKey(ctx context.Context, accountID, clusterID, keyID string) (*authv2.DeleteDatabaseApiKeyResponse, error) + func (c *Client) GetCluster(ctx context.Context, accountID, clusterID string) (*clusterv1.GetClusterResponse, error) + func (c *Client) ListClusters(ctx context.Context, accountID string) (*clusterv1.ListClustersResponse, error) + func (c *Client) ListPackages(ctx context.Context, accountID, cloudProviderID, cloudProviderRegionID string) (*bookingv1.ListPackagesResponse, error) + func (c *Client) SuspendCluster(ctx context.Context, accountID, clusterID string) (*clusterv1.SuspendClusterResponse, error) + func (c *Client) UnsuspendCluster(ctx context.Context, accountID, clusterID string) (*clusterv1.UnsuspendClusterResponse, error) + func (c *Client) UpdateCluster(ctx context.Context, req *clusterv1.UpdateClusterRequest) (*clusterv1.UpdateClusterResponse, error) + type Config struct + Endpoint string + type Option func(*Config) + func WithEndpoint(endpoint string) Option + type PackageSelector struct + func NewPackageSelector(packages []*bookingv1.Package) *PackageSelector + func (ps *PackageSelector) SelectPackage(minRAM, minCPU, minDisk *resource.Quantity) (*bookingv1.Package, error)