config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

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 (
	// NetScaler specific challenge types are defined in package netscaleradc
	ACME_CHALLENGE_TYPE_HTTP = "http"
	ACME_CHALLENGE_TYPE_DNS  = "dns"
)
View Source
const (
	ACME_SERVICE_LETSENCRYPT_PRODUCTION     = "LE_PRODUCTION"
	ACME_SERVICE_LETSENCRYPT_PRODUCTION_URL = "https://acme-staging-v02.api.letsencrypt.org/directory"
	ACME_SERVICE_LETSENCRYPT_STAGING        = "LE_STAGING"
	ACME_SERVICE_LETSENCRYPT_STAGING_URL    = "https://acme-staging-v02.api.letsencrypt.org/directory"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AcmeRequest

type AcmeRequest struct {
	Organization            string   `json:"organization" yaml:"organization" mapstructure:"organization"`
	Environment             string   `json:"environment" yaml:"environment" mapstructure:"environment"`
	Username                string   `json:"username" yaml:"username" mapstructure:"username"`
	ChallengeService        string   `json:"service" yaml:"service" mapstructure:"service"`
	ChallengeType           string   `json:"type" yaml:"type" mapstructure:"type"`
	KeyType                 string   `json:"keytype" yaml:"keyType" mapstructure:"keyType"`
	CommonName              string   `json:"commonName" yaml:"commonName" mapstructure:"commonName"`
	SubjectAlternativeNames []string `json:"subjectAlternativeNames" yaml:"subjectAlternativeNames" mapstructure:"subjectAlternativeNames"`
}

func (AcmeRequest) GetChallengeProvider

func (r AcmeRequest) GetChallengeProvider(environment registry.Environment, timestamp string) (challenge.Provider, error)

func (AcmeRequest) GetDomains

func (r AcmeRequest) GetDomains() []string

func (AcmeRequest) GetKeyType

func (r AcmeRequest) GetKeyType() certcrypto.KeyType

func (AcmeRequest) GetServiceUrl

func (r AcmeRequest) GetServiceUrl() string

type AcmeUser

type AcmeUser struct {
	Name  string `json:"name" yaml:"name" mapstructure:"name"`
	Email string `json:"email" yaml:"email" mapstructure:"email"`
}

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         []AcmeUser              `json:"users", yaml:"users" mapstructure:"users"`
}

type Bindpoint

type Bindpoint struct {
	Organization string       `json:"organization" yaml:"organization" mapstructure:"organization"`
	Environment  string       `json:"environment" yaml:"environment" mapstructure:"environment"`
	SslVservers  []sslVserver `json:"sslVservers" yaml:"sslVservers" mapstructure:"sslVservers"`
}

type Certificate

type Certificate struct {
	Name        string      `json:"name" yaml:"name" mapstructure:"name"`
	AcmeRequest AcmeRequest `json:"acmeRequest" yaml:"acmeRequest" mapstructure:"acmeRequest"`
	Bindpoints  []Bindpoint `json:"bindpoints" yaml:"bindpoints" mapstructure:"bindpoints"`
}

type Daemon

type Daemon struct {
	Address string `json:"address" yaml:"address" mapstructure:"address"`
	Port    int    `json:"port" yaml:"port" mapstructure:"port"`
}

Jump to

Keyboard shortcuts

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