// GetConnectors returns a list of active connectors names as list of strings.
//
// Visit https://docs.lenses.io/dev/lenses-apis/rest-api/index.html#connector-api
GetConnectors returns a list of active connectors names as list of strings.


// GetConnectors returns a list of active connectors names as list of strings . // // Visit https : // docs . lenses . io / dev / lenses - apis / rest - api / index . html#connector - api
func (c *Client) GetConnectors(clusterName string) (names []string, err error) {
	if clusterName == "" {
		err = errRequired("clusterName")
		return
	}
	path := fmt.Sprintf(connectorsPath, clusterName)
	resp, respErr := c.Do(http.MethodGet, path, contentTypeJSON, nil)
	if respErr != nil {
		err = respErr
		return
	}
	err = c.ReadJSON(resp, &names)
	return
}
func ( c * Client ) GetConnectors ( clusterName string ) ( names [ ] string , err error ) { if clusterName == " " { err = errRequired ( " " ) return } path := fmt . Sprintf ( connectorsPath , clusterName ) resp , respErr := c . Do ( http . MethodGet , path , contentTypeJSON , nil ) if respErr != nil { err = respErr return } err = c . ReadJSON ( resp , & names ) return }
GetConnectors returns a list of active connectors names as list of strings.
GetConnectors returns a list of active connectors names as list of strings .
// # List active connectors // GET /api/proxy-connect/(string: clusterName)/connectors