grafeas

package
v0.0.0-...-e165f0f Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasContext_Kind_name = map[int32]string{
	0: "KIND_UNSPECIFIED",
	1: "FIXED",
	2: "MOVABLE",
	4: "OTHER",
}
View Source
var AliasContext_Kind_value = map[string]int32{
	"KIND_UNSPECIFIED": 0,
	"FIXED":            1,
	"MOVABLE":          2,
	"OTHER":            4,
}
View Source
var Architecture_name = map[int32]string{
	0: "ARCHITECTURE_UNSPECIFIED",
	1: "X86",
	2: "X64",
}
View Source
var Architecture_value = map[string]int32{
	"ARCHITECTURE_UNSPECIFIED": 0,
	"X86":                      1,
	"X64":                      2,
}
View Source
var CVSSv3_AttackComplexity_name = map[int32]string{
	0: "ATTACK_COMPLEXITY_UNSPECIFIED",
	1: "ATTACK_COMPLEXITY_LOW",
	2: "ATTACK_COMPLEXITY_HIGH",
}
View Source
var CVSSv3_AttackComplexity_value = map[string]int32{
	"ATTACK_COMPLEXITY_UNSPECIFIED": 0,
	"ATTACK_COMPLEXITY_LOW":         1,
	"ATTACK_COMPLEXITY_HIGH":        2,
}
View Source
var CVSSv3_AttackVector_name = map[int32]string{
	0: "ATTACK_VECTOR_UNSPECIFIED",
	1: "ATTACK_VECTOR_NETWORK",
	2: "ATTACK_VECTOR_ADJACENT",
	3: "ATTACK_VECTOR_LOCAL",
	4: "ATTACK_VECTOR_PHYSICAL",
}
View Source
var CVSSv3_AttackVector_value = map[string]int32{
	"ATTACK_VECTOR_UNSPECIFIED": 0,
	"ATTACK_VECTOR_NETWORK":     1,
	"ATTACK_VECTOR_ADJACENT":    2,
	"ATTACK_VECTOR_LOCAL":       3,
	"ATTACK_VECTOR_PHYSICAL":    4,
}
View Source
var CVSSv3_Impact_name = map[int32]string{
	0: "IMPACT_UNSPECIFIED",
	1: "IMPACT_HIGH",
	2: "IMPACT_LOW",
	3: "IMPACT_NONE",
}
View Source
var CVSSv3_Impact_value = map[string]int32{
	"IMPACT_UNSPECIFIED": 0,
	"IMPACT_HIGH":        1,
	"IMPACT_LOW":         2,
	"IMPACT_NONE":        3,
}
View Source
var CVSSv3_PrivilegesRequired_name = map[int32]string{
	0: "PRIVILEGES_REQUIRED_UNSPECIFIED",
	1: "PRIVILEGES_REQUIRED_NONE",
	2: "PRIVILEGES_REQUIRED_LOW",
	3: "PRIVILEGES_REQUIRED_HIGH",
}
View Source
var CVSSv3_PrivilegesRequired_value = map[string]int32{
	"PRIVILEGES_REQUIRED_UNSPECIFIED": 0,
	"PRIVILEGES_REQUIRED_NONE":        1,
	"PRIVILEGES_REQUIRED_LOW":         2,
	"PRIVILEGES_REQUIRED_HIGH":        3,
}
View Source
var CVSSv3_Scope_name = map[int32]string{
	0: "SCOPE_UNSPECIFIED",
	1: "SCOPE_UNCHANGED",
	2: "SCOPE_CHANGED",
}
View Source
var CVSSv3_Scope_value = map[string]int32{
	"SCOPE_UNSPECIFIED": 0,
	"SCOPE_UNCHANGED":   1,
	"SCOPE_CHANGED":     2,
}
View Source
var CVSSv3_UserInteraction_name = map[int32]string{
	0: "USER_INTERACTION_UNSPECIFIED",
	1: "USER_INTERACTION_NONE",
	2: "USER_INTERACTION_REQUIRED",
}
View Source
var CVSSv3_UserInteraction_value = map[string]int32{
	"USER_INTERACTION_UNSPECIFIED": 0,
	"USER_INTERACTION_NONE":        1,
	"USER_INTERACTION_REQUIRED":    2,
}
View Source
var DeploymentOccurrence_Platform_name = map[int32]string{
	0: "PLATFORM_UNSPECIFIED",
	1: "GKE",
	2: "FLEX",
	3: "CUSTOM",
}
View Source
var DeploymentOccurrence_Platform_value = map[string]int32{
	"PLATFORM_UNSPECIFIED": 0,
	"GKE":                  1,
	"FLEX":                 2,
	"CUSTOM":               3,
}
View Source
var DiscoveryOccurrence_AnalysisStatus_name = map[int32]string{
	0: "ANALYSIS_STATUS_UNSPECIFIED",
	1: "PENDING",
	2: "SCANNING",
	3: "FINISHED_SUCCESS",
	4: "FINISHED_FAILED",
	5: "FINISHED_UNSUPPORTED",
}
View Source
var DiscoveryOccurrence_AnalysisStatus_value = map[string]int32{
	"ANALYSIS_STATUS_UNSPECIFIED": 0,
	"PENDING":                     1,
	"SCANNING":                    2,
	"FINISHED_SUCCESS":            3,
	"FINISHED_FAILED":             4,
	"FINISHED_UNSUPPORTED":        5,
}
View Source
var DiscoveryOccurrence_ContinuousAnalysis_name = map[int32]string{
	0: "CONTINUOUS_ANALYSIS_UNSPECIFIED",
	1: "ACTIVE",
	2: "INACTIVE",
}
View Source
var DiscoveryOccurrence_ContinuousAnalysis_value = map[string]int32{
	"CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
	"ACTIVE":                          1,
	"INACTIVE":                        2,
}
View Source
var NoteKind_name = map[int32]string{
	0: "NOTE_KIND_UNSPECIFIED",
	1: "VULNERABILITY",
	2: "BUILD",
	3: "IMAGE",
	4: "PACKAGE",
	5: "DEPLOYMENT",
	6: "DISCOVERY",
	7: "ATTESTATION",
}
View Source
var NoteKind_value = map[string]int32{
	"NOTE_KIND_UNSPECIFIED": 0,
	"VULNERABILITY":         1,
	"BUILD":                 2,
	"IMAGE":                 3,
	"PACKAGE":               4,
	"DEPLOYMENT":            5,
	"DISCOVERY":             6,
	"ATTESTATION":           7,
}
View Source
var Severity_name = map[int32]string{
	0: "SEVERITY_UNSPECIFIED",
	1: "MINIMAL",
	2: "LOW",
	3: "MEDIUM",
	4: "HIGH",
	5: "CRITICAL",
}
View Source
var Severity_value = map[string]int32{
	"SEVERITY_UNSPECIFIED": 0,
	"MINIMAL":              1,
	"LOW":                  2,
	"MEDIUM":               3,
	"HIGH":                 4,
	"CRITICAL":             5,
}
View Source
var Version_VersionKind_name = map[int32]string{
	0: "VERSION_KIND_UNSPECIFIED",
	1: "NORMAL",
	2: "MINIMUM",
	3: "MAXIMUM",
}
View Source
var Version_VersionKind_value = map[string]int32{
	"VERSION_KIND_UNSPECIFIED": 0,
	"NORMAL":                   1,
	"MINIMUM":                  2,
	"MAXIMUM":                  3,
}

Functions

func RegisterGrafeasServer

func RegisterGrafeasServer(s *grpc.Server, srv GrafeasServer)

Types

type AliasContext

type AliasContext struct {
	// The alias kind.
	Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,proto3,enum=grafeas.v1.AliasContext_Kind" json:"kind,omitempty"`
	// The alias name.
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An alias to a repo revision.

func (*AliasContext) Descriptor

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

func (*AliasContext) GetKind

func (m *AliasContext) GetKind() AliasContext_Kind

func (*AliasContext) GetName

func (m *AliasContext) GetName() string

func (*AliasContext) ProtoMessage

func (*AliasContext) ProtoMessage()

func (*AliasContext) Reset

func (m *AliasContext) Reset()

func (*AliasContext) String

func (m *AliasContext) String() string

func (*AliasContext) XXX_DiscardUnknown

func (m *AliasContext) XXX_DiscardUnknown()

func (*AliasContext) XXX_Marshal

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

func (*AliasContext) XXX_Merge

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

func (*AliasContext) XXX_Size

func (m *AliasContext) XXX_Size() int

func (*AliasContext) XXX_Unmarshal

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

type AliasContext_Kind

type AliasContext_Kind int32

The type of an alias.

const (
	// Unknown.
	AliasContext_KIND_UNSPECIFIED AliasContext_Kind = 0
	// Git tag.
	AliasContext_FIXED AliasContext_Kind = 1
	// Git branch.
	AliasContext_MOVABLE AliasContext_Kind = 2
	// Used to specify non-standard aliases. For example, if a Git repo has a
	// ref named "refs/foo/bar".
	AliasContext_OTHER AliasContext_Kind = 4
)

func (AliasContext_Kind) EnumDescriptor

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

func (AliasContext_Kind) String

func (x AliasContext_Kind) String() string

type Architecture

type Architecture int32

Instruction set architectures supported by various package managers.

const (
	// Unknown architecture.
	Architecture_ARCHITECTURE_UNSPECIFIED Architecture = 0
	// X86 architecture.
	Architecture_X86 Architecture = 1
	// X64 architecture.
	Architecture_X64 Architecture = 2
)

func (Architecture) EnumDescriptor

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

func (Architecture) String

func (x Architecture) String() string

type Artifact

type Artifact struct {
	// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
	// container.
	Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" json:"checksum,omitempty"`
	// Artifact ID, if any; for container images, this will be a URL by digest
	// like `gcr.io/projectID/imagename@sha256:123456`.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// Related artifact names. This may be the path to a binary or jar file, or in
	// the case of a container build, the name used to push the container image to
	// Google Container Registry, as presented to `docker push`. Note that a
	// single Artifact ID can have multiple names, for example if two tags are
	// applied to one image.
	Names                []string `protobuf:"bytes,3,rep,name=names,proto3" json:"names,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Artifact describes a build product.

func (*Artifact) Descriptor

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

func (*Artifact) GetChecksum

func (m *Artifact) GetChecksum() string

func (*Artifact) GetId

func (m *Artifact) GetId() string

func (*Artifact) GetNames

func (m *Artifact) GetNames() []string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) Reset

func (m *Artifact) Reset()

func (*Artifact) String

func (m *Artifact) String() string

func (*Artifact) XXX_DiscardUnknown

func (m *Artifact) XXX_DiscardUnknown()

func (*Artifact) XXX_Marshal

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

func (*Artifact) XXX_Merge

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

func (*Artifact) XXX_Size

func (m *Artifact) XXX_Size() int

func (*Artifact) XXX_Unmarshal

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

type AttestationNote

type AttestationNote struct {
	// Hint hints at the purpose of the attestation authority.
	Hint                 *AttestationNote_Hint `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one `Authority` for "QA" and one for "build". This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project.

func (*AttestationNote) Descriptor

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

func (*AttestationNote) GetHint

func (m *AttestationNote) GetHint() *AttestationNote_Hint

func (*AttestationNote) ProtoMessage

func (*AttestationNote) ProtoMessage()

func (*AttestationNote) Reset

func (m *AttestationNote) Reset()

func (*AttestationNote) String

func (m *AttestationNote) String() string

func (*AttestationNote) XXX_DiscardUnknown

func (m *AttestationNote) XXX_DiscardUnknown()

func (*AttestationNote) XXX_Marshal

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

func (*AttestationNote) XXX_Merge

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

func (*AttestationNote) XXX_Size

func (m *AttestationNote) XXX_Size() int

func (*AttestationNote) XXX_Unmarshal

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

type AttestationNote_Hint

type AttestationNote_Hint struct {
	// Required. The human readable name of this attestation authority, for
	// example "qa".
	HumanReadableName    string   `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from "readable" names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify.

func (*AttestationNote_Hint) Descriptor

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

func (*AttestationNote_Hint) GetHumanReadableName

func (m *AttestationNote_Hint) GetHumanReadableName() string

func (*AttestationNote_Hint) ProtoMessage

func (*AttestationNote_Hint) ProtoMessage()

func (*AttestationNote_Hint) Reset

func (m *AttestationNote_Hint) Reset()

func (*AttestationNote_Hint) String

func (m *AttestationNote_Hint) String() string

func (*AttestationNote_Hint) XXX_DiscardUnknown

func (m *AttestationNote_Hint) XXX_DiscardUnknown()

func (*AttestationNote_Hint) XXX_Marshal

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

func (*AttestationNote_Hint) XXX_Merge

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

func (*AttestationNote_Hint) XXX_Size

func (m *AttestationNote_Hint) XXX_Size() int

func (*AttestationNote_Hint) XXX_Unmarshal

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

type AttestationOccurrence

type AttestationOccurrence struct {
	// Required. The serialized payload that is verified by one or more
	// `signatures`.
	SerializedPayload []byte `protobuf:"bytes,1,opt,name=serialized_payload,json=serializedPayload,proto3" json:"serialized_payload,omitempty"`
	// One or more signatures over `serialized_payload`.  Verifier implementations
	// should consider this attestation message verified if at least one
	// `signature` verifies `serialized_payload`.  See `Signature` in common.proto
	// for more details on signature structure and verification.
	Signatures           []*Signature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Occurrence that represents a single "attestation". The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign.

func (*AttestationOccurrence) Descriptor

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

func (*AttestationOccurrence) GetSerializedPayload

func (m *AttestationOccurrence) GetSerializedPayload() []byte

func (*AttestationOccurrence) GetSignatures

func (m *AttestationOccurrence) GetSignatures() []*Signature

func (*AttestationOccurrence) ProtoMessage

func (*AttestationOccurrence) ProtoMessage()

func (*AttestationOccurrence) Reset

func (m *AttestationOccurrence) Reset()

func (*AttestationOccurrence) String

func (m *AttestationOccurrence) String() string

func (*AttestationOccurrence) XXX_DiscardUnknown

func (m *AttestationOccurrence) XXX_DiscardUnknown()

func (*AttestationOccurrence) XXX_Marshal

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

func (*AttestationOccurrence) XXX_Merge

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

func (*AttestationOccurrence) XXX_Size

func (m *AttestationOccurrence) XXX_Size() int

func (*AttestationOccurrence) XXX_Unmarshal

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

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. Max allowed length is 1000.
	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. Max allowed length is 1000.
	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 BuildNote

type BuildNote struct {
	// Required. Immutable. Version of the builder which produced this build.
	BuilderVersion       string   `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence.

func (*BuildNote) Descriptor

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

func (*BuildNote) GetBuilderVersion

func (m *BuildNote) GetBuilderVersion() string

func (*BuildNote) ProtoMessage

func (*BuildNote) ProtoMessage()

func (*BuildNote) Reset

func (m *BuildNote) Reset()

func (*BuildNote) String

func (m *BuildNote) String() string

func (*BuildNote) XXX_DiscardUnknown

func (m *BuildNote) XXX_DiscardUnknown()

func (*BuildNote) XXX_Marshal

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

func (*BuildNote) XXX_Merge

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

func (*BuildNote) XXX_Size

func (m *BuildNote) XXX_Size() int

func (*BuildNote) XXX_Unmarshal

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

type BuildOccurrence

type BuildOccurrence struct {
	// Required. The actual provenance for the build.
	Provenance *BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"`
	// Serialized JSON representation of the provenance, used in generating the
	// build signature in the corresponding build note. After verifying the
	// signature, `provenance_bytes` can be unmarshalled and compared to the
	// provenance to confirm that it is unchanged. A base64-encoded string
	// representation of the provenance bytes is used for the signature in order
	// to interoperate with openssl which expects this format for signature
	// verification.
	//
	// The serialized form is captured both to avoid ambiguity in how the
	// provenance is marshalled to json as well to prevent incompatibilities with
	// future changes.
	ProvenanceBytes      string   `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Details of a build occurrence.

func (*BuildOccurrence) Descriptor

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

func (*BuildOccurrence) GetProvenance

func (m *BuildOccurrence) GetProvenance() *BuildProvenance

func (*BuildOccurrence) GetProvenanceBytes

func (m *BuildOccurrence) GetProvenanceBytes() string

func (*BuildOccurrence) ProtoMessage

func (*BuildOccurrence) ProtoMessage()

func (*BuildOccurrence) Reset

func (m *BuildOccurrence) Reset()

func (*BuildOccurrence) String

func (m *BuildOccurrence) String() string

func (*BuildOccurrence) XXX_DiscardUnknown

func (m *BuildOccurrence) XXX_DiscardUnknown()

func (*BuildOccurrence) XXX_Marshal

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

func (*BuildOccurrence) XXX_Merge

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

func (*BuildOccurrence) XXX_Size

func (m *BuildOccurrence) XXX_Size() int

func (*BuildOccurrence) XXX_Unmarshal

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

type BuildProvenance

type BuildProvenance struct {
	// Required. Unique identifier of the build.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the project.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// Commands requested by the build.
	Commands []*Command `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
	// Output of the build.
	BuiltArtifacts []*Artifact `protobuf:"bytes,4,rep,name=built_artifacts,json=builtArtifacts,proto3" json:"built_artifacts,omitempty"`
	// Time at which the build was created.
	CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Time at which execution of the build was started.
	StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// Time at which execution of the build was finished.
	EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// E-mail address of the user who initiated this build. Note that this was the
	// user's e-mail address at the time the build was initiated; this address may
	// not represent the same end-user for all time.
	Creator string `protobuf:"bytes,8,opt,name=creator,proto3" json:"creator,omitempty"`
	// URI where any logs for this provenance were written.
	LogsUri string `protobuf:"bytes,9,opt,name=logs_uri,json=logsUri,proto3" json:"logs_uri,omitempty"`
	// Details of the Source input to the build.
	SourceProvenance *Source `protobuf:"bytes,10,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
	// Trigger identifier if the build was triggered automatically; empty if not.
	TriggerId string `protobuf:"bytes,11,opt,name=trigger_id,json=triggerId,proto3" json:"trigger_id,omitempty"`
	// Special options applied to this build. This is a catch-all field where
	// build providers can enter any desired additional details.
	BuildOptions map[string]string `` /* 186-byte string literal not displayed */
	// Version string of the builder at the time this build was executed.
	BuilderVersion       string   `protobuf:"bytes,13,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

func (*BuildProvenance) Descriptor

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

func (*BuildProvenance) GetBuildOptions

func (m *BuildProvenance) GetBuildOptions() map[string]string

func (*BuildProvenance) GetBuilderVersion

func (m *BuildProvenance) GetBuilderVersion() string

func (*BuildProvenance) GetBuiltArtifacts

func (m *BuildProvenance) GetBuiltArtifacts() []*Artifact

func (*BuildProvenance) GetCommands

func (m *BuildProvenance) GetCommands() []*Command

func (*BuildProvenance) GetCreateTime

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

func (*BuildProvenance) GetCreator

func (m *BuildProvenance) GetCreator() string

func (*BuildProvenance) GetEndTime

func (m *BuildProvenance) GetEndTime() *timestamp.Timestamp

func (*BuildProvenance) GetId

func (m *BuildProvenance) GetId() string

func (*BuildProvenance) GetLogsUri

func (m *BuildProvenance) GetLogsUri() string

func (*BuildProvenance) GetProjectId

func (m *BuildProvenance) GetProjectId() string

func (*BuildProvenance) GetSourceProvenance

func (m *BuildProvenance) GetSourceProvenance() *Source

func (*BuildProvenance) GetStartTime

func (m *BuildProvenance) GetStartTime() *timestamp.Timestamp

func (*BuildProvenance) GetTriggerId

func (m *BuildProvenance) GetTriggerId() string

func (*BuildProvenance) ProtoMessage

func (*BuildProvenance) ProtoMessage()

func (*BuildProvenance) Reset

func (m *BuildProvenance) Reset()

func (*BuildProvenance) String

func (m *BuildProvenance) String() string

func (*BuildProvenance) XXX_DiscardUnknown

func (m *BuildProvenance) XXX_DiscardUnknown()

func (*BuildProvenance) XXX_Marshal

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

func (*BuildProvenance) XXX_Merge

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

func (*BuildProvenance) XXX_Size

func (m *BuildProvenance) XXX_Size() int

func (*BuildProvenance) XXX_Unmarshal

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

type CVSSv3

type CVSSv3 struct {
	// The base score is a function of the base metric scores.
	BaseScore           float32 `protobuf:"fixed32,1,opt,name=base_score,json=baseScore,proto3" json:"base_score,omitempty"`
	ExploitabilityScore float32 `protobuf:"fixed32,2,opt,name=exploitability_score,json=exploitabilityScore,proto3" json:"exploitability_score,omitempty"`
	ImpactScore         float32 `protobuf:"fixed32,3,opt,name=impact_score,json=impactScore,proto3" json:"impact_score,omitempty"`
	// Base Metrics
	// Represents the intrinsic characteristics of a vulnerability that are
	// constant over time and across user environments.
	AttackVector          CVSSv3_AttackVector       `` /* 134-byte string literal not displayed */
	AttackComplexity      CVSSv3_AttackComplexity   `` /* 150-byte string literal not displayed */
	PrivilegesRequired    CVSSv3_PrivilegesRequired `` /* 158-byte string literal not displayed */
	UserInteraction       CVSSv3_UserInteraction    `` /* 146-byte string literal not displayed */
	Scope                 CVSSv3_Scope              `protobuf:"varint,9,opt,name=scope,proto3,enum=grafeas.v1.CVSSv3_Scope" json:"scope,omitempty"`
	ConfidentialityImpact CVSSv3_Impact             `` /* 156-byte string literal not displayed */
	IntegrityImpact       CVSSv3_Impact             `` /* 138-byte string literal not displayed */
	AvailabilityImpact    CVSSv3_Impact             `` /* 147-byte string literal not displayed */
	XXX_NoUnkeyedLiteral  struct{}                  `json:"-"`
	XXX_unrecognized      []byte                    `json:"-"`
	XXX_sizecache         int32                     `json:"-"`
}

Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document

func (*CVSSv3) Descriptor

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

func (*CVSSv3) GetAttackComplexity

func (m *CVSSv3) GetAttackComplexity() CVSSv3_AttackComplexity

func (*CVSSv3) GetAttackVector

func (m *CVSSv3) GetAttackVector() CVSSv3_AttackVector

func (*CVSSv3) GetAvailabilityImpact

func (m *CVSSv3) GetAvailabilityImpact() CVSSv3_Impact

func (*CVSSv3) GetBaseScore

func (m *CVSSv3) GetBaseScore() float32

func (*CVSSv3) GetConfidentialityImpact

func (m *CVSSv3) GetConfidentialityImpact() CVSSv3_Impact

func (*CVSSv3) GetExploitabilityScore

func (m *CVSSv3) GetExploitabilityScore() float32

func (*CVSSv3) GetImpactScore

func (m *CVSSv3) GetImpactScore() float32

func (*CVSSv3) GetIntegrityImpact

func (m *CVSSv3) GetIntegrityImpact() CVSSv3_Impact

func (*CVSSv3) GetPrivilegesRequired

func (m *CVSSv3) GetPrivilegesRequired() CVSSv3_PrivilegesRequired

func (*CVSSv3) GetScope

func (m *CVSSv3) GetScope() CVSSv3_Scope

func (*CVSSv3) GetUserInteraction

func (m *CVSSv3) GetUserInteraction() CVSSv3_UserInteraction

func (*CVSSv3) ProtoMessage

func (*CVSSv3) ProtoMessage()

func (*CVSSv3) Reset

func (m *CVSSv3) Reset()

func (*CVSSv3) String

func (m *CVSSv3) String() string

func (*CVSSv3) XXX_DiscardUnknown

func (m *CVSSv3) XXX_DiscardUnknown()

func (*CVSSv3) XXX_Marshal

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

func (*CVSSv3) XXX_Merge

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

func (*CVSSv3) XXX_Size

func (m *CVSSv3) XXX_Size() int

func (*CVSSv3) XXX_Unmarshal

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

type CVSSv3_AttackComplexity

type CVSSv3_AttackComplexity int32
const (
	CVSSv3_ATTACK_COMPLEXITY_UNSPECIFIED CVSSv3_AttackComplexity = 0
	CVSSv3_ATTACK_COMPLEXITY_LOW         CVSSv3_AttackComplexity = 1
	CVSSv3_ATTACK_COMPLEXITY_HIGH        CVSSv3_AttackComplexity = 2
)

func (CVSSv3_AttackComplexity) EnumDescriptor

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

func (CVSSv3_AttackComplexity) String

func (x CVSSv3_AttackComplexity) String() string

type CVSSv3_AttackVector

type CVSSv3_AttackVector int32
const (
	CVSSv3_ATTACK_VECTOR_UNSPECIFIED CVSSv3_AttackVector = 0
	CVSSv3_ATTACK_VECTOR_NETWORK     CVSSv3_AttackVector = 1
	CVSSv3_ATTACK_VECTOR_ADJACENT    CVSSv3_AttackVector = 2
	CVSSv3_ATTACK_VECTOR_LOCAL       CVSSv3_AttackVector = 3
	CVSSv3_ATTACK_VECTOR_PHYSICAL    CVSSv3_AttackVector = 4
)

func (CVSSv3_AttackVector) EnumDescriptor

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

func (CVSSv3_AttackVector) String

func (x CVSSv3_AttackVector) String() string

type CVSSv3_Impact

type CVSSv3_Impact int32
const (
	CVSSv3_IMPACT_UNSPECIFIED CVSSv3_Impact = 0
	CVSSv3_IMPACT_HIGH        CVSSv3_Impact = 1
	CVSSv3_IMPACT_LOW         CVSSv3_Impact = 2
	CVSSv3_IMPACT_NONE        CVSSv3_Impact = 3
)

func (CVSSv3_Impact) EnumDescriptor

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

func (CVSSv3_Impact) String

func (x CVSSv3_Impact) String() string

type CVSSv3_PrivilegesRequired

type CVSSv3_PrivilegesRequired int32
const (
	CVSSv3_PRIVILEGES_REQUIRED_UNSPECIFIED CVSSv3_PrivilegesRequired = 0
	CVSSv3_PRIVILEGES_REQUIRED_NONE        CVSSv3_PrivilegesRequired = 1
	CVSSv3_PRIVILEGES_REQUIRED_LOW         CVSSv3_PrivilegesRequired = 2
	CVSSv3_PRIVILEGES_REQUIRED_HIGH        CVSSv3_PrivilegesRequired = 3
)

func (CVSSv3_PrivilegesRequired) EnumDescriptor

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

func (CVSSv3_PrivilegesRequired) String

func (x CVSSv3_PrivilegesRequired) String() string

type CVSSv3_Scope

type CVSSv3_Scope int32
const (
	CVSSv3_SCOPE_UNSPECIFIED CVSSv3_Scope = 0
	CVSSv3_SCOPE_UNCHANGED   CVSSv3_Scope = 1
	CVSSv3_SCOPE_CHANGED     CVSSv3_Scope = 2
)

func (CVSSv3_Scope) EnumDescriptor

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

func (CVSSv3_Scope) String

func (x CVSSv3_Scope) String() string

type CVSSv3_UserInteraction

type CVSSv3_UserInteraction int32
const (
	CVSSv3_USER_INTERACTION_UNSPECIFIED CVSSv3_UserInteraction = 0
	CVSSv3_USER_INTERACTION_NONE        CVSSv3_UserInteraction = 1
	CVSSv3_USER_INTERACTION_REQUIRED    CVSSv3_UserInteraction = 2
)

func (CVSSv3_UserInteraction) EnumDescriptor

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

func (CVSSv3_UserInteraction) String

func (x CVSSv3_UserInteraction) String() string

type CloudRepoSourceContext

type CloudRepoSourceContext struct {
	// The ID of the repo.
	RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId,proto3" json:"repo_id,omitempty"`
	// A revision in a Cloud Repo can be identified by either its revision ID or
	// its alias.
	//
	// Types that are valid to be assigned to Revision:
	//	*CloudRepoSourceContext_RevisionId
	//	*CloudRepoSourceContext_AliasContext
	Revision             isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.

func (*CloudRepoSourceContext) Descriptor

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

func (*CloudRepoSourceContext) GetAliasContext

func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext

func (*CloudRepoSourceContext) GetRepoId

func (m *CloudRepoSourceContext) GetRepoId() *RepoId

func (*CloudRepoSourceContext) GetRevision

func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision

func (*CloudRepoSourceContext) GetRevisionId

func (m *CloudRepoSourceContext) GetRevisionId() string

func (*CloudRepoSourceContext) ProtoMessage

func (*CloudRepoSourceContext) ProtoMessage()

func (*CloudRepoSourceContext) Reset

func (m *CloudRepoSourceContext) Reset()

func (*CloudRepoSourceContext) String

func (m *CloudRepoSourceContext) String() string

func (*CloudRepoSourceContext) XXX_DiscardUnknown

func (m *CloudRepoSourceContext) XXX_DiscardUnknown()

func (*CloudRepoSourceContext) XXX_Marshal

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

func (*CloudRepoSourceContext) XXX_Merge

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

func (*CloudRepoSourceContext) XXX_OneofWrappers

func (*CloudRepoSourceContext) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*CloudRepoSourceContext) XXX_Size

func (m *CloudRepoSourceContext) XXX_Size() int

func (*CloudRepoSourceContext) XXX_Unmarshal

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

type CloudRepoSourceContext_AliasContext

type CloudRepoSourceContext_AliasContext struct {
	AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}

type CloudRepoSourceContext_RevisionId

type CloudRepoSourceContext_RevisionId struct {
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
}

type Command

type Command struct {
	// Required. Name of the command, as presented on the command line, or if the
	// command is packaged as a Docker container, as presented to `docker pull`.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Environment variables set before running this command.
	Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
	// Command-line arguments used when executing this command.
	Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
	// Working directory (relative to project source root) used when running this
	// command.
	Dir string `protobuf:"bytes,4,opt,name=dir,proto3" json:"dir,omitempty"`
	// Optional unique identifier for this command, used in wait_for to reference
	// this command as a dependency.
	Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`
	// The ID(s) of the command(s) that this command depends on.
	WaitFor              []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor,proto3" json:"wait_for,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Command describes a step performed as part of the build pipeline.

func (*Command) Descriptor

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

func (*Command) GetArgs

func (m *Command) GetArgs() []string

func (*Command) GetDir

func (m *Command) GetDir() string

func (*Command) GetEnv

func (m *Command) GetEnv() []string

func (*Command) GetId

func (m *Command) GetId() string

func (*Command) GetName

func (m *Command) GetName() string

func (*Command) GetWaitFor

func (m *Command) GetWaitFor() []string

func (*Command) ProtoMessage

func (*Command) ProtoMessage()

func (*Command) Reset

func (m *Command) Reset()

func (*Command) String

func (m *Command) String() string

func (*Command) XXX_DiscardUnknown

func (m *Command) XXX_DiscardUnknown()

func (*Command) XXX_Marshal

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

func (*Command) XXX_Merge

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

func (*Command) XXX_Size

func (m *Command) XXX_Size() int

func (*Command) XXX_Unmarshal

func (m *Command) 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 DeploymentNote

type DeploymentNote struct {
	// Required. Resource URI for the artifact being deployed.
	ResourceUri          []string `protobuf:"bytes,1,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An artifact that can be deployed in some runtime.

func (*DeploymentNote) Descriptor

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

func (*DeploymentNote) GetResourceUri

func (m *DeploymentNote) GetResourceUri() []string

func (*DeploymentNote) ProtoMessage

func (*DeploymentNote) ProtoMessage()

func (*DeploymentNote) Reset

func (m *DeploymentNote) Reset()

func (*DeploymentNote) String

func (m *DeploymentNote) String() string

func (*DeploymentNote) XXX_DiscardUnknown

func (m *DeploymentNote) XXX_DiscardUnknown()

func (*DeploymentNote) XXX_Marshal

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

func (*DeploymentNote) XXX_Merge

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

func (*DeploymentNote) XXX_Size

func (m *DeploymentNote) XXX_Size() int

func (*DeploymentNote) XXX_Unmarshal

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

type DeploymentOccurrence

type DeploymentOccurrence struct {
	// Identity of the user that triggered this deployment.
	UserEmail string `protobuf:"bytes,1,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
	// Required. Beginning of the lifetime of this deployment.
	DeployTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deploy_time,json=deployTime,proto3" json:"deploy_time,omitempty"`
	// End of the lifetime of this deployment.
	UndeployTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=undeploy_time,json=undeployTime,proto3" json:"undeploy_time,omitempty"`
	// Configuration used to create this deployment.
	Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// Address of the runtime element hosting this deployment.
	Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
	// Output only. Resource URI for the artifact being deployed taken from
	// the deployable field with the same name.
	ResourceUri []string `protobuf:"bytes,6,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
	// Platform hosting this deployment.
	Platform             DeploymentOccurrence_Platform `protobuf:"varint,7,opt,name=platform,proto3,enum=grafeas.v1.DeploymentOccurrence_Platform" json:"platform,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
	XXX_unrecognized     []byte                        `json:"-"`
	XXX_sizecache        int32                         `json:"-"`
}

The period during which some deployable was active in a runtime.

func (*DeploymentOccurrence) Descriptor

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

func (*DeploymentOccurrence) GetAddress

func (m *DeploymentOccurrence) GetAddress() string

func (*DeploymentOccurrence) GetConfig

func (m *DeploymentOccurrence) GetConfig() string

func (*DeploymentOccurrence) GetDeployTime

func (m *DeploymentOccurrence) GetDeployTime() *timestamp.Timestamp

func (*DeploymentOccurrence) GetPlatform

func (*DeploymentOccurrence) GetResourceUri

func (m *DeploymentOccurrence) GetResourceUri() []string

func (*DeploymentOccurrence) GetUndeployTime

func (m *DeploymentOccurrence) GetUndeployTime() *timestamp.Timestamp

func (*DeploymentOccurrence) GetUserEmail

func (m *DeploymentOccurrence) GetUserEmail() string

func (*DeploymentOccurrence) ProtoMessage

func (*DeploymentOccurrence) ProtoMessage()

func (*DeploymentOccurrence) Reset

func (m *DeploymentOccurrence) Reset()

func (*DeploymentOccurrence) String

func (m *DeploymentOccurrence) String() string

func (*DeploymentOccurrence) XXX_DiscardUnknown

func (m *DeploymentOccurrence) XXX_DiscardUnknown()

func (*DeploymentOccurrence) XXX_Marshal

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

func (*DeploymentOccurrence) XXX_Merge

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

func (*DeploymentOccurrence) XXX_Size

func (m *DeploymentOccurrence) XXX_Size() int

func (*DeploymentOccurrence) XXX_Unmarshal

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

type DeploymentOccurrence_Platform

type DeploymentOccurrence_Platform int32

Types of platforms.

const (
	// Unknown.
	DeploymentOccurrence_PLATFORM_UNSPECIFIED DeploymentOccurrence_Platform = 0
	// Google Container Engine.
	DeploymentOccurrence_GKE DeploymentOccurrence_Platform = 1
	// Google App Engine: Flexible Environment.
	DeploymentOccurrence_FLEX DeploymentOccurrence_Platform = 2
	// Custom user-defined platform.
	DeploymentOccurrence_CUSTOM DeploymentOccurrence_Platform = 3
)

func (DeploymentOccurrence_Platform) EnumDescriptor

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

func (DeploymentOccurrence_Platform) String

type DiscoveryNote

type DiscoveryNote struct {
	// Required. Immutable. The kind of analysis that is handled by this
	// discovery.
	AnalysisKind         NoteKind `protobuf:"varint,1,opt,name=analysis_kind,json=analysisKind,proto3,enum=grafeas.v1.NoteKind" json:"analysis_kind,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A `Discovery` occurrence is created in a consumer's project at the start of analysis.

func (*DiscoveryNote) Descriptor

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

func (*DiscoveryNote) GetAnalysisKind

func (m *DiscoveryNote) GetAnalysisKind() NoteKind

func (*DiscoveryNote) ProtoMessage

func (*DiscoveryNote) ProtoMessage()

func (*DiscoveryNote) Reset

func (m *DiscoveryNote) Reset()

func (*DiscoveryNote) String

func (m *DiscoveryNote) String() string

func (*DiscoveryNote) XXX_DiscardUnknown

func (m *DiscoveryNote) XXX_DiscardUnknown()

func (*DiscoveryNote) XXX_Marshal

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

func (*DiscoveryNote) XXX_Merge

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

func (*DiscoveryNote) XXX_Size

func (m *DiscoveryNote) XXX_Size() int

func (*DiscoveryNote) XXX_Unmarshal

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

type DiscoveryOccurrence

type DiscoveryOccurrence struct {
	// Whether the resource is continuously analyzed.
	ContinuousAnalysis DiscoveryOccurrence_ContinuousAnalysis `` /* 171-byte string literal not displayed */
	// The status of discovery for the resource.
	AnalysisStatus DiscoveryOccurrence_AnalysisStatus `` /* 155-byte string literal not displayed */
	// When an error is encountered this will contain a LocalizedMessage under
	// details to show to the user. The LocalizedMessage is output only and
	// populated by the API.
	AnalysisStatusError  *status.Status `protobuf:"bytes,3,opt,name=analysis_status_error,json=analysisStatusError,proto3" json:"analysis_status_error,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

Provides information about the analysis status of a discovered resource.

func (*DiscoveryOccurrence) Descriptor

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

func (*DiscoveryOccurrence) GetAnalysisStatus

func (*DiscoveryOccurrence) GetAnalysisStatusError

func (m *DiscoveryOccurrence) GetAnalysisStatusError() *status.Status

func (*DiscoveryOccurrence) GetContinuousAnalysis

func (*DiscoveryOccurrence) ProtoMessage

func (*DiscoveryOccurrence) ProtoMessage()

func (*DiscoveryOccurrence) Reset

func (m *DiscoveryOccurrence) Reset()

func (*DiscoveryOccurrence) String

func (m *DiscoveryOccurrence) String() string

func (*DiscoveryOccurrence) XXX_DiscardUnknown

func (m *DiscoveryOccurrence) XXX_DiscardUnknown()

func (*DiscoveryOccurrence) XXX_Marshal

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

func (*DiscoveryOccurrence) XXX_Merge

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

func (*DiscoveryOccurrence) XXX_Size

func (m *DiscoveryOccurrence) XXX_Size() int

func (*DiscoveryOccurrence) XXX_Unmarshal

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

type DiscoveryOccurrence_AnalysisStatus

type DiscoveryOccurrence_AnalysisStatus int32

Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis).

const (
	// Unknown.
	DiscoveryOccurrence_ANALYSIS_STATUS_UNSPECIFIED DiscoveryOccurrence_AnalysisStatus = 0
	// Resource is known but no action has been taken yet.
	DiscoveryOccurrence_PENDING DiscoveryOccurrence_AnalysisStatus = 1
	// Resource is being analyzed.
	DiscoveryOccurrence_SCANNING DiscoveryOccurrence_AnalysisStatus = 2
	// Analysis has finished successfully.
	DiscoveryOccurrence_FINISHED_SUCCESS DiscoveryOccurrence_AnalysisStatus = 3
	// Analysis has finished unsuccessfully, the analysis itself is in a bad
	// state.
	DiscoveryOccurrence_FINISHED_FAILED DiscoveryOccurrence_AnalysisStatus = 4
	// The resource is known not to be supported
	DiscoveryOccurrence_FINISHED_UNSUPPORTED DiscoveryOccurrence_AnalysisStatus = 5
)

func (DiscoveryOccurrence_AnalysisStatus) EnumDescriptor

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

func (DiscoveryOccurrence_AnalysisStatus) String

type DiscoveryOccurrence_ContinuousAnalysis

type DiscoveryOccurrence_ContinuousAnalysis int32

Whether the resource is continuously analyzed.

const (
	// Unknown.
	DiscoveryOccurrence_CONTINUOUS_ANALYSIS_UNSPECIFIED DiscoveryOccurrence_ContinuousAnalysis = 0
	// The resource is continuously analyzed.
	DiscoveryOccurrence_ACTIVE DiscoveryOccurrence_ContinuousAnalysis = 1
	// The resource is ignored for continuous analysis.
	DiscoveryOccurrence_INACTIVE DiscoveryOccurrence_ContinuousAnalysis = 2
)

func (DiscoveryOccurrence_ContinuousAnalysis) EnumDescriptor

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

func (DiscoveryOccurrence_ContinuousAnalysis) String

type Distribution

type Distribution struct {
	// Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
	// denoting the package manager version distributing a package.
	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
	// The CPU architecture for which packages in this distribution channel were
	// built.
	Architecture Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=grafeas.v1.Architecture" json:"architecture,omitempty"`
	// The latest available version of this package in this distribution channel.
	LatestVersion *Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
	// A freeform string denoting the maintainer of this package.
	Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
	// The distribution channel-specific homepage for this package.
	Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
	// The distribution channel-specific description of this package.
	Description          string   `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror.

func (*Distribution) Descriptor

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

func (*Distribution) GetArchitecture

func (m *Distribution) GetArchitecture() Architecture

func (*Distribution) GetCpeUri

func (m *Distribution) GetCpeUri() string

func (*Distribution) GetDescription

func (m *Distribution) GetDescription() string

func (*Distribution) GetLatestVersion

func (m *Distribution) GetLatestVersion() *Version

func (*Distribution) GetMaintainer

func (m *Distribution) GetMaintainer() string

func (*Distribution) GetUrl

func (m *Distribution) GetUrl() string

func (*Distribution) ProtoMessage

func (*Distribution) ProtoMessage()

func (*Distribution) Reset

func (m *Distribution) Reset()

func (*Distribution) String

func (m *Distribution) String() string

func (*Distribution) XXX_DiscardUnknown

func (m *Distribution) XXX_DiscardUnknown()

func (*Distribution) XXX_Marshal

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

func (*Distribution) XXX_Merge

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

func (*Distribution) XXX_Size

func (m *Distribution) XXX_Size() int

func (*Distribution) XXX_Unmarshal

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

type FileHashes

type FileHashes struct {
	// Required. Collection of file hashes.
	FileHash             []*Hash  `protobuf:"bytes,1,rep,name=file_hash,json=fileHash,proto3" json:"file_hash,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build.

func (*FileHashes) Descriptor

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

func (*FileHashes) GetFileHash

func (m *FileHashes) GetFileHash() []*Hash

func (*FileHashes) ProtoMessage

func (*FileHashes) ProtoMessage()

func (*FileHashes) Reset

func (m *FileHashes) Reset()

func (*FileHashes) String

func (m *FileHashes) String() string

func (*FileHashes) XXX_DiscardUnknown

func (m *FileHashes) XXX_DiscardUnknown()

func (*FileHashes) XXX_Marshal

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

func (*FileHashes) XXX_Merge

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

func (*FileHashes) XXX_Size

func (m *FileHashes) XXX_Size() int

func (*FileHashes) XXX_Unmarshal

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

type Fingerprint

type Fingerprint struct {
	// Required. The layer ID of the final layer in the Docker image's v1
	// representation.
	V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" json:"v1_name,omitempty"`
	// Required. The ordered list of v2 blobs that represent a given image.
	V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob,proto3" json:"v2_blob,omitempty"`
	// Output only. The name of the image's v2 blobs computed via:
	//   [bottom] := v2_blob[bottom]
	//   [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
	// Only the name of the final blob is kept.
	V2Name               string   `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A set of properties that uniquely identify a given Docker image.

func (*Fingerprint) Descriptor

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

func (*Fingerprint) GetV1Name

func (m *Fingerprint) GetV1Name() string

func (*Fingerprint) GetV2Blob

func (m *Fingerprint) GetV2Blob() []string

func (*Fingerprint) GetV2Name

func (m *Fingerprint) GetV2Name() string

func (*Fingerprint) ProtoMessage

func (*Fingerprint) ProtoMessage()

func (*Fingerprint) Reset

func (m *Fingerprint) Reset()

func (*Fingerprint) String

func (m *Fingerprint) String() string

func (*Fingerprint) XXX_DiscardUnknown

func (m *Fingerprint) XXX_DiscardUnknown()

func (*Fingerprint) XXX_Marshal

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

func (*Fingerprint) XXX_Merge

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

func (*Fingerprint) XXX_Size

func (m *Fingerprint) XXX_Size() int

func (*Fingerprint) XXX_Unmarshal

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

type GerritSourceContext

type GerritSourceContext struct {
	// The URI of a running Gerrit instance.
	HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri,proto3" json:"host_uri,omitempty"`
	// The full project name within the host. Projects may be nested, so
	// "project/subproject" is a valid project name. The "repo name" is the
	// hostURI/project.
	GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject,proto3" json:"gerrit_project,omitempty"`
	// A revision in a Gerrit project can be identified by either its revision ID
	// or its alias.
	//
	// Types that are valid to be assigned to Revision:
	//	*GerritSourceContext_RevisionId
	//	*GerritSourceContext_AliasContext
	Revision             isGerritSourceContext_Revision `protobuf_oneof:"revision"`
	XXX_NoUnkeyedLiteral struct{}                       `json:"-"`
	XXX_unrecognized     []byte                         `json:"-"`
	XXX_sizecache        int32                          `json:"-"`
}

A SourceContext referring to a Gerrit project.

func (*GerritSourceContext) Descriptor

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

func (*GerritSourceContext) GetAliasContext

func (m *GerritSourceContext) GetAliasContext() *AliasContext

func (*GerritSourceContext) GetGerritProject

func (m *GerritSourceContext) GetGerritProject() string

func (*GerritSourceContext) GetHostUri

func (m *GerritSourceContext) GetHostUri() string

func (*GerritSourceContext) GetRevision

func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision

func (*GerritSourceContext) GetRevisionId

func (m *GerritSourceContext) GetRevisionId() string

func (*GerritSourceContext) ProtoMessage

func (*GerritSourceContext) ProtoMessage()

func (*GerritSourceContext) Reset

func (m *GerritSourceContext) Reset()

func (*GerritSourceContext) String

func (m *GerritSourceContext) String() string

func (*GerritSourceContext) XXX_DiscardUnknown

func (m *GerritSourceContext) XXX_DiscardUnknown()

func (*GerritSourceContext) XXX_Marshal

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

func (*GerritSourceContext) XXX_Merge

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

func (*GerritSourceContext) XXX_OneofWrappers

func (*GerritSourceContext) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GerritSourceContext) XXX_Size

func (m *GerritSourceContext) XXX_Size() int

func (*GerritSourceContext) XXX_Unmarshal

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

type GerritSourceContext_AliasContext

type GerritSourceContext_AliasContext struct {
	AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,oneof"`
}

type GerritSourceContext_RevisionId

type GerritSourceContext_RevisionId struct {
	RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
}

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 GitSourceContext

type GitSourceContext struct {
	// Git repository URL.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Git commit hash.
	RevisionId           string   `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).

func (*GitSourceContext) Descriptor

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

func (*GitSourceContext) GetRevisionId

func (m *GitSourceContext) GetRevisionId() string

func (*GitSourceContext) GetUrl

func (m *GitSourceContext) GetUrl() string

func (*GitSourceContext) ProtoMessage

func (*GitSourceContext) ProtoMessage()

func (*GitSourceContext) Reset

func (m *GitSourceContext) Reset()

func (*GitSourceContext) String

func (m *GitSourceContext) String() string

func (*GitSourceContext) XXX_DiscardUnknown

func (m *GitSourceContext) XXX_DiscardUnknown()

func (*GitSourceContext) XXX_Marshal

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

func (*GitSourceContext) XXX_Merge

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

func (*GitSourceContext) XXX_Size

func (m *GitSourceContext) XXX_Size() int

func (*GitSourceContext) XXX_Unmarshal

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

type GrafeasClient

type GrafeasClient 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)
}

GrafeasClient is the client API for Grafeas service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGrafeasClient

func NewGrafeasClient(cc *grpc.ClientConn) GrafeasClient

type GrafeasServer

type GrafeasServer 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)
}

GrafeasServer is the server API for Grafeas service.

type Hash

type Hash struct {
	// Required. The type of hash that was performed, e.g. "SHA-256".
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Required. The hash value.
	Value                []byte   `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Container message for hash values.

func (*Hash) Descriptor

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

func (*Hash) GetType

func (m *Hash) GetType() string

func (*Hash) GetValue

func (m *Hash) GetValue() []byte

func (*Hash) ProtoMessage

func (*Hash) ProtoMessage()

func (*Hash) Reset

func (m *Hash) Reset()

func (*Hash) String

func (m *Hash) String() string

func (*Hash) XXX_DiscardUnknown

func (m *Hash) XXX_DiscardUnknown()

func (*Hash) XXX_Marshal

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

func (*Hash) XXX_Merge

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

func (*Hash) XXX_Size

func (m *Hash) XXX_Size() int

func (*Hash) XXX_Unmarshal

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

type ImageNote

type ImageNote struct {
	// Required. Immutable. The resource_url for the resource representing the
	// basis of associated occurrence images.
	ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl,proto3" json:"resource_url,omitempty"`
	// Required. Immutable. The fingerprint of the base image.
	Fingerprint          *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via:

FROM <Basis.resource_url>

Or an equivalent reference, e.g., a tag of the resource_url.

func (*ImageNote) Descriptor

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

func (*ImageNote) GetFingerprint

func (m *ImageNote) GetFingerprint() *Fingerprint

func (*ImageNote) GetResourceUrl

func (m *ImageNote) GetResourceUrl() string

func (*ImageNote) ProtoMessage

func (*ImageNote) ProtoMessage()

func (*ImageNote) Reset

func (m *ImageNote) Reset()

func (*ImageNote) String

func (m *ImageNote) String() string

func (*ImageNote) XXX_DiscardUnknown

func (m *ImageNote) XXX_DiscardUnknown()

func (*ImageNote) XXX_Marshal

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

func (*ImageNote) XXX_Merge

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

func (*ImageNote) XXX_Size

func (m *ImageNote) XXX_Size() int

func (*ImageNote) XXX_Unmarshal

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

type ImageOccurrence

type ImageOccurrence struct {
	// Required. The fingerprint of the derived image.
	Fingerprint *Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
	// Output only. The number of layers by which this image differs from the
	// associated image basis.
	Distance int32 `protobuf:"varint,2,opt,name=distance,proto3" json:"distance,omitempty"`
	// This contains layer-specific metadata, if populated it has length
	// "distance" and is ordered with [distance] being the layer immediately
	// following the base image and [1] being the final layer.
	LayerInfo []*Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" json:"layer_info,omitempty"`
	// Output only. This contains the base image URL for the derived image
	// occurrence.
	BaseResourceUrl      string   `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl,proto3" json:"base_resource_url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Details of the derived image portion of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.

func (*ImageOccurrence) Descriptor

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

func (*ImageOccurrence) GetBaseResourceUrl

func (m *ImageOccurrence) GetBaseResourceUrl() string

func (*ImageOccurrence) GetDistance

func (m *ImageOccurrence) GetDistance() int32

func (*ImageOccurrence) GetFingerprint

func (m *ImageOccurrence) GetFingerprint() *Fingerprint

func (*ImageOccurrence) GetLayerInfo

func (m *ImageOccurrence) GetLayerInfo() []*Layer

func (*ImageOccurrence) ProtoMessage

func (*ImageOccurrence) ProtoMessage()

func (*ImageOccurrence) Reset

func (m *ImageOccurrence) Reset()

func (*ImageOccurrence) String

func (m *ImageOccurrence) String() string

func (*ImageOccurrence) XXX_DiscardUnknown

func (m *ImageOccurrence) XXX_DiscardUnknown()

func (*ImageOccurrence) XXX_Marshal

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

func (*ImageOccurrence) XXX_Merge

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

func (*ImageOccurrence) XXX_Size

func (m *ImageOccurrence) XXX_Size() int

func (*ImageOccurrence) XXX_Unmarshal

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

type Layer

type Layer struct {
	// Required. The recovered Dockerfile directive used to construct this layer.
	// See https://docs.docker.com/engine/reference/builder/ for more information.
	Directive string `protobuf:"bytes,1,opt,name=directive,proto3" json:"directive,omitempty"`
	// The recovered arguments to the Dockerfile directive.
	Arguments            string   `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Layer holds metadata specific to a layer of a Docker image.

func (*Layer) Descriptor

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

func (*Layer) GetArguments

func (m *Layer) GetArguments() string

func (*Layer) GetDirective

func (m *Layer) GetDirective() string

func (*Layer) ProtoMessage

func (*Layer) ProtoMessage()

func (*Layer) Reset

func (m *Layer) Reset()

func (*Layer) String

func (m *Layer) String() string

func (*Layer) XXX_DiscardUnknown

func (m *Layer) XXX_DiscardUnknown()

func (*Layer) XXX_Marshal

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

func (*Layer) XXX_Merge

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

func (*Layer) XXX_Size

func (m *Layer) XXX_Size() int

func (*Layer) XXX_Unmarshal

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

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. 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"`
	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. 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"`
	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 Location

type Location struct {
	// Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
	// denoting the package manager version distributing a package.
	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
	// The version installed at this location.
	Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The path from which we gathered that this package/version is installed.
	Path                 string   `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.

func (*Location) Descriptor

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

func (*Location) GetCpeUri

func (m *Location) GetCpeUri() string

func (*Location) GetPath

func (m *Location) GetPath() string

func (*Location) GetVersion

func (m *Location) GetVersion() *Version

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) Reset

func (m *Location) Reset()

func (*Location) String

func (m *Location) String() string

func (*Location) XXX_DiscardUnknown

func (m *Location) XXX_DiscardUnknown()

func (*Location) XXX_Marshal

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

func (*Location) XXX_Merge

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

func (*Location) XXX_Size

func (m *Location) XXX_Size() int

func (*Location) XXX_Unmarshal

func (m *Location) 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 NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1.NoteKind" json:"kind,omitempty"`
	// URLs associated with this note.
	RelatedUrl []*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_Image
	//	*Note_Package
	//	*Note_Deployment
	//	*Note_Discovery
	//	*Note_Attestation
	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) GetAttestation

func (m *Note) GetAttestation() *AttestationNote

func (*Note) GetBuild

func (m *Note) GetBuild() *BuildNote

func (*Note) GetCreateTime

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

func (*Note) GetDeployment

func (m *Note) GetDeployment() *DeploymentNote

func (*Note) GetDiscovery

func (m *Note) GetDiscovery() *DiscoveryNote

func (*Note) GetExpirationTime

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

func (*Note) GetImage

func (m *Note) GetImage() *ImageNote

func (*Note) GetKind

func (m *Note) GetKind() NoteKind

func (*Note) GetLongDescription

func (m *Note) GetLongDescription() string

func (*Note) GetName

func (m *Note) GetName() string

func (*Note) GetPackage

func (m *Note) GetPackage() *PackageNote

func (*Note) GetRelatedNoteNames

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

func (*Note) GetRelatedUrl

func (m *Note) GetRelatedUrl() []*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() *VulnerabilityNote

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_OneofWrappers

func (*Note) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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 NoteKind

type NoteKind int32

Kind represents the kinds of notes supported.

const (
	// Unknown.
	NoteKind_NOTE_KIND_UNSPECIFIED NoteKind = 0
	// The note and occurrence represent a package vulnerability.
	NoteKind_VULNERABILITY NoteKind = 1
	// The note and occurrence assert build provenance.
	NoteKind_BUILD NoteKind = 2
	// This represents an image basis relationship.
	NoteKind_IMAGE NoteKind = 3
	// This represents a package installed via a package manager.
	NoteKind_PACKAGE NoteKind = 4
	// The note and occurrence track deployment events.
	NoteKind_DEPLOYMENT NoteKind = 5
	// The note and occurrence track the initial discovery status of a resource.
	NoteKind_DISCOVERY NoteKind = 6
	// This represents a logical "role" that can attest to artifacts.
	NoteKind_ATTESTATION NoteKind = 7
)

func (NoteKind) EnumDescriptor

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

func (NoteKind) String

func (x NoteKind) String() string

type Note_Attestation

type Note_Attestation struct {
	Attestation *AttestationNote `protobuf:"bytes,16,opt,name=attestation,proto3,oneof"`
}

type Note_Build

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

type Note_Deployment

type Note_Deployment struct {
	Deployment *DeploymentNote `protobuf:"bytes,14,opt,name=deployment,proto3,oneof"`
}

type Note_Discovery

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

type Note_Image

type Note_Image struct {
	Image *ImageNote `protobuf:"bytes,12,opt,name=image,proto3,oneof"`
}

type Note_Package

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

type Note_Vulnerability

type Note_Vulnerability struct {
	Vulnerability *VulnerabilityNote `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. A URI that represents the resource for which the
	// occurrence applies. For example,
	// `https://gcr.io/project/image@sha256:123abc` for a Docker image.
	ResourceUri string `protobuf:"bytes,2,opt,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,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 NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1.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_Image
	//	*Occurrence_Package
	//	*Occurrence_Deployment
	//	*Occurrence_Discovery
	//	*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() *AttestationOccurrence

func (*Occurrence) GetBuild

func (m *Occurrence) GetBuild() *BuildOccurrence

func (*Occurrence) GetCreateTime

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

func (*Occurrence) GetDeployment

func (m *Occurrence) GetDeployment() *DeploymentOccurrence

func (*Occurrence) GetDetails

func (m *Occurrence) GetDetails() isOccurrence_Details

func (*Occurrence) GetDiscovery

func (m *Occurrence) GetDiscovery() *DiscoveryOccurrence

func (*Occurrence) GetImage

func (m *Occurrence) GetImage() *ImageOccurrence

func (*Occurrence) GetKind

func (m *Occurrence) GetKind() NoteKind

func (*Occurrence) GetName

func (m *Occurrence) GetName() string

func (*Occurrence) GetNoteName

func (m *Occurrence) GetNoteName() string

func (*Occurrence) GetPackage

func (m *Occurrence) GetPackage() *PackageOccurrence

func (*Occurrence) GetRemediation

func (m *Occurrence) GetRemediation() string

func (*Occurrence) GetResourceUri

func (m *Occurrence) GetResourceUri() string

func (*Occurrence) GetUpdateTime

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

func (*Occurrence) GetVulnerability

func (m *Occurrence) GetVulnerability() *VulnerabilityOccurrence

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_OneofWrappers

func (*Occurrence) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers 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 *AttestationOccurrence `protobuf:"bytes,14,opt,name=attestation,proto3,oneof"`
}

type Occurrence_Build

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

type Occurrence_Deployment

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

type Occurrence_Discovery

type Occurrence_Discovery struct {
	Discovery *DiscoveryOccurrence `protobuf:"bytes,13,opt,name=discovery,proto3,oneof"`
}

type Occurrence_Image

type Occurrence_Image struct {
	Image *ImageOccurrence `protobuf:"bytes,10,opt,name=image,proto3,oneof"`
}

type Occurrence_Package

type Occurrence_Package struct {
	Package *PackageOccurrence `protobuf:"bytes,11,opt,name=package,proto3,oneof"`
}

type Occurrence_Vulnerability

type Occurrence_Vulnerability struct {
	Vulnerability *VulnerabilityOccurrence `protobuf:"bytes,8,opt,name=vulnerability,proto3,oneof"`
}

type PackageNote

type PackageNote struct {
	// Required. Immutable. The name of the package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The various channels by which a package is distributed.
	Distribution         []*Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
	XXX_NoUnkeyedLiteral struct{}        `json:"-"`
	XXX_unrecognized     []byte          `json:"-"`
	XXX_sizecache        int32           `json:"-"`
}

This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions.

func (*PackageNote) Descriptor

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

func (*PackageNote) GetDistribution

func (m *PackageNote) GetDistribution() []*Distribution

func (*PackageNote) GetName

func (m *PackageNote) GetName() string

func (*PackageNote) ProtoMessage

func (*PackageNote) ProtoMessage()

func (*PackageNote) Reset

func (m *PackageNote) Reset()

func (*PackageNote) String

func (m *PackageNote) String() string

func (*PackageNote) XXX_DiscardUnknown

func (m *PackageNote) XXX_DiscardUnknown()

func (*PackageNote) XXX_Marshal

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

func (*PackageNote) XXX_Merge

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

func (*PackageNote) XXX_Size

func (m *PackageNote) XXX_Size() int

func (*PackageNote) XXX_Unmarshal

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

type PackageOccurrence

type PackageOccurrence struct {
	// Output only. The name of the installed package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. All of the places within the filesystem versions of this package
	// have been found.
	Location             []*Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

Details on how a particular software package was installed on a system.

func (*PackageOccurrence) Descriptor

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

func (*PackageOccurrence) GetLocation

func (m *PackageOccurrence) GetLocation() []*Location

func (*PackageOccurrence) GetName

func (m *PackageOccurrence) GetName() string

func (*PackageOccurrence) ProtoMessage

func (*PackageOccurrence) ProtoMessage()

func (*PackageOccurrence) Reset

func (m *PackageOccurrence) Reset()

func (*PackageOccurrence) String

func (m *PackageOccurrence) String() string

func (*PackageOccurrence) XXX_DiscardUnknown

func (m *PackageOccurrence) XXX_DiscardUnknown()

func (*PackageOccurrence) XXX_Marshal

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

func (*PackageOccurrence) XXX_Merge

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

func (*PackageOccurrence) XXX_Size

func (m *PackageOccurrence) XXX_Size() int

func (*PackageOccurrence) XXX_Unmarshal

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

type ProjectRepoId

type ProjectRepoId struct {
	// The ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// The name of the repo. Leave empty for the default repo.
	RepoName             string   `protobuf:"bytes,2,opt,name=repo_name,json=repoName,proto3" json:"repo_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.

func (*ProjectRepoId) Descriptor

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

func (*ProjectRepoId) GetProjectId

func (m *ProjectRepoId) GetProjectId() string

func (*ProjectRepoId) GetRepoName

func (m *ProjectRepoId) GetRepoName() string

func (*ProjectRepoId) ProtoMessage

func (*ProjectRepoId) ProtoMessage()

func (*ProjectRepoId) Reset

func (m *ProjectRepoId) Reset()

func (*ProjectRepoId) String

func (m *ProjectRepoId) String() string

func (*ProjectRepoId) XXX_DiscardUnknown

func (m *ProjectRepoId) XXX_DiscardUnknown()

func (*ProjectRepoId) XXX_Marshal

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

func (*ProjectRepoId) XXX_Merge

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

func (*ProjectRepoId) XXX_Size

func (m *ProjectRepoId) XXX_Size() int

func (*ProjectRepoId) XXX_Unmarshal

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

type RelatedUrl

type RelatedUrl struct {
	// Specific URL associated with the resource.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Label to describe usage of the URL.
	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Metadata for any related URL information.

func (*RelatedUrl) Descriptor

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

func (*RelatedUrl) GetLabel

func (m *RelatedUrl) GetLabel() string

func (*RelatedUrl) GetUrl

func (m *RelatedUrl) GetUrl() string

func (*RelatedUrl) ProtoMessage

func (*RelatedUrl) ProtoMessage()

func (*RelatedUrl) Reset

func (m *RelatedUrl) Reset()

func (*RelatedUrl) String

func (m *RelatedUrl) String() string

func (*RelatedUrl) XXX_DiscardUnknown

func (m *RelatedUrl) XXX_DiscardUnknown()

func (*RelatedUrl) XXX_Marshal

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

func (*RelatedUrl) XXX_Merge

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

func (*RelatedUrl) XXX_Size

func (m *RelatedUrl) XXX_Size() int

func (*RelatedUrl) XXX_Unmarshal

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

type RepoId

type RepoId struct {
	// A cloud repo can be identified by either its project ID and repository name
	// combination, or its globally unique identifier.
	//
	// Types that are valid to be assigned to Id:
	//	*RepoId_ProjectRepoId
	//	*RepoId_Uid
	Id                   isRepoId_Id `protobuf_oneof:"id"`
	XXX_NoUnkeyedLiteral struct{}    `json:"-"`
	XXX_unrecognized     []byte      `json:"-"`
	XXX_sizecache        int32       `json:"-"`
}

A unique identifier for a Cloud Repo.

func (*RepoId) Descriptor

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

func (*RepoId) GetId

func (m *RepoId) GetId() isRepoId_Id

func (*RepoId) GetProjectRepoId

func (m *RepoId) GetProjectRepoId() *ProjectRepoId

func (*RepoId) GetUid

func (m *RepoId) GetUid() string

func (*RepoId) ProtoMessage

func (*RepoId) ProtoMessage()

func (*RepoId) Reset

func (m *RepoId) Reset()

func (*RepoId) String

func (m *RepoId) String() string

func (*RepoId) XXX_DiscardUnknown

func (m *RepoId) XXX_DiscardUnknown()

func (*RepoId) XXX_Marshal

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

func (*RepoId) XXX_Merge

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

func (*RepoId) XXX_OneofWrappers

func (*RepoId) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*RepoId) XXX_Size

func (m *RepoId) XXX_Size() int

func (*RepoId) XXX_Unmarshal

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

type RepoId_ProjectRepoId

type RepoId_ProjectRepoId struct {
	ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
}

type RepoId_Uid

type RepoId_Uid struct {
	Uid string `protobuf:"bytes,2,opt,name=uid,proto3,oneof"`
}

type Severity

type Severity int32

Note provider assigned severity/impact ranking.

const (
	// Unknown.
	Severity_SEVERITY_UNSPECIFIED Severity = 0
	// Minimal severity.
	Severity_MINIMAL Severity = 1
	// Low severity.
	Severity_LOW Severity = 2
	// Medium severity.
	Severity_MEDIUM Severity = 3
	// High severity.
	Severity_HIGH Severity = 4
	// Critical severity.
	Severity_CRITICAL Severity = 5
)

func (Severity) EnumDescriptor

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

func (Severity) String

func (x Severity) String() string

type Signature

type Signature struct {
	// The content of the signature, an opaque bytestring.
	// The payload that this signature verifies MUST be unambiguously provided
	// with the Signature during verification. A wrapper message might provide
	// the payload explicitly. Alternatively, a message might have a canonical
	// serialization that can always be unambiguously computed to derive the
	// payload.
	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// The identifier for the public key that verifies this signature.
	//   * The `public_key_id` is required.
	//   * The `public_key_id` MUST be an RFC3986 conformant URI.
	//   * When possible, the `public_key_id` SHOULD be an immutable reference,
	//     such as a cryptographic digest.
	//
	// Examples of valid `public_key_id`s:
	//
	// OpenPGP V4 public key fingerprint:
	//   * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA"
	// See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more
	// details on this scheme.
	//
	// RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER
	// serialization):
	//   * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
	//   * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
	PublicKeyId          string   `protobuf:"bytes,2,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm).

In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances:

  • The `public_key_id` is not recognized by the verifier.
  • The public key that `public_key_id` refers to does not verify the signature with respect to the payload.

The `signature` contents SHOULD NOT be "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).

func (*Signature) Descriptor

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

func (*Signature) GetPublicKeyId

func (m *Signature) GetPublicKeyId() string

func (*Signature) GetSignature

func (m *Signature) GetSignature() []byte

func (*Signature) ProtoMessage

func (*Signature) ProtoMessage()

func (*Signature) Reset

func (m *Signature) Reset()

func (*Signature) String

func (m *Signature) String() string

func (*Signature) XXX_DiscardUnknown

func (m *Signature) XXX_DiscardUnknown()

func (*Signature) XXX_Marshal

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

func (*Signature) XXX_Merge

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

func (*Signature) XXX_Size

func (m *Signature) XXX_Size() int

func (*Signature) XXX_Unmarshal

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

type Source

type Source struct {
	// If provided, the input binary artifacts for the build came from this
	// location.
	ArtifactStorageSourceUri string `` /* 137-byte string literal not displayed */
	// Hash(es) of the build source, which can be used to verify that the original
	// source integrity was maintained in the build.
	//
	// The keys to this map are file paths used as build source and the values
	// contain the hash values for those files.
	//
	// If the build source came in a single package such as a gzipped tarfile
	// (.tar.gz), the FileHash will be for the single path to that file.
	FileHashes map[string]*FileHashes `` /* 179-byte string literal not displayed */
	// If provided, the source code used for the build came from this location.
	Context *SourceContext `protobuf:"bytes,3,opt,name=context,proto3" json:"context,omitempty"`
	// If provided, some of the source code used for the build may be found in
	// these locations, in the case where the source repository had multiple
	// remotes or submodules. This list will not include the context specified in
	// the context field.
	AdditionalContexts   []*SourceContext `protobuf:"bytes,4,rep,name=additional_contexts,json=additionalContexts,proto3" json:"additional_contexts,omitempty"`
	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
	XXX_unrecognized     []byte           `json:"-"`
	XXX_sizecache        int32            `json:"-"`
}

Source describes the location of the source used for the build.

func (*Source) Descriptor

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

func (*Source) GetAdditionalContexts

func (m *Source) GetAdditionalContexts() []*SourceContext

func (*Source) GetArtifactStorageSourceUri

func (m *Source) GetArtifactStorageSourceUri() string

func (*Source) GetContext

func (m *Source) GetContext() *SourceContext

func (*Source) GetFileHashes

func (m *Source) GetFileHashes() map[string]*FileHashes

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) String

func (m *Source) String() string

func (*Source) XXX_DiscardUnknown

func (m *Source) XXX_DiscardUnknown()

func (*Source) XXX_Marshal

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

func (*Source) XXX_Merge

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

func (*Source) XXX_Size

func (m *Source) XXX_Size() int

func (*Source) XXX_Unmarshal

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

type SourceContext

type SourceContext struct {
	// A SourceContext can refer any one of the following types of repositories.
	//
	// Types that are valid to be assigned to Context:
	//	*SourceContext_CloudRepo
	//	*SourceContext_Gerrit
	//	*SourceContext_Git
	Context isSourceContext_Context `protobuf_oneof:"context"`
	// Labels with user defined metadata.
	Labels               map[string]string `` /* 153-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.

func (*SourceContext) Descriptor

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

func (*SourceContext) GetCloudRepo

func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext

func (*SourceContext) GetContext

func (m *SourceContext) GetContext() isSourceContext_Context

func (*SourceContext) GetGerrit

func (m *SourceContext) GetGerrit() *GerritSourceContext

func (*SourceContext) GetGit

func (m *SourceContext) GetGit() *GitSourceContext

func (*SourceContext) GetLabels

func (m *SourceContext) GetLabels() map[string]string

func (*SourceContext) ProtoMessage

func (*SourceContext) ProtoMessage()

func (*SourceContext) Reset

func (m *SourceContext) Reset()

func (*SourceContext) String

func (m *SourceContext) String() string

func (*SourceContext) XXX_DiscardUnknown

func (m *SourceContext) XXX_DiscardUnknown()

func (*SourceContext) XXX_Marshal

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

func (*SourceContext) XXX_Merge

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

func (*SourceContext) XXX_OneofWrappers

func (*SourceContext) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*SourceContext) XXX_Size

func (m *SourceContext) XXX_Size() int

func (*SourceContext) XXX_Unmarshal

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

type SourceContext_CloudRepo

type SourceContext_CloudRepo struct {
	CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
}

type SourceContext_Gerrit

type SourceContext_Gerrit struct {
	Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
}

type SourceContext_Git

type SourceContext_Git struct {
	Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,oneof"`
}

type UnimplementedGrafeasServer

type UnimplementedGrafeasServer struct {
}

UnimplementedGrafeasServer can be embedded to have forward compatible implementations.

func (*UnimplementedGrafeasServer) BatchCreateNotes

func (*UnimplementedGrafeasServer) BatchCreateOccurrences

func (*UnimplementedGrafeasServer) CreateNote

func (*UnimplementedGrafeasServer) CreateOccurrence

func (*UnimplementedGrafeasServer) DeleteNote

func (*UnimplementedGrafeasServer) DeleteOccurrence

func (*UnimplementedGrafeasServer) GetNote

func (*UnimplementedGrafeasServer) GetOccurrence

func (*UnimplementedGrafeasServer) GetOccurrenceNote

func (*UnimplementedGrafeasServer) ListNoteOccurrences

func (*UnimplementedGrafeasServer) ListNotes

func (*UnimplementedGrafeasServer) ListOccurrences

func (*UnimplementedGrafeasServer) UpdateNote

func (*UnimplementedGrafeasServer) UpdateOccurrence

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 Version

type Version struct {
	// Used to correct mistakes in the version numbering scheme.
	Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// Required only when version kind is NORMAL. The main part of the version
	// name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The iteration of the package build from the above version.
	Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// Required. Distinguishes between sentinel MIN/MAX versions and normal
	// versions.
	Kind Version_VersionKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1.Version_VersionKind" json:"kind,omitempty"`
	// Human readable version string. This string is of the form
	// <epoch>:<name>-<revision> and is only set when kind is NORMAL.
	FullName             string   `protobuf:"bytes,5,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Version contains structured information about the version of a package.

func (*Version) Descriptor

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

func (*Version) GetEpoch

func (m *Version) GetEpoch() int32

func (*Version) GetFullName

func (m *Version) GetFullName() string

func (*Version) GetKind

func (m *Version) GetKind() Version_VersionKind

func (*Version) GetName

func (m *Version) GetName() string

func (*Version) GetRevision

func (m *Version) GetRevision() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) Reset

func (m *Version) Reset()

func (*Version) String

func (m *Version) String() string

func (*Version) XXX_DiscardUnknown

func (m *Version) XXX_DiscardUnknown()

func (*Version) XXX_Marshal

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

func (*Version) XXX_Merge

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

func (*Version) XXX_Size

func (m *Version) XXX_Size() int

func (*Version) XXX_Unmarshal

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

type Version_VersionKind

type Version_VersionKind int32

Whether this is an ordinary package version or a sentinel MIN/MAX version.

const (
	// Unknown.
	Version_VERSION_KIND_UNSPECIFIED Version_VersionKind = 0
	// A standard package version.
	Version_NORMAL Version_VersionKind = 1
	// A special version representing negative infinity.
	Version_MINIMUM Version_VersionKind = 2
	// A special version representing positive infinity.
	Version_MAXIMUM Version_VersionKind = 3
)

func (Version_VersionKind) EnumDescriptor

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

func (Version_VersionKind) String

func (x Version_VersionKind) String() string

type VulnerabilityNote

type VulnerabilityNote struct {
	// The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10
	// where 0 indicates low severity and 10 indicates high severity.
	CvssScore float32 `protobuf:"fixed32,1,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
	// The note provider assigned severity of this vulnerability.
	Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1.Severity" json:"severity,omitempty"`
	// Details of all known distros and packages affected by this vulnerability.
	Details []*VulnerabilityNote_Detail `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
	// The full description of the CVSSv3 for this vulnerability.
	CvssV3 *CVSSv3 `protobuf:"bytes,4,opt,name=cvss_v3,json=cvssV3,proto3" json:"cvss_v3,omitempty"`
	// Windows details get their own format because the information format and
	// model don't match a normal detail. Specifically Windows updates are done as
	// patches, thus Windows vulnerabilities really are a missing package, rather
	// than a package being at an incorrect version.
	WindowsDetails       []*VulnerabilityNote_WindowsDetail `protobuf:"bytes,5,rep,name=windows_details,json=windowsDetails,proto3" json:"windows_details,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
	XXX_unrecognized     []byte                             `json:"-"`
	XXX_sizecache        int32                              `json:"-"`
}

A security vulnerability that can be found in resources.

func (*VulnerabilityNote) Descriptor

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

func (*VulnerabilityNote) GetCvssScore

func (m *VulnerabilityNote) GetCvssScore() float32

func (*VulnerabilityNote) GetCvssV3

func (m *VulnerabilityNote) GetCvssV3() *CVSSv3

func (*VulnerabilityNote) GetDetails

func (m *VulnerabilityNote) GetDetails() []*VulnerabilityNote_Detail

func (*VulnerabilityNote) GetSeverity

func (m *VulnerabilityNote) GetSeverity() Severity

func (*VulnerabilityNote) GetWindowsDetails

func (m *VulnerabilityNote) GetWindowsDetails() []*VulnerabilityNote_WindowsDetail

func (*VulnerabilityNote) ProtoMessage

func (*VulnerabilityNote) ProtoMessage()

func (*VulnerabilityNote) Reset

func (m *VulnerabilityNote) Reset()

func (*VulnerabilityNote) String

func (m *VulnerabilityNote) String() string

func (*VulnerabilityNote) XXX_DiscardUnknown

func (m *VulnerabilityNote) XXX_DiscardUnknown()

func (*VulnerabilityNote) XXX_Marshal

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

func (*VulnerabilityNote) XXX_Merge

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

func (*VulnerabilityNote) XXX_Size

func (m *VulnerabilityNote) XXX_Size() int

func (*VulnerabilityNote) XXX_Unmarshal

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

type VulnerabilityNote_Detail

type VulnerabilityNote_Detail struct {
	// The distro assigned severity of this vulnerability.
	SeverityName string `protobuf:"bytes,1,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
	// A vendor-specific description of this vulnerability.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The type of package; whether native or non native (e.g., ruby gems,
	// node.js packages, etc.).
	PackageType string `protobuf:"bytes,3,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
	// Required. The [CPE URI](https://cpe.mitre.org/specification/) this
	// vulnerability affects.
	AffectedCpeUri string `protobuf:"bytes,4,opt,name=affected_cpe_uri,json=affectedCpeUri,proto3" json:"affected_cpe_uri,omitempty"`
	// Required. The package this vulnerability affects.
	AffectedPackage string `protobuf:"bytes,5,opt,name=affected_package,json=affectedPackage,proto3" json:"affected_package,omitempty"`
	// The version number at the start of an interval in which this
	// vulnerability exists. A vulnerability can affect a package between
	// version numbers that are disjoint sets of intervals (example:
	// [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be
	// represented in its own Detail. If a specific affected version is provided
	// by a vulnerability database, affected_version_start and
	// affected_version_end will be the same in that Detail.
	AffectedVersionStart *Version `protobuf:"bytes,6,opt,name=affected_version_start,json=affectedVersionStart,proto3" json:"affected_version_start,omitempty"`
	// The version number at the end of an interval in which this vulnerability
	// exists. A vulnerability can affect a package between version numbers
	// that are disjoint sets of intervals (example: [1.0.0-1.1.0],
	// [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its
	// own Detail. If a specific affected version is provided by a vulnerability
	// database, affected_version_start and affected_version_end will be the
	// same in that Detail.
	AffectedVersionEnd *Version `protobuf:"bytes,7,opt,name=affected_version_end,json=affectedVersionEnd,proto3" json:"affected_version_end,omitempty"`
	// The distro recommended [CPE URI](https://cpe.mitre.org/specification/)
	// to update to that contains a fix for this vulnerability. It is possible
	// for this to be different from the affected_cpe_uri.
	FixedCpeUri string `protobuf:"bytes,8,opt,name=fixed_cpe_uri,json=fixedCpeUri,proto3" json:"fixed_cpe_uri,omitempty"`
	// The distro recommended package to update to that contains a fix for this
	// vulnerability. It is possible for this to be different from the
	// affected_package.
	FixedPackage string `protobuf:"bytes,9,opt,name=fixed_package,json=fixedPackage,proto3" json:"fixed_package,omitempty"`
	// The distro recommended version to update to that contains a
	// fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no
	// such version is yet available.
	FixedVersion *Version `protobuf:"bytes,10,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
	// Whether this detail is obsolete. Occurrences are expected not to point to
	// obsolete details.
	IsObsolete           bool     `protobuf:"varint,11,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A detail for a distro and package affected by this vulnerability and its associated fix (if one is available).

func (*VulnerabilityNote_Detail) Descriptor

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

func (*VulnerabilityNote_Detail) GetAffectedCpeUri

func (m *VulnerabilityNote_Detail) GetAffectedCpeUri() string

func (*VulnerabilityNote_Detail) GetAffectedPackage

func (m *VulnerabilityNote_Detail) GetAffectedPackage() string

func (*VulnerabilityNote_Detail) GetAffectedVersionEnd

func (m *VulnerabilityNote_Detail) GetAffectedVersionEnd() *Version

func (*VulnerabilityNote_Detail) GetAffectedVersionStart

func (m *VulnerabilityNote_Detail) GetAffectedVersionStart() *Version

func (*VulnerabilityNote_Detail) GetDescription

func (m *VulnerabilityNote_Detail) GetDescription() string

func (*VulnerabilityNote_Detail) GetFixedCpeUri

func (m *VulnerabilityNote_Detail) GetFixedCpeUri() string

func (*VulnerabilityNote_Detail) GetFixedPackage

func (m *VulnerabilityNote_Detail) GetFixedPackage() string

func (*VulnerabilityNote_Detail) GetFixedVersion

func (m *VulnerabilityNote_Detail) GetFixedVersion() *Version

func (*VulnerabilityNote_Detail) GetIsObsolete

func (m *VulnerabilityNote_Detail) GetIsObsolete() bool

func (*VulnerabilityNote_Detail) GetPackageType

func (m *VulnerabilityNote_Detail) GetPackageType() string

func (*VulnerabilityNote_Detail) GetSeverityName

func (m *VulnerabilityNote_Detail) GetSeverityName() string

func (*VulnerabilityNote_Detail) ProtoMessage

func (*VulnerabilityNote_Detail) ProtoMessage()

func (*VulnerabilityNote_Detail) Reset

func (m *VulnerabilityNote_Detail) Reset()

func (*VulnerabilityNote_Detail) String

func (m *VulnerabilityNote_Detail) String() string

func (*VulnerabilityNote_Detail) XXX_DiscardUnknown

func (m *VulnerabilityNote_Detail) XXX_DiscardUnknown()

func (*VulnerabilityNote_Detail) XXX_Marshal

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

func (*VulnerabilityNote_Detail) XXX_Merge

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

func (*VulnerabilityNote_Detail) XXX_Size

func (m *VulnerabilityNote_Detail) XXX_Size() int

func (*VulnerabilityNote_Detail) XXX_Unmarshal

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

type VulnerabilityNote_WindowsDetail

type VulnerabilityNote_WindowsDetail struct {
	// Required. The [CPE URI](https://cpe.mitre.org/specification/) this
	// vulnerability affects.
	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
	// Required. The name of this vulnerability.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The description of this vulnerability.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Required. The names of the KBs which have hotfixes to mitigate this
	// vulnerability. Note that there may be multiple hotfixes (and thus
	// multiple KBs) that mitigate a given vulnerability. Currently any listed
	// KBs presence is considered a fix.
	FixingKbs            []*VulnerabilityNote_WindowsDetail_KnowledgeBase `protobuf:"bytes,4,rep,name=fixing_kbs,json=fixingKbs,proto3" json:"fixing_kbs,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                                         `json:"-"`
	XXX_unrecognized     []byte                                           `json:"-"`
	XXX_sizecache        int32                                            `json:"-"`
}

func (*VulnerabilityNote_WindowsDetail) Descriptor

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

func (*VulnerabilityNote_WindowsDetail) GetCpeUri

func (m *VulnerabilityNote_WindowsDetail) GetCpeUri() string

func (*VulnerabilityNote_WindowsDetail) GetDescription

func (m *VulnerabilityNote_WindowsDetail) GetDescription() string

func (*VulnerabilityNote_WindowsDetail) GetFixingKbs

func (*VulnerabilityNote_WindowsDetail) GetName

func (*VulnerabilityNote_WindowsDetail) ProtoMessage

func (*VulnerabilityNote_WindowsDetail) ProtoMessage()

func (*VulnerabilityNote_WindowsDetail) Reset

func (*VulnerabilityNote_WindowsDetail) String

func (*VulnerabilityNote_WindowsDetail) XXX_DiscardUnknown

func (m *VulnerabilityNote_WindowsDetail) XXX_DiscardUnknown()

func (*VulnerabilityNote_WindowsDetail) XXX_Marshal

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

func (*VulnerabilityNote_WindowsDetail) XXX_Merge

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

func (*VulnerabilityNote_WindowsDetail) XXX_Size

func (m *VulnerabilityNote_WindowsDetail) XXX_Size() int

func (*VulnerabilityNote_WindowsDetail) XXX_Unmarshal

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

type VulnerabilityNote_WindowsDetail_KnowledgeBase

type VulnerabilityNote_WindowsDetail_KnowledgeBase struct {
	// The KB name (generally of the form KB[0-9]+ (e.g., KB123456)).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// A link to the KB in the [Windows update catalog]
	// (https://www.catalog.update.microsoft.com/).
	Url                  string   `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) Descriptor

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) GetName

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) GetUrl

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) ProtoMessage

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) Reset

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) String

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) XXX_DiscardUnknown

func (m *VulnerabilityNote_WindowsDetail_KnowledgeBase) XXX_DiscardUnknown()

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) XXX_Marshal

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

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) XXX_Merge

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) XXX_Size

func (*VulnerabilityNote_WindowsDetail_KnowledgeBase) XXX_Unmarshal

type VulnerabilityOccurrence

type VulnerabilityOccurrence struct {
	// The type of package; whether native or non native (e.g., ruby gems, node.js
	// packages, etc.).
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	// Output only. The note provider assigned severity of this vulnerability.
	Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1.Severity" json:"severity,omitempty"`
	// Output only. The CVSS score of this vulnerability. CVSS score is on a
	// scale of 0 - 10 where 0 indicates low severity and 10 indicates high
	// severity.
	CvssScore float32 `protobuf:"fixed32,3,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
	// Required. The set of affected locations and their fixes (if available)
	// within the associated resource.
	PackageIssue []*VulnerabilityOccurrence_PackageIssue `protobuf:"bytes,4,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
	// Output only. A one sentence description of this vulnerability.
	ShortDescription string `protobuf:"bytes,5,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
	// Output only. A detailed description of this vulnerability.
	LongDescription string `protobuf:"bytes,6,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"`
	// Output only. URLs related to this vulnerability.
	RelatedUrls []*RelatedUrl `protobuf:"bytes,7,rep,name=related_urls,json=relatedUrls,proto3" json:"related_urls,omitempty"`
	// The distro assigned severity for this vulnerability when it is available,
	// and note provider assigned severity when distro has not yet assigned a
	// severity for this vulnerability.
	EffectiveSeverity Severity `` /* 138-byte string literal not displayed */
	// Output only. Whether at least one of the affected packages has a fix
	// available.
	FixAvailable         bool     `protobuf:"varint,9,opt,name=fix_available,json=fixAvailable,proto3" json:"fix_available,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

An occurrence of a severity vulnerability on a resource.

func (*VulnerabilityOccurrence) Descriptor

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

func (*VulnerabilityOccurrence) GetCvssScore

func (m *VulnerabilityOccurrence) GetCvssScore() float32

func (*VulnerabilityOccurrence) GetEffectiveSeverity

func (m *VulnerabilityOccurrence) GetEffectiveSeverity() Severity

func (*VulnerabilityOccurrence) GetFixAvailable

func (m *VulnerabilityOccurrence) GetFixAvailable() bool

func (*VulnerabilityOccurrence) GetLongDescription

func (m *VulnerabilityOccurrence) GetLongDescription() string

func (*VulnerabilityOccurrence) GetPackageIssue

func (*VulnerabilityOccurrence) GetRelatedUrls

func (m *VulnerabilityOccurrence) GetRelatedUrls() []*RelatedUrl

func (*VulnerabilityOccurrence) GetSeverity

func (m *VulnerabilityOccurrence) GetSeverity() Severity

func (*VulnerabilityOccurrence) GetShortDescription

func (m *VulnerabilityOccurrence) GetShortDescription() string

func (*VulnerabilityOccurrence) GetType

func (m *VulnerabilityOccurrence) GetType() string

func (*VulnerabilityOccurrence) ProtoMessage

func (*VulnerabilityOccurrence) ProtoMessage()

func (*VulnerabilityOccurrence) Reset

func (m *VulnerabilityOccurrence) Reset()

func (*VulnerabilityOccurrence) String

func (m *VulnerabilityOccurrence) String() string

func (*VulnerabilityOccurrence) XXX_DiscardUnknown

func (m *VulnerabilityOccurrence) XXX_DiscardUnknown()

func (*VulnerabilityOccurrence) XXX_Marshal

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

func (*VulnerabilityOccurrence) XXX_Merge

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

func (*VulnerabilityOccurrence) XXX_Size

func (m *VulnerabilityOccurrence) XXX_Size() int

func (*VulnerabilityOccurrence) XXX_Unmarshal

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

type VulnerabilityOccurrence_PackageIssue

type VulnerabilityOccurrence_PackageIssue struct {
	// Required. The [CPE URI](https://cpe.mitre.org/specification/) this
	// vulnerability was found in.
	AffectedCpeUri string `protobuf:"bytes,1,opt,name=affected_cpe_uri,json=affectedCpeUri,proto3" json:"affected_cpe_uri,omitempty"`
	// Required. The package this vulnerability was found in.
	AffectedPackage string `protobuf:"bytes,2,opt,name=affected_package,json=affectedPackage,proto3" json:"affected_package,omitempty"`
	// Required. The version of the package that is installed on the resource
	// affected by this vulnerability.
	AffectedVersion *Version `protobuf:"bytes,3,opt,name=affected_version,json=affectedVersion,proto3" json:"affected_version,omitempty"`
	// The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability
	// was fixed in. It is possible for this to be different from the
	// affected_cpe_uri.
	FixedCpeUri string `protobuf:"bytes,4,opt,name=fixed_cpe_uri,json=fixedCpeUri,proto3" json:"fixed_cpe_uri,omitempty"`
	// The package this vulnerability was fixed in. It is possible for this to
	// be different from the affected_package.
	FixedPackage string `protobuf:"bytes,5,opt,name=fixed_package,json=fixedPackage,proto3" json:"fixed_package,omitempty"`
	// Required. The version of the package this vulnerability was fixed in.
	// Setting this to VersionKind.MAXIMUM means no fix is yet available.
	FixedVersion *Version `protobuf:"bytes,6,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
	// Output only. Whether a fix is available for this package.
	FixAvailable         bool     `protobuf:"varint,7,opt,name=fix_available,json=fixAvailable,proto3" json:"fix_available,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).

func (*VulnerabilityOccurrence_PackageIssue) Descriptor

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

func (*VulnerabilityOccurrence_PackageIssue) GetAffectedCpeUri

func (m *VulnerabilityOccurrence_PackageIssue) GetAffectedCpeUri() string

func (*VulnerabilityOccurrence_PackageIssue) GetAffectedPackage

func (m *VulnerabilityOccurrence_PackageIssue) GetAffectedPackage() string

func (*VulnerabilityOccurrence_PackageIssue) GetAffectedVersion

func (m *VulnerabilityOccurrence_PackageIssue) GetAffectedVersion() *Version

func (*VulnerabilityOccurrence_PackageIssue) GetFixAvailable

func (m *VulnerabilityOccurrence_PackageIssue) GetFixAvailable() bool

func (*VulnerabilityOccurrence_PackageIssue) GetFixedCpeUri

func (m *VulnerabilityOccurrence_PackageIssue) GetFixedCpeUri() string

func (*VulnerabilityOccurrence_PackageIssue) GetFixedPackage

func (m *VulnerabilityOccurrence_PackageIssue) GetFixedPackage() string

func (*VulnerabilityOccurrence_PackageIssue) GetFixedVersion

func (m *VulnerabilityOccurrence_PackageIssue) GetFixedVersion() *Version

func (*VulnerabilityOccurrence_PackageIssue) ProtoMessage

func (*VulnerabilityOccurrence_PackageIssue) ProtoMessage()

func (*VulnerabilityOccurrence_PackageIssue) Reset

func (*VulnerabilityOccurrence_PackageIssue) String

func (*VulnerabilityOccurrence_PackageIssue) XXX_DiscardUnknown

func (m *VulnerabilityOccurrence_PackageIssue) XXX_DiscardUnknown()

func (*VulnerabilityOccurrence_PackageIssue) XXX_Marshal

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

func (*VulnerabilityOccurrence_PackageIssue) XXX_Merge

func (*VulnerabilityOccurrence_PackageIssue) XXX_Size

func (*VulnerabilityOccurrence_PackageIssue) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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