feat: add support for dns-01 challenge mode when using traefik
Closes #6423
This commit is contained in:
@@ -39,6 +39,12 @@ fn-plugin-property-get-all() {
|
||||
"$PLUGIN_CORE_AVAILABLE_PATH/common/prop" "get-all" "$PLUGIN" "$APP"
|
||||
}
|
||||
|
||||
fn-plugin-property-get-all-by-prefix() {
|
||||
declare desc="returns a map of all properties for a given app with a specified prefix"
|
||||
declare PLUGIN="$1" APP="$2" PREFIX="$3"
|
||||
"$PLUGIN_CORE_AVAILABLE_PATH/common/prop" "get-all-by-prefix" "$PLUGIN" "$APP" "$PREFIX"
|
||||
}
|
||||
|
||||
fn-plugin-property-get-default() {
|
||||
declare desc="returns the value for a given property with a specified default value"
|
||||
declare PLUGIN="$1" APP="$2" KEY="$3" DEFAULT="$4"
|
||||
|
||||
@@ -78,6 +78,19 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
for key, value := range values {
|
||||
fmt.Println(fmt.Sprintf("%s %s", key, strings.TrimSuffix(value, "\n")))
|
||||
}
|
||||
|
||||
case "get-all-by-prefix":
|
||||
appName := flag.Arg(2)
|
||||
prefix := flag.Arg(3)
|
||||
values, err := common.PropertyGetAllByPrefix(pluginName, appName, prefix)
|
||||
if err != nil {
|
||||
fmt.Fprintln(os.Stderr, err.Error())
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
for key, value := range values {
|
||||
fmt.Println(fmt.Sprintf("%s %s", key, strings.TrimSuffix(value, "\n")))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user