// GetEndpoints returns a list of service endpoints
GetEndpoints returns a list of service endpoints
// GetEndpoints returns a list of service endpoints
func (a *API) GetEndpoints(name, namespace string) (*corev1.Endpoints, error) {
	endpoints, err := a.kubeClient.CoreV1().Endpoints(namespace).Get(name, meta_v1.GetOptions{})
	if err != nil {
		return nil, err
	}
	return endpoints, nil
}
func ( a * API ) GetEndpoints ( name , namespace string ) ( * corev1 . Endpoints , error ) { endpoints , err := a . kubeClient . CoreV1 ( ) . Endpoints ( namespace ) . Get ( name , meta_v1 . GetOptions { } ) if err != nil { return nil , err } return endpoints , nil }
GetEndpoints returns a list of service endpoints
GetEndpoints returns a list of service endpoints