googlecloudlogk8saudit_impl

package
v0.52.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCPK8sAuditLogParserTailTask = inspectiontaskbase.NewInspectionTask(
	googlecloudlogk8saudit_contract.GCPK8sAuditLogParserTailTaskID,
	[]taskid.UntypedTaskReference{
		commonlogk8sauditv2_contract.LogSummaryLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.NonSuccessLogLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.NamespaceRequestLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.ResourceRevisionLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.ConditionLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.ResourceOwnerReferenceTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.PodPhaseLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.EndpointResourceLogToTimelineMapperTaskID.Ref(),
		commonlogk8sauditv2_contract.ContainerLogToTimelineMapperTaskID.Ref(),

		commonlogk8sauditv2_contract.NodeNameDiscoveryTaskID.Ref(),
		commonlogk8sauditv2_contract.ResourceUIDDiscoveryTaskID.Ref(),
		commonlogk8sauditv2_contract.ContainerIDDiscoveryTaskID.Ref(),
		commonlogk8sauditv2_contract.IPLeaseHistoryDiscoveryTaskID.Ref(),
		googlecloudk8scommon_contract.NEGNamesDiscoveryTaskID.Ref(),
	},
	func(ctx context.Context, taskMode inspectioncore_contract.InspectionTaskModeType) (struct{}, error) {
		return struct{}{}, nil
	},
	inspectioncore_contract.FeatureTaskLabel("Kubernetes Audit Log(v3)", `Gather kubernetes audit logs and visualize resource modifications.`, enum.LogTypeAudit, 1001, true, googlecloudinspectiontypegroup_contract.GCPK8sClusterInspectionTypes...), coretask.NewSubsequentTaskRefsTaskLabel(inspectioncore_contract.SerializerTaskID.Ref()),
)

Functions

func GenerateK8sAuditQuery

GenerateK8sAuditQuery constructs a Google Cloud Logging query string for fetching Kubernetes audit logs based on cluster name, kind filters, and namespace filters.

func Register

func Register(registry coreinspection.InspectionTaskRegistry) error

Register registers all tasks related to GKE Kubernetes audit log.

Types

type GCPK8sAuditLogListLogEntriesTaskSetting added in v0.50.0

type GCPK8sAuditLogListLogEntriesTaskSetting struct{}

func (*GCPK8sAuditLogListLogEntriesTaskSetting) DefaultResourceNames added in v0.50.0

func (k *GCPK8sAuditLogListLogEntriesTaskSetting) DefaultResourceNames(ctx context.Context) ([]string, error)

DefaultResourceNames implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*GCPK8sAuditLogListLogEntriesTaskSetting) Dependencies added in v0.50.0

Dependencies implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*GCPK8sAuditLogListLogEntriesTaskSetting) Description added in v0.50.0

Description implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*GCPK8sAuditLogListLogEntriesTaskSetting) LogFilters added in v0.50.0

LogFilters implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*GCPK8sAuditLogListLogEntriesTaskSetting) TaskID added in v0.50.0

TaskID implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*GCPK8sAuditLogListLogEntriesTaskSetting) TimePartitionCount added in v0.50.0

func (k *GCPK8sAuditLogListLogEntriesTaskSetting) TimePartitionCount(ctx context.Context) (int, error)

TimePartitionCount implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL