Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClusterIdentityAliasTask = coretask.NewAliasTask( networkapiaudit.ClusterIdentityTaskID, k8scommon.ClusterIdentityTaskID.Ref(), )
View Source
var ListLogEntriesTask = gcpcommon.NewStructuredListLogEntriesTask(&networkAPIListLogEntriesTaskSetting{})
View Source
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(networkapiaudit.LogGrouperTaskID, networkapiaudit.ListLogEntriesTaskID.Ref(), func(ctx context.Context, l *log.Log) string { audit, err := gcpcommon.ExtractGCPAuditLog(l.NodeReader) if err != nil { return "unknown" } return audit.ResourceName }, )
LogGrouperTask groups logs by the NEG resource name.
View Source
var LogIngesterTask = gcpcommon.NewGCPOperationLogIngesterTask( networkapiaudit.LogIngesterTaskID, networkapiaudit.ListLogEntriesTaskID.Ref(), networkapiaudit.LogTypeNetworkAPI, )
LogIngesterTask is the task id to finalize the logs to be included in the final output.
View Source
var LogToTimelineMapperTask = inspectiontaskbase.NewLogToTimelineMapperTask(networkapiaudit.LogToTimelineMapperTaskID, &networkAPITimelineMapper{}, inspectioncore.FeatureTaskLabel(`GCE Network Logs`, `Gather GCE Network API logs to visualize the provisioning and status transitions of Network Endpoint Groups (NEGs) on timelines.`, 7000, true, ), )
LogToTimelineMapperTask registers the mapper to resolve network status in timeline.
Functions ¶
func GenerateGCPNetworkAPIStructuredQuery ¶
func GenerateGCPNetworkAPIStructuredQuery(taskMode inspectioncore.InspectionTaskModeType, negNames []string) []*logestimator.StructuredLogQuery
GenerateGCPNetworkAPIStructuredQuery generates a structured query slice for network API logs.
func Register ¶
func Register(registry coreinspection.InspectionTaskRegistry) error
Register registers all googlecloudlognetworkapiaudit inspection tasks to the registry.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.