-
Notifications
You must be signed in to change notification settings - Fork 8
/
types.go
32 lines (24 loc) · 999 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Package certmanager implements the certificate.Manager interface for cert-manager.io as the certificate provider.
package certmanager
import (
cmmeta "github.com/cert-manager/cert-manager/pkg/apis/meta/v1"
cmclient "github.com/cert-manager/cert-manager/pkg/client/clientset/versioned/typed/certmanager/v1"
cmlisters "github.com/cert-manager/cert-manager/pkg/client/listers/certmanager/v1"
"github.com/flomesh-io/fsm/pkg/logger"
)
var (
log = logger.New("cert-manager")
)
// CertManager implements certificate.Manager
type CertManager struct {
// Control plane namespace where CertificateRequests are created.
namespace string
// cert-manager CertificateRequest client set.
client cmclient.CertificateRequestInterface
// Reference to the Issuer to sign certificates.
issuerRef cmmeta.ObjectReference
// crLister is used to list CertificateRequests in the given namespace.
crLister cmlisters.CertificateRequestNamespaceLister
// Issuing certificate properties.
keySize int
}