github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/fn_drop_origin_data.go (about) 1 // Unless explicitly stated otherwise all files in this repository are licensed 2 // under the MIT License. 3 // This product includes software developed at Guance Cloud (https://www.guance.com/). 4 // Copyright 2021-present Guance, Inc. 5 6 package funcs 7 8 import ( 9 "github.com/GuanceCloud/platypus/pkg/ast" 10 "github.com/GuanceCloud/platypus/pkg/engine/runtime" 11 "github.com/GuanceCloud/platypus/pkg/errchain" 12 ) 13 14 func DropOriginDataChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError { 15 return nil 16 } 17 18 func DropOriginData(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError { 19 deletePtKey(ctx.InData(), "message") 20 return nil 21 }