cert-manager: github.com/jetstack/cert-manager/pkg/issuer/acme/http Index | Files | Directories

package http

import "github.com/jetstack/cert-manager/pkg/issuer/acme/http"

Index

Package Files

http.go ingress.go pod.go service.go

Constants

const (
    // HTTP01Timeout is the max amount of time to wait for an HTTP01 challenge
    // to succeed
    HTTP01Timeout = time.Minute * 15
)

type Solver Uses

type Solver struct {
    *controller.Context
    // contains filtered or unexported fields
}

Solver is an implementation of the acme http-01 challenge solver protocol

func NewSolver Uses

func NewSolver(ctx *controller.Context) *Solver

NewSolver returns a new ACME HTTP01 solver for the given Issuer and client. TODO: refactor this to have fewer args

func (*Solver) Check Uses

func (s *Solver) Check(ctx context.Context, issuer v1alpha2.GenericIssuer, ch *cmacme.Challenge) error

func (*Solver) CleanUp Uses

func (s *Solver) CleanUp(ctx context.Context, issuer v1alpha2.GenericIssuer, ch *cmacme.Challenge) error

CleanUp will ensure the created service, ingress and pod are clean/deleted of any cert-manager created data.

func (*Solver) Present Uses

func (s *Solver) Present(ctx context.Context, issuer v1alpha2.GenericIssuer, ch *cmacme.Challenge) error

Present will realise the resources required to solve the given HTTP01 challenge validation in the apiserver. If those resources already exist, it will return nil (i.e. this function is idempotent).

Directories

PathSynopsis
solver

Package http imports 25 packages (graph) and is imported by 7 packages. Updated 2020-08-05. Refresh now. Tools for package owners.