netscaleradc

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 9 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"
)
View Source
const (
	ACME_CHALLENGE_PROVIDER_NETSCALER_ADNS = "netscaler-adns"
)
View Source
const (
	ACME_CHALLENGE_PROVIDER_NETSCALER_HTTP_GLOBAL = "netscaler-http-global"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ADnsProvider

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

ADnsProvider manages ACME requests for NetScaler ADC Authoritative DNS service

func NewADnsProvider

func NewADnsProvider(e registry.Environment, maxRetries int) (*ADnsProvider, error)

NewADnsProvider returns an Authoritative DNS Provider from a configured list of hosts

func NewADnsProviderFromEnv added in v0.4.0

func NewADnsProviderFromEnv(maxRetries int) (*ADnsProvider, error)

NewADnsProvider returns an Authoritative DNS Provider from environment variable settings

func (*ADnsProvider) CleanUp

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

func (*ADnsProvider) Present

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

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

type Config added in v0.4.0

type Config struct {
	Name    string
	Address string
	// contains filtered or unexported fields
}

func NewConfig added in v0.4.0

func NewConfig() (*Config, error)

func (Config) GetClient added in v0.4.0

func (c Config) GetClient() (*nitro.Client, error)

type GlobalHttpProvider

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

GlobalHttpProvider manages ACME requests for NetScaler ADC using globally bound responder policies

func NewGlobalHttpProvider

func NewGlobalHttpProvider(e registry.Environment, maxRetries int, timestamp string) (*GlobalHttpProvider, error)

NewGlobalHttpProvider returns a HTTPProvider instance with a configured list of hosts

func NewGlobalHttpProviderFromEnv added in v0.4.0

func NewGlobalHttpProviderFromEnv(maxRetries int, timestamp string) (*GlobalHttpProvider, error)

NewGlobalHttpProvider returns an HTTPProvider instance from environment variable settings

func (*GlobalHttpProvider) CleanUp

func (p *GlobalHttpProvider) 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 (*GlobalHttpProvider) Present

func (p *GlobalHttpProvider) 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