grafeas

package
v0.0.0-...-0e82294 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2018 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 */
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Request to create notes in batch.

func (*BatchCreateNotesRequest) Descriptor

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

func (*BatchCreateNotesRequest) GetNotes

func (m *BatchCreateNotesRequest) GetNotes() map[string]*Note

func (*BatchCreateNotesRequest) GetParent

func (m *BatchCreateNotesRequest) GetParent() string

func (*BatchCreateNotesRequest) ProtoMessage

func (*BatchCreateNotesRequest) ProtoMessage()

func (*BatchCreateNotesRequest) Reset

func (m *BatchCreateNotesRequest) Reset()

func (*BatchCreateNotesRequest) String

func (m *BatchCreateNotesRequest) String() string

func (*BatchCreateNotesRequest) XXX_DiscardUnknown

func (m *BatchCreateNotesRequest) XXX_DiscardUnknown()

func (*BatchCreateNotesRequest) XXX_Marshal

func (m *BatchCreateNotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchCreateNotesRequest) XXX_Merge

func (m *BatchCreateNotesRequest) XXX_Merge(src proto.Message)

func (*BatchCreateNotesRequest) XXX_Size

func (m *BatchCreateNotesRequest) XXX_Size() int

func (*BatchCreateNotesRequest) XXX_Unmarshal

func (m *BatchCreateNotesRequest) XXX_Unmarshal(b []byte) error

type BatchCreateNotesResponse

type BatchCreateNotesResponse struct {
	// The notes that were created.
	Notes                []*Note  `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for creating notes in batch.

func (*BatchCreateNotesResponse) Descriptor

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

func (*BatchCreateNotesResponse) GetNotes

func (m *BatchCreateNotesResponse) GetNotes() []*Note

func (*BatchCreateNotesResponse) ProtoMessage

func (*BatchCreateNotesResponse) ProtoMessage()

func (*BatchCreateNotesResponse) Reset

func (m *BatchCreateNotesResponse) Reset()

func (*BatchCreateNotesResponse) String

func (m *BatchCreateNotesResponse) String() string

func (*BatchCreateNotesResponse) XXX_DiscardUnknown

func (m *BatchCreateNotesResponse) XXX_DiscardUnknown()

func (*BatchCreateNotesResponse) XXX_Marshal

func (m *BatchCreateNotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchCreateNotesResponse) XXX_Merge

func (m *BatchCreateNotesResponse) XXX_Merge(src proto.Message)

func (*BatchCreateNotesResponse) XXX_Size

func (m *BatchCreateNotesResponse) XXX_Size() int

func (*BatchCreateNotesResponse) XXX_Unmarshal

func (m *BatchCreateNotesResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Request to create occurrences in batch.

func (*BatchCreateOccurrencesRequest) Descriptor

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

func (*BatchCreateOccurrencesRequest) GetOccurrences

func (m *BatchCreateOccurrencesRequest) GetOccurrences() []*Occurrence

func (*BatchCreateOccurrencesRequest) GetParent

func (m *BatchCreateOccurrencesRequest) GetParent() string

func (*BatchCreateOccurrencesRequest) ProtoMessage

func (*BatchCreateOccurrencesRequest) ProtoMessage()

func (*BatchCreateOccurrencesRequest) Reset

func (m *BatchCreateOccurrencesRequest) Reset()

func (*BatchCreateOccurrencesRequest) String

func (*BatchCreateOccurrencesRequest) XXX_DiscardUnknown

func (m *BatchCreateOccurrencesRequest) XXX_DiscardUnknown()

func (*BatchCreateOccurrencesRequest) XXX_Marshal

func (m *BatchCreateOccurrencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchCreateOccurrencesRequest) XXX_Merge

func (m *BatchCreateOccurrencesRequest) XXX_Merge(src proto.Message)

func (*BatchCreateOccurrencesRequest) XXX_Size

func (m *BatchCreateOccurrencesRequest) XXX_Size() int

func (*BatchCreateOccurrencesRequest) XXX_Unmarshal

func (m *BatchCreateOccurrencesRequest) XXX_Unmarshal(b []byte) error

type BatchCreateOccurrencesResponse

type BatchCreateOccurrencesResponse struct {
	// The occurrences that were created.
	Occurrences          []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Response for creating occurrences in batch.

func (*BatchCreateOccurrencesResponse) Descriptor

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

func (*BatchCreateOccurrencesResponse) GetOccurrences

func (m *BatchCreateOccurrencesResponse) GetOccurrences() []*Occurrence

func (*BatchCreateOccurrencesResponse) ProtoMessage

func (*BatchCreateOccurrencesResponse) ProtoMessage()

func (*BatchCreateOccurrencesResponse) Reset

func (m *BatchCreateOccurrencesResponse) Reset()

func (*BatchCreateOccurrencesResponse) String

func (*BatchCreateOccurrencesResponse) XXX_DiscardUnknown

func (m *BatchCreateOccurrencesResponse) XXX_DiscardUnknown()

func (*BatchCreateOccurrencesResponse) XXX_Marshal

func (m *BatchCreateOccurrencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchCreateOccurrencesResponse) XXX_Merge

func (m *BatchCreateOccurrencesResponse) XXX_Merge(src proto.Message)

func (*BatchCreateOccurrencesResponse) XXX_Size

func (m *BatchCreateOccurrencesResponse) XXX_Size() int

func (*BatchCreateOccurrencesResponse) XXX_Unmarshal

func (m *BatchCreateOccurrencesResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to create a new note.

func (*CreateNoteRequest) Descriptor

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

func (*CreateNoteRequest) GetNote

func (m *CreateNoteRequest) GetNote() *Note

func (*CreateNoteRequest) GetNoteId

func (m *CreateNoteRequest) GetNoteId() string

func (*CreateNoteRequest) GetParent

func (m *CreateNoteRequest) GetParent() string

func (*CreateNoteRequest) ProtoMessage

func (*CreateNoteRequest) ProtoMessage()

func (*CreateNoteRequest) Reset

func (m *CreateNoteRequest) Reset()

func (*CreateNoteRequest) String

func (m *CreateNoteRequest) String() string

func (*CreateNoteRequest) XXX_DiscardUnknown

func (m *CreateNoteRequest) XXX_DiscardUnknown()

func (*CreateNoteRequest) XXX_Marshal

func (m *CreateNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateNoteRequest) XXX_Merge

func (m *CreateNoteRequest) XXX_Merge(src proto.Message)

func (*CreateNoteRequest) XXX_Size

func (m *CreateNoteRequest) XXX_Size() int

func (*CreateNoteRequest) XXX_Unmarshal

func (m *CreateNoteRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Request to create a new occurrence.

func (*CreateOccurrenceRequest) Descriptor

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

func (*CreateOccurrenceRequest) GetOccurrence

func (m *CreateOccurrenceRequest) GetOccurrence() *Occurrence

func (*CreateOccurrenceRequest) GetParent

func (m *CreateOccurrenceRequest) GetParent() string

func (*CreateOccurrenceRequest) ProtoMessage

func (*CreateOccurrenceRequest) ProtoMessage()

func (*CreateOccurrenceRequest) Reset

func (m *CreateOccurrenceRequest) Reset()

func (*CreateOccurrenceRequest) String

func (m *CreateOccurrenceRequest) String() string

func (*CreateOccurrenceRequest) XXX_DiscardUnknown

func (m *CreateOccurrenceRequest) XXX_DiscardUnknown()

func (*CreateOccurrenceRequest) XXX_Marshal

func (m *CreateOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CreateOccurrenceRequest) XXX_Merge

func (m *CreateOccurrenceRequest) XXX_Merge(src proto.Message)

func (*CreateOccurrenceRequest) XXX_Size

func (m *CreateOccurrenceRequest) XXX_Size() int

func (*CreateOccurrenceRequest) XXX_Unmarshal

func (m *CreateOccurrenceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to delete a note.

func (*DeleteNoteRequest) Descriptor

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

func (*DeleteNoteRequest) GetName

func (m *DeleteNoteRequest) GetName() string

func (*DeleteNoteRequest) ProtoMessage

func (*DeleteNoteRequest) ProtoMessage()

func (*DeleteNoteRequest) Reset

func (m *DeleteNoteRequest) Reset()

func (*DeleteNoteRequest) String

func (m *DeleteNoteRequest) String() string

func (*DeleteNoteRequest) XXX_DiscardUnknown

func (m *DeleteNoteRequest) XXX_DiscardUnknown()

func (*DeleteNoteRequest) XXX_Marshal

func (m *DeleteNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteNoteRequest) XXX_Merge

func (m *DeleteNoteRequest) XXX_Merge(src proto.Message)

func (*DeleteNoteRequest) XXX_Size

func (m *DeleteNoteRequest) XXX_Size() int

func (*DeleteNoteRequest) XXX_Unmarshal

func (m *DeleteNoteRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to delete a occurrence.

func (*DeleteOccurrenceRequest) Descriptor

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

func (*DeleteOccurrenceRequest) GetName

func (m *DeleteOccurrenceRequest) GetName() string

func (*DeleteOccurrenceRequest) ProtoMessage

func (*DeleteOccurrenceRequest) ProtoMessage()

func (*DeleteOccurrenceRequest) Reset

func (m *DeleteOccurrenceRequest) Reset()

func (*DeleteOccurrenceRequest) String

func (m *DeleteOccurrenceRequest) String() string

func (*DeleteOccurrenceRequest) XXX_DiscardUnknown

func (m *DeleteOccurrenceRequest) XXX_DiscardUnknown()

func (*DeleteOccurrenceRequest) XXX_Marshal

func (m *DeleteOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DeleteOccurrenceRequest) XXX_Merge

func (m *DeleteOccurrenceRequest) XXX_Merge(src proto.Message)

func (*DeleteOccurrenceRequest) XXX_Size

func (m *DeleteOccurrenceRequest) XXX_Size() int

func (*DeleteOccurrenceRequest) XXX_Unmarshal

func (m *DeleteOccurrenceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get a note.

func (*GetNoteRequest) Descriptor

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

func (*GetNoteRequest) GetName

func (m *GetNoteRequest) GetName() string

func (*GetNoteRequest) ProtoMessage

func (*GetNoteRequest) ProtoMessage()

func (*GetNoteRequest) Reset

func (m *GetNoteRequest) Reset()

func (*GetNoteRequest) String

func (m *GetNoteRequest) String() string

func (*GetNoteRequest) XXX_DiscardUnknown

func (m *GetNoteRequest) XXX_DiscardUnknown()

func (*GetNoteRequest) XXX_Marshal

func (m *GetNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetNoteRequest) XXX_Merge

func (m *GetNoteRequest) XXX_Merge(src proto.Message)

func (*GetNoteRequest) XXX_Size

func (m *GetNoteRequest) XXX_Size() int

func (*GetNoteRequest) XXX_Unmarshal

func (m *GetNoteRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get the note to which the specified occurrence is attached.

func (*GetOccurrenceNoteRequest) Descriptor

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

func (*GetOccurrenceNoteRequest) GetName

func (m *GetOccurrenceNoteRequest) GetName() string

func (*GetOccurrenceNoteRequest) ProtoMessage

func (*GetOccurrenceNoteRequest) ProtoMessage()

func (*GetOccurrenceNoteRequest) Reset

func (m *GetOccurrenceNoteRequest) Reset()

func (*GetOccurrenceNoteRequest) String

func (m *GetOccurrenceNoteRequest) String() string

func (*GetOccurrenceNoteRequest) XXX_DiscardUnknown

func (m *GetOccurrenceNoteRequest) XXX_DiscardUnknown()

func (*GetOccurrenceNoteRequest) XXX_Marshal

func (m *GetOccurrenceNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetOccurrenceNoteRequest) XXX_Merge

func (m *GetOccurrenceNoteRequest) XXX_Merge(src proto.Message)

func (*GetOccurrenceNoteRequest) XXX_Size

func (m *GetOccurrenceNoteRequest) XXX_Size() int

func (*GetOccurrenceNoteRequest) XXX_Unmarshal

func (m *GetOccurrenceNoteRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get an occurrence.

func (*GetOccurrenceRequest) Descriptor

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

func (*GetOccurrenceRequest) GetName

func (m *GetOccurrenceRequest) GetName() string

func (*GetOccurrenceRequest) ProtoMessage

func (*GetOccurrenceRequest) ProtoMessage()

func (*GetOccurrenceRequest) Reset

func (m *GetOccurrenceRequest) Reset()

func (*GetOccurrenceRequest) String

func (m *GetOccurrenceRequest) String() string

func (*GetOccurrenceRequest) XXX_DiscardUnknown

func (m *GetOccurrenceRequest) XXX_DiscardUnknown()

func (*GetOccurrenceRequest) XXX_Marshal

func (m *GetOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetOccurrenceRequest) XXX_Merge

func (m *GetOccurrenceRequest) XXX_Merge(src proto.Message)

func (*GetOccurrenceRequest) XXX_Size

func (m *GetOccurrenceRequest) XXX_Size() int

func (*GetOccurrenceRequest) XXX_Unmarshal

func (m *GetOccurrenceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to get a vulnerability summary for some set of occurrences.

func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor

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

func (*GetVulnerabilityOccurrencesSummaryRequest) GetFilter

func (*GetVulnerabilityOccurrencesSummaryRequest) GetParent

func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage

func (*GetVulnerabilityOccurrencesSummaryRequest) Reset

func (*GetVulnerabilityOccurrencesSummaryRequest) String

func (*GetVulnerabilityOccurrencesSummaryRequest) XXX_DiscardUnknown

func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_DiscardUnknown()

func (*GetVulnerabilityOccurrencesSummaryRequest) XXX_Marshal

func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetVulnerabilityOccurrencesSummaryRequest) XXX_Merge

func (*GetVulnerabilityOccurrencesSummaryRequest) XXX_Size

func (*GetVulnerabilityOccurrencesSummaryRequest) XXX_Unmarshal

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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrafeasV1Beta1Client

func NewGrafeasV1Beta1Client(cc *grpc.ClientConn) 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) (*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.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list occurrences for a note.

func (*ListNoteOccurrencesRequest) Descriptor

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

func (*ListNoteOccurrencesRequest) GetFilter

func (m *ListNoteOccurrencesRequest) GetFilter() string

func (*ListNoteOccurrencesRequest) GetName

func (m *ListNoteOccurrencesRequest) GetName() string

func (*ListNoteOccurrencesRequest) GetPageSize

func (m *ListNoteOccurrencesRequest) GetPageSize() int32

func (*ListNoteOccurrencesRequest) GetPageToken

func (m *ListNoteOccurrencesRequest) GetPageToken() string

func (*ListNoteOccurrencesRequest) ProtoMessage

func (*ListNoteOccurrencesRequest) ProtoMessage()

func (*ListNoteOccurrencesRequest) Reset

func (m *ListNoteOccurrencesRequest) Reset()

func (*ListNoteOccurrencesRequest) String

func (m *ListNoteOccurrencesRequest) String() string

func (*ListNoteOccurrencesRequest) XXX_DiscardUnknown

func (m *ListNoteOccurrencesRequest) XXX_DiscardUnknown()

func (*ListNoteOccurrencesRequest) XXX_Marshal

func (m *ListNoteOccurrencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNoteOccurrencesRequest) XXX_Merge

func (m *ListNoteOccurrencesRequest) XXX_Merge(src proto.Message)

func (*ListNoteOccurrencesRequest) XXX_Size

func (m *ListNoteOccurrencesRequest) XXX_Size() int

func (*ListNoteOccurrencesRequest) XXX_Unmarshal

func (m *ListNoteOccurrencesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for listing occurrences for a note.

func (*ListNoteOccurrencesResponse) Descriptor

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

func (*ListNoteOccurrencesResponse) GetNextPageToken

func (m *ListNoteOccurrencesResponse) GetNextPageToken() string

func (*ListNoteOccurrencesResponse) GetOccurrences

func (m *ListNoteOccurrencesResponse) GetOccurrences() []*Occurrence

func (*ListNoteOccurrencesResponse) ProtoMessage

func (*ListNoteOccurrencesResponse) ProtoMessage()

func (*ListNoteOccurrencesResponse) Reset

func (m *ListNoteOccurrencesResponse) Reset()

func (*ListNoteOccurrencesResponse) String

func (m *ListNoteOccurrencesResponse) String() string

func (*ListNoteOccurrencesResponse) XXX_DiscardUnknown

func (m *ListNoteOccurrencesResponse) XXX_DiscardUnknown()

func (*ListNoteOccurrencesResponse) XXX_Marshal

func (m *ListNoteOccurrencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNoteOccurrencesResponse) XXX_Merge

func (m *ListNoteOccurrencesResponse) XXX_Merge(src proto.Message)

func (*ListNoteOccurrencesResponse) XXX_Size

func (m *ListNoteOccurrencesResponse) XXX_Size() int

func (*ListNoteOccurrencesResponse) XXX_Unmarshal

func (m *ListNoteOccurrencesResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list notes.

func (*ListNotesRequest) Descriptor

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

func (*ListNotesRequest) GetFilter

func (m *ListNotesRequest) GetFilter() string

func (*ListNotesRequest) GetPageSize

func (m *ListNotesRequest) GetPageSize() int32

func (*ListNotesRequest) GetPageToken

func (m *ListNotesRequest) GetPageToken() string

func (*ListNotesRequest) GetParent

func (m *ListNotesRequest) GetParent() string

func (*ListNotesRequest) ProtoMessage

func (*ListNotesRequest) ProtoMessage()

func (*ListNotesRequest) Reset

func (m *ListNotesRequest) Reset()

func (*ListNotesRequest) String

func (m *ListNotesRequest) String() string

func (*ListNotesRequest) XXX_DiscardUnknown

func (m *ListNotesRequest) XXX_DiscardUnknown()

func (*ListNotesRequest) XXX_Marshal

func (m *ListNotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNotesRequest) XXX_Merge

func (m *ListNotesRequest) XXX_Merge(src proto.Message)

func (*ListNotesRequest) XXX_Size

func (m *ListNotesRequest) XXX_Size() int

func (*ListNotesRequest) XXX_Unmarshal

func (m *ListNotesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for listing notes.

func (*ListNotesResponse) Descriptor

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

func (*ListNotesResponse) GetNextPageToken

func (m *ListNotesResponse) GetNextPageToken() string

func (*ListNotesResponse) GetNotes

func (m *ListNotesResponse) GetNotes() []*Note

func (*ListNotesResponse) ProtoMessage

func (*ListNotesResponse) ProtoMessage()

func (*ListNotesResponse) Reset

func (m *ListNotesResponse) Reset()

func (*ListNotesResponse) String

func (m *ListNotesResponse) String() string

func (*ListNotesResponse) XXX_DiscardUnknown

func (m *ListNotesResponse) XXX_DiscardUnknown()

func (*ListNotesResponse) XXX_Marshal

func (m *ListNotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListNotesResponse) XXX_Merge

func (m *ListNotesResponse) XXX_Merge(src proto.Message)

func (*ListNotesResponse) XXX_Size

func (m *ListNotesResponse) XXX_Size() int

func (*ListNotesResponse) XXX_Unmarshal

func (m *ListNotesResponse) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Request to list occurrences.

func (*ListOccurrencesRequest) Descriptor

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

func (*ListOccurrencesRequest) GetFilter

func (m *ListOccurrencesRequest) GetFilter() string

func (*ListOccurrencesRequest) GetPageSize

func (m *ListOccurrencesRequest) GetPageSize() int32

func (*ListOccurrencesRequest) GetPageToken

func (m *ListOccurrencesRequest) GetPageToken() string

func (*ListOccurrencesRequest) GetParent

func (m *ListOccurrencesRequest) GetParent() string

func (*ListOccurrencesRequest) ProtoMessage

func (*ListOccurrencesRequest) ProtoMessage()

func (*ListOccurrencesRequest) Reset

func (m *ListOccurrencesRequest) Reset()

func (*ListOccurrencesRequest) String

func (m *ListOccurrencesRequest) String() string

func (*ListOccurrencesRequest) XXX_DiscardUnknown

func (m *ListOccurrencesRequest) XXX_DiscardUnknown()

func (*ListOccurrencesRequest) XXX_Marshal

func (m *ListOccurrencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListOccurrencesRequest) XXX_Merge

func (m *ListOccurrencesRequest) XXX_Merge(src proto.Message)

func (*ListOccurrencesRequest) XXX_Size

func (m *ListOccurrencesRequest) XXX_Size() int

func (*ListOccurrencesRequest) XXX_Unmarshal

func (m *ListOccurrencesRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Response for listing occurrences.

func (*ListOccurrencesResponse) Descriptor

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

func (*ListOccurrencesResponse) GetNextPageToken

func (m *ListOccurrencesResponse) GetNextPageToken() string

func (*ListOccurrencesResponse) GetOccurrences

func (m *ListOccurrencesResponse) GetOccurrences() []*Occurrence

func (*ListOccurrencesResponse) ProtoMessage

func (*ListOccurrencesResponse) ProtoMessage()

func (*ListOccurrencesResponse) Reset

func (m *ListOccurrencesResponse) Reset()

func (*ListOccurrencesResponse) String

func (m *ListOccurrencesResponse) String() string

func (*ListOccurrencesResponse) XXX_DiscardUnknown

func (m *ListOccurrencesResponse) XXX_DiscardUnknown()

func (*ListOccurrencesResponse) XXX_Marshal

func (m *ListOccurrencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListOccurrencesResponse) XXX_Merge

func (m *ListOccurrencesResponse) XXX_Merge(src proto.Message)

func (*ListOccurrencesResponse) XXX_Size

func (m *ListOccurrencesResponse) XXX_Size() int

func (*ListOccurrencesResponse) XXX_Unmarshal

func (m *ListOccurrencesResponse) XXX_Unmarshal(b []byte) error

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 *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 valid to be assigned to Type:
	//	*Note_Vulnerability
	//	*Note_Build
	//	*Note_BaseImage
	//	*Note_Package
	//	*Note_Deployable
	//	*Note_Discovery
	//	*Note_AttestationAuthority
	Type                 isNote_Type `protobuf_oneof:"type"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

A type of analysis that can be done for a resource.

func (*Note) Descriptor

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

func (*Note) GetAttestationAuthority

func (m *Note) GetAttestationAuthority() *attestation.Authority

func (*Note) GetBaseImage

func (m *Note) GetBaseImage() *image.Basis

func (*Note) GetBuild

func (m *Note) GetBuild() *build.Build

func (*Note) GetCreateTime

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

func (*Note) GetDeployable

func (m *Note) GetDeployable() *deployment.Deployable

func (*Note) GetDiscovery

func (m *Note) GetDiscovery() *discovery.Discovery

func (*Note) GetExpirationTime

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

func (*Note) GetKind

func (m *Note) GetKind() common.NoteKind

func (*Note) GetLongDescription

func (m *Note) GetLongDescription() string

func (*Note) GetName

func (m *Note) GetName() string

func (*Note) GetPackage

func (m *Note) GetPackage() *_package.Package

func (*Note) GetRelatedNoteNames

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

func (*Note) GetRelatedUrl

func (m *Note) GetRelatedUrl() []*common.RelatedUrl

func (*Note) GetShortDescription

func (m *Note) GetShortDescription() string

func (*Note) GetType

func (m *Note) GetType() isNote_Type

func (*Note) GetUpdateTime

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

func (*Note) GetVulnerability

func (m *Note) GetVulnerability() *vulnerability.Vulnerability

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) Reset

func (m *Note) Reset()

func (*Note) String

func (m *Note) String() string

func (*Note) XXX_DiscardUnknown

func (m *Note) XXX_DiscardUnknown()

func (*Note) XXX_Marshal

func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Note) XXX_Merge

func (m *Note) XXX_Merge(src proto.Message)

func (*Note) XXX_OneofFuncs

func (*Note) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Note) XXX_Size

func (m *Note) XXX_Size() int

func (*Note) XXX_Unmarshal

func (m *Note) XXX_Unmarshal(b []byte) error

type Note_AttestationAuthority

type Note_AttestationAuthority struct {
	AttestationAuthority *attestation.Authority `protobuf:"bytes,16,opt,name=attestation_authority,json=attestationAuthority,proto3,oneof"`
}

type Note_BaseImage

type Note_BaseImage struct {
	BaseImage *image.Basis `protobuf:"bytes,12,opt,name=base_image,json=baseImage,proto3,oneof"`
}

type Note_Build

type Note_Build struct {
	Build *build.Build `protobuf:"bytes,11,opt,name=build,proto3,oneof"`
}

type Note_Deployable

type Note_Deployable struct {
	Deployable *deployment.Deployable `protobuf:"bytes,14,opt,name=deployable,proto3,oneof"`
}

type Note_Discovery

type Note_Discovery struct {
	Discovery *discovery.Discovery `protobuf:"bytes,15,opt,name=discovery,proto3,oneof"`
}

type Note_Package

type Note_Package struct {
	Package *_package.Package `protobuf:"bytes,13,opt,name=package,proto3,oneof"`
}

type Note_Vulnerability

type Note_Vulnerability struct {
	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 *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 valid to be assigned to Details:
	//	*Occurrence_Vulnerability
	//	*Occurrence_Build
	//	*Occurrence_DerivedImage
	//	*Occurrence_Installation
	//	*Occurrence_Deployment
	//	*Occurrence_Discovered
	//	*Occurrence_Attestation
	Details              isOccurrence_Details `protobuf_oneof:"details"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

An instance of an analysis type that has been found on a resource.

func (*Occurrence) Descriptor

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

func (*Occurrence) GetAttestation

func (m *Occurrence) GetAttestation() *attestation.Details

func (*Occurrence) GetBuild

func (m *Occurrence) GetBuild() *build.Details

func (*Occurrence) GetCreateTime

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

func (*Occurrence) GetDeployment

func (m *Occurrence) GetDeployment() *deployment.Details

func (*Occurrence) GetDerivedImage

func (m *Occurrence) GetDerivedImage() *image.Details

func (*Occurrence) GetDetails

func (m *Occurrence) GetDetails() isOccurrence_Details

func (*Occurrence) GetDiscovered

func (m *Occurrence) GetDiscovered() *discovery.Details

func (*Occurrence) GetInstallation

func (m *Occurrence) GetInstallation() *_package.Details

func (*Occurrence) GetKind

func (m *Occurrence) GetKind() common.NoteKind

func (*Occurrence) GetName

func (m *Occurrence) GetName() string

func (*Occurrence) GetNoteName

func (m *Occurrence) GetNoteName() string

func (*Occurrence) GetRemediation

func (m *Occurrence) GetRemediation() string

func (*Occurrence) GetResource

func (m *Occurrence) GetResource() *Resource

func (*Occurrence) GetUpdateTime

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

func (*Occurrence) GetVulnerability

func (m *Occurrence) GetVulnerability() *vulnerability.Details

func (*Occurrence) ProtoMessage

func (*Occurrence) ProtoMessage()

func (*Occurrence) Reset

func (m *Occurrence) Reset()

func (*Occurrence) String

func (m *Occurrence) String() string

func (*Occurrence) XXX_DiscardUnknown

func (m *Occurrence) XXX_DiscardUnknown()

func (*Occurrence) XXX_Marshal

func (m *Occurrence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Occurrence) XXX_Merge

func (m *Occurrence) XXX_Merge(src proto.Message)

func (*Occurrence) XXX_OneofFuncs

func (*Occurrence) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*Occurrence) XXX_Size

func (m *Occurrence) XXX_Size() int

func (*Occurrence) XXX_Unmarshal

func (m *Occurrence) XXX_Unmarshal(b []byte) error

type Occurrence_Attestation

type Occurrence_Attestation struct {
	Attestation *attestation.Details `protobuf:"bytes,14,opt,name=attestation,proto3,oneof"`
}

type Occurrence_Build

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

type Occurrence_Deployment

type Occurrence_Deployment struct {
	Deployment *deployment.Details `protobuf:"bytes,12,opt,name=deployment,proto3,oneof"`
}

type Occurrence_DerivedImage

type Occurrence_DerivedImage struct {
	DerivedImage *image.Details `protobuf:"bytes,10,opt,name=derived_image,json=derivedImage,proto3,oneof"`
}

type Occurrence_Discovered

type Occurrence_Discovered struct {
	Discovered *discovery.Details `protobuf:"bytes,13,opt,name=discovered,proto3,oneof"`
}

type Occurrence_Installation

type Occurrence_Installation struct {
	Installation *_package.Details `protobuf:"bytes,11,opt,name=installation,proto3,oneof"`
}

type Occurrence_Vulnerability

type Occurrence_Vulnerability struct {
	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"`
	// 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"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

An entity that can have metadata. For example, a Docker image.

func (*Resource) Descriptor

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

func (*Resource) GetContentHash

func (m *Resource) GetContentHash() *provenance.Hash

func (*Resource) GetName

func (m *Resource) GetName() string

func (*Resource) GetUri

func (m *Resource) GetUri() string

func (*Resource) ProtoMessage

func (*Resource) ProtoMessage()

func (*Resource) Reset

func (m *Resource) Reset()

func (*Resource) String

func (m *Resource) String() string

func (*Resource) XXX_DiscardUnknown

func (m *Resource) XXX_DiscardUnknown()

func (*Resource) XXX_Marshal

func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resource) XXX_Merge

func (m *Resource) XXX_Merge(src proto.Message)

func (*Resource) XXX_Size

func (m *Resource) XXX_Size() int

func (*Resource) XXX_Unmarshal

func (m *Resource) XXX_Unmarshal(b []byte) 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           *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request to update a note.

func (*UpdateNoteRequest) Descriptor

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

func (*UpdateNoteRequest) GetName

func (m *UpdateNoteRequest) GetName() string

func (*UpdateNoteRequest) GetNote

func (m *UpdateNoteRequest) GetNote() *Note

func (*UpdateNoteRequest) GetUpdateMask

func (m *UpdateNoteRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateNoteRequest) ProtoMessage

func (*UpdateNoteRequest) ProtoMessage()

func (*UpdateNoteRequest) Reset

func (m *UpdateNoteRequest) Reset()

func (*UpdateNoteRequest) String

func (m *UpdateNoteRequest) String() string

func (*UpdateNoteRequest) XXX_DiscardUnknown

func (m *UpdateNoteRequest) XXX_DiscardUnknown()

func (*UpdateNoteRequest) XXX_Marshal

func (m *UpdateNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateNoteRequest) XXX_Merge

func (m *UpdateNoteRequest) XXX_Merge(src proto.Message)

func (*UpdateNoteRequest) XXX_Size

func (m *UpdateNoteRequest) XXX_Size() int

func (*UpdateNoteRequest) XXX_Unmarshal

func (m *UpdateNoteRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Request to update an occurrence.

func (*UpdateOccurrenceRequest) Descriptor

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

func (*UpdateOccurrenceRequest) GetName

func (m *UpdateOccurrenceRequest) GetName() string

func (*UpdateOccurrenceRequest) GetOccurrence

func (m *UpdateOccurrenceRequest) GetOccurrence() *Occurrence

func (*UpdateOccurrenceRequest) GetUpdateMask

func (m *UpdateOccurrenceRequest) GetUpdateMask() *field_mask.FieldMask

func (*UpdateOccurrenceRequest) ProtoMessage

func (*UpdateOccurrenceRequest) ProtoMessage()

func (*UpdateOccurrenceRequest) Reset

func (m *UpdateOccurrenceRequest) Reset()

func (*UpdateOccurrenceRequest) String

func (m *UpdateOccurrenceRequest) String() string

func (*UpdateOccurrenceRequest) XXX_DiscardUnknown

func (m *UpdateOccurrenceRequest) XXX_DiscardUnknown()

func (*UpdateOccurrenceRequest) XXX_Marshal

func (m *UpdateOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdateOccurrenceRequest) XXX_Merge

func (m *UpdateOccurrenceRequest) XXX_Merge(src proto.Message)

func (*UpdateOccurrenceRequest) XXX_Size

func (m *UpdateOccurrenceRequest) XXX_Size() int

func (*UpdateOccurrenceRequest) XXX_Unmarshal

func (m *UpdateOccurrenceRequest) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{}                                                `json:"-"`
	XXX_unrecognized     []byte                                                  `json:"-"`
	XXX_sizecache        int32                                                   `json:"-"`
}

A summary of how many vulnerability occurrences there are per resource and severity type.

func (*VulnerabilityOccurrencesSummary) Descriptor

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

func (*VulnerabilityOccurrencesSummary) GetCounts

func (*VulnerabilityOccurrencesSummary) ProtoMessage

func (*VulnerabilityOccurrencesSummary) ProtoMessage()

func (*VulnerabilityOccurrencesSummary) Reset

func (*VulnerabilityOccurrencesSummary) String

func (*VulnerabilityOccurrencesSummary) XXX_DiscardUnknown

func (m *VulnerabilityOccurrencesSummary) XXX_DiscardUnknown()

func (*VulnerabilityOccurrencesSummary) XXX_Marshal

func (m *VulnerabilityOccurrencesSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VulnerabilityOccurrencesSummary) XXX_Merge

func (m *VulnerabilityOccurrencesSummary) XXX_Merge(src proto.Message)

func (*VulnerabilityOccurrencesSummary) XXX_Size

func (m *VulnerabilityOccurrencesSummary) XXX_Size() int

func (*VulnerabilityOccurrencesSummary) XXX_Unmarshal

func (m *VulnerabilityOccurrencesSummary) XXX_Unmarshal(b []byte) error

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Per resource and severity counts of fixable and total vulnerabilites.

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResource

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) String

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_DiscardUnknown

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Marshal

func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Merge

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Size

func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Unmarshal

Jump to

Keyboard shortcuts

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