Class GiteaPATCredentialsConvertor
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
-
- io.jenkins.plugins.gitea_pat_kubernetes_credentials.GiteaPATCredentialsConvertor
-
- All Implemented Interfaces:
ExtensionPoint
@OptionalExtension(requirePlugins={"gitea","kubernetes-credentials-provider"}) public class GiteaPATCredentialsConvertor extends com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description GiteaPATCredentialsConvertor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canConvert(String type)
org.jenkinsci.plugin.gitea.credentials.PersonalAccessTokenImpl
convert(io.fabric8.kubernetes.api.model.Secret secret)
-
-
-
Method Detail
-
canConvert
public boolean canConvert(String type)
- Specified by:
canConvert
in classcom.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
-
convert
public org.jenkinsci.plugin.gitea.credentials.PersonalAccessTokenImpl convert(io.fabric8.kubernetes.api.model.Secret secret) throws com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.CredentialsConvertionException
- Specified by:
convert
in classcom.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
- Throws:
com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.CredentialsConvertionException
-
-