netscalerglobalhttp

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvName                      = envNamespace + "NAME"
	EnvAddress                   = envNamespace + "ADDRESS"
	EnvUsername                  = envNamespace + "USER"
	EnvPassword                  = envNamespace + "PASS"
	EnvUseSsl                    = envNamespace + "USE_SSL"
	EnvValidateServerCertificate = envNamespace + "VALIDATE_SERVER_CERTIFICATE"
	EnvTimeout                   = envNamespace + "TIMEOUT"

	ACME_CHALLENGE_PROVIDER_NETSCALER_HTTP_GLOBAL = "netscaler-http-global"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpProvider

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

func NewNetScalerGlobalHttpProvider

func NewNetScalerGlobalHttpProvider(prefix string, maxRetries int, timestamp string) (*HttpProvider, error)

NewGlobalHttpProvider returns an HTTPProvider instance from environment variable settings

func (*HttpProvider) CleanUp

func (p *HttpProvider) CleanUp(domain string, token string, keyAuth string) error

CleanUp the ACME challenge on the provider after validation

domain is the fqdn for which the challenge will be provided
token is the path to which ACME will look  for the challenge (/.well-known/acme-challenge/<token>)
keyAuth is the value which must be returned for a successful challenge

func (*HttpProvider) Present

func (p *HttpProvider) Present(domain string, token string, keyAuth string) error

Present the ACME challenge to the provider before validation

domain is the fqdn for which the challenge will be provided
token is the path to which ACME will look  for the challenge (/.well-known/acme-challenge/<token>)
keyAuth is the value which must be returned for a successful challenge

Jump to

Keyboard shortcuts

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