Documentation ¶
Index ¶
- type Client
- func (cc *Client) DeleteConnector() (*Response, error)
- func (cc *Client) GetConnectClusterStatus() (*Response, error)
- func (cc *Client) GetConnector() (*Response, error)
- func (cc *Client) IsConnectClusterActive(response *Response) (bool, error)
- func (cc *Client) PostConnector(jsonBody []byte) (*Response, error)
- func (cc *Client) PutConnector(jsonBody []byte) (*Response, error)
- type Config
- type KubeDBClientBuilder
- func (o *KubeDBClientBuilder) GetConnectClusterClient() (*Client, error)
- func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithPath(path string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder
- func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
- type Response
- type ResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *resty.Client Config *Config }
func (*Client) DeleteConnector ¶
func (*Client) GetConnectClusterStatus ¶
func (*Client) GetConnector ¶
func (*Client) IsConnectClusterActive ¶
IsConnectClusterActive parse health response in json from server and return overall status of the server
type KubeDBClientBuilder ¶
type KubeDBClientBuilder struct {
// contains filtered or unexported fields
}
func NewKubeDBClientBuilder ¶
func NewKubeDBClientBuilder(kc client.Client, dbConnect *kapi.ConnectCluster) *KubeDBClientBuilder
func (*KubeDBClientBuilder) GetConnectClusterClient ¶
func (o *KubeDBClientBuilder) GetConnectClusterClient() (*Client, error)
func (*KubeDBClientBuilder) WithContext ¶
func (o *KubeDBClientBuilder) WithContext(ctx context.Context) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithPath ¶
func (o *KubeDBClientBuilder) WithPath(path string) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithPod ¶
func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder
func (*KubeDBClientBuilder) WithURL ¶
func (o *KubeDBClientBuilder) WithURL(url string) *KubeDBClientBuilder
type ResponseBody ¶
Click to show internal directories.
Click to hide internal directories.