Documentation ¶
Index ¶
- Variables
- func BytesMatcherIdent(g *protogen.GeneratedFile, name string) string
- func DurationMatcherIdent(g *protogen.GeneratedFile, name string) string
- func EventFieldCheck(msg *protogen.Message, field string) bool
- func FmtErrorf(g *protogen.GeneratedFile, fmt_ string, args ...string) string
- func FmtSprintf(g *protogen.GeneratedFile, fmt_ string, args ...string) string
- func GeneratedIdent(g *protogen.GeneratedFile, importPath string, name string) string
- func GetEnums(files []*protogen.File) ([]*protogen.Enum, error)
- func GetEvents(files []*protogen.File) ([]*protogen.Message, error)
- func GetFields(files []*protogen.File) ([]*protogen.Message, error)
- func GoIdent(g *protogen.GeneratedFile, importPath string, name string) string
- func IsParentEvent(msg *protogen.Message) bool
- func IsProcessEvent(msg *protogen.Message) bool
- func ListMatcherIdent(g *protogen.GeneratedFile, name string) string
- func Logger(g *protogen.GeneratedFile) string
- func NewCodegenFile(gen *protogen.Plugin, file *protogen.File, pkg string) *protogen.GeneratedFile
- func NewFile(gen *protogen.Plugin, file *protogen.File, pkg string, pkgName string, ...) *protogen.GeneratedFile
- func PkgProcessIdent(g *protogen.GeneratedFile, name string) string
- func ProcessIdent(g *protogen.GeneratedFile) string
- func StringMatcherIdent(g *protogen.GeneratedFile, name string) string
- func StructTag(tag string) string
- func TetragonApiIdent(g *protogen.GeneratedFile, name string) string
- func TetragonIdent(g *protogen.GeneratedFile, importPath string, name string) string
- func TimestampMatcherIdent(g *protogen.GeneratedFile, name string) string
- type GetEventsResponseOneofInfo
Constants ¶
This section is empty.
Variables ¶
var TetragonApiPackageName = "api/v1/tetragon"
TetragonApiPackageName is the import path for the code generated package
var TetragonCopyrightHeader = `// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Tetragon`
TetragonCopyrightHeader is the license header to prepend to all generated files
var TetragonPackageName = "github.com/cilium/tetragon"
TetragonPackageName is the import path for the Tetragon package
Functions ¶
func BytesMatcherIdent ¶
func BytesMatcherIdent(g *protogen.GeneratedFile, name string) string
func DurationMatcherIdent ¶
func DurationMatcherIdent(g *protogen.GeneratedFile, name string) string
func EventFieldCheck ¶
EventFieldCheck returns true if the event has the field
func FmtErrorf ¶
func FmtErrorf(g *protogen.GeneratedFile, fmt_ string, args ...string) string
FmtErrorf is a convenience helper that generates a call to fmt.Errorf
func FmtSprintf ¶ added in v0.9.0
func FmtSprintf(g *protogen.GeneratedFile, fmt_ string, args ...string) string
FmtSprintf is a convenience helper that generates a call to fmt.Sprintf
func GeneratedIdent ¶
func GeneratedIdent(g *protogen.GeneratedFile, importPath string, name string) string
GeneratedIdent is a convenience helper that returns a qualified go ident as a string for a given import package and name within the codegen package
func GoIdent ¶
func GoIdent(g *protogen.GeneratedFile, importPath string, name string) string
GoIdent is a convenience helper that returns a qualified go ident as a string for a given import package and name
func IsParentEvent ¶
IsParentEvent returns true if the message is an Tetragon event that has a parent field
func IsProcessEvent ¶
IsProcessEvent returns true if the message is an Tetragon event that has a process field
func ListMatcherIdent ¶
func ListMatcherIdent(g *protogen.GeneratedFile, name string) string
func Logger ¶
func Logger(g *protogen.GeneratedFile) string
Logger is a convenience helper that generates a call to logger.GetLogger()
func NewCodegenFile ¶
NewCodegenFile creates a new codegen pakage and file in the project
func NewFile ¶
func NewFile(gen *protogen.Plugin, file *protogen.File, pkg string, pkgName string, fileName string) *protogen.GeneratedFile
NewFile creates a new pakage and file in the project
func PkgProcessIdent ¶
func PkgProcessIdent(g *protogen.GeneratedFile, name string) string
func ProcessIdent ¶
func ProcessIdent(g *protogen.GeneratedFile) string
func StringMatcherIdent ¶
func StringMatcherIdent(g *protogen.GeneratedFile, name string) string
func TetragonApiIdent ¶
func TetragonApiIdent(g *protogen.GeneratedFile, name string) string
TetragonApiIdent is a convenience helper that calls GoIdent with the path to the Tetragon API package.
func TetragonIdent ¶
func TetragonIdent(g *protogen.GeneratedFile, importPath string, name string) string
TetragonIdent is a convenience helper that calls GoIdent with the path to the Tetragon package.
func TimestampMatcherIdent ¶
func TimestampMatcherIdent(g *protogen.GeneratedFile, name string) string
Types ¶
type GetEventsResponseOneofInfo ¶
func GetEventsResponseOneofs ¶
func GetEventsResponseOneofs(files []*protogen.File) ([]GetEventsResponseOneofInfo, error)