Documentation
¶
Index ¶
- Variables
- func GenerateK8sEventQuery(clusterName string, projectId string, ...) string
- func Register(registry coreinspection.InspectionTaskRegistry) error
- type K8sEventListLogEntriesTaskSetting
- func (k *K8sEventListLogEntriesTaskSetting) DefaultResourceNames(ctx context.Context) ([]string, error)
- func (k *K8sEventListLogEntriesTaskSetting) Dependencies() []taskid.UntypedTaskReference
- func (k *K8sEventListLogEntriesTaskSetting) Description() *googlecloudcommon_contract.ListLogEntriesTaskDescription
- func (k *K8sEventListLogEntriesTaskSetting) LogFilters(ctx context.Context, taskMode inspectioncore_contract.InspectionTaskModeType) ([]string, error)
- func (k *K8sEventListLogEntriesTaskSetting) TaskID() taskid.TaskImplementationID[[]*log.Log]
- func (k *K8sEventListLogEntriesTaskSetting) TimePartitionCount(ctx context.Context) (int, error)
- type KubernetesEventHistoryModifierSetting
- func (k *KubernetesEventHistoryModifierSetting) Dependencies() []taskid.UntypedTaskReference
- func (k *KubernetesEventHistoryModifierSetting) GroupedLogTask() taskid.TaskReference[inspectiontaskbase.LogGroupMap]
- func (k *KubernetesEventHistoryModifierSetting) LogSerializerTask() taskid.TaskReference[[]*log.Log]
- func (k *KubernetesEventHistoryModifierSetting) ModifyChangeSetFromLog(ctx context.Context, l *log.Log, cs *history.ChangeSet, ...) (struct{}, error)
Constants ¶
This section is empty.
Variables ¶
var FieldSetReaderTask = inspectiontaskbase.NewFieldSetReadTask(googlecloudlogk8sevent_contract.FieldSetReaderTaskID, googlecloudlogk8sevent_contract.ListLogEntriesTaskID.Ref(), []log.FieldSetReader{ &googlecloudlogk8sevent_contract.GCPKubernetesEventFieldSetReader{}, })
var HistoryModifierTask = inspectiontaskbase.NewHistoryModifierTask[struct{}](googlecloudlogk8sevent_contract.HistoryModifierTaskID, &KubernetesEventHistoryModifierSetting{}, inspectioncore_contract.FeatureTaskLabel( "Kubernetes Event Logs", "Gather kubernetes event logs and visualize these on the associated resource timeline.", enum.LogTypeEvent, 2000, true, googlecloudinspectiontypegroup_contract.GCPK8sClusterInspectionTypes..., ))
var ListLogEntriesTask = googlecloudcommon_contract.NewListLogEntriesTask(&K8sEventListLogEntriesTaskSetting{})
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(googlecloudlogk8sevent_contract.LogGrouperTaskID, googlecloudlogk8sevent_contract.FieldSetReaderTaskID.Ref(), func(ctx context.Context, l *log.Log) string { event, err := log.GetFieldSet(l, &googlecloudlogk8sevent_contract.KubernetesEventFieldSet{}) if err != nil { return "unknown" } return event.ResourcePath().Path }, )
var LogSerializerTask = inspectiontaskbase.NewLogSerializerTask(googlecloudlogk8sevent_contract.LogSerializerTaskID, googlecloudlogk8sevent_contract.ListLogEntriesTaskID.Ref())
Functions ¶
func GenerateK8sEventQuery ¶
func GenerateK8sEventQuery(clusterName string, projectId string, namespaceFilter *gcpqueryutil.SetFilterParseResult) string
GenerateK8sEventQuery generates a query for Kubernetes Event logs.
func Register ¶
func Register(registry coreinspection.InspectionTaskRegistry) error
Register registers all googlecloudlogk8sevent inspection tasks to the registry.
Types ¶
type K8sEventListLogEntriesTaskSetting ¶
type K8sEventListLogEntriesTaskSetting struct {
}
func (*K8sEventListLogEntriesTaskSetting) DefaultResourceNames ¶
func (k *K8sEventListLogEntriesTaskSetting) DefaultResourceNames(ctx context.Context) ([]string, error)
DefaultResourceNames implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) Dependencies ¶
func (k *K8sEventListLogEntriesTaskSetting) Dependencies() []taskid.UntypedTaskReference
Dependencies implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) Description ¶
func (k *K8sEventListLogEntriesTaskSetting) Description() *googlecloudcommon_contract.ListLogEntriesTaskDescription
Description implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) LogFilters ¶
func (k *K8sEventListLogEntriesTaskSetting) LogFilters(ctx context.Context, taskMode inspectioncore_contract.InspectionTaskModeType) ([]string, error)
LogFilters implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) TaskID ¶
func (k *K8sEventListLogEntriesTaskSetting) TaskID() taskid.TaskImplementationID[[]*log.Log]
TaskID implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) TimePartitionCount ¶
func (k *K8sEventListLogEntriesTaskSetting) TimePartitionCount(ctx context.Context) (int, error)
TimePartitionCount implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
type KubernetesEventHistoryModifierSetting ¶
type KubernetesEventHistoryModifierSetting struct {
}
func (*KubernetesEventHistoryModifierSetting) Dependencies ¶
func (k *KubernetesEventHistoryModifierSetting) Dependencies() []taskid.UntypedTaskReference
Dependencies implements inspectiontaskbase.HistoryModifer.
func (*KubernetesEventHistoryModifierSetting) GroupedLogTask ¶
func (k *KubernetesEventHistoryModifierSetting) GroupedLogTask() taskid.TaskReference[inspectiontaskbase.LogGroupMap]
GroupedLogTask implements inspectiontaskbase.HistoryModifer.
func (*KubernetesEventHistoryModifierSetting) LogSerializerTask ¶
func (k *KubernetesEventHistoryModifierSetting) LogSerializerTask() taskid.TaskReference[[]*log.Log]
LogSerializerTask implements inspectiontaskbase.HistoryModifer.
func (*KubernetesEventHistoryModifierSetting) ModifyChangeSetFromLog ¶
func (k *KubernetesEventHistoryModifierSetting) ModifyChangeSetFromLog(ctx context.Context, l *log.Log, cs *history.ChangeSet, builder *history.Builder, prevGroupData struct{}) (struct{}, error)
ModifyChangeSetFromLog implements inspectiontaskbase.HistoryModifer.