audit_pb

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 4 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_audit_audit_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AdditionalFields

type AdditionalFields struct {
	UnderlyingType string `protobuf:"bytes,1,opt,name=underlying_type,json=underlyingType,proto3" json:"underlying_type,omitempty"` // Underlying type of the element.
	VariableName   string `protobuf:"bytes,2,opt,name=variable_name,json=variableName,proto3" json:"variable_name,omitempty"`       // Variable name associated with the element.
	// contains filtered or unexported fields
}

Represents additional fields of an element.

func (*AdditionalFields) Descriptor deprecated

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

Deprecated: Use AdditionalFields.ProtoReflect.Descriptor instead.

func (*AdditionalFields) GetUnderlyingType

func (x *AdditionalFields) GetUnderlyingType() string

func (*AdditionalFields) GetVariableName

func (x *AdditionalFields) GetVariableName() string

func (*AdditionalFields) ProtoMessage

func (*AdditionalFields) ProtoMessage()

func (*AdditionalFields) ProtoReflect

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

func (*AdditionalFields) Reset

func (x *AdditionalFields) Reset()

func (*AdditionalFields) String

func (x *AdditionalFields) String() string

type Detector

type Detector struct {
	Elements             []*Element `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"`                                                       // Elements detected by the detector.
	Description          string     `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`                                                 // Description of the detector.
	Markdown             string     `protobuf:"bytes,3,opt,name=markdown,proto3" json:"markdown,omitempty"`                                                       // Markdown representation of the detector's output.
	FirstMarkdownElement string     `protobuf:"bytes,4,opt,name=first_markdown_element,json=firstMarkdownElement,proto3" json:"first_markdown_element,omitempty"` // First element in the markdown representation.
	Id                   string     `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`                                                                   // Unique identifier for the detector.
	Check                string     `protobuf:"bytes,6,opt,name=check,proto3" json:"check,omitempty"`                                                             // Check performed by the detector.
	Impact               string     `protobuf:"bytes,7,opt,name=impact,proto3" json:"impact,omitempty"`                                                           // Impact of the detector's findings.
	Confidence           string     `protobuf:"bytes,8,opt,name=confidence,proto3" json:"confidence,omitempty"`                                                   // Confidence level of the detector's findings.
	// contains filtered or unexported fields
}

Represents details of a detector used in the audit.

func (*Detector) Descriptor deprecated

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

Deprecated: Use Detector.ProtoReflect.Descriptor instead.

func (*Detector) GetCheck

func (x *Detector) GetCheck() string

func (*Detector) GetConfidence

func (x *Detector) GetConfidence() string

func (*Detector) GetDescription

func (x *Detector) GetDescription() string

func (*Detector) GetElements

func (x *Detector) GetElements() []*Element

func (*Detector) GetFirstMarkdownElement

func (x *Detector) GetFirstMarkdownElement() string

func (*Detector) GetId

func (x *Detector) GetId() string

func (*Detector) GetImpact

func (x *Detector) GetImpact() string

func (*Detector) GetMarkdown

func (x *Detector) GetMarkdown() string

func (*Detector) ProtoMessage

func (*Detector) ProtoMessage()

func (*Detector) ProtoReflect

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

func (*Detector) Reset

func (x *Detector) Reset()

func (*Detector) String

func (x *Detector) String() string

type Element

type Element struct {
	Type               string              `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`                                                         // Type of the element.
	Name               string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                                         // Name of the element.
	SourceMapping      *SourceMapping      `protobuf:"bytes,3,opt,name=source_mapping,json=sourceMapping,proto3" json:"source_mapping,omitempty"`                  // Source mapping of the element.
	TypeSpecificFields *TypeSpecificFields `protobuf:"bytes,4,opt,name=type_specific_fields,json=typeSpecificFields,proto3" json:"type_specific_fields,omitempty"` // Type-specific fields of the element.
	Signature          string              `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`                                               // Signature of the element.
	AdditionalFields   *AdditionalFields   `protobuf:"bytes,6,opt,name=additional_fields,json=additionalFields,proto3" json:"additional_fields,omitempty"`         // Additional fields related to the element.
	// contains filtered or unexported fields
}

Represents an element detected during the audit.

func (*Element) Descriptor deprecated

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

Deprecated: Use Element.ProtoReflect.Descriptor instead.

func (*Element) GetAdditionalFields

func (x *Element) GetAdditionalFields() *AdditionalFields

func (*Element) GetName

func (x *Element) GetName() string

func (*Element) GetSignature

func (x *Element) GetSignature() string

func (*Element) GetSourceMapping

func (x *Element) GetSourceMapping() *SourceMapping

func (*Element) GetType

func (x *Element) GetType() string

func (*Element) GetTypeSpecificFields

func (x *Element) GetTypeSpecificFields() *TypeSpecificFields

func (*Element) ProtoMessage

func (*Element) ProtoMessage()

func (*Element) ProtoReflect

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

func (*Element) Reset

func (x *Element) Reset()

func (*Element) String

func (x *Element) String() string

type Report

type Report struct {
	Success bool     `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // Indicates if the audit was successful.
	Error   string   `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`      // Error message, if any.
	Results *Results `protobuf:"bytes,3,opt,name=results,proto3" json:"results,omitempty"`  // Results of the audit.
	// contains filtered or unexported fields
}

Represents an audit report.

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetError

func (x *Report) GetError() string

func (*Report) GetResults

func (x *Report) GetResults() *Results

func (*Report) GetSuccess

func (x *Report) GetSuccess() bool

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type Results

type Results struct {
	Detectors []*Detector `protobuf:"bytes,1,rep,name=detectors,proto3" json:"detectors,omitempty"` // List of detectors used in the audit.
	// contains filtered or unexported fields
}

Represents the results of an audit.

func (*Results) Descriptor deprecated

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

Deprecated: Use Results.ProtoReflect.Descriptor instead.

func (*Results) GetDetectors

func (x *Results) GetDetectors() []*Detector

func (*Results) ProtoMessage

func (*Results) ProtoMessage()

func (*Results) ProtoReflect

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

func (*Results) Reset

func (x *Results) Reset()

func (*Results) String

func (x *Results) String() string

type SourceMapping

type SourceMapping struct {
	Start            int32   `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`                                              // Starting position of the source mapping.
	Length           int32   `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`                                            // Length of the source mapping.
	FilenameRelative string  `protobuf:"bytes,3,opt,name=filename_relative,json=filenameRelative,proto3" json:"filename_relative,omitempty"` // Relative filename of the source mapping.
	FilenameAbsolute string  `protobuf:"bytes,4,opt,name=filename_absolute,json=filenameAbsolute,proto3" json:"filename_absolute,omitempty"` // Absolute filename of the source mapping.
	FilenameShort    string  `protobuf:"bytes,5,opt,name=filename_short,json=filenameShort,proto3" json:"filename_short,omitempty"`          // Shortened filename of the source mapping.
	IsDependency     bool    `protobuf:"varint,6,opt,name=is_dependency,json=isDependency,proto3" json:"is_dependency,omitempty"`            // Indicates if the source mapping is a dependency.
	Lines            []int32 `protobuf:"varint,7,rep,packed,name=lines,proto3" json:"lines,omitempty"`                                       // Lines associated with the source mapping.
	StartingColumn   int32   `protobuf:"varint,8,opt,name=starting_column,json=startingColumn,proto3" json:"starting_column,omitempty"`      // Starting column of the source mapping.
	EndingColumn     int32   `protobuf:"varint,9,opt,name=ending_column,json=endingColumn,proto3" json:"ending_column,omitempty"`            // Ending column of the source mapping.
	// contains filtered or unexported fields
}

Represents the source mapping of an element.

func (*SourceMapping) Descriptor deprecated

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

Deprecated: Use SourceMapping.ProtoReflect.Descriptor instead.

func (*SourceMapping) GetEndingColumn

func (x *SourceMapping) GetEndingColumn() int32

func (*SourceMapping) GetFilenameAbsolute

func (x *SourceMapping) GetFilenameAbsolute() string

func (*SourceMapping) GetFilenameRelative

func (x *SourceMapping) GetFilenameRelative() string

func (*SourceMapping) GetFilenameShort

func (x *SourceMapping) GetFilenameShort() string

func (*SourceMapping) GetIsDependency

func (x *SourceMapping) GetIsDependency() bool

func (*SourceMapping) GetLength

func (x *SourceMapping) GetLength() int32

func (*SourceMapping) GetLines

func (x *SourceMapping) GetLines() []int32

func (*SourceMapping) GetStart

func (x *SourceMapping) GetStart() int32

func (*SourceMapping) GetStartingColumn

func (x *SourceMapping) GetStartingColumn() int32

func (*SourceMapping) ProtoMessage

func (*SourceMapping) ProtoMessage()

func (*SourceMapping) ProtoReflect

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

func (*SourceMapping) Reset

func (x *SourceMapping) Reset()

func (*SourceMapping) String

func (x *SourceMapping) String() string

type TypeSpecificFields

type TypeSpecificFields struct {
	Parent    *Element `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`       // Parent element, if any.
	Directive []string `protobuf:"bytes,2,rep,name=directive,proto3" json:"directive,omitempty"` // Directives associated with the element.
	// contains filtered or unexported fields
}

Represents type-specific fields of an element.

func (*TypeSpecificFields) Descriptor deprecated

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

Deprecated: Use TypeSpecificFields.ProtoReflect.Descriptor instead.

func (*TypeSpecificFields) GetDirective

func (x *TypeSpecificFields) GetDirective() []string

func (*TypeSpecificFields) GetParent

func (x *TypeSpecificFields) GetParent() *Element

func (*TypeSpecificFields) ProtoMessage

func (*TypeSpecificFields) ProtoMessage()

func (*TypeSpecificFields) ProtoReflect

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

func (*TypeSpecificFields) Reset

func (x *TypeSpecificFields) Reset()

func (*TypeSpecificFields) String

func (x *TypeSpecificFields) String() string

Jump to

Keyboard shortcuts

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