github.com/inspektor-gadget/inspektor-gadget@v0.28.1/pkg/gadget-collection/gadget-collection.go (about) 1 // Copyright 2019-2022 The Inspektor Gadget authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package gadgetcollection 16 17 import ( 18 "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets" 19 seccomp "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/advise/seccomp" 20 auditseccomp "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/audit/seccomp" 21 biolatency "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/profile/block-io" 22 profile "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/profile/cpu" 23 processcollector "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/snapshot/process" 24 socketcollector "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/snapshot/socket" 25 biotop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/top/block-io" 26 ebpftop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/top/ebpf" 27 filetop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/top/file" 28 tcptop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/top/tcp" 29 bindsnoop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/bind" 30 capabilities "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/capabilities" 31 dns "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/dns" 32 execsnoop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/exec" 33 fsslower "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/fsslower" 34 mountsnoop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/mount" 35 networkgraph "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/network" 36 oomkill "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/oomkill" 37 opensnoop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/open" 38 sigsnoop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/signal" 39 snisnoop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/sni" 40 tcptracer "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/tcp" 41 tcpconnect "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/trace/tcpconnect" 42 traceloop "github.com/inspektor-gadget/inspektor-gadget/pkg/gadget-collection/gadgets/traceloop" 43 ) 44 45 func TraceFactories() map[string]gadgets.TraceFactory { 46 return map[string]gadgets.TraceFactory{ 47 "audit-seccomp": auditseccomp.NewFactory(), 48 "bindsnoop": bindsnoop.NewFactory(), 49 "biolatency": biolatency.NewFactory(), 50 "biotop": biotop.NewFactory(), 51 "capabilities": capabilities.NewFactory(), 52 "dns": dns.NewFactory(), 53 "ebpftop": ebpftop.NewFactory(), 54 "execsnoop": execsnoop.NewFactory(), 55 "filetop": filetop.NewFactory(), 56 "fsslower": fsslower.NewFactory(), 57 "opensnoop": opensnoop.NewFactory(), 58 "mountsnoop": mountsnoop.NewFactory(), 59 "network-graph": networkgraph.NewFactory(), 60 "oomkill": oomkill.NewFactory(), 61 "process-collector": processcollector.NewFactory(), 62 "profile": profile.NewFactory(), 63 "seccomp": seccomp.NewFactory(), 64 "sigsnoop": sigsnoop.NewFactory(), 65 "snisnoop": snisnoop.NewFactory(), 66 "socket-collector": socketcollector.NewFactory(), 67 "tcpconnect": tcpconnect.NewFactory(), 68 "tcptop": tcptop.NewFactory(), 69 "tcptracer": tcptracer.NewFactory(), 70 "traceloop": traceloop.NewFactory(), 71 } 72 }