Documentation ¶
Index ¶
- Constants
- func NewApiClient(publicKey string, privateKey string, apiUrl string, userAgent string) (*apiClient.GoTidbcloud, *importClient.GoTidbcloudImport, error)
- func NewTransportWithAgent(inner http.RoundTripper, userAgent string) http.RoundTripper
- type ClientDelegate
- func (d *ClientDelegate) CancelImport(params *importService.CancelImportParams, opts ...importService.ClientOption) (*importService.CancelImportOK, error)
- func (d *ClientDelegate) CreateBackup(params *backup.CreateBackupParams, opts ...backup.ClientOption) (*backup.CreateBackupOK, error)
- func (d *ClientDelegate) CreateCluster(params *cluster.CreateClusterParams, opts ...cluster.ClientOption) (*cluster.CreateClusterOK, error)
- func (d *ClientDelegate) CreateImport(params *importService.CreateImportParams, opts ...importService.ClientOption) (*importService.CreateImportOK, error)
- func (d *ClientDelegate) CreateRestoreTask(params *restore.CreateRestoreTaskParams, opts ...restore.ClientOption) (*restore.CreateRestoreTaskOK, error)
- func (d *ClientDelegate) DeleteBackup(params *backup.DeleteBackupParams, opts ...backup.ClientOption) (*backup.DeleteBackupOK, error)
- func (d *ClientDelegate) DeleteCluster(params *cluster.DeleteClusterParams, opts ...cluster.ClientOption) (*cluster.DeleteClusterOK, error)
- func (d *ClientDelegate) GenerateUploadURL(params *importService.GenerateUploadURLParams, ...) (*importService.GenerateUploadURLOK, error)
- func (d *ClientDelegate) GetBackupOfCluster(params *backup.GetBackupOfClusterParams, opts ...backup.ClientOption) (*backup.GetBackupOfClusterOK, error)
- func (d *ClientDelegate) GetCluster(params *cluster.GetClusterParams, opts ...cluster.ClientOption) (*cluster.GetClusterOK, error)
- func (d *ClientDelegate) GetImport(params *importService.GetImportParams, opts ...importService.ClientOption) (*importService.GetImportOK, error)
- func (d *ClientDelegate) GetRestoreTask(params *restore.GetRestoreTaskParams, opts ...restore.ClientOption) (*restore.GetRestoreTaskOK, error)
- func (d *ClientDelegate) ListBackUpOfCluster(params *backup.ListBackUpOfClusterParams, opts ...backup.ClientOption) (*backup.ListBackUpOfClusterOK, error)
- func (d *ClientDelegate) ListClustersOfProject(params *cluster.ListClustersOfProjectParams, opts ...cluster.ClientOption) (*cluster.ListClustersOfProjectOK, error)
- func (d *ClientDelegate) ListImports(params *importService.ListImportsParams, opts ...importService.ClientOption) (*importService.ListImportsOK, error)
- func (d *ClientDelegate) ListProjects(params *project.ListProjectsParams, opts ...project.ClientOption) (*project.ListProjectsOK, error)
- func (d *ClientDelegate) ListProviderRegions(params *cluster.ListProviderRegionsParams, opts ...cluster.ClientOption) (*cluster.ListProviderRegionsOK, error)
- func (d *ClientDelegate) ListRestoreTasks(params *restore.ListRestoreTasksParams, opts ...restore.ClientOption) (*restore.ListRestoreTasksOK, error)
- func (d *ClientDelegate) PreSignedUrlUpload(url *string, uploadFile *os.File, size int64) error
- func (d *ClientDelegate) UpdateCluster(params *cluster.UpdateClusterParams, opts ...cluster.ClientOption) (*cluster.UpdateClusterOK, error)
- type TiDBCloudClient
- type UserAgentTransport
Constants ¶
View Source
const (
DefaultApiUrl = "https://api.tidbcloud.com"
)
Variables ¶
This section is empty.
Functions ¶
func NewApiClient ¶ added in v0.2.0
func NewApiClient(publicKey string, privateKey string, apiUrl string, userAgent string) (*apiClient.GoTidbcloud, *importClient.GoTidbcloudImport, error)
func NewTransportWithAgent ¶ added in v0.2.0
func NewTransportWithAgent(inner http.RoundTripper, userAgent string) http.RoundTripper
NewTransportWithAgent returns a new http.RoundTripper that add the User-Agent header, according to https://github.com/go-swagger/go-swagger/issues/1563.
Types ¶
type ClientDelegate ¶ added in v0.2.0
type ClientDelegate struct {
// contains filtered or unexported fields
}
func (*ClientDelegate) CancelImport ¶ added in v0.2.0
func (d *ClientDelegate) CancelImport(params *importService.CancelImportParams, opts ...importService.ClientOption) (*importService.CancelImportOK, error)
func (*ClientDelegate) CreateBackup ¶ added in v0.2.0
func (d *ClientDelegate) CreateBackup(params *backup.CreateBackupParams, opts ...backup.ClientOption) (*backup.CreateBackupOK, error)
func (*ClientDelegate) CreateCluster ¶ added in v0.2.0
func (d *ClientDelegate) CreateCluster(params *cluster.CreateClusterParams, opts ...cluster.ClientOption) (*cluster.CreateClusterOK, error)
func (*ClientDelegate) CreateImport ¶ added in v0.2.0
func (d *ClientDelegate) CreateImport(params *importService.CreateImportParams, opts ...importService.ClientOption) (*importService.CreateImportOK, error)
func (*ClientDelegate) CreateRestoreTask ¶ added in v0.2.0
func (d *ClientDelegate) CreateRestoreTask(params *restore.CreateRestoreTaskParams, opts ...restore.ClientOption) (*restore.CreateRestoreTaskOK, error)
func (*ClientDelegate) DeleteBackup ¶ added in v0.2.0
func (d *ClientDelegate) DeleteBackup(params *backup.DeleteBackupParams, opts ...backup.ClientOption) (*backup.DeleteBackupOK, error)
func (*ClientDelegate) DeleteCluster ¶ added in v0.2.0
func (d *ClientDelegate) DeleteCluster(params *cluster.DeleteClusterParams, opts ...cluster.ClientOption) (*cluster.DeleteClusterOK, error)
func (*ClientDelegate) GenerateUploadURL ¶ added in v0.2.0
func (d *ClientDelegate) GenerateUploadURL(params *importService.GenerateUploadURLParams, opts ...importService.ClientOption) (*importService.GenerateUploadURLOK, error)
func (*ClientDelegate) GetBackupOfCluster ¶ added in v0.2.0
func (d *ClientDelegate) GetBackupOfCluster(params *backup.GetBackupOfClusterParams, opts ...backup.ClientOption) (*backup.GetBackupOfClusterOK, error)
func (*ClientDelegate) GetCluster ¶ added in v0.2.0
func (d *ClientDelegate) GetCluster(params *cluster.GetClusterParams, opts ...cluster.ClientOption) (*cluster.GetClusterOK, error)
func (*ClientDelegate) GetImport ¶ added in v0.2.0
func (d *ClientDelegate) GetImport(params *importService.GetImportParams, opts ...importService.ClientOption) (*importService.GetImportOK, error)
func (*ClientDelegate) GetRestoreTask ¶ added in v0.2.0
func (d *ClientDelegate) GetRestoreTask(params *restore.GetRestoreTaskParams, opts ...restore.ClientOption) (*restore.GetRestoreTaskOK, error)
func (*ClientDelegate) ListBackUpOfCluster ¶ added in v0.2.0
func (d *ClientDelegate) ListBackUpOfCluster(params *backup.ListBackUpOfClusterParams, opts ...backup.ClientOption) (*backup.ListBackUpOfClusterOK, error)
func (*ClientDelegate) ListClustersOfProject ¶ added in v0.2.0
func (d *ClientDelegate) ListClustersOfProject(params *cluster.ListClustersOfProjectParams, opts ...cluster.ClientOption) (*cluster.ListClustersOfProjectOK, error)
func (*ClientDelegate) ListImports ¶ added in v0.2.0
func (d *ClientDelegate) ListImports(params *importService.ListImportsParams, opts ...importService.ClientOption) (*importService.ListImportsOK, error)
func (*ClientDelegate) ListProjects ¶ added in v0.2.0
func (d *ClientDelegate) ListProjects(params *project.ListProjectsParams, opts ...project.ClientOption) (*project.ListProjectsOK, error)
func (*ClientDelegate) ListProviderRegions ¶ added in v0.2.0
func (d *ClientDelegate) ListProviderRegions(params *cluster.ListProviderRegionsParams, opts ...cluster.ClientOption) (*cluster.ListProviderRegionsOK, error)
func (*ClientDelegate) ListRestoreTasks ¶ added in v0.2.0
func (d *ClientDelegate) ListRestoreTasks(params *restore.ListRestoreTasksParams, opts ...restore.ClientOption) (*restore.ListRestoreTasksOK, error)
func (*ClientDelegate) PreSignedUrlUpload ¶ added in v0.2.0
func (*ClientDelegate) UpdateCluster ¶ added in v0.2.0
func (d *ClientDelegate) UpdateCluster(params *cluster.UpdateClusterParams, opts ...cluster.ClientOption) (*cluster.UpdateClusterOK, error)
type TiDBCloudClient ¶
type TiDBCloudClient interface { CreateCluster(params *cluster.CreateClusterParams, opts ...cluster.ClientOption) (*cluster.CreateClusterOK, error) UpdateCluster(params *cluster.UpdateClusterParams, opts ...cluster.ClientOption) (*cluster.UpdateClusterOK, error) DeleteCluster(params *cluster.DeleteClusterParams, opts ...cluster.ClientOption) (*cluster.DeleteClusterOK, error) GetCluster(params *cluster.GetClusterParams, opts ...cluster.ClientOption) (*cluster.GetClusterOK, error) ListClustersOfProject(params *cluster.ListClustersOfProjectParams, opts ...cluster.ClientOption) (*cluster.ListClustersOfProjectOK, error) ListProviderRegions(params *cluster.ListProviderRegionsParams, opts ...cluster.ClientOption) (*cluster.ListProviderRegionsOK, error) ListProjects(params *project.ListProjectsParams, opts ...project.ClientOption) (*project.ListProjectsOK, error) CreateBackup(params *backup.CreateBackupParams, opts ...backup.ClientOption) (*backup.CreateBackupOK, error) DeleteBackup(params *backup.DeleteBackupParams, opts ...backup.ClientOption) (*backup.DeleteBackupOK, error) GetBackupOfCluster(params *backup.GetBackupOfClusterParams, opts ...backup.ClientOption) (*backup.GetBackupOfClusterOK, error) ListBackUpOfCluster(params *backup.ListBackUpOfClusterParams, opts ...backup.ClientOption) (*backup.ListBackUpOfClusterOK, error) CreateRestoreTask(params *restore.CreateRestoreTaskParams, opts ...restore.ClientOption) (*restore.CreateRestoreTaskOK, error) GetRestoreTask(params *restore.GetRestoreTaskParams, opts ...restore.ClientOption) (*restore.GetRestoreTaskOK, error) ListRestoreTasks(params *restore.ListRestoreTasksParams, opts ...restore.ClientOption) (*restore.ListRestoreTasksOK, error) CancelImport(params *importService.CancelImportParams, opts ...importService.ClientOption) (*importService.CancelImportOK, error) CreateImport(params *importService.CreateImportParams, opts ...importService.ClientOption) (*importService.CreateImportOK, error) GetImport(params *importService.GetImportParams, opts ...importService.ClientOption) (*importService.GetImportOK, error) ListImports(params *importService.ListImportsParams, opts ...importService.ClientOption) (*importService.ListImportsOK, error) GenerateUploadURL(params *importService.GenerateUploadURLParams, opts ...importService.ClientOption) (*importService.GenerateUploadURLOK, error) PreSignedUrlUpload(url *string, uploadFile *os.File, size int64) error }
func NewClientDelegate ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.