24 lines
769 B
Go
24 lines
769 B
Go
package providers
|
|
|
|
// SettingField beschreibt ein Konfigurationsfeld
|
|
type SettingField struct {
|
|
Name string `json:"name"`
|
|
Label string `json:"label"`
|
|
Type string `json:"type"` // text, password, number, email, url
|
|
Required bool `json:"required"`
|
|
Description string `json:"description"`
|
|
Default string `json:"default,omitempty"`
|
|
}
|
|
|
|
// ProviderInfo enthält Informationen über einen Provider
|
|
type ProviderInfo struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
DisplayName string `json:"displayName"`
|
|
Description string `json:"description"`
|
|
Enabled bool `json:"enabled"`
|
|
AcmeReady bool `json:"acme_ready"`
|
|
Settings []SettingField `json:"settings"`
|
|
}
|
|
|