Documentation
¶
Overview ¶
SPDX-License-Identifier: Apache-2.0
Copyright © 2025 The listen.dev team <engineering@garnet.ai>
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AncestryInfo ¶ added in v0.18.0
type AncestryInfo struct { Args *string `json:"args,omitempty"` Cmd *string `json:"cmd,omitempty"` Comm *string `json:"comm,omitempty"` Exe *string `json:"exe,omitempty"` Exit *string `json:"exit,omitempty"` PID *int `json:"pid,omitempty"` PpID *int `json:"ppid,omitempty"` Retcode *int `json:"retcode,omitempty"` Start *time.Time `json:"start,omitempty"` UID *int `json:"uid,omitempty"` }
type ContextElement ¶ added in v0.18.0
ContextElement defines model for ContextElement.
type DataBody ¶ added in v0.18.0
type DataBody struct { Dropped *DroppedIP `json:"dropped,omitempty"` FullInfo *FullInfo `json:"full_info,omitempty"` Parent *ProcessInfo `json:"parent,omitempty"` Process *ProcessInfo `json:"process,omitempty"` Resolve *string `json:"resolve"` ResolveFlow *ResolveFlow `json:"resolve_flow,omitempty"` }
type DroppedIP ¶ added in v0.18.0
type DroppedIP struct { Icmp *struct { Code *string `json:"code,omitempty"` Type *string `json:"type,omitempty"` } `json:"icmp,omitempty"` IPVersion *int `json:"ip_version,omitempty"` Local *NetworkInfo `json:"local,omitempty"` Properties *FlowProperties `json:"properties,omitempty"` Proto *string `json:"proto,omitempty"` Remote *NetworkInfo `json:"remote,omitempty"` ServicePort *int `json:"service_port,omitempty"` }
type FlowProperties ¶ added in v0.18.0
type FlowProperties struct { Egress *bool `json:"egress,omitempty"` Ended *bool `json:"ended,omitempty"` Incoming *bool `json:"incoming,omitempty"` Ingress *bool `json:"ingress,omitempty"` Ongoing *bool `json:"ongoing,omitempty"` Outgoing *bool `json:"outgoing,omitempty"` Started *bool `json:"started,omitempty"` Terminated *bool `json:"terminated,omitempty"` Terminator *bool `json:"terminator,omitempty"` }
type FullInfo ¶ added in v0.19.0
type FullInfo struct { Ancestry *[]AncestryInfo `json:"ancestry,omitempty"` Files *map[string]interface{} `json:"files,omitempty"` Flows *[]ResolveFlow `json:"flows,omitempty"` }
type GitHubContext ¶ added in v0.18.0
type GitHubContext struct { Action *string `json:"action,omitempty"` Actor *string `json:"actor,omitempty"` ActorID *string `json:"actor_id,omitempty"` EventName *string `json:"event_name,omitempty"` Job *string `json:"job,omitempty"` Ref *string `json:"ref,omitempty"` RefName *string `json:"ref_name,omitempty"` RefProtected *bool `json:"ref_protected,omitempty"` RefType *string `json:"ref_type,omitempty"` Repository *string `json:"repository,omitempty"` RepositoryID *string `json:"repository_id,omitempty"` RepositoryOwner *string `json:"repository_owner,omitempty"` RepositoryOwnerID *string `json:"repository_owner_id,omitempty"` RunAttempt *string `json:"run_attempt,omitempty"` RunID *string `json:"run_id,omitempty"` RunNumber *string `json:"run_number,omitempty"` RunnerArch *string `json:"runner_arch,omitempty"` RunnerOs *string `json:"runner_os,omitempty"` ServerURL *string `json:"server_url,omitempty"` Sha *string `json:"sha,omitempty"` TriggeringActor *string `json:"triggering_actor,omitempty"` Workflow *string `json:"workflow,omitempty"` WorkflowRef *string `json:"workflow_ref,omitempty"` WorkflowSha *string `json:"workflow_sha,omitempty"` Workspace *string `json:"workspace,omitempty"` }
type NetPolicyEvent ¶ added in v0.18.0
type NetPolicyEvent struct { Data *struct { Body *DataBody `json:"body,omitempty"` UniqueID *string `json:"unique_id,omitempty"` } `json:"data,omitempty"` GithubContext *GitHubContext `json:"github_context,omitempty"` ProjectID *string `bson:"project_id" json:"project_id,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type NetworkInfo ¶ added in v0.18.0
type ProcessInfo ¶ added in v0.18.0
type ProcessInfo struct { Args *string `json:"args,omitempty"` Cmd *string `json:"cmd,omitempty"` Comm *string `json:"comm,omitempty"` Exe *string `json:"exe,omitempty"` Exit *string `json:"exit,omitempty"` PID *int `json:"pid,omitempty"` PpID *int `json:"ppid,omitempty"` Retcode *int `json:"retcode,omitempty"` Start *time.Time `json:"start,omitempty"` UID *int `json:"uid,omitempty"` }
type ResolveFlow ¶ added in v0.18.0
type ResolveFlow struct { Icmp *struct { Code *string `json:"code,omitempty"` Type *string `json:"type,omitempty"` } `json:"icmp,omitempty"` IPVersion *int `json:"ip_version,omitempty"` Local *NetworkInfo `json:"local,omitempty"` Properties *FlowProperties `json:"properties,omitempty"` Proto *string `json:"proto,omitempty"` Remote *NetworkInfo `json:"remote,omitempty"` ServicePort *int `json:"service_port,omitempty"` }
Click to show internal directories.
Click to hide internal directories.