resourcemanagerapi

package
v2.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	TransferPrimary(ctx context.Context, transferee string) error
}

Client provides Resource Manager microservice APIs used by TiDB Operator.

func NewClient

func NewClient(url string, timeout time.Duration, tlsConfig *tls.Config) Client

NewClient returns a new Resource Manager API client.

type Primary

type Primary struct {
	NewPrimary string `json:"new_primary"`
}

Primary is the request payload for transfer primary.

Jump to

Keyboard shortcuts

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