http

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2018 License: Apache-2.0 Imports: 24 Imported by: 0

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, secretLister corev1listers.SecretLister, solverImage string) *Solver

NewSolver returns a new ACME HTTP01 solver for the given Issuer and client.

func (*Solver) CleanUp

func (s *Solver) CleanUp(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error

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

func (*Solver) Present

func (s *Solver) Present(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error

Present will create the required service, update/create the required ingress and created a Kubernetes Pod to solve the HTTP01 challenge

func (*Solver) Wait

func (s *Solver) Wait(ctx context.Context, crt *v1alpha1.Certificate, domain, token, key string) error

Wait will continuously test if the ingress controller has updated it's routes to include the HTTP01 challenge path, or return with an error if the context deadline is exceeded.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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