restproxy

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectionURL

func GetConnectionURL(restproxy *kapi.RestProxy) string

Types

type Client

type Client struct {
	*resty.Client
	Config *Config
}

func (*Client) GetKafkaBrokerList

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

func (*Client) IsBrokerAvailableForRequest

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

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

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, restproxy *kapi.RestProxy) *KubeDBClientBuilder

func (*KubeDBClientBuilder) GetRestProxyClient

func (o *KubeDBClientBuilder) GetRestProxyClient() (*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 {
	Brokers []int `json:"brokers"`
}

Jump to

Keyboard shortcuts

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