Documentation ¶
Index ¶
- Variables
- func RegisterGrafeasV1Beta1Server(s *grpc.Server, srv GrafeasV1Beta1Server)
- type BatchCreateNotesRequest
- func (*BatchCreateNotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchCreateNotesRequest) GetNotes() map[string]*Note
- func (x *BatchCreateNotesRequest) GetParent() string
- func (*BatchCreateNotesRequest) ProtoMessage()
- func (x *BatchCreateNotesRequest) ProtoReflect() protoreflect.Message
- func (x *BatchCreateNotesRequest) Reset()
- func (x *BatchCreateNotesRequest) String() string
- type BatchCreateNotesResponse
- func (*BatchCreateNotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchCreateNotesResponse) GetNotes() []*Note
- func (*BatchCreateNotesResponse) ProtoMessage()
- func (x *BatchCreateNotesResponse) ProtoReflect() protoreflect.Message
- func (x *BatchCreateNotesResponse) Reset()
- func (x *BatchCreateNotesResponse) String() string
- type BatchCreateOccurrencesRequest
- func (*BatchCreateOccurrencesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchCreateOccurrencesRequest) GetOccurrences() []*Occurrence
- func (x *BatchCreateOccurrencesRequest) GetParent() string
- func (*BatchCreateOccurrencesRequest) ProtoMessage()
- func (x *BatchCreateOccurrencesRequest) ProtoReflect() protoreflect.Message
- func (x *BatchCreateOccurrencesRequest) Reset()
- func (x *BatchCreateOccurrencesRequest) String() string
- type BatchCreateOccurrencesResponse
- func (*BatchCreateOccurrencesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BatchCreateOccurrencesResponse) GetOccurrences() []*Occurrence
- func (*BatchCreateOccurrencesResponse) ProtoMessage()
- func (x *BatchCreateOccurrencesResponse) ProtoReflect() protoreflect.Message
- func (x *BatchCreateOccurrencesResponse) Reset()
- func (x *BatchCreateOccurrencesResponse) String() string
- type CreateNoteRequest
- func (*CreateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteRequest) GetNote() *Note
- func (x *CreateNoteRequest) GetNoteId() string
- func (x *CreateNoteRequest) GetParent() string
- func (*CreateNoteRequest) ProtoMessage()
- func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNoteRequest) Reset()
- func (x *CreateNoteRequest) String() string
- type CreateOccurrenceRequest
- func (*CreateOccurrenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOccurrenceRequest) GetOccurrence() *Occurrence
- func (x *CreateOccurrenceRequest) GetParent() string
- func (*CreateOccurrenceRequest) ProtoMessage()
- func (x *CreateOccurrenceRequest) ProtoReflect() protoreflect.Message
- func (x *CreateOccurrenceRequest) Reset()
- func (x *CreateOccurrenceRequest) String() string
- type DeleteNoteRequest
- type DeleteOccurrenceRequest
- func (*DeleteOccurrenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteOccurrenceRequest) GetName() string
- func (*DeleteOccurrenceRequest) ProtoMessage()
- func (x *DeleteOccurrenceRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteOccurrenceRequest) Reset()
- func (x *DeleteOccurrenceRequest) String() string
- type GetNoteRequest
- type GetOccurrenceNoteRequest
- func (*GetOccurrenceNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOccurrenceNoteRequest) GetName() string
- func (*GetOccurrenceNoteRequest) ProtoMessage()
- func (x *GetOccurrenceNoteRequest) ProtoReflect() protoreflect.Message
- func (x *GetOccurrenceNoteRequest) Reset()
- func (x *GetOccurrenceNoteRequest) String() string
- type GetOccurrenceRequest
- func (*GetOccurrenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOccurrenceRequest) GetName() string
- func (*GetOccurrenceRequest) ProtoMessage()
- func (x *GetOccurrenceRequest) ProtoReflect() protoreflect.Message
- func (x *GetOccurrenceRequest) Reset()
- func (x *GetOccurrenceRequest) String() string
- type GetVulnerabilityOccurrencesSummaryRequest
- func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVulnerabilityOccurrencesSummaryRequest) GetFilter() string
- func (x *GetVulnerabilityOccurrencesSummaryRequest) GetParent() string
- func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage()
- func (x *GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect() protoreflect.Message
- func (x *GetVulnerabilityOccurrencesSummaryRequest) Reset()
- func (x *GetVulnerabilityOccurrencesSummaryRequest) String() string
- type GrafeasV1Beta1Client
- type GrafeasV1Beta1Server
- type ListNoteOccurrencesRequest
- func (*ListNoteOccurrencesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNoteOccurrencesRequest) GetFilter() string
- func (x *ListNoteOccurrencesRequest) GetName() string
- func (x *ListNoteOccurrencesRequest) GetPageSize() int32
- func (x *ListNoteOccurrencesRequest) GetPageToken() string
- func (*ListNoteOccurrencesRequest) ProtoMessage()
- func (x *ListNoteOccurrencesRequest) ProtoReflect() protoreflect.Message
- func (x *ListNoteOccurrencesRequest) Reset()
- func (x *ListNoteOccurrencesRequest) String() string
- type ListNoteOccurrencesResponse
- func (*ListNoteOccurrencesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNoteOccurrencesResponse) GetNextPageToken() string
- func (x *ListNoteOccurrencesResponse) GetOccurrences() []*Occurrence
- func (*ListNoteOccurrencesResponse) ProtoMessage()
- func (x *ListNoteOccurrencesResponse) ProtoReflect() protoreflect.Message
- func (x *ListNoteOccurrencesResponse) Reset()
- func (x *ListNoteOccurrencesResponse) String() string
- type ListNotesRequest
- func (*ListNotesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotesRequest) GetFilter() string
- func (x *ListNotesRequest) GetPageSize() int32
- func (x *ListNotesRequest) GetPageToken() string
- func (x *ListNotesRequest) GetParent() string
- func (*ListNotesRequest) ProtoMessage()
- func (x *ListNotesRequest) ProtoReflect() protoreflect.Message
- func (x *ListNotesRequest) Reset()
- func (x *ListNotesRequest) String() string
- type ListNotesResponse
- func (*ListNotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListNotesResponse) GetNextPageToken() string
- func (x *ListNotesResponse) GetNotes() []*Note
- func (*ListNotesResponse) ProtoMessage()
- func (x *ListNotesResponse) ProtoReflect() protoreflect.Message
- func (x *ListNotesResponse) Reset()
- func (x *ListNotesResponse) String() string
- type ListOccurrencesRequest
- func (*ListOccurrencesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListOccurrencesRequest) GetFilter() string
- func (x *ListOccurrencesRequest) GetPageSize() int32
- func (x *ListOccurrencesRequest) GetPageToken() string
- func (x *ListOccurrencesRequest) GetParent() string
- func (*ListOccurrencesRequest) ProtoMessage()
- func (x *ListOccurrencesRequest) ProtoReflect() protoreflect.Message
- func (x *ListOccurrencesRequest) Reset()
- func (x *ListOccurrencesRequest) String() string
- type ListOccurrencesResponse
- func (*ListOccurrencesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListOccurrencesResponse) GetNextPageToken() string
- func (x *ListOccurrencesResponse) GetOccurrences() []*Occurrence
- func (*ListOccurrencesResponse) ProtoMessage()
- func (x *ListOccurrencesResponse) ProtoReflect() protoreflect.Message
- func (x *ListOccurrencesResponse) Reset()
- func (x *ListOccurrencesResponse) String() string
- type Note
- func (*Note) Descriptor() ([]byte, []int)deprecated
- func (x *Note) GetAttestationAuthority() *attestation.Authority
- func (x *Note) GetBaseImage() *image.Basis
- func (x *Note) GetBuild() *build.Build
- func (x *Note) GetCreateTime() *timestamppb.Timestamp
- func (x *Note) GetDeployable() *deployment.Deployable
- func (x *Note) GetDiscovery() *discovery.Discovery
- func (x *Note) GetExpirationTime() *timestamppb.Timestamp
- func (x *Note) GetKind() common.NoteKind
- func (x *Note) GetLongDescription() string
- func (x *Note) GetName() string
- func (x *Note) GetPackage() *_package.Package
- func (x *Note) GetRelatedNoteNames() []string
- func (x *Note) GetRelatedUrl() []*common.RelatedUrl
- func (x *Note) GetShortDescription() string
- func (m *Note) GetType() isNote_Type
- func (x *Note) GetUpdateTime() *timestamppb.Timestamp
- func (x *Note) GetVulnerability() *vulnerability.Vulnerability
- func (*Note) ProtoMessage()
- func (x *Note) ProtoReflect() protoreflect.Message
- func (x *Note) Reset()
- func (x *Note) String() string
- type Note_AttestationAuthority
- type Note_BaseImage
- type Note_Build
- type Note_Deployable
- type Note_Discovery
- type Note_Package
- type Note_Vulnerability
- type Occurrence
- func (*Occurrence) Descriptor() ([]byte, []int)deprecated
- func (x *Occurrence) GetAttestation() *attestation.Details
- func (x *Occurrence) GetBuild() *build.Details
- func (x *Occurrence) GetCreateTime() *timestamppb.Timestamp
- func (x *Occurrence) GetDeployment() *deployment.Details
- func (x *Occurrence) GetDerivedImage() *image.Details
- func (m *Occurrence) GetDetails() isOccurrence_Details
- func (x *Occurrence) GetDiscovered() *discovery.Details
- func (x *Occurrence) GetInstallation() *_package.Details
- func (x *Occurrence) GetKind() common.NoteKind
- func (x *Occurrence) GetName() string
- func (x *Occurrence) GetNoteName() string
- func (x *Occurrence) GetRemediation() string
- func (x *Occurrence) GetResource() *Resource
- func (x *Occurrence) GetUpdateTime() *timestamppb.Timestamp
- func (x *Occurrence) GetVulnerability() *vulnerability.Details
- func (*Occurrence) ProtoMessage()
- func (x *Occurrence) ProtoReflect() protoreflect.Message
- func (x *Occurrence) Reset()
- func (x *Occurrence) String() string
- type Occurrence_Attestation
- type Occurrence_Build
- type Occurrence_Deployment
- type Occurrence_DerivedImage
- type Occurrence_Discovered
- type Occurrence_Installation
- type Occurrence_Vulnerability
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)deprecated
- func (x *Resource) GetContentHash() *provenance.Hash
- func (x *Resource) GetName() string
- func (x *Resource) GetUri() string
- func (*Resource) ProtoMessage()
- func (x *Resource) ProtoReflect() protoreflect.Message
- func (x *Resource) Reset()
- func (x *Resource) String() string
- type UnimplementedGrafeasV1Beta1Server
- func (*UnimplementedGrafeasV1Beta1Server) BatchCreateNotes(context.Context, *BatchCreateNotesRequest) (*BatchCreateNotesResponse, error)
- func (*UnimplementedGrafeasV1Beta1Server) BatchCreateOccurrences(context.Context, *BatchCreateOccurrencesRequest) (*BatchCreateOccurrencesResponse, error)
- func (*UnimplementedGrafeasV1Beta1Server) CreateNote(context.Context, *CreateNoteRequest) (*Note, error)
- func (*UnimplementedGrafeasV1Beta1Server) CreateOccurrence(context.Context, *CreateOccurrenceRequest) (*Occurrence, error)
- func (*UnimplementedGrafeasV1Beta1Server) DeleteNote(context.Context, *DeleteNoteRequest) (*emptypb.Empty, error)
- func (*UnimplementedGrafeasV1Beta1Server) DeleteOccurrence(context.Context, *DeleteOccurrenceRequest) (*emptypb.Empty, error)
- func (*UnimplementedGrafeasV1Beta1Server) GetNote(context.Context, *GetNoteRequest) (*Note, error)
- func (*UnimplementedGrafeasV1Beta1Server) GetOccurrence(context.Context, *GetOccurrenceRequest) (*Occurrence, error)
- func (*UnimplementedGrafeasV1Beta1Server) GetOccurrenceNote(context.Context, *GetOccurrenceNoteRequest) (*Note, error)
- func (*UnimplementedGrafeasV1Beta1Server) GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error)
- func (*UnimplementedGrafeasV1Beta1Server) ListNoteOccurrences(context.Context, *ListNoteOccurrencesRequest) (*ListNoteOccurrencesResponse, error)
- func (*UnimplementedGrafeasV1Beta1Server) ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error)
- func (*UnimplementedGrafeasV1Beta1Server) ListOccurrences(context.Context, *ListOccurrencesRequest) (*ListOccurrencesResponse, error)
- func (*UnimplementedGrafeasV1Beta1Server) UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error)
- func (*UnimplementedGrafeasV1Beta1Server) UpdateOccurrence(context.Context, *UpdateOccurrenceRequest) (*Occurrence, error)
- type UpdateNoteRequest
- func (*UpdateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNoteRequest) GetName() string
- func (x *UpdateNoteRequest) GetNote() *Note
- func (x *UpdateNoteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateNoteRequest) ProtoMessage()
- func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteRequest) Reset()
- func (x *UpdateNoteRequest) String() string
- type UpdateOccurrenceRequest
- func (*UpdateOccurrenceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateOccurrenceRequest) GetName() string
- func (x *UpdateOccurrenceRequest) GetOccurrence() *Occurrence
- func (x *UpdateOccurrenceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateOccurrenceRequest) ProtoMessage()
- func (x *UpdateOccurrenceRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateOccurrenceRequest) Reset()
- func (x *UpdateOccurrenceRequest) String() string
- type VulnerabilityOccurrencesSummary
- func (*VulnerabilityOccurrencesSummary) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityOccurrencesSummary) GetCounts() []*VulnerabilityOccurrencesSummary_FixableTotalByDigest
- func (*VulnerabilityOccurrencesSummary) ProtoMessage()
- func (x *VulnerabilityOccurrencesSummary) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityOccurrencesSummary) Reset()
- func (x *VulnerabilityOccurrencesSummary) String() string
- type VulnerabilityOccurrencesSummary_FixableTotalByDigest
- func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor() ([]byte, []int)deprecated
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount() int64
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResource() *Resource
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity() vulnerability.Severity
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount() int64
- func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage()
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect() protoreflect.Message
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset()
- func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_google_devtools_containeranalysis_v1beta1_grafeas_grafeas_proto protoreflect.FileDescriptor
Functions ¶
func RegisterGrafeasV1Beta1Server ¶
func RegisterGrafeasV1Beta1Server(s *grpc.Server, srv GrafeasV1Beta1Server)
Types ¶
type BatchCreateNotesRequest ¶
type BatchCreateNotesRequest struct { // The name of the project in the form of `projects/[PROJECT_ID]`, under which // the notes are to be created. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The notes to create. Notes map[string]*Note `` /* 151-byte string literal not displayed */ // contains filtered or unexported fields }
Request to create notes in batch.
func (*BatchCreateNotesRequest) Descriptor
deprecated
func (*BatchCreateNotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateNotesRequest.ProtoReflect.Descriptor instead.
func (*BatchCreateNotesRequest) GetNotes ¶
func (x *BatchCreateNotesRequest) GetNotes() map[string]*Note
func (*BatchCreateNotesRequest) GetParent ¶
func (x *BatchCreateNotesRequest) GetParent() string
func (*BatchCreateNotesRequest) ProtoMessage ¶
func (*BatchCreateNotesRequest) ProtoMessage()
func (*BatchCreateNotesRequest) ProtoReflect ¶
func (x *BatchCreateNotesRequest) ProtoReflect() protoreflect.Message
func (*BatchCreateNotesRequest) Reset ¶
func (x *BatchCreateNotesRequest) Reset()
func (*BatchCreateNotesRequest) String ¶
func (x *BatchCreateNotesRequest) String() string
type BatchCreateNotesResponse ¶
type BatchCreateNotesResponse struct { // The notes that were created. Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` // contains filtered or unexported fields }
Response for creating notes in batch.
func (*BatchCreateNotesResponse) Descriptor
deprecated
func (*BatchCreateNotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateNotesResponse.ProtoReflect.Descriptor instead.
func (*BatchCreateNotesResponse) GetNotes ¶
func (x *BatchCreateNotesResponse) GetNotes() []*Note
func (*BatchCreateNotesResponse) ProtoMessage ¶
func (*BatchCreateNotesResponse) ProtoMessage()
func (*BatchCreateNotesResponse) ProtoReflect ¶
func (x *BatchCreateNotesResponse) ProtoReflect() protoreflect.Message
func (*BatchCreateNotesResponse) Reset ¶
func (x *BatchCreateNotesResponse) Reset()
func (*BatchCreateNotesResponse) String ¶
func (x *BatchCreateNotesResponse) String() string
type BatchCreateOccurrencesRequest ¶
type BatchCreateOccurrencesRequest struct { // The name of the project in the form of `projects/[PROJECT_ID]`, under which // the occurrences are to be created. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The occurrences to create. Occurrences []*Occurrence `protobuf:"bytes,2,rep,name=occurrences,proto3" json:"occurrences,omitempty"` // contains filtered or unexported fields }
Request to create occurrences in batch.
func (*BatchCreateOccurrencesRequest) Descriptor
deprecated
func (*BatchCreateOccurrencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateOccurrencesRequest.ProtoReflect.Descriptor instead.
func (*BatchCreateOccurrencesRequest) GetOccurrences ¶
func (x *BatchCreateOccurrencesRequest) GetOccurrences() []*Occurrence
func (*BatchCreateOccurrencesRequest) GetParent ¶
func (x *BatchCreateOccurrencesRequest) GetParent() string
func (*BatchCreateOccurrencesRequest) ProtoMessage ¶
func (*BatchCreateOccurrencesRequest) ProtoMessage()
func (*BatchCreateOccurrencesRequest) ProtoReflect ¶
func (x *BatchCreateOccurrencesRequest) ProtoReflect() protoreflect.Message
func (*BatchCreateOccurrencesRequest) Reset ¶
func (x *BatchCreateOccurrencesRequest) Reset()
func (*BatchCreateOccurrencesRequest) String ¶
func (x *BatchCreateOccurrencesRequest) String() string
type BatchCreateOccurrencesResponse ¶
type BatchCreateOccurrencesResponse struct { // The occurrences that were created. Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"` // contains filtered or unexported fields }
Response for creating occurrences in batch.
func (*BatchCreateOccurrencesResponse) Descriptor
deprecated
func (*BatchCreateOccurrencesResponse) Descriptor() ([]byte, []int)
Deprecated: Use BatchCreateOccurrencesResponse.ProtoReflect.Descriptor instead.
func (*BatchCreateOccurrencesResponse) GetOccurrences ¶
func (x *BatchCreateOccurrencesResponse) GetOccurrences() []*Occurrence
func (*BatchCreateOccurrencesResponse) ProtoMessage ¶
func (*BatchCreateOccurrencesResponse) ProtoMessage()
func (*BatchCreateOccurrencesResponse) ProtoReflect ¶
func (x *BatchCreateOccurrencesResponse) ProtoReflect() protoreflect.Message
func (*BatchCreateOccurrencesResponse) Reset ¶
func (x *BatchCreateOccurrencesResponse) Reset()
func (*BatchCreateOccurrencesResponse) String ¶
func (x *BatchCreateOccurrencesResponse) String() string
type CreateNoteRequest ¶
type CreateNoteRequest struct { // The name of the project in the form of `projects/[PROJECT_ID]`, under which // the note is to be created. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The ID to use for this note. NoteId string `protobuf:"bytes,2,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` // The note to create. Note *Note `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
Request to create a new note.
func (*CreateNoteRequest) Descriptor
deprecated
func (*CreateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.
func (*CreateNoteRequest) GetNote ¶
func (x *CreateNoteRequest) GetNote() *Note
func (*CreateNoteRequest) GetNoteId ¶
func (x *CreateNoteRequest) GetNoteId() string
func (*CreateNoteRequest) GetParent ¶
func (x *CreateNoteRequest) GetParent() string
func (*CreateNoteRequest) ProtoMessage ¶
func (*CreateNoteRequest) ProtoMessage()
func (*CreateNoteRequest) ProtoReflect ¶
func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
func (*CreateNoteRequest) Reset ¶
func (x *CreateNoteRequest) Reset()
func (*CreateNoteRequest) String ¶
func (x *CreateNoteRequest) String() string
type CreateOccurrenceRequest ¶
type CreateOccurrenceRequest struct { // The name of the project in the form of `projects/[PROJECT_ID]`, under which // the occurrence is to be created. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The occurrence to create. Occurrence *Occurrence `protobuf:"bytes,2,opt,name=occurrence,proto3" json:"occurrence,omitempty"` // contains filtered or unexported fields }
Request to create a new occurrence.
func (*CreateOccurrenceRequest) Descriptor
deprecated
func (*CreateOccurrenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateOccurrenceRequest.ProtoReflect.Descriptor instead.
func (*CreateOccurrenceRequest) GetOccurrence ¶
func (x *CreateOccurrenceRequest) GetOccurrence() *Occurrence
func (*CreateOccurrenceRequest) GetParent ¶
func (x *CreateOccurrenceRequest) GetParent() string
func (*CreateOccurrenceRequest) ProtoMessage ¶
func (*CreateOccurrenceRequest) ProtoMessage()
func (*CreateOccurrenceRequest) ProtoReflect ¶
func (x *CreateOccurrenceRequest) ProtoReflect() protoreflect.Message
func (*CreateOccurrenceRequest) Reset ¶
func (x *CreateOccurrenceRequest) Reset()
func (*CreateOccurrenceRequest) String ¶
func (x *CreateOccurrenceRequest) String() string
type DeleteNoteRequest ¶
type DeleteNoteRequest struct { // The name of the note in the form of // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request to delete a note.
func (*DeleteNoteRequest) Descriptor
deprecated
func (*DeleteNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteNoteRequest) GetName ¶
func (x *DeleteNoteRequest) GetName() string
func (*DeleteNoteRequest) ProtoMessage ¶
func (*DeleteNoteRequest) ProtoMessage()
func (*DeleteNoteRequest) ProtoReflect ¶
func (x *DeleteNoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteNoteRequest) Reset ¶
func (x *DeleteNoteRequest) Reset()
func (*DeleteNoteRequest) String ¶
func (x *DeleteNoteRequest) String() string
type DeleteOccurrenceRequest ¶
type DeleteOccurrenceRequest struct { // The name of the occurrence in the form of // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request to delete a occurrence.
func (*DeleteOccurrenceRequest) Descriptor
deprecated
func (*DeleteOccurrenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteOccurrenceRequest.ProtoReflect.Descriptor instead.
func (*DeleteOccurrenceRequest) GetName ¶
func (x *DeleteOccurrenceRequest) GetName() string
func (*DeleteOccurrenceRequest) ProtoMessage ¶
func (*DeleteOccurrenceRequest) ProtoMessage()
func (*DeleteOccurrenceRequest) ProtoReflect ¶
func (x *DeleteOccurrenceRequest) ProtoReflect() protoreflect.Message
func (*DeleteOccurrenceRequest) Reset ¶
func (x *DeleteOccurrenceRequest) Reset()
func (*DeleteOccurrenceRequest) String ¶
func (x *DeleteOccurrenceRequest) String() string
type GetNoteRequest ¶
type GetNoteRequest struct { // The name of the note in the form of // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request to get a note.
func (*GetNoteRequest) Descriptor
deprecated
func (*GetNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteRequest.ProtoReflect.Descriptor instead.
func (*GetNoteRequest) GetName ¶
func (x *GetNoteRequest) GetName() string
func (*GetNoteRequest) ProtoMessage ¶
func (*GetNoteRequest) ProtoMessage()
func (*GetNoteRequest) ProtoReflect ¶
func (x *GetNoteRequest) ProtoReflect() protoreflect.Message
func (*GetNoteRequest) Reset ¶
func (x *GetNoteRequest) Reset()
func (*GetNoteRequest) String ¶
func (x *GetNoteRequest) String() string
type GetOccurrenceNoteRequest ¶
type GetOccurrenceNoteRequest struct { // The name of the occurrence in the form of // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request to get the note to which the specified occurrence is attached.
func (*GetOccurrenceNoteRequest) Descriptor
deprecated
func (*GetOccurrenceNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOccurrenceNoteRequest.ProtoReflect.Descriptor instead.
func (*GetOccurrenceNoteRequest) GetName ¶
func (x *GetOccurrenceNoteRequest) GetName() string
func (*GetOccurrenceNoteRequest) ProtoMessage ¶
func (*GetOccurrenceNoteRequest) ProtoMessage()
func (*GetOccurrenceNoteRequest) ProtoReflect ¶
func (x *GetOccurrenceNoteRequest) ProtoReflect() protoreflect.Message
func (*GetOccurrenceNoteRequest) Reset ¶
func (x *GetOccurrenceNoteRequest) Reset()
func (*GetOccurrenceNoteRequest) String ¶
func (x *GetOccurrenceNoteRequest) String() string
type GetOccurrenceRequest ¶
type GetOccurrenceRequest struct { // The name of the occurrence in the form of // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
Request to get an occurrence.
func (*GetOccurrenceRequest) Descriptor
deprecated
func (*GetOccurrenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOccurrenceRequest.ProtoReflect.Descriptor instead.
func (*GetOccurrenceRequest) GetName ¶
func (x *GetOccurrenceRequest) GetName() string
func (*GetOccurrenceRequest) ProtoMessage ¶
func (*GetOccurrenceRequest) ProtoMessage()
func (*GetOccurrenceRequest) ProtoReflect ¶
func (x *GetOccurrenceRequest) ProtoReflect() protoreflect.Message
func (*GetOccurrenceRequest) Reset ¶
func (x *GetOccurrenceRequest) Reset()
func (*GetOccurrenceRequest) String ¶
func (x *GetOccurrenceRequest) String() string
type GetVulnerabilityOccurrencesSummaryRequest ¶
type GetVulnerabilityOccurrencesSummaryRequest struct { // The name of the project to get a vulnerability summary for in the form of // `projects/[PROJECT_ID]`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
Request to get a vulnerability summary for some set of occurrences.
func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor
deprecated
func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVulnerabilityOccurrencesSummaryRequest.ProtoReflect.Descriptor instead.
func (*GetVulnerabilityOccurrencesSummaryRequest) GetFilter ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) GetFilter() string
func (*GetVulnerabilityOccurrencesSummaryRequest) GetParent ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) GetParent() string
func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage ¶
func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage()
func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect() protoreflect.Message
func (*GetVulnerabilityOccurrencesSummaryRequest) Reset ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) Reset()
func (*GetVulnerabilityOccurrencesSummaryRequest) String ¶
func (x *GetVulnerabilityOccurrencesSummaryRequest) String() string
type GrafeasV1Beta1Client ¶
type GrafeasV1Beta1Client interface { // Gets the specified occurrence. GetOccurrence(ctx context.Context, in *GetOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) // Lists occurrences for the specified project. ListOccurrences(ctx context.Context, in *ListOccurrencesRequest, opts ...grpc.CallOption) (*ListOccurrencesResponse, error) // Deletes the specified occurrence. For example, use this method to delete an // occurrence when the occurrence is no longer applicable for the given // resource. DeleteOccurrence(ctx context.Context, in *DeleteOccurrenceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a new occurrence. CreateOccurrence(ctx context.Context, in *CreateOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) // Creates new occurrences in batch. BatchCreateOccurrences(ctx context.Context, in *BatchCreateOccurrencesRequest, opts ...grpc.CallOption) (*BatchCreateOccurrencesResponse, error) // Updates the specified occurrence. UpdateOccurrence(ctx context.Context, in *UpdateOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) // Gets the note attached to the specified occurrence. Consumer projects can // use this method to get a note that belongs to a provider project. GetOccurrenceNote(ctx context.Context, in *GetOccurrenceNoteRequest, opts ...grpc.CallOption) (*Note, error) // Gets the specified note. GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*Note, error) // Lists notes for the specified project. ListNotes(ctx context.Context, in *ListNotesRequest, opts ...grpc.CallOption) (*ListNotesResponse, error) // Deletes the specified note. DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Creates a new note. CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*Note, error) // Creates new notes in batch. BatchCreateNotes(ctx context.Context, in *BatchCreateNotesRequest, opts ...grpc.CallOption) (*BatchCreateNotesResponse, error) // Updates the specified note. UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*Note, error) // Lists occurrences referencing the specified note. Provider projects can use // this method to get all occurrences across consumer projects referencing the // specified note. ListNoteOccurrences(ctx context.Context, in *ListNoteOccurrencesRequest, opts ...grpc.CallOption) (*ListNoteOccurrencesResponse, error) // Gets a summary of the number and severity of occurrences. GetVulnerabilityOccurrencesSummary(ctx context.Context, in *GetVulnerabilityOccurrencesSummaryRequest, opts ...grpc.CallOption) (*VulnerabilityOccurrencesSummary, error) }
GrafeasV1Beta1Client is the client API for GrafeasV1Beta1 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewGrafeasV1Beta1Client ¶
func NewGrafeasV1Beta1Client(cc grpc.ClientConnInterface) GrafeasV1Beta1Client
type GrafeasV1Beta1Server ¶
type GrafeasV1Beta1Server interface { // Gets the specified occurrence. GetOccurrence(context.Context, *GetOccurrenceRequest) (*Occurrence, error) // Lists occurrences for the specified project. ListOccurrences(context.Context, *ListOccurrencesRequest) (*ListOccurrencesResponse, error) // Deletes the specified occurrence. For example, use this method to delete an // occurrence when the occurrence is no longer applicable for the given // resource. DeleteOccurrence(context.Context, *DeleteOccurrenceRequest) (*emptypb.Empty, error) // Creates a new occurrence. CreateOccurrence(context.Context, *CreateOccurrenceRequest) (*Occurrence, error) // Creates new occurrences in batch. BatchCreateOccurrences(context.Context, *BatchCreateOccurrencesRequest) (*BatchCreateOccurrencesResponse, error) // Updates the specified occurrence. UpdateOccurrence(context.Context, *UpdateOccurrenceRequest) (*Occurrence, error) // Gets the note attached to the specified occurrence. Consumer projects can // use this method to get a note that belongs to a provider project. GetOccurrenceNote(context.Context, *GetOccurrenceNoteRequest) (*Note, error) // Gets the specified note. GetNote(context.Context, *GetNoteRequest) (*Note, error) // Lists notes for the specified project. ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error) // Deletes the specified note. DeleteNote(context.Context, *DeleteNoteRequest) (*emptypb.Empty, error) // Creates a new note. CreateNote(context.Context, *CreateNoteRequest) (*Note, error) // Creates new notes in batch. BatchCreateNotes(context.Context, *BatchCreateNotesRequest) (*BatchCreateNotesResponse, error) // Updates the specified note. UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error) // Lists occurrences referencing the specified note. Provider projects can use // this method to get all occurrences across consumer projects referencing the // specified note. ListNoteOccurrences(context.Context, *ListNoteOccurrencesRequest) (*ListNoteOccurrencesResponse, error) // Gets a summary of the number and severity of occurrences. GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error) }
GrafeasV1Beta1Server is the server API for GrafeasV1Beta1 service.
type ListNoteOccurrencesRequest ¶
type ListNoteOccurrencesRequest struct { // The name of the note to list occurrences for in the form of // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Number of occurrences to return in the list. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Token to provide to skip to a particular spot in the list. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request to list occurrences for a note.
func (*ListNoteOccurrencesRequest) Descriptor
deprecated
func (*ListNoteOccurrencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNoteOccurrencesRequest.ProtoReflect.Descriptor instead.
func (*ListNoteOccurrencesRequest) GetFilter ¶
func (x *ListNoteOccurrencesRequest) GetFilter() string
func (*ListNoteOccurrencesRequest) GetName ¶
func (x *ListNoteOccurrencesRequest) GetName() string
func (*ListNoteOccurrencesRequest) GetPageSize ¶
func (x *ListNoteOccurrencesRequest) GetPageSize() int32
func (*ListNoteOccurrencesRequest) GetPageToken ¶
func (x *ListNoteOccurrencesRequest) GetPageToken() string
func (*ListNoteOccurrencesRequest) ProtoMessage ¶
func (*ListNoteOccurrencesRequest) ProtoMessage()
func (*ListNoteOccurrencesRequest) ProtoReflect ¶
func (x *ListNoteOccurrencesRequest) ProtoReflect() protoreflect.Message
func (*ListNoteOccurrencesRequest) Reset ¶
func (x *ListNoteOccurrencesRequest) Reset()
func (*ListNoteOccurrencesRequest) String ¶
func (x *ListNoteOccurrencesRequest) String() string
type ListNoteOccurrencesResponse ¶
type ListNoteOccurrencesResponse struct { // The occurrences attached to the specified note. Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"` // Token to provide to skip to a particular spot in the list. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for listing occurrences for a note.
func (*ListNoteOccurrencesResponse) Descriptor
deprecated
func (*ListNoteOccurrencesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNoteOccurrencesResponse.ProtoReflect.Descriptor instead.
func (*ListNoteOccurrencesResponse) GetNextPageToken ¶
func (x *ListNoteOccurrencesResponse) GetNextPageToken() string
func (*ListNoteOccurrencesResponse) GetOccurrences ¶
func (x *ListNoteOccurrencesResponse) GetOccurrences() []*Occurrence
func (*ListNoteOccurrencesResponse) ProtoMessage ¶
func (*ListNoteOccurrencesResponse) ProtoMessage()
func (*ListNoteOccurrencesResponse) ProtoReflect ¶
func (x *ListNoteOccurrencesResponse) ProtoReflect() protoreflect.Message
func (*ListNoteOccurrencesResponse) Reset ¶
func (x *ListNoteOccurrencesResponse) Reset()
func (*ListNoteOccurrencesResponse) String ¶
func (x *ListNoteOccurrencesResponse) String() string
type ListNotesRequest ¶
type ListNotesRequest struct { // The name of the project to list notes for in the form of // `projects/[PROJECT_ID]`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Number of notes to return in the list. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Token to provide to skip to a particular spot in the list. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request to list notes.
func (*ListNotesRequest) Descriptor
deprecated
func (*ListNotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListNotesRequest.ProtoReflect.Descriptor instead.
func (*ListNotesRequest) GetFilter ¶
func (x *ListNotesRequest) GetFilter() string
func (*ListNotesRequest) GetPageSize ¶
func (x *ListNotesRequest) GetPageSize() int32
func (*ListNotesRequest) GetPageToken ¶
func (x *ListNotesRequest) GetPageToken() string
func (*ListNotesRequest) GetParent ¶
func (x *ListNotesRequest) GetParent() string
func (*ListNotesRequest) ProtoMessage ¶
func (*ListNotesRequest) ProtoMessage()
func (*ListNotesRequest) ProtoReflect ¶
func (x *ListNotesRequest) ProtoReflect() protoreflect.Message
func (*ListNotesRequest) Reset ¶
func (x *ListNotesRequest) Reset()
func (*ListNotesRequest) String ¶
func (x *ListNotesRequest) String() string
type ListNotesResponse ¶
type ListNotesResponse struct { // The notes requested. Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` // The next pagination token in the list response. It should be used as // `page_token` for the following request. An empty value means no more // results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for listing notes.
func (*ListNotesResponse) Descriptor
deprecated
func (*ListNotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListNotesResponse.ProtoReflect.Descriptor instead.
func (*ListNotesResponse) GetNextPageToken ¶
func (x *ListNotesResponse) GetNextPageToken() string
func (*ListNotesResponse) GetNotes ¶
func (x *ListNotesResponse) GetNotes() []*Note
func (*ListNotesResponse) ProtoMessage ¶
func (*ListNotesResponse) ProtoMessage()
func (*ListNotesResponse) ProtoReflect ¶
func (x *ListNotesResponse) ProtoReflect() protoreflect.Message
func (*ListNotesResponse) Reset ¶
func (x *ListNotesResponse) Reset()
func (*ListNotesResponse) String ¶
func (x *ListNotesResponse) String() string
type ListOccurrencesRequest ¶
type ListOccurrencesRequest struct { // The name of the project to list occurrences for in the form of // `projects/[PROJECT_ID]`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // The filter expression. Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` // Number of occurrences to return in the list. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Token to provide to skip to a particular spot in the list. PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
Request to list occurrences.
func (*ListOccurrencesRequest) Descriptor
deprecated
func (*ListOccurrencesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListOccurrencesRequest.ProtoReflect.Descriptor instead.
func (*ListOccurrencesRequest) GetFilter ¶
func (x *ListOccurrencesRequest) GetFilter() string
func (*ListOccurrencesRequest) GetPageSize ¶
func (x *ListOccurrencesRequest) GetPageSize() int32
func (*ListOccurrencesRequest) GetPageToken ¶
func (x *ListOccurrencesRequest) GetPageToken() string
func (*ListOccurrencesRequest) GetParent ¶
func (x *ListOccurrencesRequest) GetParent() string
func (*ListOccurrencesRequest) ProtoMessage ¶
func (*ListOccurrencesRequest) ProtoMessage()
func (*ListOccurrencesRequest) ProtoReflect ¶
func (x *ListOccurrencesRequest) ProtoReflect() protoreflect.Message
func (*ListOccurrencesRequest) Reset ¶
func (x *ListOccurrencesRequest) Reset()
func (*ListOccurrencesRequest) String ¶
func (x *ListOccurrencesRequest) String() string
type ListOccurrencesResponse ¶
type ListOccurrencesResponse struct { // The occurrences requested. Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"` // The next pagination token in the list response. It should be used as // `page_token` for the following request. An empty value means no more // results. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
Response for listing occurrences.
func (*ListOccurrencesResponse) Descriptor
deprecated
func (*ListOccurrencesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListOccurrencesResponse.ProtoReflect.Descriptor instead.
func (*ListOccurrencesResponse) GetNextPageToken ¶
func (x *ListOccurrencesResponse) GetNextPageToken() string
func (*ListOccurrencesResponse) GetOccurrences ¶
func (x *ListOccurrencesResponse) GetOccurrences() []*Occurrence
func (*ListOccurrencesResponse) ProtoMessage ¶
func (*ListOccurrencesResponse) ProtoMessage()
func (*ListOccurrencesResponse) ProtoReflect ¶
func (x *ListOccurrencesResponse) ProtoReflect() protoreflect.Message
func (*ListOccurrencesResponse) Reset ¶
func (x *ListOccurrencesResponse) Reset()
func (*ListOccurrencesResponse) String ¶
func (x *ListOccurrencesResponse) String() string
type Note ¶
type Note struct { // Output only. The name of the note in the form of // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A one sentence description of this note. ShortDescription string `protobuf:"bytes,2,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` // A detailed description of this note. LongDescription string `protobuf:"bytes,3,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"` // Output only. The type of analysis. This field can be used as a filter in // list requests. Kind common.NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.NoteKind" json:"kind,omitempty"` // URLs associated with this note. RelatedUrl []*common.RelatedUrl `protobuf:"bytes,5,rep,name=related_url,json=relatedUrl,proto3" json:"related_url,omitempty"` // Time of expiration for this note. Empty if note does not expire. ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // Output only. The time this note was created. This field can be used as a // filter in list requests. CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time this note was last updated. This field can be used as // a filter in list requests. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Other notes related to this note. RelatedNoteNames []string `protobuf:"bytes,9,rep,name=related_note_names,json=relatedNoteNames,proto3" json:"related_note_names,omitempty"` // Required. Immutable. The type of analysis this note represents. // // Types that are assignable to Type: // *Note_Vulnerability // *Note_Build // *Note_BaseImage // *Note_Package // *Note_Deployable // *Note_Discovery // *Note_AttestationAuthority Type isNote_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
A type of analysis that can be done for a resource.
func (*Note) Descriptor
deprecated
func (*Note) GetAttestationAuthority ¶
func (x *Note) GetAttestationAuthority() *attestation.Authority
func (*Note) GetBaseImage ¶
func (*Note) GetCreateTime ¶
func (x *Note) GetCreateTime() *timestamppb.Timestamp
func (*Note) GetDeployable ¶
func (x *Note) GetDeployable() *deployment.Deployable
func (*Note) GetDiscovery ¶
func (*Note) GetExpirationTime ¶
func (x *Note) GetExpirationTime() *timestamppb.Timestamp
func (*Note) GetLongDescription ¶
func (*Note) GetPackage ¶
func (*Note) GetRelatedNoteNames ¶
func (*Note) GetRelatedUrl ¶
func (x *Note) GetRelatedUrl() []*common.RelatedUrl
func (*Note) GetShortDescription ¶
func (*Note) GetUpdateTime ¶
func (x *Note) GetUpdateTime() *timestamppb.Timestamp
func (*Note) GetVulnerability ¶
func (x *Note) GetVulnerability() *vulnerability.Vulnerability
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type Note_AttestationAuthority ¶
type Note_AttestationAuthority struct { // A note describing an attestation role. AttestationAuthority *attestation.Authority `protobuf:"bytes,16,opt,name=attestation_authority,json=attestationAuthority,proto3,oneof"` }
type Note_BaseImage ¶
type Note_Build ¶
type Note_Deployable ¶
type Note_Deployable struct { // A note describing something that can be deployed. Deployable *deployment.Deployable `protobuf:"bytes,14,opt,name=deployable,proto3,oneof"` }
type Note_Discovery ¶
type Note_Package ¶
type Note_Vulnerability ¶
type Note_Vulnerability struct { // A note describing a package vulnerability. Vulnerability *vulnerability.Vulnerability `protobuf:"bytes,10,opt,name=vulnerability,proto3,oneof"` }
type Occurrence ¶
type Occurrence struct { // Output only. The name of the occurrence in the form of // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. Immutable. The resource for which the occurrence applies. Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` // Required. Immutable. The analysis note associated with this occurrence, in // the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be // used as a filter in list requests. NoteName string `protobuf:"bytes,3,opt,name=note_name,json=noteName,proto3" json:"note_name,omitempty"` // Output only. This explicitly denotes which of the occurrence details are // specified. This field can be used as a filter in list requests. Kind common.NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.NoteKind" json:"kind,omitempty"` // A description of actions that can be taken to remedy the note. Remediation string `protobuf:"bytes,5,opt,name=remediation,proto3" json:"remediation,omitempty"` // Output only. The time this occurrence was created. CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // Output only. The time this occurrence was last updated. UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` // Required. Immutable. Describes the details of the note kind found on this // resource. // // Types that are assignable to Details: // *Occurrence_Vulnerability // *Occurrence_Build // *Occurrence_DerivedImage // *Occurrence_Installation // *Occurrence_Deployment // *Occurrence_Discovered // *Occurrence_Attestation Details isOccurrence_Details `protobuf_oneof:"details"` // contains filtered or unexported fields }
An instance of an analysis type that has been found on a resource.
func (*Occurrence) Descriptor
deprecated
func (*Occurrence) Descriptor() ([]byte, []int)
Deprecated: Use Occurrence.ProtoReflect.Descriptor instead.
func (*Occurrence) GetAttestation ¶
func (x *Occurrence) GetAttestation() *attestation.Details
func (*Occurrence) GetBuild ¶
func (x *Occurrence) GetBuild() *build.Details
func (*Occurrence) GetCreateTime ¶
func (x *Occurrence) GetCreateTime() *timestamppb.Timestamp
func (*Occurrence) GetDeployment ¶
func (x *Occurrence) GetDeployment() *deployment.Details
func (*Occurrence) GetDerivedImage ¶
func (x *Occurrence) GetDerivedImage() *image.Details
func (*Occurrence) GetDetails ¶
func (m *Occurrence) GetDetails() isOccurrence_Details
func (*Occurrence) GetDiscovered ¶
func (x *Occurrence) GetDiscovered() *discovery.Details
func (*Occurrence) GetInstallation ¶
func (x *Occurrence) GetInstallation() *_package.Details
func (*Occurrence) GetKind ¶
func (x *Occurrence) GetKind() common.NoteKind
func (*Occurrence) GetName ¶
func (x *Occurrence) GetName() string
func (*Occurrence) GetNoteName ¶
func (x *Occurrence) GetNoteName() string
func (*Occurrence) GetRemediation ¶
func (x *Occurrence) GetRemediation() string
func (*Occurrence) GetResource ¶
func (x *Occurrence) GetResource() *Resource
func (*Occurrence) GetUpdateTime ¶
func (x *Occurrence) GetUpdateTime() *timestamppb.Timestamp
func (*Occurrence) GetVulnerability ¶
func (x *Occurrence) GetVulnerability() *vulnerability.Details
func (*Occurrence) ProtoMessage ¶
func (*Occurrence) ProtoMessage()
func (*Occurrence) ProtoReflect ¶
func (x *Occurrence) ProtoReflect() protoreflect.Message
func (*Occurrence) Reset ¶
func (x *Occurrence) Reset()
func (*Occurrence) String ¶
func (x *Occurrence) String() string
type Occurrence_Attestation ¶
type Occurrence_Attestation struct { // Describes an attestation of an artifact. Attestation *attestation.Details `protobuf:"bytes,14,opt,name=attestation,proto3,oneof"` }
type Occurrence_Build ¶
type Occurrence_Deployment ¶
type Occurrence_Deployment struct { // Describes the deployment of an artifact on a runtime. Deployment *deployment.Details `protobuf:"bytes,12,opt,name=deployment,proto3,oneof"` }
type Occurrence_DerivedImage ¶
type Occurrence_Discovered ¶
type Occurrence_Installation ¶
type Occurrence_Vulnerability ¶
type Occurrence_Vulnerability struct { // Describes a security vulnerability. Vulnerability *vulnerability.Details `protobuf:"bytes,8,opt,name=vulnerability,proto3,oneof"` }
type Resource ¶
type Resource struct { // The name of the resource. For example, the name of a Docker image - // "Debian". Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Required. The unique URI of the resource. For example, // `https://gcr.io/project/image@sha256:foo` for a Docker image. Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // The hash of the resource content. For example, the Docker digest. ContentHash *provenance.Hash `protobuf:"bytes,3,opt,name=content_hash,json=contentHash,proto3" json:"content_hash,omitempty"` // contains filtered or unexported fields }
An entity that can have metadata. For example, a Docker image.
func (*Resource) Descriptor
deprecated
func (*Resource) GetContentHash ¶
func (x *Resource) GetContentHash() *provenance.Hash
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type UnimplementedGrafeasV1Beta1Server ¶
type UnimplementedGrafeasV1Beta1Server struct { }
UnimplementedGrafeasV1Beta1Server can be embedded to have forward compatible implementations.
func (*UnimplementedGrafeasV1Beta1Server) BatchCreateNotes ¶
func (*UnimplementedGrafeasV1Beta1Server) BatchCreateNotes(context.Context, *BatchCreateNotesRequest) (*BatchCreateNotesResponse, error)
func (*UnimplementedGrafeasV1Beta1Server) BatchCreateOccurrences ¶
func (*UnimplementedGrafeasV1Beta1Server) BatchCreateOccurrences(context.Context, *BatchCreateOccurrencesRequest) (*BatchCreateOccurrencesResponse, error)
func (*UnimplementedGrafeasV1Beta1Server) CreateNote ¶
func (*UnimplementedGrafeasV1Beta1Server) CreateNote(context.Context, *CreateNoteRequest) (*Note, error)
func (*UnimplementedGrafeasV1Beta1Server) CreateOccurrence ¶
func (*UnimplementedGrafeasV1Beta1Server) CreateOccurrence(context.Context, *CreateOccurrenceRequest) (*Occurrence, error)
func (*UnimplementedGrafeasV1Beta1Server) DeleteNote ¶
func (*UnimplementedGrafeasV1Beta1Server) DeleteNote(context.Context, *DeleteNoteRequest) (*emptypb.Empty, error)
func (*UnimplementedGrafeasV1Beta1Server) DeleteOccurrence ¶
func (*UnimplementedGrafeasV1Beta1Server) DeleteOccurrence(context.Context, *DeleteOccurrenceRequest) (*emptypb.Empty, error)
func (*UnimplementedGrafeasV1Beta1Server) GetNote ¶
func (*UnimplementedGrafeasV1Beta1Server) GetNote(context.Context, *GetNoteRequest) (*Note, error)
func (*UnimplementedGrafeasV1Beta1Server) GetOccurrence ¶
func (*UnimplementedGrafeasV1Beta1Server) GetOccurrence(context.Context, *GetOccurrenceRequest) (*Occurrence, error)
func (*UnimplementedGrafeasV1Beta1Server) GetOccurrenceNote ¶
func (*UnimplementedGrafeasV1Beta1Server) GetOccurrenceNote(context.Context, *GetOccurrenceNoteRequest) (*Note, error)
func (*UnimplementedGrafeasV1Beta1Server) GetVulnerabilityOccurrencesSummary ¶
func (*UnimplementedGrafeasV1Beta1Server) GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error)
func (*UnimplementedGrafeasV1Beta1Server) ListNoteOccurrences ¶
func (*UnimplementedGrafeasV1Beta1Server) ListNoteOccurrences(context.Context, *ListNoteOccurrencesRequest) (*ListNoteOccurrencesResponse, error)
func (*UnimplementedGrafeasV1Beta1Server) ListNotes ¶
func (*UnimplementedGrafeasV1Beta1Server) ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error)
func (*UnimplementedGrafeasV1Beta1Server) ListOccurrences ¶
func (*UnimplementedGrafeasV1Beta1Server) ListOccurrences(context.Context, *ListOccurrencesRequest) (*ListOccurrencesResponse, error)
func (*UnimplementedGrafeasV1Beta1Server) UpdateNote ¶
func (*UnimplementedGrafeasV1Beta1Server) UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error)
func (*UnimplementedGrafeasV1Beta1Server) UpdateOccurrence ¶
func (*UnimplementedGrafeasV1Beta1Server) UpdateOccurrence(context.Context, *UpdateOccurrenceRequest) (*Occurrence, error)
type UpdateNoteRequest ¶
type UpdateNoteRequest struct { // The name of the note in the form of // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The updated note. Note *Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` // The fields to update. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request to update a note.
func (*UpdateNoteRequest) Descriptor
deprecated
func (*UpdateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateNoteRequest) GetName ¶
func (x *UpdateNoteRequest) GetName() string
func (*UpdateNoteRequest) GetNote ¶
func (x *UpdateNoteRequest) GetNote() *Note
func (*UpdateNoteRequest) GetUpdateMask ¶
func (x *UpdateNoteRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateNoteRequest) ProtoMessage ¶
func (*UpdateNoteRequest) ProtoMessage()
func (*UpdateNoteRequest) ProtoReflect ¶
func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateNoteRequest) Reset ¶
func (x *UpdateNoteRequest) Reset()
func (*UpdateNoteRequest) String ¶
func (x *UpdateNoteRequest) String() string
type UpdateOccurrenceRequest ¶
type UpdateOccurrenceRequest struct { // The name of the occurrence in the form of // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The updated occurrence. Occurrence *Occurrence `protobuf:"bytes,2,opt,name=occurrence,proto3" json:"occurrence,omitempty"` // The fields to update. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
Request to update an occurrence.
func (*UpdateOccurrenceRequest) Descriptor
deprecated
func (*UpdateOccurrenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateOccurrenceRequest.ProtoReflect.Descriptor instead.
func (*UpdateOccurrenceRequest) GetName ¶
func (x *UpdateOccurrenceRequest) GetName() string
func (*UpdateOccurrenceRequest) GetOccurrence ¶
func (x *UpdateOccurrenceRequest) GetOccurrence() *Occurrence
func (*UpdateOccurrenceRequest) GetUpdateMask ¶
func (x *UpdateOccurrenceRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateOccurrenceRequest) ProtoMessage ¶
func (*UpdateOccurrenceRequest) ProtoMessage()
func (*UpdateOccurrenceRequest) ProtoReflect ¶
func (x *UpdateOccurrenceRequest) ProtoReflect() protoreflect.Message
func (*UpdateOccurrenceRequest) Reset ¶
func (x *UpdateOccurrenceRequest) Reset()
func (*UpdateOccurrenceRequest) String ¶
func (x *UpdateOccurrenceRequest) String() string
type VulnerabilityOccurrencesSummary ¶
type VulnerabilityOccurrencesSummary struct { // A listing by resource of the number of fixable and total vulnerabilities. Counts []*VulnerabilityOccurrencesSummary_FixableTotalByDigest `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty"` // contains filtered or unexported fields }
A summary of how many vulnerability occurrences there are per resource and severity type.
func (*VulnerabilityOccurrencesSummary) Descriptor
deprecated
func (*VulnerabilityOccurrencesSummary) Descriptor() ([]byte, []int)
Deprecated: Use VulnerabilityOccurrencesSummary.ProtoReflect.Descriptor instead.
func (*VulnerabilityOccurrencesSummary) GetCounts ¶
func (x *VulnerabilityOccurrencesSummary) GetCounts() []*VulnerabilityOccurrencesSummary_FixableTotalByDigest
func (*VulnerabilityOccurrencesSummary) ProtoMessage ¶
func (*VulnerabilityOccurrencesSummary) ProtoMessage()
func (*VulnerabilityOccurrencesSummary) ProtoReflect ¶
func (x *VulnerabilityOccurrencesSummary) ProtoReflect() protoreflect.Message
func (*VulnerabilityOccurrencesSummary) Reset ¶
func (x *VulnerabilityOccurrencesSummary) Reset()
func (*VulnerabilityOccurrencesSummary) String ¶
func (x *VulnerabilityOccurrencesSummary) String() string
type VulnerabilityOccurrencesSummary_FixableTotalByDigest ¶
type VulnerabilityOccurrencesSummary_FixableTotalByDigest struct { // The affected resource. Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` // The severity for this count. SEVERITY_UNSPECIFIED indicates total across // all severities. Severity vulnerability.Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1beta1.vulnerability.Severity" json:"severity,omitempty"` // The number of fixable vulnerabilities associated with this resource. FixableCount int64 `protobuf:"varint,3,opt,name=fixable_count,json=fixableCount,proto3" json:"fixable_count,omitempty"` // The total number of vulnerabilities associated with this resource. TotalCount int64 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` // contains filtered or unexported fields }
Per resource and severity counts of fixable and total vulnerabilities.
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor
deprecated
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor() ([]byte, []int)
Deprecated: Use VulnerabilityOccurrencesSummary_FixableTotalByDigest.ProtoReflect.Descriptor instead.
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount() int64
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResource ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResource() *Resource
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity() vulnerability.Severity
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount() int64
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage ¶
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage()
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect() protoreflect.Message
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset()
func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) String ¶
func (x *VulnerabilityOccurrencesSummary_FixableTotalByDigest) String() string