github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/fn_drop.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 DropChecking(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError { 15 return nil 16 } 17 18 func Drop(ctx *runtime.Task, funcExpr *ast.CallExpr) *errchain.PlError { 19 if err := markPtDrop(ctx.InData()); err != nil { 20 l.Debug(err) 21 } 22 return nil 23 }