cert-manager: github.com/jetstack/cert-manager/pkg/controller/certificaterequests Index | Files | Directories

package certificaterequests

import "github.com/jetstack/cert-manager/pkg/controller/certificaterequests"

Index

Package Files

checks.go controller.go sync.go

Constants

const (
    ControllerName = "certificaterequests"
)

type Controller Uses

type Controller struct {
    // contains filtered or unexported fields
}

func New Uses

func New(issuerType string, issuer Issuer, extraInformers ...cache.SharedIndexInformer) *Controller

New will construct a new certificaterequest controller using the given Issuer implementation. Note: the extraInformers passed here will be 'waited' for when starting to ensure their corresponding listers have synced. An event handler will then be set on these informers that automatically resyncs CertificateRequest resources that 'own' the objects in the informer. It's the callers responsibility to ensure the Run function on the informer is called in order to start the reflector. This is handled automatically when the informer factory's Start method is called, if the given informer was obtained using a SharedInformerFactory.

func (*Controller) ProcessItem Uses

func (c *Controller) ProcessItem(ctx context.Context, key string) error

func (*Controller) Register Uses

func (c *Controller) Register(ctx *controllerpkg.Context) (workqueue.RateLimitingInterface, []cache.InformerSynced, error)

Register registers and constructs the controller using the provided context. It returns the workqueue to be used to enqueue items, a list of InformerSynced functions that must be synced, or an error.

func (*Controller) Sync Uses

func (c *Controller) Sync(ctx context.Context, cr *v1alpha2.CertificateRequest) (err error)

type Issuer Uses

type Issuer interface {
    Sign(context.Context, *v1alpha2.CertificateRequest, v1alpha2.GenericIssuer) (*issuer.IssueResponse, error)
}

Directories

PathSynopsis
acme
ca
fake
selfsigned
util
vault
venafi

Package certificaterequests imports 27 packages (graph) and is imported by 11 packages. Updated 2020-08-05. Refresh now. Tools for package owners.