Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) Account() accountv1.AccountServiceClient
- func (c *Client) Auth() authv1.AuthServiceClient
- func (c *Client) Backup() backupv1.BackupServiceClient
- func (c *Client) Booking() bookingv1.BookingServiceClient
- func (c *Client) Close() error
- func (c *Client) Cluster() *ClusterClient
- func (c *Client) DatabaseApiKey() clusterauthv2.DatabaseApiKeyServiceClient
- func (c *Client) Hybrid() hybridv1.HybridCloudServiceClient
- func (c *Client) IAM() iamv1.IAMServiceClient
- func (c *Client) Monitoring() monitoringv1.MonitoringServiceClient
- func (c *Client) Platform() platformv1.PlatformServiceClient
- func (c *Client) ServerlessBackup() spacebackupv1.BackupServiceClient
- func (c *Client) ServerlessMonitoring() serverlessmonitoringv1.MonitoringServiceClient
- func (c *Client) ServerlessPlatform() serverlessplatformv1.PlatformServiceClient
- func (c *Client) ServerlessQuota() serverlessquotav1.QuotaServiceClient
- func (c *Client) ServerlessSpace() spacev1.SpaceServiceClient
- func (c *Client) ServerlessSpaceApiKey() spaceauthv1.SpaceApiKeyServiceClient
- type ClusterClient
Constants ¶
const HybridCloudProviderID = "hybrid"
HybridCloudProviderID is the cloud provider identifier for hybrid cloud environments.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps a gRPC connection to the Qdrant Cloud API.
func NewWithDialOptions ¶
func NewWithDialOptions(endpoint, apiKey string, opts ...grpc.DialOption) (*Client, error)
NewWithDialOptions creates a Client with the auth interceptor always applied, plus any additional dial options (e.g. custom transport for testing).
func NewWithTokenSource ¶ added in v0.34.0
func NewWithTokenSource(ctx context.Context, endpoint string, ts oauth2.TokenSource, version string) (*Client, error)
NewWithTokenSource creates a client that sends Authorization: Bearer <token> with a token from ts on every call, so a token that expires during a long command (such as --wait) is refreshed.
func (*Client) Account ¶ added in v0.20.0
func (c *Client) Account() accountv1.AccountServiceClient
Account returns the AccountService gRPC client.
func (*Client) Auth ¶ added in v0.19.0
func (c *Client) Auth() authv1.AuthServiceClient
Auth returns the AuthService gRPC client.
func (*Client) Backup ¶ added in v0.2.0
func (c *Client) Backup() backupv1.BackupServiceClient
Backup returns the BackupService gRPC client.
func (*Client) Booking ¶
func (c *Client) Booking() bookingv1.BookingServiceClient
Booking returns the BookingService gRPC client.
func (*Client) Cluster ¶
func (c *Client) Cluster() *ClusterClient
Cluster returns the ClusterService gRPC client.
func (*Client) DatabaseApiKey ¶
func (c *Client) DatabaseApiKey() clusterauthv2.DatabaseApiKeyServiceClient
DatabaseApiKey returns the DatabaseApiKeyService gRPC client.
func (*Client) Hybrid ¶ added in v0.15.0
func (c *Client) Hybrid() hybridv1.HybridCloudServiceClient
Hybrid returns the HybridCloudService gRPC client.
func (*Client) IAM ¶ added in v0.20.0
func (c *Client) IAM() iamv1.IAMServiceClient
IAM returns the IAMService gRPC client.
func (*Client) Monitoring ¶ added in v0.17.0
func (c *Client) Monitoring() monitoringv1.MonitoringServiceClient
Monitoring returns the MonitoringService gRPC client.
func (*Client) Platform ¶
func (c *Client) Platform() platformv1.PlatformServiceClient
Platform returns the PlatformService gRPC client.
func (*Client) ServerlessBackup ¶ added in v0.30.0
func (c *Client) ServerlessBackup() spacebackupv1.BackupServiceClient
ServerlessBackup returns the serverless BackupService gRPC client.
func (*Client) ServerlessMonitoring ¶ added in v0.31.0
func (c *Client) ServerlessMonitoring() serverlessmonitoringv1.MonitoringServiceClient
ServerlessMonitoring returns the serverless MonitoringService gRPC client.
func (*Client) ServerlessPlatform ¶ added in v0.31.0
func (c *Client) ServerlessPlatform() serverlessplatformv1.PlatformServiceClient
ServerlessPlatform returns the serverless PlatformService gRPC client.
func (*Client) ServerlessQuota ¶ added in v0.31.0
func (c *Client) ServerlessQuota() serverlessquotav1.QuotaServiceClient
ServerlessQuota returns the serverless QuotaService gRPC client.
func (*Client) ServerlessSpace ¶ added in v0.30.0
func (c *Client) ServerlessSpace() spacev1.SpaceServiceClient
ServerlessSpace returns the serverless SpaceService gRPC client.
func (*Client) ServerlessSpaceApiKey ¶ added in v0.30.0
func (c *Client) ServerlessSpaceApiKey() spaceauthv1.SpaceApiKeyServiceClient
ServerlessSpaceApiKey returns the serverless SpaceApiKeyService gRPC client.
type ClusterClient ¶ added in v0.15.0
type ClusterClient struct {
clusterv1.ClusterServiceClient
}
ClusterClient wraps the generated ClusterServiceClient with convenience methods.
func (*ClusterClient) ListAllClusters ¶ added in v0.16.0
func (c *ClusterClient) ListAllClusters(ctx context.Context, accountID string) ([]*clusterv1.Cluster, error)
ListAllClusters returns all clusters (cloud and hybrid), auto-paginating.