connect

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 18 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 struct {
	*resty.Client
	Config *Config
}

func (*Client) DeleteConnector

func (cc *Client) DeleteConnector() (*Response, error)

func (*Client) GetConnectClusterStatus

func (cc *Client) GetConnectClusterStatus() (*Response, error)

func (*Client) GetConnector

func (cc *Client) GetConnector() (*Response, error)

func (*Client) IsConnectClusterActive

func (cc *Client) IsConnectClusterActive(response *Response) (bool, error)

IsConnectClusterActive parse health response in json from server and return overall status of the server

func (*Client) PostConnector

func (cc *Client) PostConnector(jsonBody []byte) (*Response, error)

func (*Client) PutConnector

func (cc *Client) PutConnector(jsonBody []byte) (*Response, error)

type Config

type Config struct {
	// contains filtered or unexported fields
}

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 (*KubeDBClientBuilder) WithPath

func (o *KubeDBClientBuilder) WithPath(path string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithPod

func (o *KubeDBClientBuilder) WithPod(podName string) *KubeDBClientBuilder

func (*KubeDBClientBuilder) WithURL

type Response

type Response struct {
	Code   int
	Header http.Header
	Body   io.ReadCloser
}

type ResponseBody

type ResponseBody struct {
	Version        string `json:"version"`
	Commit         string `json:"commit"`
	KafkaClusterId string `json:"kafka_cluster_id"`
}

Jump to

Keyboard shortcuts

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