更新函数代码

函数代码base64更新

mifx func updatecode --code  "" --codesource INLINE --entrypoint main.main --funcuid ""

函数压缩包更新

mifx func updatecode --codepath  "" --codesource LOCALFILE --entrypoint Handler --funcuid ""
mifx func updatecode -f updatecode.yaml

函数代码base64的更新文件updatecode.yaml

{
    "requestbody":{
        "codeSource":"INLINE",
        "code":"ZGVmIG1haW4oZXZlbnQpOg0KICAgIHByaW50ICJ0ZXN0Ig0KICAgIHJldHVybiAiSGVsbG8sIHdvcmxkIVxuIg==",
        "entryPoint":"main.main"
    },
    "funcuid":"59160e27-7b0d-4ebc-a426-1577de7a1f34"
}

函数代码压缩包的更新文件updatecode.yaml

{
    "funcuid":"950f0f9e-d0f1-46d4-bde5-5f9ffac5b81a",
    "requestbody":{
        "codeSource":"LOCALFILE",
        "entryPoint":"Handler",
        "codePath":"./examples/code.zip"
    }
}

results matching ""

    No results matching ""