v1

package
v0.1.47 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package v1 contains the platform API for the advisory service.

Index

Constants

View Source
const (
	Advisories_Create_FullMethodName              = "/chainguard.platform.vulnerabilities.v1.Advisories/Create"
	Advisories_List_FullMethodName                = "/chainguard.platform.vulnerabilities.v1.Advisories/List"
	Advisories_Update_FullMethodName              = "/chainguard.platform.vulnerabilities.v1.Advisories/Update"
	Advisories_Delete_FullMethodName              = "/chainguard.platform.vulnerabilities.v1.Advisories/Delete"
	Advisories_CreateAdvisoryEvent_FullMethodName = "/chainguard.platform.vulnerabilities.v1.Advisories/CreateAdvisoryEvent"
	Advisories_ListAdvisoryEvents_FullMethodName  = "/chainguard.platform.vulnerabilities.v1.Advisories/ListAdvisoryEvents"
	Advisories_UpdateAdvisoryEvent_FullMethodName = "/chainguard.platform.vulnerabilities.v1.Advisories/UpdateAdvisoryEvent"
)

Variables

View Source
var (
	ReviewStatus_name = map[int32]string{
		0: "UNKNOWN",
		1: "PENDING",
		2: "APPROVED",
		3: "REQUEST_CHANGES",
		4: "REJECTED",
	}
	ReviewStatus_value = map[string]int32{
		"UNKNOWN":         0,
		"PENDING":         1,
		"APPROVED":        2,
		"REQUEST_CHANGES": 3,
		"REJECTED":        4,
	}
)

Enum value maps for ReviewStatus.

View Source
var (
	OrderBy_name = map[int32]string{
		0:  "ORDER_BY_UNSPECIFIED",
		1:  "ID_ASC",
		2:  "ID_DESC",
		3:  "CREATED_AT_ASC",
		4:  "CREATED_AT_DESC",
		5:  "ALIASES_ASC",
		6:  "ALIASES_DESC",
		7:  "UPDATED_AT_ASC",
		8:  "UPDATED_AT_DESC",
		9:  "DELETED_AT_ASC",
		10: "DELETED_AT_DESC",
	}
	OrderBy_value = map[string]int32{
		"ORDER_BY_UNSPECIFIED": 0,
		"ID_ASC":               1,
		"ID_DESC":              2,
		"CREATED_AT_ASC":       3,
		"CREATED_AT_DESC":      4,
		"ALIASES_ASC":          5,
		"ALIASES_DESC":         6,
		"UPDATED_AT_ASC":       7,
		"UPDATED_AT_DESC":      8,
		"DELETED_AT_ASC":       9,
		"DELETED_AT_DESC":      10,
	}
)

Enum value maps for OrderBy.

View Source
var (
	EventTypeFilter_name = map[int32]string{
		0: "EVENT_TYPE_FILTER_UNSPECIFIED",
		1: "EVENT_TYPE_FILTER_DETECTION",
		2: "EVENT_TYPE_FILTER_TRUE_POSITIVE_DETERMINATION",
		3: "EVENT_TYPE_FILTER_FIXED",
		4: "EVENT_TYPE_FILTER_FALSE_POSITIVE_DETERMINATION",
		5: "EVENT_TYPE_FILTER_ANALYSIS_NOT_PLANNED",
		6: "EVENT_TYPE_FILTER_FIX_NOT_PLANNED",
		7: "EVENT_TYPE_FILTER_PENDING_UPSTREAM_FIX",
		8: "EVENT_TYPE_FILTER_PATCHED",
	}
	EventTypeFilter_value = map[string]int32{
		"EVENT_TYPE_FILTER_UNSPECIFIED":                  0,
		"EVENT_TYPE_FILTER_DETECTION":                    1,
		"EVENT_TYPE_FILTER_TRUE_POSITIVE_DETERMINATION":  2,
		"EVENT_TYPE_FILTER_FIXED":                        3,
		"EVENT_TYPE_FILTER_FALSE_POSITIVE_DETERMINATION": 4,
		"EVENT_TYPE_FILTER_ANALYSIS_NOT_PLANNED":         5,
		"EVENT_TYPE_FILTER_FIX_NOT_PLANNED":              6,
		"EVENT_TYPE_FILTER_PENDING_UPSTREAM_FIX":         7,
		"EVENT_TYPE_FILTER_PATCHED":                      8,
	}
)

Enum value maps for EventTypeFilter.

View Source
var (
	AdvisoryEvent_FalsePositiveDetermination_Type_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "VULNERABILITY_RECORD_ANALYSIS_CONTESTED",
		2: "COMPONENT_VULNERABILITY_MISMATCH",
		3: "VULNERABLE_CODE_VERSION_NOT_USED",
		4: "VULNERABLE_CODE_NOT_INCLUDED_IN_PACKAGE",
		5: "VULNERABLE_CODE_NOT_IN_EXECUTION_PATH",
		6: "VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY",
		7: "INLINE_MITIGATIONS_EXIST",
	}
	AdvisoryEvent_FalsePositiveDetermination_Type_value = map[string]int32{
		"UNSPECIFIED": 0,
		"VULNERABILITY_RECORD_ANALYSIS_CONTESTED":           1,
		"COMPONENT_VULNERABILITY_MISMATCH":                  2,
		"VULNERABLE_CODE_VERSION_NOT_USED":                  3,
		"VULNERABLE_CODE_NOT_INCLUDED_IN_PACKAGE":           4,
		"VULNERABLE_CODE_NOT_IN_EXECUTION_PATH":             5,
		"VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY": 6,
		"INLINE_MITIGATIONS_EXIST":                          7,
	}
)

Enum value maps for AdvisoryEvent_FalsePositiveDetermination_Type.

View Source
var Advisories_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "chainguard.platform.vulnerabilities.v1.Advisories",
	HandlerType: (*AdvisoriesServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Advisories_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _Advisories_List_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Advisories_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Advisories_Delete_Handler,
		},
		{
			MethodName: "CreateAdvisoryEvent",
			Handler:    _Advisories_CreateAdvisoryEvent_Handler,
		},
		{
			MethodName: "ListAdvisoryEvents",
			Handler:    _Advisories_ListAdvisoryEvents_Handler,
		},
		{
			MethodName: "UpdateAdvisoryEvent",
			Handler:    _Advisories_UpdateAdvisoryEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "advisory.vulnerabilities.proto",
}

Advisories_ServiceDesc is the grpc.ServiceDesc for Advisories service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_advisory_vulnerabilities_proto protoreflect.FileDescriptor

Functions

func RegisterAdvisoriesHandler

func RegisterAdvisoriesHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterAdvisoriesHandler registers the http handlers for service Advisories to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterAdvisoriesHandlerClient

func RegisterAdvisoriesHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AdvisoriesClient) error

RegisterAdvisoriesHandlerClient registers the http handlers for service Advisories to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AdvisoriesClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AdvisoriesClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AdvisoriesClient" to call the correct interceptors. This client ignores the HTTP middlewares.

func RegisterAdvisoriesHandlerFromEndpoint

func RegisterAdvisoriesHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterAdvisoriesHandlerFromEndpoint is same as RegisterAdvisoriesHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterAdvisoriesHandlerServer

func RegisterAdvisoriesHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AdvisoriesServer) error

RegisterAdvisoriesHandlerServer registers the http handlers for service Advisories to "mux". UnaryRPC :call AdvisoriesServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAdvisoriesHandlerFromEndpoint instead. GRPC interceptors will not work for this type of registration. To use interceptors, you must use the "runtime.WithMiddlewares" option in the "runtime.NewServeMux" call.

func RegisterAdvisoriesServer

func RegisterAdvisoriesServer(s grpc.ServiceRegistrar, srv AdvisoriesServer)

Types

type AdvisoriesClient

type AdvisoriesClient interface {
	Create(ctx context.Context, in *CreateAdvisoryRequest, opts ...grpc.CallOption) (*Advisory, error)
	List(ctx context.Context, in *AdvisoryFilter, opts ...grpc.CallOption) (*AdvisoriesList, error)
	Update(ctx context.Context, in *Advisory, opts ...grpc.CallOption) (*Advisory, error)
	Delete(ctx context.Context, in *DeleteAdvisoryRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	CreateAdvisoryEvent(ctx context.Context, in *CreateAdvisoryEventRequest, opts ...grpc.CallOption) (*AdvisoryEvent, error)
	ListAdvisoryEvents(ctx context.Context, in *AdvisoryEventFilter, opts ...grpc.CallOption) (*AdvisoryEventList, error)
	UpdateAdvisoryEvent(ctx context.Context, in *AdvisoryEvent, opts ...grpc.CallOption) (*AdvisoryEvent, error)
}

AdvisoriesClient is the client API for Advisories service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAdvisoriesClient

func NewAdvisoriesClient(cc grpc.ClientConnInterface) AdvisoriesClient

type AdvisoriesList

type AdvisoriesList struct {

	// ID of the group the advisories belong to, parent UIDP.
	Id    string      `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Items []*Advisory `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// next_page_token is the token to use for the next page of results
	NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// total_count is the total number of advisories matching the filter (optional)
	TotalCount *int64 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3,oneof" json:"total_count,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoriesList) Descriptor deprecated

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

Deprecated: Use AdvisoriesList.ProtoReflect.Descriptor instead.

func (*AdvisoriesList) GetId added in v0.1.35

func (x *AdvisoriesList) GetId() string

func (*AdvisoriesList) GetItems

func (x *AdvisoriesList) GetItems() []*Advisory

func (*AdvisoriesList) GetNextPageToken added in v0.1.35

func (x *AdvisoriesList) GetNextPageToken() string

func (*AdvisoriesList) GetTotalCount added in v0.1.35

func (x *AdvisoriesList) GetTotalCount() int64

func (*AdvisoriesList) ProtoMessage

func (*AdvisoriesList) ProtoMessage()

func (*AdvisoriesList) ProtoReflect

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

func (*AdvisoriesList) Reset

func (x *AdvisoriesList) Reset()

func (*AdvisoriesList) String

func (x *AdvisoriesList) String() string

type AdvisoriesServer

type AdvisoriesServer interface {
	Create(context.Context, *CreateAdvisoryRequest) (*Advisory, error)
	List(context.Context, *AdvisoryFilter) (*AdvisoriesList, error)
	Update(context.Context, *Advisory) (*Advisory, error)
	Delete(context.Context, *DeleteAdvisoryRequest) (*emptypb.Empty, error)
	CreateAdvisoryEvent(context.Context, *CreateAdvisoryEventRequest) (*AdvisoryEvent, error)
	ListAdvisoryEvents(context.Context, *AdvisoryEventFilter) (*AdvisoryEventList, error)
	UpdateAdvisoryEvent(context.Context, *AdvisoryEvent) (*AdvisoryEvent, error)
	// contains filtered or unexported methods
}

AdvisoriesServer is the server API for Advisories service. All implementations must embed UnimplementedAdvisoriesServer for forward compatibility.

type Advisory

type Advisory struct {

	// id is the UIDP for the Advisory.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// artifact_type is the artifact type (e.g., apk, image, library)
	ArtifactType string `protobuf:"bytes,2,opt,name=artifact_type,json=artifactType,proto3" json:"artifact_type,omitempty"`
	// artifact_name is the artifact name (e.g., wheel, jar name)
	ArtifactName string `protobuf:"bytes,3,opt,name=artifact_name,json=artifactName,proto3" json:"artifact_name,omitempty"`
	// artifact_architecture is the architecture of the artifact
	ArtifactArchitecture string `protobuf:"bytes,5,opt,name=artifact_architecture,json=artifactArchitecture,proto3" json:"artifact_architecture,omitempty"`
	// component_name is the component within the subpackage
	ComponentName *string `protobuf:"bytes,6,opt,name=component_name,json=componentName,proto3,oneof" json:"component_name,omitempty"`
	// component_location is the filesystem location of the component
	ComponentLocation *string `protobuf:"bytes,7,opt,name=component_location,json=componentLocation,proto3,oneof" json:"component_location,omitempty"`
	// component_type is the language ecosystem (go-module, python, etc)
	ComponentType *string `protobuf:"bytes,8,opt,name=component_type,json=componentType,proto3,oneof" json:"component_type,omitempty"`
	// created_at is when the advisory was created
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// updated_at is when the advisory was last updated
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// deleted_at is when the advisory was deleted (if applicable)
	DeletedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3,oneof" json:"deleted_at,omitempty"`
	// aliases are other vulnerability identifiers this advisory applies to
	Aliases []string `protobuf:"bytes,13,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// events are advisory events associated with this advisory
	Events []*AdvisoryEvent `protobuf:"bytes,14,rep,name=events,proto3" json:"events,omitempty"`
	// advisory_id is the CGA identifier for the advisory
	AdvisoryId string `protobuf:"bytes,15,opt,name=advisory_id,json=advisoryId,proto3" json:"advisory_id,omitempty"`
	// For review process
	// author is the person who created this event
	Author string `protobuf:"bytes,16,opt,name=author,proto3" json:"author,omitempty"`
	// legacyAdvisoryID stores the advisory ID from the Github advisories repositories
	LegacyAdvisoryID *string `protobuf:"bytes,19,opt,name=legacyAdvisoryID,proto3,oneof" json:"legacyAdvisoryID,omitempty"`
	// contains filtered or unexported fields
}

func (*Advisory) Descriptor deprecated

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

Deprecated: Use Advisory.ProtoReflect.Descriptor instead.

func (*Advisory) GetAdvisoryId added in v0.1.35

func (x *Advisory) GetAdvisoryId() string

func (*Advisory) GetAliases

func (x *Advisory) GetAliases() []string

func (*Advisory) GetArtifactArchitecture

func (x *Advisory) GetArtifactArchitecture() string

func (*Advisory) GetArtifactName

func (x *Advisory) GetArtifactName() string

func (*Advisory) GetArtifactType

func (x *Advisory) GetArtifactType() string

func (*Advisory) GetAuthor added in v0.1.35

func (x *Advisory) GetAuthor() string

func (*Advisory) GetComponentLocation

func (x *Advisory) GetComponentLocation() string

func (*Advisory) GetComponentName

func (x *Advisory) GetComponentName() string

func (*Advisory) GetComponentType

func (x *Advisory) GetComponentType() string

func (*Advisory) GetCreatedAt

func (x *Advisory) GetCreatedAt() *timestamppb.Timestamp

func (*Advisory) GetDeletedAt

func (x *Advisory) GetDeletedAt() *timestamppb.Timestamp

func (*Advisory) GetEvents

func (x *Advisory) GetEvents() []*AdvisoryEvent

func (*Advisory) GetId

func (x *Advisory) GetId() string

func (*Advisory) GetLegacyAdvisoryID added in v0.1.38

func (x *Advisory) GetLegacyAdvisoryID() string

func (*Advisory) GetUpdatedAt

func (x *Advisory) GetUpdatedAt() *timestamppb.Timestamp

func (*Advisory) ProtoMessage

func (*Advisory) ProtoMessage()

func (*Advisory) ProtoReflect

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

func (*Advisory) Reset

func (x *Advisory) Reset()

func (*Advisory) String

func (x *Advisory) String() string

type AdvisoryEvent

type AdvisoryEvent struct {

	// id is the UIDP of this event, child of Advisory UIDP it belongs to.
	Id        string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// Event type determines which specific event field is populated
	//
	// Types that are assignable to Type:
	//
	//	*AdvisoryEvent_Detection_
	//	*AdvisoryEvent_Fixed_
	//	*AdvisoryEvent_FalsePositiveDetermination_
	//	*AdvisoryEvent_AnalysisNotPlanned_
	//	*AdvisoryEvent_FixNotPlanned_
	//	*AdvisoryEvent_PendingUpstreamFix_
	//	*AdvisoryEvent_TruePositiveDetermination_
	//	*AdvisoryEvent_Patched_
	Type isAdvisoryEvent_Type `protobuf_oneof:"type"`
	// findings is the JSON-encoded struct containing vulnerability findings
	Findings []byte `protobuf:"bytes,10,opt,name=findings,proto3" json:"findings,omitempty"`
	// author is the person who created this event
	Author string `protobuf:"bytes,11,opt,name=author,proto3" json:"author,omitempty"`
	// reviewer is the person who reviewed this event
	Reviewer string `protobuf:"bytes,12,opt,name=reviewer,proto3" json:"reviewer,omitempty"`
	// status is the status of the review
	Status ReviewStatus `protobuf:"varint,13,opt,name=status,proto3,enum=chainguard.platform.vulnerabilities.v1.ReviewStatus" json:"status,omitempty"`
	// issue is the original CVE Dashboard issue
	Issue *string `protobuf:"bytes,14,opt,name=issue,proto3,oneof" json:"issue,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent) GetAnalysisNotPlanned

func (x *AdvisoryEvent) GetAnalysisNotPlanned() *AdvisoryEvent_AnalysisNotPlanned

func (*AdvisoryEvent) GetAuthor

func (x *AdvisoryEvent) GetAuthor() string

func (*AdvisoryEvent) GetDetection

func (x *AdvisoryEvent) GetDetection() *AdvisoryEvent_Detection

func (*AdvisoryEvent) GetFalsePositiveDetermination

func (x *AdvisoryEvent) GetFalsePositiveDetermination() *AdvisoryEvent_FalsePositiveDetermination

func (*AdvisoryEvent) GetFindings

func (x *AdvisoryEvent) GetFindings() []byte

func (*AdvisoryEvent) GetFixNotPlanned

func (x *AdvisoryEvent) GetFixNotPlanned() *AdvisoryEvent_FixNotPlanned

func (*AdvisoryEvent) GetFixed

func (x *AdvisoryEvent) GetFixed() *AdvisoryEvent_Fixed

func (*AdvisoryEvent) GetId

func (x *AdvisoryEvent) GetId() string

func (*AdvisoryEvent) GetIssue

func (x *AdvisoryEvent) GetIssue() string

func (*AdvisoryEvent) GetPatched added in v0.1.42

func (x *AdvisoryEvent) GetPatched() *AdvisoryEvent_Patched

func (*AdvisoryEvent) GetPendingUpstreamFix

func (x *AdvisoryEvent) GetPendingUpstreamFix() *AdvisoryEvent_PendingUpstreamFix

func (*AdvisoryEvent) GetReviewer

func (x *AdvisoryEvent) GetReviewer() string

func (*AdvisoryEvent) GetStatus

func (x *AdvisoryEvent) GetStatus() ReviewStatus

func (*AdvisoryEvent) GetTimestamp

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

func (*AdvisoryEvent) GetTruePositiveDetermination

func (x *AdvisoryEvent) GetTruePositiveDetermination() *AdvisoryEvent_TruePositiveDetermination

func (*AdvisoryEvent) GetType

func (m *AdvisoryEvent) GetType() isAdvisoryEvent_Type

func (*AdvisoryEvent) ProtoMessage

func (*AdvisoryEvent) ProtoMessage()

func (*AdvisoryEvent) ProtoReflect

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

func (*AdvisoryEvent) Reset

func (x *AdvisoryEvent) Reset()

func (*AdvisoryEvent) String

func (x *AdvisoryEvent) String() string

type AdvisoryEventFilter

type AdvisoryEventFilter struct {

	// parent_id is the IAM scope identifier. If you are fetching a single
	// AdvisoryEvent you can use this to get the exact one.
	ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEventFilter) Descriptor deprecated

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

Deprecated: Use AdvisoryEventFilter.ProtoReflect.Descriptor instead.

func (*AdvisoryEventFilter) GetParentId added in v0.1.35

func (x *AdvisoryEventFilter) GetParentId() string

func (*AdvisoryEventFilter) ProtoMessage

func (*AdvisoryEventFilter) ProtoMessage()

func (*AdvisoryEventFilter) ProtoReflect

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

func (*AdvisoryEventFilter) Reset

func (x *AdvisoryEventFilter) Reset()

func (*AdvisoryEventFilter) String

func (x *AdvisoryEventFilter) String() string

type AdvisoryEventList

type AdvisoryEventList struct {

	// UIDP of the group the advisories belong to, parent UIDP of the
	// advisories.
	ParentId string           `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Items    []*AdvisoryEvent `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEventList) Descriptor deprecated

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

Deprecated: Use AdvisoryEventList.ProtoReflect.Descriptor instead.

func (*AdvisoryEventList) GetItems

func (x *AdvisoryEventList) GetItems() []*AdvisoryEvent

func (*AdvisoryEventList) GetParentId added in v0.1.35

func (x *AdvisoryEventList) GetParentId() string

func (*AdvisoryEventList) ProtoMessage

func (*AdvisoryEventList) ProtoMessage()

func (*AdvisoryEventList) ProtoReflect

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

func (*AdvisoryEventList) Reset

func (x *AdvisoryEventList) Reset()

func (*AdvisoryEventList) String

func (x *AdvisoryEventList) String() string

type AdvisoryEvent_AnalysisNotPlanned

type AdvisoryEvent_AnalysisNotPlanned struct {
	Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_AnalysisNotPlanned) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_AnalysisNotPlanned.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_AnalysisNotPlanned) GetNote

func (*AdvisoryEvent_AnalysisNotPlanned) ProtoMessage

func (*AdvisoryEvent_AnalysisNotPlanned) ProtoMessage()

func (*AdvisoryEvent_AnalysisNotPlanned) ProtoReflect

func (*AdvisoryEvent_AnalysisNotPlanned) Reset

func (*AdvisoryEvent_AnalysisNotPlanned) String

type AdvisoryEvent_AnalysisNotPlanned_

type AdvisoryEvent_AnalysisNotPlanned_ struct {
	AnalysisNotPlanned *AdvisoryEvent_AnalysisNotPlanned `protobuf:"bytes,6,opt,name=analysis_not_planned,json=analysisNotPlanned,proto3,oneof"`
}

type AdvisoryEvent_Detection

type AdvisoryEvent_Detection struct {

	// Types that are assignable to Type:
	//
	//	*AdvisoryEvent_Detection_Nvdapi
	//	*AdvisoryEvent_Detection_Manual_
	//	*AdvisoryEvent_Detection_Scanv1
	Type isAdvisoryEvent_Detection_Type `protobuf_oneof:"type"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_Detection) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_Detection.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_Detection) GetManual

func (*AdvisoryEvent_Detection) GetNvdapi

func (*AdvisoryEvent_Detection) GetScanv1

func (*AdvisoryEvent_Detection) GetType

func (m *AdvisoryEvent_Detection) GetType() isAdvisoryEvent_Detection_Type

func (*AdvisoryEvent_Detection) ProtoMessage

func (*AdvisoryEvent_Detection) ProtoMessage()

func (*AdvisoryEvent_Detection) ProtoReflect

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

func (*AdvisoryEvent_Detection) Reset

func (x *AdvisoryEvent_Detection) Reset()

func (*AdvisoryEvent_Detection) String

func (x *AdvisoryEvent_Detection) String() string

type AdvisoryEvent_Detection_

type AdvisoryEvent_Detection_ struct {
	Detection *AdvisoryEvent_Detection `protobuf:"bytes,3,opt,name=detection,proto3,oneof"`
}

type AdvisoryEvent_Detection_Manual

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

func (*AdvisoryEvent_Detection_Manual) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_Detection_Manual.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_Detection_Manual) ProtoMessage

func (*AdvisoryEvent_Detection_Manual) ProtoMessage()

func (*AdvisoryEvent_Detection_Manual) ProtoReflect

func (*AdvisoryEvent_Detection_Manual) Reset

func (x *AdvisoryEvent_Detection_Manual) Reset()

func (*AdvisoryEvent_Detection_Manual) String

type AdvisoryEvent_Detection_Manual_

type AdvisoryEvent_Detection_Manual_ struct {
	Manual *AdvisoryEvent_Detection_Manual `protobuf:"bytes,2,opt,name=manual,proto3,oneof"`
}

type AdvisoryEvent_Detection_NVDAPI

type AdvisoryEvent_Detection_NVDAPI struct {
	CpeSearched string `protobuf:"bytes,1,opt,name=cpe_searched,json=cpeSearched,proto3" json:"cpe_searched,omitempty"`
	CpeFound    string `protobuf:"bytes,2,opt,name=cpe_found,json=cpeFound,proto3" json:"cpe_found,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_Detection_NVDAPI) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_Detection_NVDAPI.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_Detection_NVDAPI) GetCpeFound

func (x *AdvisoryEvent_Detection_NVDAPI) GetCpeFound() string

func (*AdvisoryEvent_Detection_NVDAPI) GetCpeSearched

func (x *AdvisoryEvent_Detection_NVDAPI) GetCpeSearched() string

func (*AdvisoryEvent_Detection_NVDAPI) ProtoMessage

func (*AdvisoryEvent_Detection_NVDAPI) ProtoMessage()

func (*AdvisoryEvent_Detection_NVDAPI) ProtoReflect

func (*AdvisoryEvent_Detection_NVDAPI) Reset

func (x *AdvisoryEvent_Detection_NVDAPI) Reset()

func (*AdvisoryEvent_Detection_NVDAPI) String

type AdvisoryEvent_Detection_Nvdapi

type AdvisoryEvent_Detection_Nvdapi struct {
	Nvdapi *AdvisoryEvent_Detection_NVDAPI `protobuf:"bytes,1,opt,name=nvdapi,proto3,oneof"`
}

type AdvisoryEvent_Detection_ScanV1

type AdvisoryEvent_Detection_ScanV1 struct {
	Scanner           string `protobuf:"bytes,1,opt,name=scanner,proto3" json:"scanner,omitempty"`
	SubpackageName    string `protobuf:"bytes,2,opt,name=subpackage_name,json=subpackageName,proto3" json:"subpackage_name,omitempty"`
	ComponentId       string `protobuf:"bytes,3,opt,name=component_id,json=componentId,proto3" json:"component_id,omitempty"`
	ComponentName     string `protobuf:"bytes,4,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
	ComponentVersion  string `protobuf:"bytes,5,opt,name=component_version,json=componentVersion,proto3" json:"component_version,omitempty"`
	ComponentType     string `protobuf:"bytes,6,opt,name=component_type,json=componentType,proto3" json:"component_type,omitempty"`
	ComponentLocation string `protobuf:"bytes,7,opt,name=component_location,json=componentLocation,proto3" json:"component_location,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_Detection_ScanV1) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_Detection_ScanV1.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_Detection_ScanV1) GetComponentId

func (x *AdvisoryEvent_Detection_ScanV1) GetComponentId() string

func (*AdvisoryEvent_Detection_ScanV1) GetComponentLocation

func (x *AdvisoryEvent_Detection_ScanV1) GetComponentLocation() string

func (*AdvisoryEvent_Detection_ScanV1) GetComponentName

func (x *AdvisoryEvent_Detection_ScanV1) GetComponentName() string

func (*AdvisoryEvent_Detection_ScanV1) GetComponentType

func (x *AdvisoryEvent_Detection_ScanV1) GetComponentType() string

func (*AdvisoryEvent_Detection_ScanV1) GetComponentVersion

func (x *AdvisoryEvent_Detection_ScanV1) GetComponentVersion() string

func (*AdvisoryEvent_Detection_ScanV1) GetScanner

func (x *AdvisoryEvent_Detection_ScanV1) GetScanner() string

func (*AdvisoryEvent_Detection_ScanV1) GetSubpackageName

func (x *AdvisoryEvent_Detection_ScanV1) GetSubpackageName() string

func (*AdvisoryEvent_Detection_ScanV1) ProtoMessage

func (*AdvisoryEvent_Detection_ScanV1) ProtoMessage()

func (*AdvisoryEvent_Detection_ScanV1) ProtoReflect

func (*AdvisoryEvent_Detection_ScanV1) Reset

func (x *AdvisoryEvent_Detection_ScanV1) Reset()

func (*AdvisoryEvent_Detection_ScanV1) String

type AdvisoryEvent_Detection_Scanv1

type AdvisoryEvent_Detection_Scanv1 struct {
	Scanv1 *AdvisoryEvent_Detection_ScanV1 `protobuf:"bytes,3,opt,name=scanv1,proto3,oneof"`
}

type AdvisoryEvent_FalsePositiveDetermination

type AdvisoryEvent_FalsePositiveDetermination struct {

	// type is the type of false positive.
	// For details, see https://github.com/wolfi-dev/wolfictl/blob/main/pkg/configs/advisory/v2/false_positive_determination.go
	Type AdvisoryEvent_FalsePositiveDetermination_Type `` /* 152-byte string literal not displayed */
	Note string                                        `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_FalsePositiveDetermination) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_FalsePositiveDetermination.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_FalsePositiveDetermination) GetNote

func (*AdvisoryEvent_FalsePositiveDetermination) GetType

func (*AdvisoryEvent_FalsePositiveDetermination) ProtoMessage

func (*AdvisoryEvent_FalsePositiveDetermination) ProtoReflect

func (*AdvisoryEvent_FalsePositiveDetermination) Reset

func (*AdvisoryEvent_FalsePositiveDetermination) String

type AdvisoryEvent_FalsePositiveDetermination_

type AdvisoryEvent_FalsePositiveDetermination_ struct {
	FalsePositiveDetermination *AdvisoryEvent_FalsePositiveDetermination `protobuf:"bytes,5,opt,name=false_positive_determination,json=falsePositiveDetermination,proto3,oneof"`
}

type AdvisoryEvent_FalsePositiveDetermination_Type

type AdvisoryEvent_FalsePositiveDetermination_Type int32
const (
	AdvisoryEvent_FalsePositiveDetermination_UNSPECIFIED                                       AdvisoryEvent_FalsePositiveDetermination_Type = 0
	AdvisoryEvent_FalsePositiveDetermination_VULNERABILITY_RECORD_ANALYSIS_CONTESTED           AdvisoryEvent_FalsePositiveDetermination_Type = 1
	AdvisoryEvent_FalsePositiveDetermination_COMPONENT_VULNERABILITY_MISMATCH                  AdvisoryEvent_FalsePositiveDetermination_Type = 2
	AdvisoryEvent_FalsePositiveDetermination_VULNERABLE_CODE_VERSION_NOT_USED                  AdvisoryEvent_FalsePositiveDetermination_Type = 3
	AdvisoryEvent_FalsePositiveDetermination_VULNERABLE_CODE_NOT_INCLUDED_IN_PACKAGE           AdvisoryEvent_FalsePositiveDetermination_Type = 4
	AdvisoryEvent_FalsePositiveDetermination_VULNERABLE_CODE_NOT_IN_EXECUTION_PATH             AdvisoryEvent_FalsePositiveDetermination_Type = 5
	AdvisoryEvent_FalsePositiveDetermination_VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY AdvisoryEvent_FalsePositiveDetermination_Type = 6
	AdvisoryEvent_FalsePositiveDetermination_INLINE_MITIGATIONS_EXIST                          AdvisoryEvent_FalsePositiveDetermination_Type = 7
)

func (AdvisoryEvent_FalsePositiveDetermination_Type) Descriptor

func (AdvisoryEvent_FalsePositiveDetermination_Type) Enum

func (AdvisoryEvent_FalsePositiveDetermination_Type) EnumDescriptor deprecated

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

Deprecated: Use AdvisoryEvent_FalsePositiveDetermination_Type.Descriptor instead.

func (AdvisoryEvent_FalsePositiveDetermination_Type) Number

func (AdvisoryEvent_FalsePositiveDetermination_Type) String

func (AdvisoryEvent_FalsePositiveDetermination_Type) Type

type AdvisoryEvent_FixNotPlanned

type AdvisoryEvent_FixNotPlanned struct {
	Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_FixNotPlanned) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_FixNotPlanned.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_FixNotPlanned) GetNote

func (x *AdvisoryEvent_FixNotPlanned) GetNote() string

func (*AdvisoryEvent_FixNotPlanned) ProtoMessage

func (*AdvisoryEvent_FixNotPlanned) ProtoMessage()

func (*AdvisoryEvent_FixNotPlanned) ProtoReflect

func (*AdvisoryEvent_FixNotPlanned) Reset

func (x *AdvisoryEvent_FixNotPlanned) Reset()

func (*AdvisoryEvent_FixNotPlanned) String

func (x *AdvisoryEvent_FixNotPlanned) String() string

type AdvisoryEvent_FixNotPlanned_

type AdvisoryEvent_FixNotPlanned_ struct {
	FixNotPlanned *AdvisoryEvent_FixNotPlanned `protobuf:"bytes,7,opt,name=fix_not_planned,json=fixNotPlanned,proto3,oneof"`
}

type AdvisoryEvent_Fixed

type AdvisoryEvent_Fixed struct {
	FixedVersion string `protobuf:"bytes,1,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_Fixed) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_Fixed.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_Fixed) GetFixedVersion

func (x *AdvisoryEvent_Fixed) GetFixedVersion() string

func (*AdvisoryEvent_Fixed) ProtoMessage

func (*AdvisoryEvent_Fixed) ProtoMessage()

func (*AdvisoryEvent_Fixed) ProtoReflect

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

func (*AdvisoryEvent_Fixed) Reset

func (x *AdvisoryEvent_Fixed) Reset()

func (*AdvisoryEvent_Fixed) String

func (x *AdvisoryEvent_Fixed) String() string

type AdvisoryEvent_Fixed_

type AdvisoryEvent_Fixed_ struct {
	Fixed *AdvisoryEvent_Fixed `protobuf:"bytes,4,opt,name=fixed,proto3,oneof"`
}

type AdvisoryEvent_Patched added in v0.1.42

type AdvisoryEvent_Patched struct {
	PatchedVersions []string `protobuf:"bytes,1,rep,name=patched_versions,json=patchedVersions,proto3" json:"patched_versions,omitempty"`
	Note            string   `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_Patched) Descriptor deprecated added in v0.1.42

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

Deprecated: Use AdvisoryEvent_Patched.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_Patched) GetNote added in v0.1.42

func (x *AdvisoryEvent_Patched) GetNote() string

func (*AdvisoryEvent_Patched) GetPatchedVersions added in v0.1.42

func (x *AdvisoryEvent_Patched) GetPatchedVersions() []string

func (*AdvisoryEvent_Patched) ProtoMessage added in v0.1.42

func (*AdvisoryEvent_Patched) ProtoMessage()

func (*AdvisoryEvent_Patched) ProtoReflect added in v0.1.42

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

func (*AdvisoryEvent_Patched) Reset added in v0.1.42

func (x *AdvisoryEvent_Patched) Reset()

func (*AdvisoryEvent_Patched) String added in v0.1.42

func (x *AdvisoryEvent_Patched) String() string

type AdvisoryEvent_Patched_ added in v0.1.42

type AdvisoryEvent_Patched_ struct {
	Patched *AdvisoryEvent_Patched `protobuf:"bytes,15,opt,name=patched,proto3,oneof"`
}

type AdvisoryEvent_PendingUpstreamFix

type AdvisoryEvent_PendingUpstreamFix struct {
	Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_PendingUpstreamFix) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_PendingUpstreamFix.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_PendingUpstreamFix) GetNote

func (*AdvisoryEvent_PendingUpstreamFix) ProtoMessage

func (*AdvisoryEvent_PendingUpstreamFix) ProtoMessage()

func (*AdvisoryEvent_PendingUpstreamFix) ProtoReflect

func (*AdvisoryEvent_PendingUpstreamFix) Reset

func (*AdvisoryEvent_PendingUpstreamFix) String

type AdvisoryEvent_PendingUpstreamFix_

type AdvisoryEvent_PendingUpstreamFix_ struct {
	PendingUpstreamFix *AdvisoryEvent_PendingUpstreamFix `protobuf:"bytes,8,opt,name=pending_upstream_fix,json=pendingUpstreamFix,proto3,oneof"`
}

type AdvisoryEvent_TruePositiveDetermination

type AdvisoryEvent_TruePositiveDetermination struct {
	Note string `protobuf:"bytes,1,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryEvent_TruePositiveDetermination) Descriptor deprecated

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

Deprecated: Use AdvisoryEvent_TruePositiveDetermination.ProtoReflect.Descriptor instead.

func (*AdvisoryEvent_TruePositiveDetermination) GetNote

func (*AdvisoryEvent_TruePositiveDetermination) ProtoMessage

func (*AdvisoryEvent_TruePositiveDetermination) ProtoReflect

func (*AdvisoryEvent_TruePositiveDetermination) Reset

func (*AdvisoryEvent_TruePositiveDetermination) String

type AdvisoryEvent_TruePositiveDetermination_

type AdvisoryEvent_TruePositiveDetermination_ struct {
	TruePositiveDetermination *AdvisoryEvent_TruePositiveDetermination `protobuf:"bytes,9,opt,name=true_positive_determination,json=truePositiveDetermination,proto3,oneof"`
}

type AdvisoryFilter

type AdvisoryFilter struct {

	// advisory_id filters by advisory ID (e.g., CGA-xvgw-cvr7-9g2q)
	AdvisoryId string `protobuf:"bytes,1,opt,name=advisory_id,json=advisoryId,proto3" json:"advisory_id,omitempty"`
	// advisory_id in the v1 system (e.g., CGA-abcd-efgh-ijkl)
	LegacyAdvisoryId string `protobuf:"bytes,21,opt,name=legacy_advisory_id,json=legacyAdvisoryId,proto3" json:"legacy_advisory_id,omitempty"`
	// id is the exact UID of the record.
	Id string `protobuf:"bytes,17,opt,name=id,proto3" json:"id,omitempty"`
	// uidp filters records based on their position in the group hierarchy.
	Uidp *v1.UIDPFilter `protobuf:"bytes,16,opt,name=uidp,proto3" json:"uidp,omitempty"`
	// artifact_type filters by artifact type
	ArtifactType []string `protobuf:"bytes,2,rep,name=artifact_type,json=artifactType,proto3" json:"artifact_type,omitempty"`
	// artifact filters by artifact name
	ArtifactName []string `protobuf:"bytes,3,rep,name=artifact_name,json=artifactName,proto3" json:"artifact_name,omitempty"`
	// component_name filters by component name
	ComponentName []string `protobuf:"bytes,5,rep,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
	// component_type filters by component type
	ComponentType []string `protobuf:"bytes,6,rep,name=component_type,json=componentType,proto3" json:"component_type,omitempty"`
	// component_location filters by component locations (IE ./PKGINFO)
	ComponentLocation []string `protobuf:"bytes,20,rep,name=component_location,json=componentLocation,proto3" json:"component_location,omitempty"`
	// aliases filters by alias name (CVE, GHSA, etc.)
	Aliases []string `protobuf:"bytes,7,rep,name=aliases,proto3" json:"aliases,omitempty"`
	// artifact_architecture filters by architecture (e.g., x86_64, aarch64)
	ArtifactArchitecture []string `protobuf:"bytes,8,rep,name=artifact_architecture,json=artifactArchitecture,proto3" json:"artifact_architecture,omitempty"`
	// Pagination
	PageToken string `protobuf:"bytes,9,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	PageSize  int64  `protobuf:"varint,10,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// event_statuses filters by event review status (e.g., PENDING, REQUEST_CHANGES)
	// When specified, only advisories containing at least one event with any of the provided
	// statuses will be returned. This is useful for review workflows where users need to see
	// only events requiring action.
	EventStatuses []ReviewStatus `` /* 166-byte string literal not displayed */
	// event_author filters by event author email
	// When specified, only advisories containing at least one event created by the specified
	// author will be returned. This enables users to find their own events or events from
	// specific team members.
	EventAuthor *string `protobuf:"bytes,12,opt,name=event_author,json=eventAuthor,proto3,oneof" json:"event_author,omitempty"`
	// event_reviewer filters by event reviewer email
	// When specified, only advisories containing at least one event reviewed by the specified
	// author will be returned. This enables users to find their own events or events from
	// specific team members.
	EventReviewer *string `protobuf:"bytes,18,opt,name=event_reviewer,json=eventReviewer,proto3,oneof" json:"event_reviewer,omitempty"`
	// event_types filters by event type
	// When specified, only advisories containing at least one event of any of the provided
	// types will be returned.
	EventTypes []EventTypeFilter `` /* 160-byte string literal not displayed */
	// order_by specifies the sort order for results
	// Default: ID_ASC
	// This field affects the order of advisories returned, which is particularly useful
	// for pagination and review workflows.
	OrderBy OrderBy `` /* 136-byte string literal not displayed */
	// exclude_event_author filters out advisories where any event was created by the specified author
	// When specified, advisories containing events by this author will be excluded from results.
	// This is useful for review workflows where users want to see all pending events except their own,
	// enabling them to review others' work without seeing their own submissions.
	ExcludeEventAuthor *string `protobuf:"bytes,15,opt,name=exclude_event_author,json=excludeEventAuthor,proto3,oneof" json:"exclude_event_author,omitempty"`
	// latest_event_type filters out advisories where the _most recent approved event_ is
	// of the given type. This is useful to find advisories which are currently detected,
	// fixed, patched, etc.
	LatestEventType *EventTypeFilter `` /* 176-byte string literal not displayed */
	// origin filters by origin package. Returns all advisories for packages
	// (including subpackages) that have this origin. For origin packages, origin equals package_name.
	// When specified, artifact_name filter is ignored as subpackage names are resolved server-side.
	Origin *string `protobuf:"bytes,22,opt,name=origin,proto3,oneof" json:"origin,omitempty"`
	// contains filtered or unexported fields
}

func (*AdvisoryFilter) Descriptor deprecated

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

Deprecated: Use AdvisoryFilter.ProtoReflect.Descriptor instead.

func (*AdvisoryFilter) GetAdvisoryId added in v0.1.35

func (x *AdvisoryFilter) GetAdvisoryId() string

func (*AdvisoryFilter) GetAliases

func (x *AdvisoryFilter) GetAliases() []string

func (*AdvisoryFilter) GetArtifactArchitecture added in v0.1.35

func (x *AdvisoryFilter) GetArtifactArchitecture() []string

func (*AdvisoryFilter) GetArtifactName

func (x *AdvisoryFilter) GetArtifactName() []string

func (*AdvisoryFilter) GetArtifactType

func (x *AdvisoryFilter) GetArtifactType() []string

func (*AdvisoryFilter) GetComponentLocation added in v0.1.45

func (x *AdvisoryFilter) GetComponentLocation() []string

func (*AdvisoryFilter) GetComponentName

func (x *AdvisoryFilter) GetComponentName() []string

func (*AdvisoryFilter) GetComponentType

func (x *AdvisoryFilter) GetComponentType() []string

func (*AdvisoryFilter) GetEventAuthor added in v0.1.37

func (x *AdvisoryFilter) GetEventAuthor() string

func (*AdvisoryFilter) GetEventReviewer added in v0.1.42

func (x *AdvisoryFilter) GetEventReviewer() string

func (*AdvisoryFilter) GetEventStatuses added in v0.1.37

func (x *AdvisoryFilter) GetEventStatuses() []ReviewStatus

func (*AdvisoryFilter) GetEventTypes added in v0.1.37

func (x *AdvisoryFilter) GetEventTypes() []EventTypeFilter

func (*AdvisoryFilter) GetExcludeEventAuthor added in v0.1.38

func (x *AdvisoryFilter) GetExcludeEventAuthor() string

func (*AdvisoryFilter) GetId

func (x *AdvisoryFilter) GetId() string

func (*AdvisoryFilter) GetLatestEventType added in v0.1.44

func (x *AdvisoryFilter) GetLatestEventType() EventTypeFilter

func (*AdvisoryFilter) GetLegacyAdvisoryId added in v0.1.45

func (x *AdvisoryFilter) GetLegacyAdvisoryId() string

func (*AdvisoryFilter) GetOrderBy added in v0.1.37

func (x *AdvisoryFilter) GetOrderBy() OrderBy

func (*AdvisoryFilter) GetOrigin added in v0.1.46

func (x *AdvisoryFilter) GetOrigin() string

func (*AdvisoryFilter) GetPageSize added in v0.1.35

func (x *AdvisoryFilter) GetPageSize() int64

func (*AdvisoryFilter) GetPageToken added in v0.1.35

func (x *AdvisoryFilter) GetPageToken() string

func (*AdvisoryFilter) GetUidp added in v0.1.41

func (x *AdvisoryFilter) GetUidp() *v1.UIDPFilter

func (*AdvisoryFilter) ProtoMessage

func (*AdvisoryFilter) ProtoMessage()

func (*AdvisoryFilter) ProtoReflect

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

func (*AdvisoryFilter) Reset

func (x *AdvisoryFilter) Reset()

func (*AdvisoryFilter) String

func (x *AdvisoryFilter) String() string

type Clients

type Clients interface {
	Advisories() AdvisoriesClient

	Close() error
}

Clients holds the gRPC clients for the advisory v2 services.

func NewClients

func NewClients(ctx context.Context, apiURL string, cred credentials.PerRPCCredentials, addlOpts ...grpc.DialOption) (Clients, error)

NewClients creates a new set of clients for the advisory v2 API

func NewClientsFromConnection

func NewClientsFromConnection(conn *grpc.ClientConn) Clients

NewClientsFromConnection creates a new set of clients from an existing gRPC connection.

type CreateAdvisoryEventRequest

type CreateAdvisoryEventRequest struct {

	// parent_id is the UIDP of the Advisory the events belong to.
	ParentId      string         `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	AdvisoryEvent *AdvisoryEvent `protobuf:"bytes,3,opt,name=advisory_event,json=advisoryEvent,proto3" json:"advisory_event,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAdvisoryEventRequest) Descriptor deprecated

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

Deprecated: Use CreateAdvisoryEventRequest.ProtoReflect.Descriptor instead.

func (*CreateAdvisoryEventRequest) GetAdvisoryEvent added in v0.1.42

func (x *CreateAdvisoryEventRequest) GetAdvisoryEvent() *AdvisoryEvent

func (*CreateAdvisoryEventRequest) GetParentId added in v0.1.35

func (x *CreateAdvisoryEventRequest) GetParentId() string

func (*CreateAdvisoryEventRequest) ProtoMessage

func (*CreateAdvisoryEventRequest) ProtoMessage()

func (*CreateAdvisoryEventRequest) ProtoReflect

func (*CreateAdvisoryEventRequest) Reset

func (x *CreateAdvisoryEventRequest) Reset()

func (*CreateAdvisoryEventRequest) String

func (x *CreateAdvisoryEventRequest) String() string

type CreateAdvisoryRequest added in v0.1.35

type CreateAdvisoryRequest struct {

	// parent_id is the IAM scope identifier, parent under which to create this
	// advisory.
	ParentId string `protobuf:"bytes,1,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	// The advisory being created.
	Advisory *Advisory `protobuf:"bytes,2,opt,name=advisory,proto3" json:"advisory,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateAdvisoryRequest) Descriptor deprecated added in v0.1.35

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

Deprecated: Use CreateAdvisoryRequest.ProtoReflect.Descriptor instead.

func (*CreateAdvisoryRequest) GetAdvisory added in v0.1.35

func (x *CreateAdvisoryRequest) GetAdvisory() *Advisory

func (*CreateAdvisoryRequest) GetParentId added in v0.1.35

func (x *CreateAdvisoryRequest) GetParentId() string

func (*CreateAdvisoryRequest) ProtoMessage added in v0.1.35

func (*CreateAdvisoryRequest) ProtoMessage()

func (*CreateAdvisoryRequest) ProtoReflect added in v0.1.35

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

func (*CreateAdvisoryRequest) Reset added in v0.1.35

func (x *CreateAdvisoryRequest) Reset()

func (*CreateAdvisoryRequest) String added in v0.1.35

func (x *CreateAdvisoryRequest) String() string

type DeleteAdvisoryRequest

type DeleteAdvisoryRequest struct {

	// id is the exact UIDP of the advisory to delete.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteAdvisoryRequest) Descriptor deprecated

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

Deprecated: Use DeleteAdvisoryRequest.ProtoReflect.Descriptor instead.

func (*DeleteAdvisoryRequest) GetId

func (x *DeleteAdvisoryRequest) GetId() string

func (*DeleteAdvisoryRequest) ProtoMessage

func (*DeleteAdvisoryRequest) ProtoMessage()

func (*DeleteAdvisoryRequest) ProtoReflect

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

func (*DeleteAdvisoryRequest) Reset

func (x *DeleteAdvisoryRequest) Reset()

func (*DeleteAdvisoryRequest) String

func (x *DeleteAdvisoryRequest) String() string

type EventTypeFilter added in v0.1.37

type EventTypeFilter int32

EventTypeFilter represents the event types that can be used for filtering These map to the event type values used in the system

const (
	// Default/unspecified
	EventTypeFilter_EVENT_TYPE_FILTER_UNSPECIFIED EventTypeFilter = 0
	// Detection event
	EventTypeFilter_EVENT_TYPE_FILTER_DETECTION EventTypeFilter = 1
	// True positive determination
	EventTypeFilter_EVENT_TYPE_FILTER_TRUE_POSITIVE_DETERMINATION EventTypeFilter = 2
	// Fixed event
	EventTypeFilter_EVENT_TYPE_FILTER_FIXED EventTypeFilter = 3
	// False positive determination
	EventTypeFilter_EVENT_TYPE_FILTER_FALSE_POSITIVE_DETERMINATION EventTypeFilter = 4
	// Analysis not planned
	EventTypeFilter_EVENT_TYPE_FILTER_ANALYSIS_NOT_PLANNED EventTypeFilter = 5
	// Fix not planned
	EventTypeFilter_EVENT_TYPE_FILTER_FIX_NOT_PLANNED EventTypeFilter = 6
	// Pending upstream fix
	EventTypeFilter_EVENT_TYPE_FILTER_PENDING_UPSTREAM_FIX EventTypeFilter = 7
	// Patched event
	EventTypeFilter_EVENT_TYPE_FILTER_PATCHED EventTypeFilter = 8
)

func (EventTypeFilter) Descriptor added in v0.1.37

func (EventTypeFilter) Enum added in v0.1.37

func (x EventTypeFilter) Enum() *EventTypeFilter

func (EventTypeFilter) EnumDescriptor deprecated added in v0.1.37

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

Deprecated: Use EventTypeFilter.Descriptor instead.

func (EventTypeFilter) Number added in v0.1.37

func (EventTypeFilter) String added in v0.1.37

func (x EventTypeFilter) String() string

func (EventTypeFilter) Type added in v0.1.37

type OrderBy added in v0.1.37

type OrderBy int32

OrderBy specifies the sort order for advisory list results

const (
	// Default sort order
	OrderBy_ORDER_BY_UNSPECIFIED OrderBy = 0
	// Sort by ID in ascending order
	OrderBy_ID_ASC OrderBy = 1
	// Sort by ID in descending order
	OrderBy_ID_DESC OrderBy = 2
	// Sort by creation time in ascending order (oldest first)
	OrderBy_CREATED_AT_ASC OrderBy = 3
	// Sort by creation time in descending order (newest first)
	OrderBy_CREATED_AT_DESC OrderBy = 4
	// Sort by aliases to group related advisories in ascending order
	OrderBy_ALIASES_ASC OrderBy = 5
	// Sort by aliases to group related advisories in descending order
	OrderBy_ALIASES_DESC OrderBy = 6
	// Sort by delete time in ascending order (oldest first)
	OrderBy_UPDATED_AT_ASC OrderBy = 7
	// Sort by update time in descending order (newest first)
	OrderBy_UPDATED_AT_DESC OrderBy = 8
	// Sort by delete time in ascending order (oldest first)
	OrderBy_DELETED_AT_ASC OrderBy = 9
	// Sort by delete time in descending order (newest first)
	OrderBy_DELETED_AT_DESC OrderBy = 10
)

func (OrderBy) Descriptor added in v0.1.37

func (OrderBy) Descriptor() protoreflect.EnumDescriptor

func (OrderBy) Enum added in v0.1.37

func (x OrderBy) Enum() *OrderBy

func (OrderBy) EnumDescriptor deprecated added in v0.1.37

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

Deprecated: Use OrderBy.Descriptor instead.

func (OrderBy) Number added in v0.1.37

func (x OrderBy) Number() protoreflect.EnumNumber

func (OrderBy) String added in v0.1.37

func (x OrderBy) String() string

func (OrderBy) Type added in v0.1.37

func (OrderBy) Type() protoreflect.EnumType

type ReviewStatus added in v0.1.35

type ReviewStatus int32

ReviewStatus represents the possible states of review for an advisory event

const (
	ReviewStatus_UNKNOWN         ReviewStatus = 0
	ReviewStatus_PENDING         ReviewStatus = 1
	ReviewStatus_APPROVED        ReviewStatus = 2
	ReviewStatus_REQUEST_CHANGES ReviewStatus = 3
	ReviewStatus_REJECTED        ReviewStatus = 4
)

func (ReviewStatus) Descriptor added in v0.1.35

func (ReviewStatus) Enum added in v0.1.35

func (x ReviewStatus) Enum() *ReviewStatus

func (ReviewStatus) EnumDescriptor deprecated added in v0.1.35

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

Deprecated: Use ReviewStatus.Descriptor instead.

func (ReviewStatus) Number added in v0.1.35

func (ReviewStatus) String added in v0.1.35

func (x ReviewStatus) String() string

func (ReviewStatus) Type added in v0.1.35

type UnimplementedAdvisoriesServer

type UnimplementedAdvisoriesServer struct{}

UnimplementedAdvisoriesServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAdvisoriesServer) Create

func (UnimplementedAdvisoriesServer) CreateAdvisoryEvent

func (UnimplementedAdvisoriesServer) Delete

func (UnimplementedAdvisoriesServer) List

func (UnimplementedAdvisoriesServer) ListAdvisoryEvents

func (UnimplementedAdvisoriesServer) Update

func (UnimplementedAdvisoriesServer) UpdateAdvisoryEvent added in v0.1.42

type UnsafeAdvisoriesServer

type UnsafeAdvisoriesServer interface {
	// contains filtered or unexported methods
}

UnsafeAdvisoriesServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdvisoriesServer will result in compilation errors.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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