http

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2018 License: Apache-2.0 Imports: 23 Imported by: 8

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Solver

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

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

func NewSolver

func NewSolver(issuer v1alpha1.GenericIssuer, client kubernetes.Interface, podLister corev1listers.PodLister, serviceLister corev1listers.ServiceLister, ingressLister extv1beta1listers.IngressLister, solverImage string) *Solver

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

func (*Solver) Check

func (s *Solver) Check(ch v1alpha1.ACMEOrderChallenge) (bool, error)

func (*Solver) CleanUp

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

func (*Solver) Present

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

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL