Documentation ¶
Index ¶
- func BaseUrlFrom(cloudRegionId string) string
- type Client
- func (client *Client) Clone(opts ...Option) (*Client, error)
- func (c *Client) CreateCluster(params CreateClusterParams) (*CreateClusterResponse, error)
- func (c *Client) CreateServerlessCluster(params CreateServerlessClusterParams) (*CreateClusterResponse, error)
- func (c *Client) DescribeCluster(clusterId string) (Cluster, error)
- func (c *Client) DropCluster(clusterId string) (*string, error)
- func (c *Client) ListCloudProviders() ([]CloudProvider, error)
- func (c *Client) ListCloudRegions(cloudId string) ([]CloudRegion, error)
- func (c *Client) ListClusters() (Clusters, error)
- func (c *Client) ListProjects() ([]Project, error)
- func (c *Client) ModifyCluster(clusterId string, params *ModifyClusterParams) (*string, error)
- type CloudId
- type CloudProvider
- type CloudRegion
- type Cluster
- type Clusters
- type CreateClusterParams
- type CreateClusterResponse
- type CreateServerlessClusterParams
- type DropClusterResponse
- type Error
- type HttpClient
- type ModifyClusterParams
- type ModifyClusterResponse
- type Option
- func OverrideBaseUrl() Option
- func WithApiKey(apiKey string) Option
- func WithBaseUrl(baseUrl string) Option
- func WithCloudRegionId(cloudRegionId string) Option
- func WithDefaultBaseUrl() Option
- func WithDefaultClient() Option
- func WithDefaultRegion() Option
- func WithDefaultUserAgent() Option
- func WithHTTPClient(client HttpClient) Option
- func WithUserAgent(userAgent string) Option
- type Plan
- type Project
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseUrlFrom ¶ added in v0.0.4
Types ¶
type Client ¶
type Client struct { RegionId string HttpClient HttpClient // contains filtered or unexported fields }
func (*Client) CreateCluster ¶
func (c *Client) CreateCluster(params CreateClusterParams) (*CreateClusterResponse, error)
func (*Client) CreateServerlessCluster ¶
func (c *Client) CreateServerlessCluster(params CreateServerlessClusterParams) (*CreateClusterResponse, error)
func (*Client) DescribeCluster ¶
func (*Client) ListCloudProviders ¶
func (c *Client) ListCloudProviders() ([]CloudProvider, error)
func (*Client) ListCloudRegions ¶
func (c *Client) ListCloudRegions(cloudId string) ([]CloudRegion, error)
func (*Client) ListClusters ¶
func (*Client) ListProjects ¶
func (*Client) ModifyCluster ¶
func (c *Client) ModifyCluster(clusterId string, params *ModifyClusterParams) (*string, error)
type CloudProvider ¶
type CloudRegion ¶
type Cluster ¶
type Cluster struct { ClusterId string `json:"clusterId"` ClusterName string `json:"clusterName"` Description string `json:"description"` RegionId string `json:"regionId"` ClusterType string `json:"clusterType"` Plan Plan `json:"plan"` CuSize int64 `json:"cuSize"` Status string `json:"status"` ConnectAddress string `json:"connectAddress"` PrivateLinkAddress string `json:"privateLinkAddress"` CreateTime string `json:"createTime"` ProjectId string `json:"projectId"` }
type Clusters ¶
type Clusters struct { Clusters []Cluster `json:"clusters"` // contains filtered or unexported fields }
type CreateClusterParams ¶
type CreateClusterResponse ¶
type DropClusterResponse ¶
type DropClusterResponse struct {
ClusterId string `json:"clusterId"`
}
type HttpClient ¶ added in v0.0.4
type ModifyClusterParams ¶
type ModifyClusterParams struct {
CuSize int `json:"cuSize"`
}
type ModifyClusterResponse ¶
type ModifyClusterResponse struct {
ClusterId string `json:"clusterId"`
}
type Option ¶ added in v0.0.4
type Option func(*Client)
func OverrideBaseUrl ¶ added in v0.0.4
func OverrideBaseUrl() Option
func WithApiKey ¶ added in v0.0.4
func WithBaseUrl ¶ added in v0.0.4
func WithCloudRegionId ¶ added in v0.0.4
func WithDefaultBaseUrl ¶ added in v0.0.4
func WithDefaultBaseUrl() Option
func WithDefaultClient ¶ added in v0.0.4
func WithDefaultClient() Option
func WithDefaultRegion ¶ added in v0.0.4
func WithDefaultRegion() Option
func WithDefaultUserAgent ¶ added in v0.0.4
func WithDefaultUserAgent() Option
func WithHTTPClient ¶ added in v0.0.4
func WithHTTPClient(client HttpClient) Option
func WithUserAgent ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.