Documentation ¶
Index ¶
- func SqlConWithTempUser[Handler func(db *pgx.ConnPool) (*R, error), R any](ctx context.Context, client *CcloudClient, clusterId string, database string, ...) (res *R, err error)
- type CcloudClient
- type CockroachCloudClusterNotFoundError
- type CockroachCloudClusterNotReadyError
- type CockroachCloudErrorResponse
- type CockroachCloudSqlUserNotFoundError
- type ConnectionStringResponse
- type ConnectionStringResponseParams
- type SyncResourceHolder
- type UserCredMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CcloudClient ¶
func NewCcloudClient ¶
func NewCcloudClient(ctx context.Context, apiKey string) *CcloudClient
NewCcloudClient returns a new CcloudClient.
type CockroachCloudClusterNotFoundError ¶
type CockroachCloudClusterNotFoundError struct{}
func (CockroachCloudClusterNotFoundError) Error ¶
func (e CockroachCloudClusterNotFoundError) Error() string
type CockroachCloudClusterNotReadyError ¶
type CockroachCloudClusterNotReadyError struct { }
func (CockroachCloudClusterNotReadyError) Error ¶
func (e CockroachCloudClusterNotReadyError) Error() string
type CockroachCloudSqlUserNotFoundError ¶
type CockroachCloudSqlUserNotFoundError struct{}
func (CockroachCloudSqlUserNotFoundError) Error ¶
func (e CockroachCloudSqlUserNotFoundError) Error() string
type ConnectionStringResponse ¶
type ConnectionStringResponse struct { ConnectionString string `json:"connection_string"` Params ConnectionStringResponseParams `json:"params"` }
type SyncResourceHolder ¶
type SyncResourceHolder[T any] struct { // contains filtered or unexported fields }
func NewSyncResourceHolder ¶
func NewSyncResourceHolder[T any](resource T) *SyncResourceHolder[T]
func (*SyncResourceHolder[T]) Get ¶
func (h *SyncResourceHolder[T]) Get() (T, func())
type UserCredMap ¶
type UserCredMap = map[string]*tempUser
Click to show internal directories.
Click to hide internal directories.