grafeas_go_proto

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 32 Imported by: 20

Documentation

Overview

Package grafeas_go_proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_grafeas_proto protoreflect.FileDescriptor

Functions

func RegisterGrafeasV1Beta1Handler

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

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

func RegisterGrafeasV1Beta1HandlerClient

func RegisterGrafeasV1Beta1HandlerClient(ctx context.Context, mux *runtime.ServeMux, client GrafeasV1Beta1Client) error

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

func RegisterGrafeasV1Beta1HandlerFromEndpoint

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

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

func RegisterGrafeasV1Beta1HandlerServer added in v0.2.0

func RegisterGrafeasV1Beta1HandlerServer(ctx context.Context, mux *runtime.ServeMux, server GrafeasV1Beta1Server) error

RegisterGrafeasV1Beta1HandlerServer registers the http handlers for service GrafeasV1Beta1 to "mux". UnaryRPC :call GrafeasV1Beta1Server 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 RegisterGrafeasV1Beta1HandlerFromEndpoint instead.

func RegisterGrafeasV1Beta1Server

func RegisterGrafeasV1Beta1Server(s grpc.ServiceRegistrar, 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, the key is expected to be the note ID. Max allowed length is 1000.
	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 added in v0.2.0

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 added in v0.2.0

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. Max allowed length is 1000.
	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 added in v0.2.0

func (*BatchCreateOccurrencesRequest) Reset

func (x *BatchCreateOccurrencesRequest) Reset()

func (*BatchCreateOccurrencesRequest) 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 added in v0.2.0

func (*BatchCreateOccurrencesResponse) Reset

func (x *BatchCreateOccurrencesResponse) Reset()

func (*BatchCreateOccurrencesResponse) 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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 added in v0.2.0

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 (*GetVulnerabilityOccurrencesSummaryRequest) GetParent

func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage

func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoReflect added in v0.2.0

func (*GetVulnerabilityOccurrencesSummaryRequest) Reset

func (*GetVulnerabilityOccurrencesSummaryRequest) 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) (*empty.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) (*empty.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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

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) (*empty.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) (*empty.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. All implementations should embed UnimplementedGrafeasV1Beta1Server for forward compatibility

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 added in v0.2.0

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 added in v0.2.0

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. Must be positive. Max allowed page
	// size is 1000. If not specified, page size defaults to 20.
	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 added in v0.2.0

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 added in v0.2.0

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. Must be positive. Max allowed
	// page size is 1000. If not specified, page size defaults to 20.
	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 added in v0.2.0

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 added in v0.2.0

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_go_proto.NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.NoteKind" json:"kind,omitempty"`
	// URLs associated with this note.
	RelatedUrl []*common_go_proto.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 *timestamp.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 *timestamp.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 *timestamp.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
	//	*Note_Intoto
	//	*Note_Sbom
	//	*Note_SpdxPackage
	//	*Note_SpdxFile
	//	*Note_SpdxRelationship
	//	*Note_VulnerabilityAssessment
	//	*Note_SbomReference
	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) Descriptor() ([]byte, []int)

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetAttestationAuthority

func (x *Note) GetAttestationAuthority() *attestation_go_proto.Authority

func (*Note) GetBaseImage

func (x *Note) GetBaseImage() *image_go_proto.Basis

func (*Note) GetBuild

func (x *Note) GetBuild() *build_go_proto.Build

func (*Note) GetCreateTime

func (x *Note) GetCreateTime() *timestamp.Timestamp

func (*Note) GetDeployable

func (x *Note) GetDeployable() *deployment_go_proto.Deployable

func (*Note) GetDiscovery

func (x *Note) GetDiscovery() *discovery_go_proto.Discovery

func (*Note) GetExpirationTime

func (x *Note) GetExpirationTime() *timestamp.Timestamp

func (*Note) GetIntoto added in v0.1.6

func (x *Note) GetIntoto() *intoto_go_proto.InToto

func (*Note) GetKind

func (x *Note) GetKind() common_go_proto.NoteKind

func (*Note) GetLongDescription

func (x *Note) GetLongDescription() string

func (*Note) GetName

func (x *Note) GetName() string

func (*Note) GetPackage

func (x *Note) GetPackage() *package_go_proto.Package

func (*Note) GetRelatedNoteNames

func (x *Note) GetRelatedNoteNames() []string

func (*Note) GetRelatedUrl

func (x *Note) GetRelatedUrl() []*common_go_proto.RelatedUrl

func (*Note) GetSbom added in v0.2.0

func (x *Note) GetSbom() *spdx_go_proto.DocumentNote

func (*Note) GetSbomReference added in v0.2.2

func (x *Note) GetSbomReference() *sbom_go_proto.SBOMReferenceNote

func (*Note) GetShortDescription

func (x *Note) GetShortDescription() string

func (*Note) GetSpdxFile added in v0.2.0

func (x *Note) GetSpdxFile() *spdx_go_proto.FileNote

func (*Note) GetSpdxPackage added in v0.2.0

func (x *Note) GetSpdxPackage() *spdx_go_proto.PackageInfoNote

func (*Note) GetSpdxRelationship added in v0.2.0

func (x *Note) GetSpdxRelationship() *spdx_go_proto.RelationshipNote

func (*Note) GetType

func (m *Note) GetType() isNote_Type

func (*Note) GetUpdateTime

func (x *Note) GetUpdateTime() *timestamp.Timestamp

func (*Note) GetVulnerability

func (x *Note) GetVulnerability() *vulnerability_go_proto.Vulnerability

func (*Note) GetVulnerabilityAssessment added in v0.2.2

func (x *Note) GetVulnerabilityAssessment() *vex_go_proto.VulnerabilityAssessmentNote

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect added in v0.2.0

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

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

type Note_AttestationAuthority

type Note_AttestationAuthority struct {
	// A note describing an attestation role.
	AttestationAuthority *attestation_go_proto.Authority `protobuf:"bytes,16,opt,name=attestation_authority,json=attestationAuthority,proto3,oneof"`
}

type Note_BaseImage

type Note_BaseImage struct {
	// A note describing a base image.
	BaseImage *image_go_proto.Basis `protobuf:"bytes,12,opt,name=base_image,json=baseImage,proto3,oneof"`
}

type Note_Build

type Note_Build struct {
	// A note describing build provenance for a verifiable build.
	Build *build_go_proto.Build `protobuf:"bytes,11,opt,name=build,proto3,oneof"`
}

type Note_Deployable

type Note_Deployable struct {
	// A note describing something that can be deployed.
	Deployable *deployment_go_proto.Deployable `protobuf:"bytes,14,opt,name=deployable,proto3,oneof"`
}

type Note_Discovery

type Note_Discovery struct {
	// A note describing the initial analysis of a resource.
	Discovery *discovery_go_proto.Discovery `protobuf:"bytes,15,opt,name=discovery,proto3,oneof"`
}

type Note_Intoto added in v0.1.6

type Note_Intoto struct {
	// A note describing an in-toto link.
	Intoto *intoto_go_proto.InToto `protobuf:"bytes,17,opt,name=intoto,proto3,oneof"`
}

type Note_Package

type Note_Package struct {
	// A note describing a package hosted by various package managers.
	Package *package_go_proto.Package `protobuf:"bytes,13,opt,name=package,proto3,oneof"`
}

type Note_Sbom added in v0.2.0

type Note_Sbom struct {
	// A note describing a software bill of materials.
	Sbom *spdx_go_proto.DocumentNote `protobuf:"bytes,18,opt,name=sbom,proto3,oneof"`
}

type Note_SbomReference added in v0.2.2

type Note_SbomReference struct {
	// A note describing an SBOM reference.
	SbomReference *sbom_go_proto.SBOMReferenceNote `protobuf:"bytes,23,opt,name=sbom_reference,json=sbomReference,proto3,oneof"`
}

type Note_SpdxFile added in v0.2.0

type Note_SpdxFile struct {
	// A note describing an SPDX File.
	SpdxFile *spdx_go_proto.FileNote `protobuf:"bytes,20,opt,name=spdx_file,json=spdxFile,proto3,oneof"`
}

type Note_SpdxPackage added in v0.2.0

type Note_SpdxPackage struct {
	// A note describing an SPDX Package.
	SpdxPackage *spdx_go_proto.PackageInfoNote `protobuf:"bytes,19,opt,name=spdx_package,json=spdxPackage,proto3,oneof"`
}

type Note_SpdxRelationship added in v0.2.0

type Note_SpdxRelationship struct {
	// A note describing an SPDX File.
	SpdxRelationship *spdx_go_proto.RelationshipNote `protobuf:"bytes,21,opt,name=spdx_relationship,json=spdxRelationship,proto3,oneof"`
}

type Note_Vulnerability

type Note_Vulnerability struct {
	// A note describing a package vulnerability.
	Vulnerability *vulnerability_go_proto.Vulnerability `protobuf:"bytes,10,opt,name=vulnerability,proto3,oneof"`
}

type Note_VulnerabilityAssessment added in v0.2.2

type Note_VulnerabilityAssessment struct {
	// A note describing a vulnerability assessment.
	VulnerabilityAssessment *vex_go_proto.VulnerabilityAssessmentNote `protobuf:"bytes,22,opt,name=vulnerability_assessment,json=vulnerabilityAssessment,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_go_proto.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 *timestamp.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 *timestamp.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
	//	*Occurrence_Intoto
	//	*Occurrence_Sbom
	//	*Occurrence_SpdxPackage
	//	*Occurrence_SpdxFile
	//	*Occurrence_SpdxRelationship
	//	*Occurrence_SbomReference
	Details isOccurrence_Details `protobuf_oneof:"details"`
	// https://github.com/secure-systems-lab/dsse
	Envelope *common_go_proto.Envelope `protobuf:"bytes,20,opt,name=envelope,proto3" json:"envelope,omitempty"`
	// 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_go_proto.Details

func (*Occurrence) GetBuild

func (x *Occurrence) GetBuild() *build_go_proto.Details

func (*Occurrence) GetCreateTime

func (x *Occurrence) GetCreateTime() *timestamp.Timestamp

func (*Occurrence) GetDeployment

func (x *Occurrence) GetDeployment() *deployment_go_proto.Details

func (*Occurrence) GetDerivedImage

func (x *Occurrence) GetDerivedImage() *image_go_proto.Details

func (*Occurrence) GetDetails

func (m *Occurrence) GetDetails() isOccurrence_Details

func (*Occurrence) GetDiscovered

func (x *Occurrence) GetDiscovered() *discovery_go_proto.Details

func (*Occurrence) GetEnvelope added in v0.2.0

func (x *Occurrence) GetEnvelope() *common_go_proto.Envelope

func (*Occurrence) GetInstallation

func (x *Occurrence) GetInstallation() *package_go_proto.Details

func (*Occurrence) GetIntoto added in v0.1.6

func (x *Occurrence) GetIntoto() *intoto_go_proto.Details

func (*Occurrence) GetKind

func (x *Occurrence) GetKind() common_go_proto.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) GetSbom added in v0.2.0

func (*Occurrence) GetSbomReference added in v0.2.2

func (x *Occurrence) GetSbomReference() *sbom_go_proto.SBOMReferenceOccurrence

func (*Occurrence) GetSpdxFile added in v0.2.0

func (x *Occurrence) GetSpdxFile() *spdx_go_proto.FileOccurrence

func (*Occurrence) GetSpdxPackage added in v0.2.0

func (x *Occurrence) GetSpdxPackage() *spdx_go_proto.PackageInfoOccurrence

func (*Occurrence) GetSpdxRelationship added in v0.2.0

func (x *Occurrence) GetSpdxRelationship() *spdx_go_proto.RelationshipOccurrence

func (*Occurrence) GetUpdateTime

func (x *Occurrence) GetUpdateTime() *timestamp.Timestamp

func (*Occurrence) GetVulnerability

func (x *Occurrence) GetVulnerability() *vulnerability_go_proto.Details

func (*Occurrence) ProtoMessage

func (*Occurrence) ProtoMessage()

func (*Occurrence) ProtoReflect added in v0.2.0

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_go_proto.Details `protobuf:"bytes,14,opt,name=attestation,proto3,oneof"`
}

type Occurrence_Build

type Occurrence_Build struct {
	// Describes a verifiable build.
	Build *build_go_proto.Details `protobuf:"bytes,9,opt,name=build,proto3,oneof"`
}

type Occurrence_Deployment

type Occurrence_Deployment struct {
	// Describes the deployment of an artifact on a runtime.
	Deployment *deployment_go_proto.Details `protobuf:"bytes,12,opt,name=deployment,proto3,oneof"`
}

type Occurrence_DerivedImage

type Occurrence_DerivedImage struct {
	// Describes how this resource derives from the basis in the associated
	// note.
	DerivedImage *image_go_proto.Details `protobuf:"bytes,10,opt,name=derived_image,json=derivedImage,proto3,oneof"`
}

type Occurrence_Discovered

type Occurrence_Discovered struct {
	// Describes when a resource was discovered.
	Discovered *discovery_go_proto.Details `protobuf:"bytes,13,opt,name=discovered,proto3,oneof"`
}

type Occurrence_Installation

type Occurrence_Installation struct {
	// Describes the installation of a package on the linked resource.
	Installation *package_go_proto.Details `protobuf:"bytes,11,opt,name=installation,proto3,oneof"`
}

type Occurrence_Intoto added in v0.1.6

type Occurrence_Intoto struct {
	// Describes a specific in-toto link.
	Intoto *intoto_go_proto.Details `protobuf:"bytes,15,opt,name=intoto,proto3,oneof"`
}

type Occurrence_Sbom added in v0.2.0

type Occurrence_Sbom struct {
	// Describes a specific software bill of materials document.
	Sbom *spdx_go_proto.DocumentOccurrence `protobuf:"bytes,16,opt,name=sbom,proto3,oneof"`
}

type Occurrence_SbomReference added in v0.2.2

type Occurrence_SbomReference struct {
	// Describes a specific SBOM reference occurrences.
	SbomReference *sbom_go_proto.SBOMReferenceOccurrence `protobuf:"bytes,21,opt,name=sbom_reference,json=sbomReference,proto3,oneof"`
}

type Occurrence_SpdxFile added in v0.2.0

type Occurrence_SpdxFile struct {
	// Describes a specific SPDX File.
	SpdxFile *spdx_go_proto.FileOccurrence `protobuf:"bytes,18,opt,name=spdx_file,json=spdxFile,proto3,oneof"`
}

type Occurrence_SpdxPackage added in v0.2.0

type Occurrence_SpdxPackage struct {
	// Describes a specific SPDX Package.
	SpdxPackage *spdx_go_proto.PackageInfoOccurrence `protobuf:"bytes,17,opt,name=spdx_package,json=spdxPackage,proto3,oneof"`
}

type Occurrence_SpdxRelationship added in v0.2.0

type Occurrence_SpdxRelationship struct {
	// Describes a specific SPDX Relationship.
	SpdxRelationship *spdx_go_proto.RelationshipOccurrence `protobuf:"bytes,19,opt,name=spdx_relationship,json=spdxRelationship,proto3,oneof"`
}

type Occurrence_Vulnerability

type Occurrence_Vulnerability struct {
	// Describes a security vulnerability.
	Vulnerability *vulnerability_go_proto.Details `protobuf:"bytes,8,opt,name=vulnerability,proto3,oneof"`
}

type Resource

type Resource struct {

	// Deprecated, do not use. Use uri instead.
	//
	// The name of the resource. For example, the name of a Docker image -
	// "Debian".
	//
	// Deprecated: Do not use.
	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"`
	// Deprecated, do not use. Use uri instead.
	//
	// The hash of the resource content. For example, the Docker digest.
	//
	// Deprecated: Do not use.
	ContentHash *provenance_go_proto.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) Descriptor() ([]byte, []int)

Deprecated: Use Resource.ProtoReflect.Descriptor instead.

func (*Resource) GetContentHash deprecated

func (x *Resource) GetContentHash() *provenance_go_proto.Hash

Deprecated: Do not use.

func (*Resource) GetName deprecated

func (x *Resource) GetName() string

Deprecated: Do not use.

func (*Resource) GetUri

func (x *Resource) GetUri() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) ProtoReflect added in v0.2.0

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

func (*Resource) Reset

func (x *Resource) Reset()

func (*Resource) String

func (x *Resource) String() string

type UnimplementedGrafeasV1Beta1Server added in v0.2.0

type UnimplementedGrafeasV1Beta1Server struct {
}

UnimplementedGrafeasV1Beta1Server should be embedded to have forward compatible implementations.

func (UnimplementedGrafeasV1Beta1Server) BatchCreateNotes added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) BatchCreateOccurrences added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) CreateNote added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) CreateOccurrence added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) DeleteNote added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) DeleteOccurrence added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) GetNote added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) GetOccurrence added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) GetOccurrenceNote added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) GetVulnerabilityOccurrencesSummary added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) ListNoteOccurrences added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) ListNotes added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) ListOccurrences added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) UpdateNote added in v0.2.0

func (UnimplementedGrafeasV1Beta1Server) UpdateOccurrence added in v0.2.0

type UnsafeGrafeasV1Beta1Server added in v0.2.0

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

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

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 *field_mask.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() *field_mask.FieldMask

func (*UpdateNoteRequest) ProtoMessage

func (*UpdateNoteRequest) ProtoMessage()

func (*UpdateNoteRequest) ProtoReflect added in v0.2.0

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 *field_mask.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() *field_mask.FieldMask

func (*UpdateOccurrenceRequest) ProtoMessage

func (*UpdateOccurrenceRequest) ProtoMessage()

func (*UpdateOccurrenceRequest) ProtoReflect added in v0.2.0

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 (*VulnerabilityOccurrencesSummary) ProtoMessage

func (*VulnerabilityOccurrencesSummary) ProtoMessage()

func (*VulnerabilityOccurrencesSummary) ProtoReflect added in v0.2.0

func (*VulnerabilityOccurrencesSummary) Reset

func (*VulnerabilityOccurrencesSummary) 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_go_proto.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

Deprecated: Use VulnerabilityOccurrencesSummary_FixableTotalByDigest.ProtoReflect.Descriptor instead.

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResource

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoReflect added in v0.2.0

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) String

Jump to

Keyboard shortcuts

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