tidbcloud

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 (*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 (*ClientDelegate) CreateImport added in v0.2.0

func (*ClientDelegate) CreateRestoreTask added in v0.2.0

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 (*ClientDelegate) GenerateUploadURL added in v0.2.0

func (*ClientDelegate) GetBackupOfCluster added in v0.2.0

func (*ClientDelegate) GetCluster added in v0.2.0

func (*ClientDelegate) GetImport added in v0.2.0

func (*ClientDelegate) GetRestoreTask added in v0.2.0

func (*ClientDelegate) ListBackUpOfCluster added in v0.2.0

func (*ClientDelegate) ListClustersOfProject added in v0.2.0

func (*ClientDelegate) ListImports added in v0.2.0

func (*ClientDelegate) ListProjects added in v0.2.0

func (*ClientDelegate) ListProviderRegions added in v0.2.0

func (*ClientDelegate) ListRestoreTasks added in v0.2.0

func (*ClientDelegate) PreSignedUrlUpload added in v0.2.0

func (d *ClientDelegate) PreSignedUrlUpload(url *string, uploadFile *os.File, size int64) error

func (*ClientDelegate) UpdateCluster added in v0.2.0

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

func NewClientDelegate(publicKey string, privateKey string, apiUrl string, userAgent string) (TiDBCloudClient, error)

type UserAgentTransport added in v0.2.0

type UserAgentTransport struct {
	Agent string
	// contains filtered or unexported fields
}

func (*UserAgentTransport) RoundTrip added in v0.2.0

func (ug *UserAgentTransport) RoundTrip(r *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL