tool

package
v0.0.0-...-fddd243 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArtifactKindService  = "service"
	ArtifactKindWeb      = "web"
	ArtifactKindWeakpass = "weakpass"
	ArtifactKindVuln     = "vuln"
)

Variables

View Source
var File_aop_tool_protocol_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Tool      string                 `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
	Kind      string                 `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
	Target    string                 `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	Data      []byte                 `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	MediaType string                 `protobuf:"bytes,5,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	CallId    string                 `protobuf:"bytes,7,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	ResultId  string                 `protobuf:"bytes,8,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
	// contains filtered or unexported fields
}

Artifact carries one scanner-native structured record. Nodes remain thin: only the server normalizes these records into canonical SCO documents.

func (*Artifact) Descriptor deprecated

func (*Artifact) Descriptor() ([]byte, []int)

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetCallId

func (x *Artifact) GetCallId() string

func (*Artifact) GetData

func (x *Artifact) GetData() []byte

func (*Artifact) GetKind

func (x *Artifact) GetKind() string

func (*Artifact) GetMediaType

func (x *Artifact) GetMediaType() string

func (*Artifact) GetResultId

func (x *Artifact) GetResultId() string

func (*Artifact) GetTarget

func (x *Artifact) GetTarget() string

func (*Artifact) GetTimestamp

func (x *Artifact) GetTimestamp() *timestamppb.Timestamp

func (*Artifact) GetTool

func (x *Artifact) GetTool() string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

func (x *Artifact) ProtoReflect() protoreflect.Message

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

type Call

type Call struct {
	SessionId string        `protobuf:"bytes,1,opt,name=session_id,json=sessionId,proto3" json:"session_id,omitempty"`
	TurnId    string        `protobuf:"bytes,2,opt,name=turn_id,json=turnId,proto3" json:"turn_id,omitempty"`
	Call      *aop.ToolCall `protobuf:"bytes,3,opt,name=call,proto3" json:"call,omitempty"`
	// contains filtered or unexported fields
}

func (*Call) Descriptor deprecated

func (*Call) Descriptor() ([]byte, []int)

Deprecated: Use Call.ProtoReflect.Descriptor instead.

func (*Call) GetCall

func (x *Call) GetCall() *aop.ToolCall

func (*Call) GetSessionId

func (x *Call) GetSessionId() string

func (*Call) GetTurnId

func (x *Call) GetTurnId() string

func (*Call) ProtoMessage

func (*Call) ProtoMessage()

func (*Call) ProtoReflect

func (x *Call) ProtoReflect() protoreflect.Message

func (*Call) Reset

func (x *Call) Reset()

func (*Call) String

func (x *Call) String() string

type Loot

type Loot struct {
	ResultId           string   `protobuf:"bytes,1,opt,name=result_id,json=resultId,proto3" json:"result_id,omitempty"`
	Tool               string   `protobuf:"bytes,2,opt,name=tool,proto3" json:"tool,omitempty"`
	Kind               string   `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"`
	Target             string   `protobuf:"bytes,4,opt,name=target,proto3" json:"target,omitempty"`
	Priority           string   `protobuf:"bytes,5,opt,name=priority,proto3" json:"priority,omitempty"`
	Tags               []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
	Description        string   `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	VerificationStatus string   `protobuf:"bytes,8,opt,name=verification_status,json=verificationStatus,proto3" json:"verification_status,omitempty"`
	CallId             string   `protobuf:"bytes,9,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	// contains filtered or unexported fields
}

Loot marks a scanner-native artifact as valuable without replacing or duplicating its evidence. result_id joins the marker back to Artifact.

func (*Loot) Descriptor deprecated

func (*Loot) Descriptor() ([]byte, []int)

Deprecated: Use Loot.ProtoReflect.Descriptor instead.

func (*Loot) GetCallId

func (x *Loot) GetCallId() string

func (*Loot) GetDescription

func (x *Loot) GetDescription() string

func (*Loot) GetKind

func (x *Loot) GetKind() string

func (*Loot) GetPriority

func (x *Loot) GetPriority() string

func (*Loot) GetResultId

func (x *Loot) GetResultId() string

func (*Loot) GetTags

func (x *Loot) GetTags() []string

func (*Loot) GetTarget

func (x *Loot) GetTarget() string

func (*Loot) GetTool

func (x *Loot) GetTool() string

func (*Loot) GetVerificationStatus

func (x *Loot) GetVerificationStatus() string

func (*Loot) ProtoMessage

func (*Loot) ProtoMessage()

func (*Loot) ProtoReflect

func (x *Loot) ProtoReflect() protoreflect.Message

func (*Loot) Reset

func (x *Loot) Reset()

func (*Loot) String

func (x *Loot) String() string

type Progress

type Progress struct {
	Tool      string                 `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
	Target    string                 `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Text      string                 `protobuf:"bytes,6,opt,name=text,proto3" json:"text,omitempty"`
	CallId    string                 `protobuf:"bytes,7,opt,name=call_id,json=callId,proto3" json:"call_id,omitempty"`
	// contains filtered or unexported fields
}

func (*Progress) Descriptor deprecated

func (*Progress) Descriptor() ([]byte, []int)

Deprecated: Use Progress.ProtoReflect.Descriptor instead.

func (*Progress) GetCallId

func (x *Progress) GetCallId() string

func (*Progress) GetTarget

func (x *Progress) GetTarget() string

func (*Progress) GetText

func (x *Progress) GetText() string

func (*Progress) GetTimestamp

func (x *Progress) GetTimestamp() *timestamppb.Timestamp

func (*Progress) GetTool

func (x *Progress) GetTool() string

func (*Progress) ProtoMessage

func (*Progress) ProtoMessage()

func (*Progress) ProtoReflect

func (x *Progress) ProtoReflect() protoreflect.Message

func (*Progress) Reset

func (x *Progress) Reset()

func (*Progress) String

func (x *Progress) String() string

type ProtocolMessage

type ProtocolMessage struct {

	// Types that are valid to be assigned to Message:
	//
	//	*ProtocolMessage_Progress
	//	*ProtocolMessage_Call
	//	*ProtocolMessage_Artifact
	//	*ProtocolMessage_Loot
	Message isProtocolMessage_Message `protobuf_oneof:"message"`
	// contains filtered or unexported fields
}

func (*ProtocolMessage) Descriptor deprecated

func (*ProtocolMessage) Descriptor() ([]byte, []int)

Deprecated: Use ProtocolMessage.ProtoReflect.Descriptor instead.

func (*ProtocolMessage) GetArtifact

func (x *ProtocolMessage) GetArtifact() *Artifact

func (*ProtocolMessage) GetCall

func (x *ProtocolMessage) GetCall() *Call

func (*ProtocolMessage) GetLoot

func (x *ProtocolMessage) GetLoot() *Loot

func (*ProtocolMessage) GetMessage

func (x *ProtocolMessage) GetMessage() isProtocolMessage_Message

func (*ProtocolMessage) GetProgress

func (x *ProtocolMessage) GetProgress() *Progress

func (*ProtocolMessage) ProtoMessage

func (*ProtocolMessage) ProtoMessage()

func (*ProtocolMessage) ProtoReflect

func (x *ProtocolMessage) ProtoReflect() protoreflect.Message

func (*ProtocolMessage) Reset

func (x *ProtocolMessage) Reset()

func (*ProtocolMessage) String

func (x *ProtocolMessage) String() string

type ProtocolMessage_Artifact

type ProtocolMessage_Artifact struct {
	Artifact *Artifact `protobuf:"bytes,12,opt,name=artifact,proto3,oneof"`
}

type ProtocolMessage_Call

type ProtocolMessage_Call struct {
	Call *Call `protobuf:"bytes,11,opt,name=call,proto3,oneof"`
}

type ProtocolMessage_Loot

type ProtocolMessage_Loot struct {
	Loot *Loot `protobuf:"bytes,13,opt,name=loot,proto3,oneof"`
}

type ProtocolMessage_Progress

type ProtocolMessage_Progress struct {
	Progress *Progress `protobuf:"bytes,10,opt,name=progress,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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