prow/flagutil/kubernetes_cluster_clients.go
func (o *ExperimentalKubernetesOptions) ProwJobClientset(namespace string, dryRun bool) (prowJobClientset prow.Interface, err error) {
	if err := o.resolve(dryRun); err != nil {
		return nil, err
	}

	if o.dryRun {
		return nil, errors.New("no dry-run prowjob clientset is supported in dry-run mode")
	}

	return o.prowJobClientset, nil
}
func (o *ExperimentalKubernetesOptions) ProwJobClientset(namespace string, dryRun bool) (prowJobClientset prow.Interface, err error) {
	if err := o.resolve(dryRun); err != nil {
		return nil, err
	}

	if o.dryRun {
		return nil, errors.New("no dry-run prowjob clientset is supported in dry-run mode")
	}

	return o.prowJobClientset, nil
}
func ( o * ExperimentalKubernetesOptions ) ProwJobClientset ( namespace string , dryRun bool ) ( prowJobClientset prow . Interface , err error ) { if err := o . resolve ( dryRun ) ; err != nil { return nil , err } if o . dryRun { return nil , errors . New ( " " ) } return o . prowJobClientset , nil }
// ProwJobClientset returns a ProwJob clientset for use in informer factories.
ProwJobClientset returns a ProwJob clientset for use in informer factories .