v1

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DataSource_TargetType_name = map[int32]string{
		0: "TARGET_TYPE_UNSPECIFIED",
		1: "TARGET_TYPE_REPOSITORY",
	}
	DataSource_TargetType_value = map[string]int32{
		"TARGET_TYPE_UNSPECIFIED": 0,
		"TARGET_TYPE_REPOSITORY":  1,
	}
)

Enum value maps for DataSource_TargetType.

View Source
var (
	DataSource_URISchema_name = map[int32]string{
		0: "URI_SCHEMA_UNSPECIFIED",
		1: "URI_SCHEMA_FILE",
		2: "URI_SCHEMA_PURL",
	}
	DataSource_URISchema_value = map[string]int32{
		"URI_SCHEMA_UNSPECIFIED": 0,
		"URI_SCHEMA_FILE":        1,
		"URI_SCHEMA_PURL":        2,
	}
)

Enum value maps for DataSource_URISchema.

View Source
var File_ocsf_ext_finding_info_v1_finding_info_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DataSource

type DataSource struct {
	TargetType DataSource_TargetType `` /* 167-byte string literal not displayed */
	Uri        *DataSource_URI       `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Types that are assignable to LocationData:
	//
	//	*DataSource_FileFindingLocationData_
	//	*DataSource_PurlFindingLocationData_
	LocationData isDataSource_LocationData `protobuf_oneof:"location_data"`
	// contains filtered or unexported fields
}

DataSource is used to define Data Sources described on https://schema.ocsf.io/1.3.0/objects/finding_info.

func (*DataSource) Descriptor deprecated

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

Deprecated: Use DataSource.ProtoReflect.Descriptor instead.

func (*DataSource) GetFileFindingLocationData

func (x *DataSource) GetFileFindingLocationData() *DataSource_FileFindingLocationData

func (*DataSource) GetLocationData

func (m *DataSource) GetLocationData() isDataSource_LocationData

func (*DataSource) GetPurlFindingLocationData

func (x *DataSource) GetPurlFindingLocationData() *DataSource_PurlFindingLocationData

func (*DataSource) GetTargetType

func (x *DataSource) GetTargetType() DataSource_TargetType

func (*DataSource) GetUri

func (x *DataSource) GetUri() *DataSource_URI

func (*DataSource) ProtoMessage

func (*DataSource) ProtoMessage()

func (*DataSource) ProtoReflect

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

func (*DataSource) Reset

func (x *DataSource) Reset()

func (*DataSource) String

func (x *DataSource) String() string

type DataSource_FileFindingLocationData

type DataSource_FileFindingLocationData struct {
	StartLine   uint32 `protobuf:"varint,3,opt,name=start_line,json=startLine,proto3" json:"start_line,omitempty"`
	EndLine     uint32 `protobuf:"varint,4,opt,name=end_line,json=endLine,proto3" json:"end_line,omitempty"`
	StartColumn uint32 `protobuf:"varint,5,opt,name=start_column,json=startColumn,proto3" json:"start_column,omitempty"`
	EndColumn   uint32 `protobuf:"varint,6,opt,name=end_column,json=endColumn,proto3" json:"end_column,omitempty"`
	// contains filtered or unexported fields
}

FileFindingLocationData specifies data associated with the physical location of a finding in a file.

func (*DataSource_FileFindingLocationData) Descriptor deprecated

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

Deprecated: Use DataSource_FileFindingLocationData.ProtoReflect.Descriptor instead.

func (*DataSource_FileFindingLocationData) GetEndColumn

func (x *DataSource_FileFindingLocationData) GetEndColumn() uint32

func (*DataSource_FileFindingLocationData) GetEndLine

func (*DataSource_FileFindingLocationData) GetStartColumn

func (x *DataSource_FileFindingLocationData) GetStartColumn() uint32

func (*DataSource_FileFindingLocationData) GetStartLine

func (x *DataSource_FileFindingLocationData) GetStartLine() uint32

func (*DataSource_FileFindingLocationData) ProtoMessage

func (*DataSource_FileFindingLocationData) ProtoMessage()

func (*DataSource_FileFindingLocationData) ProtoReflect

func (*DataSource_FileFindingLocationData) Reset

func (*DataSource_FileFindingLocationData) String

type DataSource_FileFindingLocationData_

type DataSource_FileFindingLocationData_ struct {
	FileFindingLocationData *DataSource_FileFindingLocationData `protobuf:"bytes,3,opt,name=file_finding_location_data,json=fileFindingLocationData,proto3,oneof"`
}

type DataSource_PurlFindingLocationData

type DataSource_PurlFindingLocationData struct {
	// contains filtered or unexported fields
}

PurlFindingLocationData specifies data associated with the logical location of a finding in a purl.

func (*DataSource_PurlFindingLocationData) Descriptor deprecated

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

Deprecated: Use DataSource_PurlFindingLocationData.ProtoReflect.Descriptor instead.

func (*DataSource_PurlFindingLocationData) ProtoMessage

func (*DataSource_PurlFindingLocationData) ProtoMessage()

func (*DataSource_PurlFindingLocationData) ProtoReflect

func (*DataSource_PurlFindingLocationData) Reset

func (*DataSource_PurlFindingLocationData) String

type DataSource_PurlFindingLocationData_

type DataSource_PurlFindingLocationData_ struct {
	PurlFindingLocationData *DataSource_PurlFindingLocationData `protobuf:"bytes,4,opt,name=purl_finding_location_data,json=purlFindingLocationData,proto3,oneof"`
}

type DataSource_TargetType

type DataSource_TargetType int32

TargetType specifies the target type.

const (
	DataSource_TARGET_TYPE_UNSPECIFIED DataSource_TargetType = 0
	DataSource_TARGET_TYPE_REPOSITORY  DataSource_TargetType = 1
)

func (DataSource_TargetType) Descriptor

func (DataSource_TargetType) Enum

func (DataSource_TargetType) EnumDescriptor deprecated

func (DataSource_TargetType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSource_TargetType.Descriptor instead.

func (DataSource_TargetType) Number

func (DataSource_TargetType) String

func (x DataSource_TargetType) String() string

func (DataSource_TargetType) Type

type DataSource_URI

type DataSource_URI struct {
	UriSchema DataSource_URISchema `` /* 163-byte string literal not displayed */
	Path      string               `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

URI specifies uri content.

func (*DataSource_URI) Descriptor deprecated

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

Deprecated: Use DataSource_URI.ProtoReflect.Descriptor instead.

func (*DataSource_URI) GetPath

func (x *DataSource_URI) GetPath() string

func (*DataSource_URI) GetUriSchema

func (x *DataSource_URI) GetUriSchema() DataSource_URISchema

func (*DataSource_URI) ProtoMessage

func (*DataSource_URI) ProtoMessage()

func (*DataSource_URI) ProtoReflect

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

func (*DataSource_URI) Reset

func (x *DataSource_URI) Reset()

func (*DataSource_URI) String

func (x *DataSource_URI) String() string

type DataSource_URISchema

type DataSource_URISchema int32

URISchema specifies the URI schema. For example: - purl: pkg:npm/%40angular/animation@12.3.1" -> "pkg" - file: file://main.go -> "file"

const (
	DataSource_URI_SCHEMA_UNSPECIFIED DataSource_URISchema = 0
	DataSource_URI_SCHEMA_FILE        DataSource_URISchema = 1
	DataSource_URI_SCHEMA_PURL        DataSource_URISchema = 2
)

func (DataSource_URISchema) Descriptor

func (DataSource_URISchema) Enum

func (DataSource_URISchema) EnumDescriptor deprecated

func (DataSource_URISchema) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataSource_URISchema.Descriptor instead.

func (DataSource_URISchema) Number

func (DataSource_URISchema) String

func (x DataSource_URISchema) String() string

func (DataSource_URISchema) Type

Jump to

Keyboard shortcuts

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