Documentation ¶
Index ¶
- Constants
- func LoadRandomUser(db *gorm.DB, userIDPool []string) (utils.User, error)
- func LoadUser(userData UserData) (utils.User, error)
- type Certificate
- type Route
- type RouteManager
- func (m *RouteManager) Create(instanceId, domain, origin, path string, insecureOrigin bool, ...) (*Route, error)
- func (m *RouteManager) DeleteOrphanedCerts()
- func (m *RouteManager) Disable(r *Route) error
- func (m *RouteManager) Get(instanceId string) (*Route, error)
- func (m *RouteManager) GetDNSInstructions(route *Route) ([]string, error)
- func (m *RouteManager) Poll(r *Route) error
- func (m *RouteManager) Renew(r *Route) error
- func (m *RouteManager) RenewAll()
- func (m *RouteManager) Update(instanceId, domain, origin string, path string, insecureOrigin bool, ...) error
- type RouteManagerIface
- type State
- type UserData
Constants ¶
View Source
const ( Provisioning State = "provisioning" Provisioned = "provisioned" Deprovisioning = "deprovisioning" Deprovisioned = "deprovisioned" Failed = "failed" )
Variables ¶
This section is empty.
Functions ¶
func LoadRandomUser ¶
* LoadRandomUser The Let's Encrypt v1 acme API has shut down user creation to force users to adopt v2. * In an attempt to contiune using v1 while we develop a v2 compliant broker, we are replacing * calls to create a new user for each new domain registration with a method that fetches an existing user * from a pool of ids. The random selection of users from a pool aims to minimize the impact of the following rate limits: * - 300 Pending Authorizations per account * - Failed Validation limit of 5 failures per account, per hostname, per hour.
Types ¶
type Certificate ¶
type Route ¶
type Route struct { gorm.Model InstanceId string `gorm:"not null;unique_index"` State State `gorm:"not null;index"` ChallengeJSON []byte DomainExternal string DomainInternal string DistId string Origin string Path string InsecureOrigin bool Certificate Certificate UserData UserData UserDataID int }
func (*Route) GetDomains ¶
type RouteManager ¶
type RouteManager struct {
// contains filtered or unexported fields
}
func NewManager ¶
func (*RouteManager) DeleteOrphanedCerts ¶
func (m *RouteManager) DeleteOrphanedCerts()
func (*RouteManager) Disable ¶
func (m *RouteManager) Disable(r *Route) error
func (*RouteManager) GetDNSInstructions ¶
func (m *RouteManager) GetDNSInstructions(route *Route) ([]string, error)
func (*RouteManager) Poll ¶
func (m *RouteManager) Poll(r *Route) error
func (*RouteManager) Renew ¶
func (m *RouteManager) Renew(r *Route) error
func (*RouteManager) RenewAll ¶
func (m *RouteManager) RenewAll()
type RouteManagerIface ¶
type RouteManagerIface interface { Create(instanceId, domain, origin, path string, insecureOrigin bool, forwardedHeaders utils.Headers, forwardCookies bool, tags map[string]string) (*Route, error) Update(instanceId string, domain, origin string, path string, insecureOrigin bool, forwardedHeaders utils.Headers, forwardCookies bool) error Get(instanceId string) (*Route, error) Poll(route *Route) error Disable(route *Route) error Renew(route *Route) error RenewAll() DeleteOrphanedCerts() GetDNSInstructions(route *Route) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.