Documentation
¶
Index ¶
- Constants
- type Application
- type Certificate
- type Challenge
- type Content
- type Daemon
- type EnvironmentVariable
- type ExternalAccountBinding
- type Installation
- type ProviderParameters
- type Request
- func (r Request) GetChallengeProvider(environment registry.Environment, timestamp string) (challenge.Provider, error)
- func (r Request) GetDomains() ([]string, error)
- func (r Request) GetKeyType() certcrypto.KeyType
- func (r Request) GetServiceUrl() string
- func (r Request) SetPath(path string) Request
- type Target
- type User
Constants ¶
View Source
const ( ACME_SERVICE_LETSENCRYPT_PRODUCTION = "LE_PRODUCTION" ACME_SERVICE_LETSENCRYPT_PRODUCTION_URL = "https://acme-v02.api.letsencrypt.org/directory" ACME_SERVICE_LETSENCRYPT_STAGING = "LE_STAGING" ACME_SERVICE_LETSENCRYPT_STAGING_URL = "https://acme-staging-v02.api.letsencrypt.org/directory" )
Let's Encrypt Service Environments
View Source
const ( // NetScaler specific challenge types are defined in package netscaleradc ACME_CHALLENGE_TYPE_HTTP = "http-01" ACME_CHALLENGE_TYPE_DNS = "dns-01" ACME_CHALLENGE_TYPE_TLS_ALPN = "tls-alpn-01" )
ACME Protocol challenge types
View Source
const ( ACME_KEY_TYPE_EC256 = "EC256" ACME_KEY_TYPE_EC384 = "EC384" ACME_KEY_TYPE_RSA2048 = "RSA2048" ACME_KEY_TYPE_RSA4096 = "RSA4096" ACME_KEY_TYPE_RSA8192 = "RSA8192" )
View Source
const (
ACME_CHALLENGE_PROVIDER_WEBSERVER = "webserver"
)
Generic webserver provider Other providers constants are defined in their respective codebase
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { ConfigPath string `json:"configPath" yaml:"configPath" mapstructure:"configPath"` // Daemon Daemon `json:"daemon" yaml:"daemon" mapstructure:"daemon"` Organizations []registry.Organization `json:"organizations" yaml:"organizations" mapstructure:"organizations"` Users []User `json:"users" yaml:"users" mapstructure:"users"` Parameters []ProviderParameters `json:"providerParameters" yaml:"providerParameters" mapstructure:"providerParameters"` }
func (*Application) UpdateEnvironmentVariables ¶ added in v0.4.0
func (a *Application) UpdateEnvironmentVariables(viperEnv *viper.Viper) error
type Certificate ¶
type Certificate struct { Name string `json:"name" yaml:"name" mapstructure:"name"` Request Request `json:"request" yaml:"request" mapstructure:"request"` Installation []Installation `json:"installation" yaml:"installation" mapstructure:"installation"` Resource *certificate.Resource `json:"-" yaml:"-" mapstructure:"-"` }
type Challenge ¶ added in v0.3.0
type Challenge struct { Service string `json:"service" yaml:"service" mapstructure:"service"` Type string `json:"type" yaml:"type" mapstructure:"type"` Provider string `json:"provider" yaml:"provider" mapstructure:"provider"` DisableDnsPropagationCheck bool `json:"disableDnsPropagationCheck" yaml:"disableDnsPropagationCheck" mapstructure:"disableDnsPropagationCheck"` ProviderParameters string `json:"providerParameters" yaml:"providerParameters" mapstructure:"providerParameters"` }
type Content ¶ added in v0.3.0
type Content struct { CommonName string `json:"commonName" yaml:"commonName" mapstructure:"commonName"` SubjectAlternativeNames []string `json:"subjectAlternativeNames" yaml:"subjectAlternativeNames" mapstructure:"subjectAlternativeNames"` SubjectAlternativeNamesFile string `json:"subjectAlternativeNamesFile" yaml:"subjectAlternativeNamesFile" mapstructure:"subjectAlternativeNamesFile"` }
func (Content) GetDomains ¶ added in v0.3.0
type EnvironmentVariable ¶ added in v0.4.0
type ExternalAccountBinding ¶ added in v0.4.0
type Installation ¶ added in v0.3.0
type Installation struct { Target Target `json:"target" yaml:"target" mapstructure:"target"` ReplaceDefaultCertificate bool `json:"replaceDefaultCertificate" yaml:"replaceDefaultCertificate" mapstructure:"replaceDefaultCertificate"` SslVirtualServers []sslVirtualServer `json:"sslVirtualServers" yaml:"sslVirtualServers" mapstructure:"sslVirtualServers"` SslServices []sslService `json:"sslServices" yaml:"sslServices" mapstructure:"sslServices"` }
type ProviderParameters ¶ added in v0.4.0
type ProviderParameters struct { Name string `json:"name" yaml:"name" mapstructure:"name"` Variables []EnvironmentVariable `json:"variables" yaml:"variables" mapstructure:"variables"` }
func (ProviderParameters) ApplyEnvironmentVariables ¶ added in v0.4.0
func (p ProviderParameters) ApplyEnvironmentVariables() error
func (ProviderParameters) ResetEnvironmentVariables ¶ added in v0.4.0
func (p ProviderParameters) ResetEnvironmentVariables() error
type Request ¶ added in v0.3.0
type Request struct { Target Target `json:"target" yaml:"target" mapstructure:"target"` User string `json:"user" yaml:"user" mapstructure:"user"` Challenge Challenge `json:"challenge" yaml:"challenge" mapstructure:"challenge"` KeyType string `json:"keyType" yaml:"keyType" mapstructure:"keyType"` Content Content `json:"content" yaml:"content" mapstructure:"content"` // contains filtered or unexported fields }
func (Request) GetChallengeProvider ¶ added in v0.3.0
func (Request) GetDomains ¶ added in v0.3.0
func (Request) GetKeyType ¶ added in v0.3.0
func (r Request) GetKeyType() certcrypto.KeyType
func (Request) GetServiceUrl ¶ added in v0.3.0
type User ¶ added in v0.4.0
type User struct { Name string `json:"name" yaml:"name" mapstructure:"name"` Email string `json:"email" yaml:"email" mapstructure:"email"` ExternalAccountBinding ExternalAccountBinding `json:"eab" yaml:"eab" mapstructure:"eab"` }
Click to show internal directories.
Click to hide internal directories.