// GetConnector returns the information about the connector.
// See `Connector` type
GetConnector returns the information about the connector.
See `Connector` type
// GetConnector returns the information about the connector . // See ` Connector ` type
func (c *Client) GetConnector(clusterName, name string) (connector Connector, err error) {
	if clusterName == "" {
		err = errRequired("clusterName")
		return
	}
	if name == "" {
		err = errRequired("name")
		return
	}
	path := fmt.Sprintf(connectorPath, clusterName, name)
	resp, respErr := c.Do(http.MethodGet, path, contentTypeJSON, nil)
	if respErr != nil {
		err = respErr
		return
	}
	err = c.ReadJSON(resp, &connector)
	connector.ClusterName = clusterName
	return
}
func ( c * Client ) GetConnector ( clusterName , name string ) ( connector Connector , err error ) { if clusterName == " " { err = errRequired ( " " ) return } if name == " " { err = errRequired ( " " ) return } path := fmt . Sprintf ( connectorPath , clusterName , name ) resp , respErr := c . Do ( http . MethodGet , path , contentTypeJSON , nil ) if respErr != nil { err = respErr return } err = c . ReadJSON ( resp , & connector ) connector . ClusterName = clusterName return }
GetConnector returns the information about the connector.
GetConnector returns the information about the connector .
// # Get information about a specific connector // GET /api/proxy-connect/(string: clusterName)/connectors/(string: name)