INNER CODE UNIT · Go
func
jcmoraisjr/haproxy-ingress · pkg/acme/signer.go:79
func (s *signer) AcmeAccount(endpoint, emails string, termsAgreed bool) {
switch endpoint {
case "v2", "v02":
endpoint = "https://acme-v02.api.letsencrypt.org"
case "v2-staging", "v02-staging":
endpoint = "https://acme-staging-v02.api.letsencrypt.org"
}
account := Account{
Endpoint: endpoint,
Emails: emails,
TermsAgreed: termsAgreed,
}
if reflect.DeepEqual(s.account, account) {
return
}
s.client = nil
if endpoint == "" && emails == "" && !termsAgreed {
return