func NameForIssuer(i v1alpha1.GenericIssuer) (string, error) {
	switch {
	case i.GetSpec().ACME != nil:
		return IssuerACME, nil
	case i.GetSpec().CA != nil:
		return IssuerCA, nil
	case i.GetSpec().Vault != nil:
		return IssuerVault, nil
	case i.GetSpec().SelfSigned != nil:
		return IssuerSelfSigned, nil
	}
	return "", fmt.Errorf("no issuer specified for Issuer '%s/%s'", i.GetObjectMeta().Namespace, i.GetObjectMeta().Name)
}
// nameForIssuer determines the name of the issuer implementation given an
// Issuer resource.
nameForIssuer determines the name of the issuer implementation given an
Issuer resource.
// nameForIssuer determines the name of the issuer implementation given an // Issuer resource .
func NameForIssuer(i v1alpha1.GenericIssuer) (string, error) {
	switch {
	case i.GetSpec().ACME != nil:
		return IssuerACME, nil
	case i.GetSpec().CA != nil:
		return IssuerCA, nil
	case i.GetSpec().Vault != nil:
		return IssuerVault, nil
	case i.GetSpec().SelfSigned != nil:
		return IssuerSelfSigned, nil
	}
	return "", fmt.Errorf("no issuer specified for Issuer '%s/%s'", i.GetObjectMeta().Namespace, i.GetObjectMeta().Name)
}
func NameForIssuer ( i v1alpha1 . GenericIssuer ) ( string , error ) { switch { case i . GetSpec ( ) . ACME != nil : return IssuerACME , nil case i . GetSpec ( ) . CA != nil : return IssuerCA , nil case i . GetSpec ( ) . Vault != nil : return IssuerVault , nil case i . GetSpec ( ) . SelfSigned != nil : return IssuerSelfSigned , nil } return " " , fmt . Errorf ( " " , i . GetObjectMeta ( ) . Namespace , i . GetObjectMeta ( ) . Name ) }
nameForIssuer determines the name of the issuer implementation given an
Issuer resource.
nameForIssuer determines the name of the issuer implementation given an Issuer resource .