google_devtools_containeranalysis_v1alpha1

package
v0.0.0-...-dbc791b Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MIT Imports: 10 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 BuildSignature_KeyType_name = map[int32]string{
	0: "KEY_TYPE_UNSPECIFIED",
	1: "PGP_ASCII_ARMORED",
	2: "PKIX_PEM",
}
View Source
var BuildSignature_KeyType_value = map[string]int32{
	"KEY_TYPE_UNSPECIFIED": 0,
	"PGP_ASCII_ARMORED":    1,
	"PKIX_PEM":             2,
}
View Source
var Deployable_Deployment_Platform_name = map[int32]string{
	0: "PLATFORM_UNSPECIFIED",
	1: "GKE",
	2: "FLEX",
	3: "CUSTOM",
}
View Source
var Deployable_Deployment_Platform_value = map[string]int32{
	"PLATFORM_UNSPECIFIED": 0,
	"GKE":                  1,
	"FLEX":                 2,
	"CUSTOM":               3,
}
View Source
var DockerImage_Layer_Directive_name = map[int32]string{
	0:  "DIRECTIVE_UNSPECIFIED",
	1:  "MAINTAINER",
	2:  "RUN",
	3:  "CMD",
	4:  "LABEL",
	5:  "EXPOSE",
	6:  "ENV",
	7:  "ADD",
	8:  "COPY",
	9:  "ENTRYPOINT",
	10: "VOLUME",
	11: "USER",
	12: "WORKDIR",
	13: "ARG",
	14: "ONBUILD",
	15: "STOPSIGNAL",
	16: "HEALTHCHECK",
	17: "SHELL",
}
View Source
var DockerImage_Layer_Directive_value = map[string]int32{
	"DIRECTIVE_UNSPECIFIED": 0,
	"MAINTAINER":            1,
	"RUN":                   2,
	"CMD":                   3,
	"LABEL":                 4,
	"EXPOSE":                5,
	"ENV":                   6,
	"ADD":                   7,
	"COPY":                  8,
	"ENTRYPOINT":            9,
	"VOLUME":                10,
	"USER":                  11,
	"WORKDIR":               12,
	"ARG":                   13,
	"ONBUILD":               14,
	"STOPSIGNAL":            15,
	"HEALTHCHECK":           16,
	"SHELL":                 17,
}
View Source
var Hash_HashType_name = map[int32]string{
	0: "NONE",
	1: "SHA256",
}
View Source
var Hash_HashType_value = map[string]int32{
	"NONE":   0,
	"SHA256": 1,
}
View Source
var Note_Kind_name = map[int32]string{
	0: "KIND_UNSPECIFIED",
	2: "PACKAGE_VULNERABILITY",
	3: "BUILD_DETAILS",
	4: "IMAGE_BASIS",
	5: "PACKAGE_MANAGER",
	6: "DEPLOYABLE",
	7: "DISCOVERY",
}
View Source
var Note_Kind_value = map[string]int32{
	"KIND_UNSPECIFIED":      0,
	"PACKAGE_VULNERABILITY": 2,
	"BUILD_DETAILS":         3,
	"IMAGE_BASIS":           4,
	"PACKAGE_MANAGER":       5,
	"DEPLOYABLE":            6,
	"DISCOVERY":             7,
}
View Source
var PackageManager_Architecture_name = map[int32]string{
	0: "ARCHITECTURE_UNSPECIFIED",
	1: "X86",
	2: "X64",
}
View Source
var PackageManager_Architecture_value = map[string]int32{
	"ARCHITECTURE_UNSPECIFIED": 0,
	"X86":                      1,
	"X64":                      2,
}
View Source
var VulnerabilityType_Severity_name = map[int32]string{
	0: "SEVERITY_UNSPECIFIED",
	1: "MINIMAL",
	2: "LOW",
	3: "MEDIUM",
	4: "HIGH",
	5: "CRITICAL",
}
View Source
var VulnerabilityType_Severity_value = map[string]int32{
	"SEVERITY_UNSPECIFIED": 0,
	"MINIMAL":              1,
	"LOW":                  2,
	"MEDIUM":               3,
	"HIGH":                 4,
	"CRITICAL":             5,
}
View Source
var VulnerabilityType_Version_VersionKind_name = map[int32]string{
	0: "NORMAL",
	1: "MINIMUM",
	2: "MAXIMUM",
}
View Source
var VulnerabilityType_Version_VersionKind_value = map[string]int32{
	"NORMAL":  0,
	"MINIMUM": 1,
	"MAXIMUM": 2,
}

Functions

This section is empty.

Types

type AliasContext

type AliasContext struct {
	// The alias kind.
	Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
	// The alias name.
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
}

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

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 Artifact

type Artifact struct {
	// Name of the artifact. 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`.
	//
	// This field is deprecated in favor of the plural `names` field; it continues
	// to exist here to allow existing BuildProvenance serialized to json in
	// google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
	// deserialize back into proto.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
	// container.
	Checksum string `protobuf:"bytes,2,opt,name=checksum" 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,3,opt,name=id" 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,4,rep,name=names" json:"names,omitempty"`
}

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) GetName

func (m *Artifact) GetName() 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

type BuildDetails

type BuildDetails struct {
	// The actual provenance
	Provenance *BuildProvenance `protobuf:"bytes,1,opt,name=provenance" json:"provenance,omitempty"`
	// Serialized JSON representation of the provenance, used in generating the
	// `BuildSignature` in the corresponding Result. 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" json:"provenance_bytes,omitempty"`
}

Message encapsulating build provenance details.

func (*BuildDetails) Descriptor

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

func (*BuildDetails) GetProvenance

func (m *BuildDetails) GetProvenance() *BuildProvenance

func (*BuildDetails) GetProvenanceBytes

func (m *BuildDetails) GetProvenanceBytes() string

func (*BuildDetails) ProtoMessage

func (*BuildDetails) ProtoMessage()

func (*BuildDetails) Reset

func (m *BuildDetails) Reset()

func (*BuildDetails) String

func (m *BuildDetails) String() string

type BuildProvenance

type BuildProvenance struct {
	// Unique identifier of the build.
	Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	// ID of the project.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Commands requested by the build.
	Commands []*Command `protobuf:"bytes,5,rep,name=commands" json:"commands,omitempty"`
	// Output of the build.
	BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts" json:"built_artifacts,omitempty"`
	// Time at which the build was created.
	CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// Time at which execution of the build was started.
	StartTime *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
	// Time at which execution of the build was finished.
	FinishTime *google_protobuf1.Timestamp `protobuf:"bytes,9,opt,name=finish_time,json=finishTime" json:"finish_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,11,opt,name=creator" json:"creator,omitempty"`
	// Google Cloud Storage bucket where logs were written.
	LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket" json:"logs_bucket,omitempty"`
	// Details of the Source input to the build.
	SourceProvenance *Source `protobuf:"bytes,14,opt,name=source_provenance,json=sourceProvenance" json:"source_provenance,omitempty"`
	// Trigger identifier if the build was triggered automatically; empty if not.
	TriggerId string `protobuf:"bytes,15,opt,name=trigger_id,json=triggerId" 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 `` /* 165-byte string literal not displayed */
	// Version string of the builder at the time this build was executed.
	BuilderVersion string `protobuf:"bytes,17,opt,name=builder_version,json=builderVersion" json:"builder_version,omitempty"`
}

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() *google_protobuf1.Timestamp

func (*BuildProvenance) GetCreator

func (m *BuildProvenance) GetCreator() string

func (*BuildProvenance) GetFinishTime

func (m *BuildProvenance) GetFinishTime() *google_protobuf1.Timestamp

func (*BuildProvenance) GetId

func (m *BuildProvenance) GetId() string

func (*BuildProvenance) GetLogsBucket

func (m *BuildProvenance) GetLogsBucket() string

func (*BuildProvenance) GetProjectId

func (m *BuildProvenance) GetProjectId() string

func (*BuildProvenance) GetSourceProvenance

func (m *BuildProvenance) GetSourceProvenance() *Source

func (*BuildProvenance) GetStartTime

func (m *BuildProvenance) GetStartTime() *google_protobuf1.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

type BuildSignature

type BuildSignature struct {
	// Public key of the builder which can be used to verify that the related
	// findings are valid and unchanged. If `key_type` is empty, this defaults
	// to PEM encoded public keys.
	//
	// This field may be empty if `key_id` references an external key.
	//
	// For Cloud Container Builder based signatures, this is a PEM encoded public
	// key. To verify the Cloud Container Builder signature, place the contents of
	// this field into a file (public.pem). The signature field is base64-decoded
	// into its binary representation in signature.bin, and the provenance bytes
	// from `BuildDetails` are base64-decoded into a binary representation in
	// signed.bin. OpenSSL can then verify the signature:
	// `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
	PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey" json:"public_key,omitempty"`
	// Signature of the related `BuildProvenance`, encoded in a base64 string.
	Signature string `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
	// An Id for the key used to sign. This could be either an Id for the key
	// stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
	// CN for a cert), or a reference to an external key (such as a reference to a
	// key in Cloud Key Management Service).
	KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId" json:"key_id,omitempty"`
	// The type of the key, either stored in `public_key` or referenced in
	// `key_id`
	KeyType BuildSignature_KeyType `` /* 147-byte string literal not displayed */
}

Message encapsulating the signature of the verified build.

func (*BuildSignature) Descriptor

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

func (*BuildSignature) GetKeyId

func (m *BuildSignature) GetKeyId() string

func (*BuildSignature) GetKeyType

func (m *BuildSignature) GetKeyType() BuildSignature_KeyType

func (*BuildSignature) GetPublicKey

func (m *BuildSignature) GetPublicKey() string

func (*BuildSignature) GetSignature

func (m *BuildSignature) GetSignature() string

func (*BuildSignature) ProtoMessage

func (*BuildSignature) ProtoMessage()

func (*BuildSignature) Reset

func (m *BuildSignature) Reset()

func (*BuildSignature) String

func (m *BuildSignature) String() string

type BuildSignature_KeyType

type BuildSignature_KeyType int32

Public key formats

const (
	// `KeyType` is not set.
	BuildSignature_KEY_TYPE_UNSPECIFIED BuildSignature_KeyType = 0
	// `PGP ASCII Armored` public key.
	BuildSignature_PGP_ASCII_ARMORED BuildSignature_KeyType = 1
	// `PKIX PEM` public key.
	BuildSignature_PKIX_PEM BuildSignature_KeyType = 2
)

func (BuildSignature_KeyType) EnumDescriptor

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

func (BuildSignature_KeyType) String

func (x BuildSignature_KeyType) String() string

type BuildType

type BuildType struct {
	// Version of the builder which produced this Note.
	BuilderVersion string `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion" json:"builder_version,omitempty"`
	// Signature of the build in Occurrences pointing to the Note containing this
	// `BuilderDetails`.
	Signature *BuildSignature `protobuf:"bytes,2,opt,name=signature" json:"signature,omitempty"`
}

Note holding the version of the provider's builder and the signature of the provenance message in linked BuildDetails.

func (*BuildType) Descriptor

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

func (*BuildType) GetBuilderVersion

func (m *BuildType) GetBuilderVersion() string

func (*BuildType) GetSignature

func (m *BuildType) GetSignature() *BuildSignature

func (*BuildType) ProtoMessage

func (*BuildType) ProtoMessage()

func (*BuildType) Reset

func (m *BuildType) Reset()

func (*BuildType) String

func (m *BuildType) String() string

type CloudRepoSourceContext

type CloudRepoSourceContext struct {
	// The ID of the repo.
	RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" 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"`
}

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_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type CloudRepoSourceContext_AliasContext

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

type CloudRepoSourceContext_RevisionId

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

type Command

type Command struct {
	// 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" json:"name,omitempty"`
	// Environment variables set before running this Command.
	Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"`
	// Command-line arguments used when executing this Command.
	Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
	// Working directory (relative to project source root) used when running
	// this Command.
	Dir string `protobuf:"bytes,4,opt,name=dir" 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" 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" json:"wait_for,omitempty"`
}

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

type CreateNoteRequest

type CreateNoteRequest struct {
	// The name of the project.
	// Should be of the form "providers/{provider_id}".
	// @Deprecated
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// This field contains the project Id for example:
	// "project/{project_id}
	Parent string `protobuf:"bytes,4,opt,name=parent" json:"parent,omitempty"`
	// The ID to use for this note.
	NoteId string `protobuf:"bytes,2,opt,name=note_id,json=noteId" json:"note_id,omitempty"`
	// The Note to be inserted
	Note *Note `protobuf:"bytes,3,opt,name=note" json:"note,omitempty"`
}

Request to insert a new note

func (*CreateNoteRequest) Descriptor

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

func (*CreateNoteRequest) GetName

func (m *CreateNoteRequest) GetName() string

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

type CreateOccurrenceRequest

type CreateOccurrenceRequest struct {
	// The name of the project.  Should be of the form "projects/{project_id}".
	// @Deprecated
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// This field contains the project Id for example: "projects/{project_id}"
	Parent string `protobuf:"bytes,3,opt,name=parent" json:"parent,omitempty"`
	// The occurrence to be inserted
	Occurrence *Occurrence `protobuf:"bytes,2,opt,name=occurrence" json:"occurrence,omitempty"`
}

Request to insert a new occurrence.

func (*CreateOccurrenceRequest) Descriptor

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

func (*CreateOccurrenceRequest) GetName

func (m *CreateOccurrenceRequest) GetName() string

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

type DeleteNoteRequest

type DeleteNoteRequest struct {
	// The name of the note in the form of
	// "providers/{provider_id}/notes/{NOTE_ID}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

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

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" json:"name,omitempty"`
}

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

type Deployable

type Deployable struct {
	// Resource URI for the artifact being deployed.
	ResourceUri []string `protobuf:"bytes,1,rep,name=resource_uri,json=resourceUri" json:"resource_uri,omitempty"`
}

An artifact that can be deployed in some runtime.

func (*Deployable) Descriptor

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

func (*Deployable) GetResourceUri

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

func (*Deployable) ProtoMessage

func (*Deployable) ProtoMessage()

func (*Deployable) Reset

func (m *Deployable) Reset()

func (*Deployable) String

func (m *Deployable) String() string

type Deployable_Deployment

type Deployable_Deployment struct {
	// Identity of the user that triggered this deployment.
	UserEmail string `protobuf:"bytes,1,opt,name=user_email,json=userEmail" json:"user_email,omitempty"`
	// Beginning of the lifetime of this deployment.
	DeployTime *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=deploy_time,json=deployTime" json:"deploy_time,omitempty"`
	// End of the lifetime of this deployment.
	UndeployTime *google_protobuf1.Timestamp `protobuf:"bytes,3,opt,name=undeploy_time,json=undeployTime" json:"undeploy_time,omitempty"`
	// Configuration used to create this deployment.
	Config string `protobuf:"bytes,8,opt,name=config" json:"config,omitempty"`
	// Address of the runtime element hosting this deployment.
	Address string `protobuf:"bytes,5,opt,name=address" 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" json:"resource_uri,omitempty"`
	// Platform hosting this deployment.
	Platform Deployable_Deployment_Platform `` /* 142-byte string literal not displayed */
}

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

func (*Deployable_Deployment) Descriptor

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

func (*Deployable_Deployment) GetAddress

func (m *Deployable_Deployment) GetAddress() string

func (*Deployable_Deployment) GetConfig

func (m *Deployable_Deployment) GetConfig() string

func (*Deployable_Deployment) GetDeployTime

func (m *Deployable_Deployment) GetDeployTime() *google_protobuf1.Timestamp

func (*Deployable_Deployment) GetPlatform

func (*Deployable_Deployment) GetResourceUri

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

func (*Deployable_Deployment) GetUndeployTime

func (m *Deployable_Deployment) GetUndeployTime() *google_protobuf1.Timestamp

func (*Deployable_Deployment) GetUserEmail

func (m *Deployable_Deployment) GetUserEmail() string

func (*Deployable_Deployment) ProtoMessage

func (*Deployable_Deployment) ProtoMessage()

func (*Deployable_Deployment) Reset

func (m *Deployable_Deployment) Reset()

func (*Deployable_Deployment) String

func (m *Deployable_Deployment) String() string

type Deployable_Deployment_Platform

type Deployable_Deployment_Platform int32

Types of platforms.

const (
	// Unknown
	Deployable_Deployment_PLATFORM_UNSPECIFIED Deployable_Deployment_Platform = 0
	// Google Container Engine
	Deployable_Deployment_GKE Deployable_Deployment_Platform = 1
	// Google App Engine: Flexible Environment
	Deployable_Deployment_FLEX Deployable_Deployment_Platform = 2
	// Custom user-defined platform
	Deployable_Deployment_CUSTOM Deployable_Deployment_Platform = 3
)

func (Deployable_Deployment_Platform) EnumDescriptor

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

func (Deployable_Deployment_Platform) String

type Discovery

type Discovery struct {
	// The kind of analysis that is handled by this discovery.
	AnalysisKind Note_Kind `` /* 149-byte string literal not displayed */
}

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. The occurrence's operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn't started.

func (*Discovery) Descriptor

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

func (*Discovery) GetAnalysisKind

func (m *Discovery) GetAnalysisKind() Note_Kind

func (*Discovery) ProtoMessage

func (*Discovery) ProtoMessage()

func (*Discovery) Reset

func (m *Discovery) Reset()

func (*Discovery) String

func (m *Discovery) String() string

type Discovery_Discovered

type Discovery_Discovered struct {
	// Output only. An operation that indicates the status of the current scan.
	Operation *google_longrunning.Operation `protobuf:"bytes,1,opt,name=operation" json:"operation,omitempty"`
}

Provides information about the scan status of a discovered resource.

func (*Discovery_Discovered) Descriptor

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

func (*Discovery_Discovered) GetOperation

func (*Discovery_Discovered) ProtoMessage

func (*Discovery_Discovered) ProtoMessage()

func (*Discovery_Discovered) Reset

func (m *Discovery_Discovered) Reset()

func (*Discovery_Discovered) String

func (m *Discovery_Discovered) String() string

type DockerImage

type DockerImage struct {
}

DockerImage holds types defining base image notes and derived image occurrences.

func (*DockerImage) Descriptor

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

func (*DockerImage) ProtoMessage

func (*DockerImage) ProtoMessage()

func (*DockerImage) Reset

func (m *DockerImage) Reset()

func (*DockerImage) String

func (m *DockerImage) String() string

type DockerImage_Basis

type DockerImage_Basis struct {
	// The resource_url for the resource representing the basis of
	// associated occurrence images.
	ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl" json:"resource_url,omitempty"`
	// The fingerprint of the base image
	Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"`
}

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 (*DockerImage_Basis) Descriptor

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

func (*DockerImage_Basis) GetFingerprint

func (m *DockerImage_Basis) GetFingerprint() *DockerImage_Fingerprint

func (*DockerImage_Basis) GetResourceUrl

func (m *DockerImage_Basis) GetResourceUrl() string

func (*DockerImage_Basis) ProtoMessage

func (*DockerImage_Basis) ProtoMessage()

func (*DockerImage_Basis) Reset

func (m *DockerImage_Basis) Reset()

func (*DockerImage_Basis) String

func (m *DockerImage_Basis) String() string

type DockerImage_Derived

type DockerImage_Derived struct {
	// The fingerprint of the derived image
	Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint" json:"fingerprint,omitempty"`
	// Output only. The number of layers by which this image differs from
	// the associated image basis.
	Distance uint32 `protobuf:"varint,2,opt,name=distance" 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 []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo" 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" json:"base_resource_url,omitempty"`
}

Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.

func (*DockerImage_Derived) Descriptor

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

func (*DockerImage_Derived) GetBaseResourceUrl

func (m *DockerImage_Derived) GetBaseResourceUrl() string

func (*DockerImage_Derived) GetDistance

func (m *DockerImage_Derived) GetDistance() uint32

func (*DockerImage_Derived) GetFingerprint

func (m *DockerImage_Derived) GetFingerprint() *DockerImage_Fingerprint

func (*DockerImage_Derived) GetLayerInfo

func (m *DockerImage_Derived) GetLayerInfo() []*DockerImage_Layer

func (*DockerImage_Derived) ProtoMessage

func (*DockerImage_Derived) ProtoMessage()

func (*DockerImage_Derived) Reset

func (m *DockerImage_Derived) Reset()

func (*DockerImage_Derived) String

func (m *DockerImage_Derived) String() string

type DockerImage_Fingerprint

type DockerImage_Fingerprint struct {
	// The layer-id of the final layer in the Docker image's v1
	// representation.
	// This field can be used as a filter in list requests.
	V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name" json:"v1_name,omitempty"`
	// The ordered list of v2 blobs that represent a given image.
	V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob" 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.
	// This field can be used as a filter in list requests.
	V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name" json:"v2_name,omitempty"`
}

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

func (*DockerImage_Fingerprint) Descriptor

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

func (*DockerImage_Fingerprint) GetV1Name

func (m *DockerImage_Fingerprint) GetV1Name() string

func (*DockerImage_Fingerprint) GetV2Blob

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

func (*DockerImage_Fingerprint) GetV2Name

func (m *DockerImage_Fingerprint) GetV2Name() string

func (*DockerImage_Fingerprint) ProtoMessage

func (*DockerImage_Fingerprint) ProtoMessage()

func (*DockerImage_Fingerprint) Reset

func (m *DockerImage_Fingerprint) Reset()

func (*DockerImage_Fingerprint) String

func (m *DockerImage_Fingerprint) String() string

type DockerImage_Layer

type DockerImage_Layer struct {
	// The recovered Dockerfile directive used to construct this layer.
	Directive DockerImage_Layer_Directive `` /* 141-byte string literal not displayed */
	// The recovered arguments to the Dockerfile directive.
	Arguments string `protobuf:"bytes,2,opt,name=arguments" json:"arguments,omitempty"`
}

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

func (*DockerImage_Layer) Descriptor

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

func (*DockerImage_Layer) GetArguments

func (m *DockerImage_Layer) GetArguments() string

func (*DockerImage_Layer) GetDirective

func (*DockerImage_Layer) ProtoMessage

func (*DockerImage_Layer) ProtoMessage()

func (*DockerImage_Layer) Reset

func (m *DockerImage_Layer) Reset()

func (*DockerImage_Layer) String

func (m *DockerImage_Layer) String() string

type DockerImage_Layer_Directive

type DockerImage_Layer_Directive int32

Instructions from dockerfile

const (
	// Default value for unsupported/missing directive
	DockerImage_Layer_DIRECTIVE_UNSPECIFIED DockerImage_Layer_Directive = 0
	// https://docs.docker.com/reference/builder/#maintainer
	DockerImage_Layer_MAINTAINER DockerImage_Layer_Directive = 1
	// https://docs.docker.com/reference/builder/#run
	DockerImage_Layer_RUN DockerImage_Layer_Directive = 2
	// https://docs.docker.com/reference/builder/#cmd
	DockerImage_Layer_CMD DockerImage_Layer_Directive = 3
	// https://docs.docker.com/reference/builder/#label
	DockerImage_Layer_LABEL DockerImage_Layer_Directive = 4
	// https://docs.docker.com/reference/builder/#expose
	DockerImage_Layer_EXPOSE DockerImage_Layer_Directive = 5
	// https://docs.docker.com/reference/builder/#env
	DockerImage_Layer_ENV DockerImage_Layer_Directive = 6
	// https://docs.docker.com/reference/builder/#add
	DockerImage_Layer_ADD DockerImage_Layer_Directive = 7
	// https://docs.docker.com/reference/builder/#copy
	DockerImage_Layer_COPY DockerImage_Layer_Directive = 8
	// https://docs.docker.com/reference/builder/#entrypoint
	DockerImage_Layer_ENTRYPOINT DockerImage_Layer_Directive = 9
	// https://docs.docker.com/reference/builder/#volume
	DockerImage_Layer_VOLUME DockerImage_Layer_Directive = 10
	// https://docs.docker.com/reference/builder/#user
	DockerImage_Layer_USER DockerImage_Layer_Directive = 11
	// https://docs.docker.com/reference/builder/#workdir
	DockerImage_Layer_WORKDIR DockerImage_Layer_Directive = 12
	// https://docs.docker.com/reference/builder/#arg
	DockerImage_Layer_ARG DockerImage_Layer_Directive = 13
	// https://docs.docker.com/reference/builder/#onbuild
	DockerImage_Layer_ONBUILD DockerImage_Layer_Directive = 14
	// https://docs.docker.com/reference/builder/#stopsignal
	DockerImage_Layer_STOPSIGNAL DockerImage_Layer_Directive = 15
	// https://docs.docker.com/reference/builder/#healthcheck
	DockerImage_Layer_HEALTHCHECK DockerImage_Layer_Directive = 16
	// https://docs.docker.com/reference/builder/#shell
	DockerImage_Layer_SHELL DockerImage_Layer_Directive = 17
)

func (DockerImage_Layer_Directive) EnumDescriptor

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

func (DockerImage_Layer_Directive) String

type FileHashes

type FileHashes struct {
	// Collection of file hashes.
	FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash" json:"file_hash,omitempty"`
}

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

type GerritSourceContext

type GerritSourceContext struct {
	// The URI of a running Gerrit instance.
	HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri" 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" 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"`
}

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_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type GerritSourceContext_AliasContext

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

type GerritSourceContext_RevisionId

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

type GetNoteRequest

type GetNoteRequest struct {
	// The name of the note in the form of
	// "providers/{provider_id}/notes/{NOTE_ID}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

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

type GetOccurrenceNoteRequest

type GetOccurrenceNoteRequest struct {
	// The name of the occurrence in the form
	// "projects/{project_id}/occurrences/{OCCURRENCE_ID}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request to get the note to which this 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

type GetOccurrenceRequest

type GetOccurrenceRequest struct {
	// The name of the occurrence of the form
	// "projects/{project_id}/occurrences/{OCCURRENCE_ID}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}

Request to get a 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

type GetVulnzOccurrencesSummaryRequest

type GetVulnzOccurrencesSummaryRequest struct {
	// This contains the project Id for example: projects/{project_id}
	Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
	// The filter expression.
	Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
}

Request to get the vulnz summary for some set of vulnerability Occurrences.

func (*GetVulnzOccurrencesSummaryRequest) Descriptor

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

func (*GetVulnzOccurrencesSummaryRequest) GetFilter

func (*GetVulnzOccurrencesSummaryRequest) GetParent

func (*GetVulnzOccurrencesSummaryRequest) ProtoMessage

func (*GetVulnzOccurrencesSummaryRequest) ProtoMessage()

func (*GetVulnzOccurrencesSummaryRequest) Reset

func (*GetVulnzOccurrencesSummaryRequest) String

type GetVulnzOccurrencesSummaryResponse

type GetVulnzOccurrencesSummaryResponse struct {
	// A map of how many occurrences were found for each severity.
	Counts []*GetVulnzOccurrencesSummaryResponse_SeverityCount `protobuf:"bytes,1,rep,name=counts" json:"counts,omitempty"`
}

A summary of how many vulnz occurrences there are per severity type. counts by groups, or if we should have different summary messages like this.

func (*GetVulnzOccurrencesSummaryResponse) Descriptor

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

func (*GetVulnzOccurrencesSummaryResponse) GetCounts

func (*GetVulnzOccurrencesSummaryResponse) ProtoMessage

func (*GetVulnzOccurrencesSummaryResponse) ProtoMessage()

func (*GetVulnzOccurrencesSummaryResponse) Reset

func (*GetVulnzOccurrencesSummaryResponse) String

type GetVulnzOccurrencesSummaryResponse_SeverityCount

type GetVulnzOccurrencesSummaryResponse_SeverityCount struct {
	// The severity of the occurrences.
	Severity VulnerabilityType_Severity `` /* 138-byte string literal not displayed */
	// The number of occurrences with the severity.
	Count int64 `protobuf:"varint,2,opt,name=count" json:"count,omitempty"`
}

The number of occurrences created for a specific severity.

func (*GetVulnzOccurrencesSummaryResponse_SeverityCount) Descriptor

func (*GetVulnzOccurrencesSummaryResponse_SeverityCount) GetCount

func (*GetVulnzOccurrencesSummaryResponse_SeverityCount) GetSeverity

func (*GetVulnzOccurrencesSummaryResponse_SeverityCount) ProtoMessage

func (*GetVulnzOccurrencesSummaryResponse_SeverityCount) Reset

func (*GetVulnzOccurrencesSummaryResponse_SeverityCount) String

type GitSourceContext

type GitSourceContext struct {
	// Git repository URL.
	Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	// Required.
	// Git commit hash.
	RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
}

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

type Hash

type Hash struct {
	// The type of hash that was performed.
	Type Hash_HashType `protobuf:"varint,1,opt,name=type,enum=google.devtools.containeranalysis.v1alpha1.Hash_HashType" json:"type,omitempty"`
	// The hash value.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

Container message for hash values.

func (*Hash) Descriptor

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

func (*Hash) GetType

func (m *Hash) GetType() Hash_HashType

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

type Hash_HashType

type Hash_HashType int32

Specifies the hash algorithm, if any.

const (
	// No hash requested.
	Hash_NONE Hash_HashType = 0
	// A sha256 hash.
	Hash_SHA256 Hash_HashType = 1
)

func (Hash_HashType) EnumDescriptor

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

func (Hash_HashType) String

func (x Hash_HashType) String() string

type ListNoteOccurrencesRequest

type ListNoteOccurrencesRequest struct {
	// The name field will contain the note name for example:
	//   "provider/{provider_id}/notes/{note_id}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The filter expression.
	Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
	// Number of notes to return in the list.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" 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" json:"page_token,omitempty"`
}

Request to list occurrences.

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

type ListNoteOccurrencesResponse

type ListNoteOccurrencesResponse struct {
	// The occurrences attached to the specified note.
	Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences" json:"occurrences,omitempty"`
	// Token to receive the next page of notes.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response including listed 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

type ListNotesRequest

type ListNotesRequest struct {
	// The name field will contain the project Id for example:
	// "providers/{provider_id}
	// @Deprecated
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// This field contains the project Id for example:
	// "project/{project_id}
	Parent string `protobuf:"bytes,5,opt,name=parent" json:"parent,omitempty"`
	// The filter expression.
	Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
	// Number of notes to return in the list.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" 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" json:"page_token,omitempty"`
}

Request to list notes.

func (*ListNotesRequest) Descriptor

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

func (*ListNotesRequest) GetFilter

func (m *ListNotesRequest) GetFilter() string

func (*ListNotesRequest) GetName

func (m *ListNotesRequest) GetName() 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

type ListNotesResponse

type ListNotesResponse struct {
	// The occurrences requested
	Notes []*Note `protobuf:"bytes,1,rep,name=notes" 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 result.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}

Response including listed 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

type ListOccurrencesRequest

type ListOccurrencesRequest struct {
	// The name field contains the project Id. For example:
	// "projects/{project_id}
	// @Deprecated
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// This contains the project Id for example: projects/{project_id}.
	Parent string `protobuf:"bytes,5,opt,name=parent" json:"parent,omitempty"`
	// The filter expression.
	Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
	// Number of occurrences to return in the list.
	PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" 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" json:"page_token,omitempty"`
}

Request to list occurrences.

func (*ListOccurrencesRequest) Descriptor

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

func (*ListOccurrencesRequest) GetFilter

func (m *ListOccurrencesRequest) GetFilter() string

func (*ListOccurrencesRequest) GetName

func (m *ListOccurrencesRequest) GetName() 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

type ListOccurrencesResponse

type ListOccurrencesResponse struct {
	// The occurrences requested.
	Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences" 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" json:"next_page_token,omitempty"`
}

Response including listed active 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

type Note

type Note struct {
	// The name of the note in the form
	// "providers/{provider_id}/notes/{NOTE_ID}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// A one sentence description of this `Note`.
	ShortDescription string `protobuf:"bytes,3,opt,name=short_description,json=shortDescription" json:"short_description,omitempty"`
	// A detailed description of this `Note`.
	LongDescription string `protobuf:"bytes,4,opt,name=long_description,json=longDescription" json:"long_description,omitempty"`
	// Output only. This explicitly denotes which kind of note is specified. This
	// field can be used as a filter in list requests.
	Kind Note_Kind `protobuf:"varint,9,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.Note_Kind" json:"kind,omitempty"`
	// The type of note.
	//
	// Types that are valid to be assigned to NoteType:
	//	*Note_VulnerabilityType
	//	*Note_BuildType
	//	*Note_BaseImage
	//	*Note_Package
	//	*Note_Deployable
	//	*Note_Discovery
	NoteType isNote_NoteType `protobuf_oneof:"note_type"`
	// URLs associated with this note
	RelatedUrl []*Note_RelatedUrl `protobuf:"bytes,7,rep,name=related_url,json=relatedUrl" json:"related_url,omitempty"`
	// Time of expiration for this note, null if note does not expire.
	ExpirationTime *google_protobuf1.Timestamp `protobuf:"bytes,10,opt,name=expiration_time,json=expirationTime" json:"expiration_time,omitempty"`
	// Output only. The time this note was created. This field can be used as a
	// filter in list requests.
	CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,11,opt,name=create_time,json=createTime" 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 *google_protobuf1.Timestamp `protobuf:"bytes,12,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
}

Provides a detailed description of a `Note`.

func (*Note) Descriptor

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

func (*Note) GetBaseImage

func (m *Note) GetBaseImage() *DockerImage_Basis

func (*Note) GetBuildType

func (m *Note) GetBuildType() *BuildType

func (*Note) GetCreateTime

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

func (*Note) GetDeployable

func (m *Note) GetDeployable() *Deployable

func (*Note) GetDiscovery

func (m *Note) GetDiscovery() *Discovery

func (*Note) GetExpirationTime

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

func (*Note) GetKind

func (m *Note) GetKind() Note_Kind

func (*Note) GetLongDescription

func (m *Note) GetLongDescription() string

func (*Note) GetName

func (m *Note) GetName() string

func (*Note) GetNoteType

func (m *Note) GetNoteType() isNote_NoteType

func (*Note) GetPackage

func (m *Note) GetPackage() *PackageManager_Package

func (*Note) GetRelatedUrl

func (m *Note) GetRelatedUrl() []*Note_RelatedUrl

func (*Note) GetShortDescription

func (m *Note) GetShortDescription() string

func (*Note) GetUpdateTime

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

func (*Note) GetVulnerabilityType

func (m *Note) GetVulnerabilityType() *VulnerabilityType

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) Reset

func (m *Note) Reset()

func (*Note) String

func (m *Note) String() string

func (*Note) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type Note_BaseImage

type Note_BaseImage struct {
	BaseImage *DockerImage_Basis `protobuf:"bytes,13,opt,name=base_image,json=baseImage,oneof"`
}

type Note_BuildType

type Note_BuildType struct {
	BuildType *BuildType `protobuf:"bytes,8,opt,name=build_type,json=buildType,oneof"`
}

type Note_Deployable

type Note_Deployable struct {
	Deployable *Deployable `protobuf:"bytes,17,opt,name=deployable,oneof"`
}

type Note_Discovery

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

type Note_Kind

type Note_Kind int32

This must be 1:1 with members of our oneofs, it can be used for filtering Note and Occurrence on their kind.

const (
	// Unknown
	Note_KIND_UNSPECIFIED Note_Kind = 0
	// The note and occurrence represent a package vulnerability.
	Note_PACKAGE_VULNERABILITY Note_Kind = 2
	// The note and occurrence assert build provenance.
	Note_BUILD_DETAILS Note_Kind = 3
	// This represents an image basis relationship.
	Note_IMAGE_BASIS Note_Kind = 4
	// This represents a package installed via a package manager.
	Note_PACKAGE_MANAGER Note_Kind = 5
	// The note and occurrence track deployment events.
	Note_DEPLOYABLE Note_Kind = 6
	// The note and occurrence track the initial discovery status of a resource.
	Note_DISCOVERY Note_Kind = 7
)

func (Note_Kind) EnumDescriptor

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

func (Note_Kind) String

func (x Note_Kind) String() string

type Note_Package

type Note_Package struct {
	Package *PackageManager_Package `protobuf:"bytes,14,opt,name=package,oneof"`
}

type Note_RelatedUrl

type Note_RelatedUrl struct {
	// Specific URL to associate with the note
	Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	// Label to describe usage of the URL
	Label string `protobuf:"bytes,2,opt,name=label" json:"label,omitempty"`
}

Metadata for any related URL information

func (*Note_RelatedUrl) Descriptor

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

func (*Note_RelatedUrl) GetLabel

func (m *Note_RelatedUrl) GetLabel() string

func (*Note_RelatedUrl) GetUrl

func (m *Note_RelatedUrl) GetUrl() string

func (*Note_RelatedUrl) ProtoMessage

func (*Note_RelatedUrl) ProtoMessage()

func (*Note_RelatedUrl) Reset

func (m *Note_RelatedUrl) Reset()

func (*Note_RelatedUrl) String

func (m *Note_RelatedUrl) String() string

type Note_VulnerabilityType

type Note_VulnerabilityType struct {
	VulnerabilityType *VulnerabilityType `protobuf:"bytes,6,opt,name=vulnerability_type,json=vulnerabilityType,oneof"`
}

type Occurrence

type Occurrence struct {
	// Output only. The name of the `Occurrence` in the form
	// "projects/{project_id}/occurrences/{OCCURRENCE_ID}"
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The unique URL of the image or the container for which the `Occurrence`
	// applies. For example, https://gcr.io/project/image@sha256:foo This field
	// can be used as a filter in list requests.
	ResourceUrl string `protobuf:"bytes,2,opt,name=resource_url,json=resourceUrl" json:"resource_url,omitempty"`
	// An analysis note associated with this image, in the form
	// "providers/{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" 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 Note_Kind `protobuf:"varint,6,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.Note_Kind" json:"kind,omitempty"`
	// Describes the details of the vulnerability `Note` found in this resource.
	//
	// Types that are valid to be assigned to Details:
	//	*Occurrence_VulnerabilityDetails
	//	*Occurrence_BuildDetails
	//	*Occurrence_DerivedImage
	//	*Occurrence_Installation
	//	*Occurrence_Deployment
	//	*Occurrence_Discovered
	Details isOccurrence_Details `protobuf_oneof:"details"`
	// A description of actions that can be taken to remedy the `Note`
	Remediation string `protobuf:"bytes,5,opt,name=remediation" json:"remediation,omitempty"`
	// Output only. The time this `Occurrence` was created.
	CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// Output only. The time this `Occurrence` was last updated.
	UpdateTime *google_protobuf1.Timestamp `protobuf:"bytes,10,opt,name=update_time,json=updateTime" json:"update_time,omitempty"`
}

`Occurrence` includes information about analysis occurrences for an image.

func (*Occurrence) Descriptor

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

func (*Occurrence) GetBuildDetails

func (m *Occurrence) GetBuildDetails() *BuildDetails

func (*Occurrence) GetCreateTime

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

func (*Occurrence) GetDeployment

func (m *Occurrence) GetDeployment() *Deployable_Deployment

func (*Occurrence) GetDerivedImage

func (m *Occurrence) GetDerivedImage() *DockerImage_Derived

func (*Occurrence) GetDetails

func (m *Occurrence) GetDetails() isOccurrence_Details

func (*Occurrence) GetDiscovered

func (m *Occurrence) GetDiscovered() *Discovery_Discovered

func (*Occurrence) GetInstallation

func (m *Occurrence) GetInstallation() *PackageManager_Installation

func (*Occurrence) GetKind

func (m *Occurrence) GetKind() Note_Kind

func (*Occurrence) GetName

func (m *Occurrence) GetName() string

func (*Occurrence) GetNoteName

func (m *Occurrence) GetNoteName() string

func (*Occurrence) GetRemediation

func (m *Occurrence) GetRemediation() string

func (*Occurrence) GetResourceUrl

func (m *Occurrence) GetResourceUrl() string

func (*Occurrence) GetUpdateTime

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

func (*Occurrence) GetVulnerabilityDetails

func (m *Occurrence) GetVulnerabilityDetails() *VulnerabilityType_VulnerabilityDetails

func (*Occurrence) ProtoMessage

func (*Occurrence) ProtoMessage()

func (*Occurrence) Reset

func (m *Occurrence) Reset()

func (*Occurrence) String

func (m *Occurrence) String() string

func (*Occurrence) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type Occurrence_BuildDetails

type Occurrence_BuildDetails struct {
	BuildDetails *BuildDetails `protobuf:"bytes,7,opt,name=build_details,json=buildDetails,oneof"`
}

type Occurrence_Deployment

type Occurrence_Deployment struct {
	Deployment *Deployable_Deployment `protobuf:"bytes,14,opt,name=deployment,oneof"`
}

type Occurrence_DerivedImage

type Occurrence_DerivedImage struct {
	DerivedImage *DockerImage_Derived `protobuf:"bytes,11,opt,name=derived_image,json=derivedImage,oneof"`
}

type Occurrence_Discovered

type Occurrence_Discovered struct {
	Discovered *Discovery_Discovered `protobuf:"bytes,15,opt,name=discovered,oneof"`
}

type Occurrence_Installation

type Occurrence_Installation struct {
	Installation *PackageManager_Installation `protobuf:"bytes,12,opt,name=installation,oneof"`
}

type Occurrence_VulnerabilityDetails

type Occurrence_VulnerabilityDetails struct {
	VulnerabilityDetails *VulnerabilityType_VulnerabilityDetails `protobuf:"bytes,8,opt,name=vulnerability_details,json=vulnerabilityDetails,oneof"`
}

type OperationMetadata

type OperationMetadata struct {
	// Output only. The time this operation was created.
	CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
	// Output only. The time that this operation was marked completed or failed.
	EndTime *google_protobuf1.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
}

Metadata for all operations used and required for all operations that created by Container Analysis Providers

func (*OperationMetadata) Descriptor

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

func (*OperationMetadata) GetCreateTime

func (m *OperationMetadata) GetCreateTime() *google_protobuf1.Timestamp

func (*OperationMetadata) GetEndTime

func (m *OperationMetadata) GetEndTime() *google_protobuf1.Timestamp

func (*OperationMetadata) ProtoMessage

func (*OperationMetadata) ProtoMessage()

func (*OperationMetadata) Reset

func (m *OperationMetadata) Reset()

func (*OperationMetadata) String

func (m *OperationMetadata) String() string

type PackageManager

type PackageManager struct {
}

PackageManager provides metadata about available / installed packages.

func (*PackageManager) Descriptor

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

func (*PackageManager) ProtoMessage

func (*PackageManager) ProtoMessage()

func (*PackageManager) Reset

func (m *PackageManager) Reset()

func (*PackageManager) String

func (m *PackageManager) String() string

type PackageManager_Architecture

type PackageManager_Architecture int32

Instruction set architectures supported by various package managers.

const (
	// Unknown architecture
	PackageManager_ARCHITECTURE_UNSPECIFIED PackageManager_Architecture = 0
	// X86 architecture
	PackageManager_X86 PackageManager_Architecture = 1
	// X64 architecture
	PackageManager_X64 PackageManager_Architecture = 2
)

func (PackageManager_Architecture) EnumDescriptor

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

func (PackageManager_Architecture) String

type PackageManager_Distribution

type PackageManager_Distribution struct {
	// 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" json:"cpe_uri,omitempty"`
	// The CPU architecture for which packages in this distribution
	// channel were built
	Architecture PackageManager_Architecture `` /* 147-byte string literal not displayed */
	// The latest available version of this package in
	// this distribution channel.
	LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion" json:"latest_version,omitempty"`
	// A freeform string denoting the maintainer of this package.
	Maintainer string `protobuf:"bytes,4,opt,name=maintainer" json:"maintainer,omitempty"`
	// The distribution channel-specific homepage for this package.
	Url string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
	// The distribution channel-specific description of this package.
	Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"`
}

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

func (*PackageManager_Distribution) Descriptor

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

func (*PackageManager_Distribution) GetArchitecture

func (*PackageManager_Distribution) GetCpeUri

func (m *PackageManager_Distribution) GetCpeUri() string

func (*PackageManager_Distribution) GetDescription

func (m *PackageManager_Distribution) GetDescription() string

func (*PackageManager_Distribution) GetLatestVersion

func (*PackageManager_Distribution) GetMaintainer

func (m *PackageManager_Distribution) GetMaintainer() string

func (*PackageManager_Distribution) GetUrl

func (m *PackageManager_Distribution) GetUrl() string

func (*PackageManager_Distribution) ProtoMessage

func (*PackageManager_Distribution) ProtoMessage()

func (*PackageManager_Distribution) Reset

func (m *PackageManager_Distribution) Reset()

func (*PackageManager_Distribution) String

func (m *PackageManager_Distribution) String() string

type PackageManager_Installation

type PackageManager_Installation struct {
	// Output only. The name of the installed package.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// All of the places within the filesystem versions of this package
	// have been found.
	Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location" json:"location,omitempty"`
}

This represents how a particular software package may be installed on a system.

func (*PackageManager_Installation) Descriptor

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

func (*PackageManager_Installation) GetLocation

func (*PackageManager_Installation) GetName

func (m *PackageManager_Installation) GetName() string

func (*PackageManager_Installation) ProtoMessage

func (*PackageManager_Installation) ProtoMessage()

func (*PackageManager_Installation) Reset

func (m *PackageManager_Installation) Reset()

func (*PackageManager_Installation) String

func (m *PackageManager_Installation) String() string

type PackageManager_Location

type PackageManager_Location struct {
	// 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" json:"cpe_uri,omitempty"`
	// The version installed at this location.
	Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
	// The path from which we gathered that this package/version is installed.
	Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
}

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

func (*PackageManager_Location) Descriptor

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

func (*PackageManager_Location) GetCpeUri

func (m *PackageManager_Location) GetCpeUri() string

func (*PackageManager_Location) GetPath

func (m *PackageManager_Location) GetPath() string

func (*PackageManager_Location) GetVersion

func (*PackageManager_Location) ProtoMessage

func (*PackageManager_Location) ProtoMessage()

func (*PackageManager_Location) Reset

func (m *PackageManager_Location) Reset()

func (*PackageManager_Location) String

func (m *PackageManager_Location) String() string

type PackageManager_Package

type PackageManager_Package struct {
	// The name of the package.
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The various channels by which a package is distributed.
	Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution" json:"distribution,omitempty"`
}

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

func (*PackageManager_Package) Descriptor

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

func (*PackageManager_Package) GetDistribution

func (m *PackageManager_Package) GetDistribution() []*PackageManager_Distribution

func (*PackageManager_Package) GetName

func (m *PackageManager_Package) GetName() string

func (*PackageManager_Package) ProtoMessage

func (*PackageManager_Package) ProtoMessage()

func (*PackageManager_Package) Reset

func (m *PackageManager_Package) Reset()

func (*PackageManager_Package) String

func (m *PackageManager_Package) String() string

type ProjectRepoId

type ProjectRepoId struct {
	// The ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" 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" json:"repo_name,omitempty"`
}

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

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"`
}

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_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type RepoId_ProjectRepoId

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

type RepoId_Uid

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

type RepoSource

type RepoSource struct {
	// ID of the project that owns the repo.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
	// Name of the repo.
	RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
	// A revision within the source repository must be specified in
	// one of these ways.
	//
	// Types that are valid to be assigned to Revision:
	//	*RepoSource_BranchName
	//	*RepoSource_TagName
	//	*RepoSource_CommitSha
	Revision isRepoSource_Revision `protobuf_oneof:"revision"`
}

RepoSource describes the location of the source in a Google Cloud Source Repository.

func (*RepoSource) Descriptor

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

func (*RepoSource) GetBranchName

func (m *RepoSource) GetBranchName() string

func (*RepoSource) GetCommitSha

func (m *RepoSource) GetCommitSha() string

func (*RepoSource) GetProjectId

func (m *RepoSource) GetProjectId() string

func (*RepoSource) GetRepoName

func (m *RepoSource) GetRepoName() string

func (*RepoSource) GetRevision

func (m *RepoSource) GetRevision() isRepoSource_Revision

func (*RepoSource) GetTagName

func (m *RepoSource) GetTagName() string

func (*RepoSource) ProtoMessage

func (*RepoSource) ProtoMessage()

func (*RepoSource) Reset

func (m *RepoSource) Reset()

func (*RepoSource) String

func (m *RepoSource) String() string

func (*RepoSource) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type RepoSource_BranchName

type RepoSource_BranchName struct {
	BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,oneof"`
}

type RepoSource_CommitSha

type RepoSource_CommitSha struct {
	CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,oneof"`
}

type RepoSource_TagName

type RepoSource_TagName struct {
	TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,oneof"`
}

type Source

type Source struct {
	// Source location information.
	//
	// Types that are valid to be assigned to Source:
	//	*Source_StorageSource
	//	*Source_RepoSource
	Source isSource_Source `protobuf_oneof:"source"`
	// If provided, the input binary artifacts for the build came from this
	// location.
	ArtifactStorageSource *StorageSource `protobuf:"bytes,4,opt,name=artifact_storage_source,json=artifactStorageSource" json:"artifact_storage_source,omitempty"`
	// 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 `` /* 158-byte string literal not displayed */
	// If provided, the source code used for the build came from this location.
	Context *SourceContext `protobuf:"bytes,7,opt,name=context" 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,8,rep,name=additional_contexts,json=additionalContexts" json:"additional_contexts,omitempty"`
}

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) GetArtifactStorageSource

func (m *Source) GetArtifactStorageSource() *StorageSource

func (*Source) GetContext

func (m *Source) GetContext() *SourceContext

func (*Source) GetFileHashes

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

func (*Source) GetRepoSource

func (m *Source) GetRepoSource() *RepoSource

func (*Source) GetSource

func (m *Source) GetSource() isSource_Source

func (*Source) GetStorageSource

func (m *Source) GetStorageSource() *StorageSource

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) Reset

func (m *Source) Reset()

func (*Source) String

func (m *Source) String() string

func (*Source) XXX_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

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 `` /* 132-byte string literal not displayed */
}

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_OneofFuncs

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

XXX_OneofFuncs is for the internal use of the proto package.

type SourceContext_CloudRepo

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

type SourceContext_Gerrit

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

type SourceContext_Git

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

type Source_RepoSource

type Source_RepoSource struct {
	RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,oneof"`
}

type Source_StorageSource

type Source_StorageSource struct {
	StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,oneof"`
}

type StorageSource

type StorageSource struct {
	// Google Cloud Storage bucket containing source (see [Bucket Name
	// Requirements]
	// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
	Bucket string `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"`
	// Google Cloud Storage object containing source.
	Object string `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
	// Google Cloud Storage generation for the object.
	Generation int64 `protobuf:"varint,3,opt,name=generation" json:"generation,omitempty"`
}

StorageSource describes the location of the source in an archive file in Google Cloud Storage.

func (*StorageSource) Descriptor

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

func (*StorageSource) GetBucket

func (m *StorageSource) GetBucket() string

func (*StorageSource) GetGeneration

func (m *StorageSource) GetGeneration() int64

func (*StorageSource) GetObject

func (m *StorageSource) GetObject() string

func (*StorageSource) ProtoMessage

func (*StorageSource) ProtoMessage()

func (*StorageSource) Reset

func (m *StorageSource) Reset()

func (*StorageSource) String

func (m *StorageSource) String() string

type UpdateNoteRequest

type UpdateNoteRequest struct {
	// The name of the note.
	// Should be of the form "projects/{provider_id}/notes/{note_id}".
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The updated note.
	Note *Note `protobuf:"bytes,2,opt,name=note" json:"note,omitempty"`
	// The fields to update.
	UpdateMask *google_protobuf4.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
}

Request to update an existing 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() *google_protobuf4.FieldMask

func (*UpdateNoteRequest) ProtoMessage

func (*UpdateNoteRequest) ProtoMessage()

func (*UpdateNoteRequest) Reset

func (m *UpdateNoteRequest) Reset()

func (*UpdateNoteRequest) String

func (m *UpdateNoteRequest) String() string

type UpdateOccurrenceRequest

type UpdateOccurrenceRequest struct {
	// The name of the occurrence.
	// Should be of the form "projects/{project_id}/occurrences/{OCCURRENCE_ID}".
	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// The updated occurrence.
	Occurrence *Occurrence `protobuf:"bytes,2,opt,name=occurrence" json:"occurrence,omitempty"`
	// The fields to update.
	UpdateMask *google_protobuf4.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
}

Request to update an existing 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 (*UpdateOccurrenceRequest) ProtoMessage

func (*UpdateOccurrenceRequest) ProtoMessage()

func (*UpdateOccurrenceRequest) Reset

func (m *UpdateOccurrenceRequest) Reset()

func (*UpdateOccurrenceRequest) String

func (m *UpdateOccurrenceRequest) String() string

type VulnerabilityType

type VulnerabilityType struct {
	// The CVSS score for this Vulnerability.
	CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
	// Note provider assigned impact of the vulnerability
	Severity VulnerabilityType_Severity `` /* 138-byte string literal not displayed */
	// All information about the package to specifically identify this
	// vulnerability. One entry per (version range and cpe_uri) the
	// package vulnerability has manifested in.
	Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details" json:"details,omitempty"`
}

VulnerabilityType provides metadata about a security vulnerability.

func (*VulnerabilityType) Descriptor

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

func (*VulnerabilityType) GetCvssScore

func (m *VulnerabilityType) GetCvssScore() float32

func (*VulnerabilityType) GetDetails

func (m *VulnerabilityType) GetDetails() []*VulnerabilityType_Detail

func (*VulnerabilityType) GetSeverity

func (*VulnerabilityType) ProtoMessage

func (*VulnerabilityType) ProtoMessage()

func (*VulnerabilityType) Reset

func (m *VulnerabilityType) Reset()

func (*VulnerabilityType) String

func (m *VulnerabilityType) String() string

type VulnerabilityType_Detail

type VulnerabilityType_Detail struct {
	// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
	// which the vulnerability manifests.  Examples include distro or storage
	// location for vulnerable jar.
	// This field can be used as a filter in list requests.
	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
	// The name of the package where the vulnerability was found.
	// This field can be used as a filter in list requests.
	Package string `protobuf:"bytes,8,opt,name=package" json:"package,omitempty"`
	// The min version of the package in which the vulnerability exists.
	MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion" json:"min_affected_version,omitempty"`
	// The max version of the package in which the vulnerability exists.
	// This field can be used as a filter in list requests.
	MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion" json:"max_affected_version,omitempty"`
	// The severity (eg: distro assigned severity) for this vulnerability.
	SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
	// A vendor-specific description of this note.
	Description string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"`
	// The fix for this specific package version.
	FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
	// The type of package; whether native or non native(ruby gems,
	// node.js packages etc)
	PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType" json:"package_type,omitempty"`
}

Identifies all occurrences of this vulnerability in the package for a specific distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2

func (*VulnerabilityType_Detail) Descriptor

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

func (*VulnerabilityType_Detail) GetCpeUri

func (m *VulnerabilityType_Detail) GetCpeUri() string

func (*VulnerabilityType_Detail) GetDescription

func (m *VulnerabilityType_Detail) GetDescription() string

func (*VulnerabilityType_Detail) GetFixedLocation

func (*VulnerabilityType_Detail) GetMaxAffectedVersion

func (m *VulnerabilityType_Detail) GetMaxAffectedVersion() *VulnerabilityType_Version

func (*VulnerabilityType_Detail) GetMinAffectedVersion

func (m *VulnerabilityType_Detail) GetMinAffectedVersion() *VulnerabilityType_Version

func (*VulnerabilityType_Detail) GetPackage

func (m *VulnerabilityType_Detail) GetPackage() string

func (*VulnerabilityType_Detail) GetPackageType

func (m *VulnerabilityType_Detail) GetPackageType() string

func (*VulnerabilityType_Detail) GetSeverityName

func (m *VulnerabilityType_Detail) GetSeverityName() string

func (*VulnerabilityType_Detail) ProtoMessage

func (*VulnerabilityType_Detail) ProtoMessage()

func (*VulnerabilityType_Detail) Reset

func (m *VulnerabilityType_Detail) Reset()

func (*VulnerabilityType_Detail) String

func (m *VulnerabilityType_Detail) String() string

type VulnerabilityType_PackageIssue

type VulnerabilityType_PackageIssue struct {
	// The location of the vulnerability.
	AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation" json:"affected_location,omitempty"`
	// The location of the available fix for vulnerability.
	FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
	// The severity (eg: distro assigned severity) for this vulnerability.
	SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
}

This message wraps a location affected by a vulnerability and its associated fix (if one is available).

func (*VulnerabilityType_PackageIssue) Descriptor

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

func (*VulnerabilityType_PackageIssue) GetAffectedLocation

func (*VulnerabilityType_PackageIssue) GetFixedLocation

func (*VulnerabilityType_PackageIssue) GetSeverityName

func (m *VulnerabilityType_PackageIssue) GetSeverityName() string

func (*VulnerabilityType_PackageIssue) ProtoMessage

func (*VulnerabilityType_PackageIssue) ProtoMessage()

func (*VulnerabilityType_PackageIssue) Reset

func (m *VulnerabilityType_PackageIssue) Reset()

func (*VulnerabilityType_PackageIssue) String

type VulnerabilityType_Severity

type VulnerabilityType_Severity int32

Note provider-assigned severity/impact ranking

const (
	// Unknown Impact
	VulnerabilityType_SEVERITY_UNSPECIFIED VulnerabilityType_Severity = 0
	// Minimal Impact
	VulnerabilityType_MINIMAL VulnerabilityType_Severity = 1
	// Low Impact
	VulnerabilityType_LOW VulnerabilityType_Severity = 2
	// Medium Impact
	VulnerabilityType_MEDIUM VulnerabilityType_Severity = 3
	// High Impact
	VulnerabilityType_HIGH VulnerabilityType_Severity = 4
	// Critical Impact
	VulnerabilityType_CRITICAL VulnerabilityType_Severity = 5
)

func (VulnerabilityType_Severity) EnumDescriptor

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

func (VulnerabilityType_Severity) String

type VulnerabilityType_Version

type VulnerabilityType_Version struct {
	// Used to correct mistakes in the version numbering scheme.
	Epoch int32 `protobuf:"varint,1,opt,name=epoch" json:"epoch,omitempty"`
	// The main part of the version name.
	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// The iteration of the package build from the above version.
	Revision string `protobuf:"bytes,3,opt,name=revision" json:"revision,omitempty"`
	// Distinguish between sentinel MIN/MAX versions and normal versions.
	// If kind is not NORMAL, then the other fields are ignored.
	Kind VulnerabilityType_Version_VersionKind `` /* 141-byte string literal not displayed */
}

Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/

func (*VulnerabilityType_Version) Descriptor

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

func (*VulnerabilityType_Version) GetEpoch

func (m *VulnerabilityType_Version) GetEpoch() int32

func (*VulnerabilityType_Version) GetKind

func (*VulnerabilityType_Version) GetName

func (m *VulnerabilityType_Version) GetName() string

func (*VulnerabilityType_Version) GetRevision

func (m *VulnerabilityType_Version) GetRevision() string

func (*VulnerabilityType_Version) ProtoMessage

func (*VulnerabilityType_Version) ProtoMessage()

func (*VulnerabilityType_Version) Reset

func (m *VulnerabilityType_Version) Reset()

func (*VulnerabilityType_Version) String

func (m *VulnerabilityType_Version) String() string

type VulnerabilityType_Version_VersionKind

type VulnerabilityType_Version_VersionKind int32

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

const (
	// A standard package version, defined by the other fields.
	VulnerabilityType_Version_NORMAL VulnerabilityType_Version_VersionKind = 0
	// A special version representing negative infinity,
	// other fields are ignored.
	VulnerabilityType_Version_MINIMUM VulnerabilityType_Version_VersionKind = 1
	// A special version representing positive infinity,
	// other fields are ignored.
	VulnerabilityType_Version_MAXIMUM VulnerabilityType_Version_VersionKind = 2
)

func (VulnerabilityType_Version_VersionKind) EnumDescriptor

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

func (VulnerabilityType_Version_VersionKind) String

type VulnerabilityType_VulnerabilityDetails

type VulnerabilityType_VulnerabilityDetails struct {
	// The type of package; whether native or non native(ruby gems,
	// node.js packages etc)
	Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
	// Output only. The note provider assigned Severity of the vulnerability.
	Severity VulnerabilityType_Severity `` /* 138-byte string literal not displayed */
	// 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,5,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
	// The set of affected locations and their fixes (if available) within
	// the associated resource.
	PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue" json:"package_issue,omitempty"`
}

Used by Occurrence to point to where the vulnerability exists and how to fix it.

func (*VulnerabilityType_VulnerabilityDetails) Descriptor

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

func (*VulnerabilityType_VulnerabilityDetails) GetCvssScore

func (*VulnerabilityType_VulnerabilityDetails) GetPackageIssue

func (*VulnerabilityType_VulnerabilityDetails) GetSeverity

func (*VulnerabilityType_VulnerabilityDetails) GetType

func (*VulnerabilityType_VulnerabilityDetails) ProtoMessage

func (*VulnerabilityType_VulnerabilityDetails) Reset

func (*VulnerabilityType_VulnerabilityDetails) String

type VulnerabilityType_VulnerabilityLocation

type VulnerabilityType_VulnerabilityLocation struct {
	// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
	// format. Examples include distro or storage location for vulnerable jar.
	// This field can be used as a filter in list requests.
	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
	// The package being described.
	Package string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
	// The version of the package being described.
	// This field can be used as a filter in list requests.
	Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
}

The location of the vulnerability

func (*VulnerabilityType_VulnerabilityLocation) Descriptor

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

func (*VulnerabilityType_VulnerabilityLocation) GetCpeUri

func (*VulnerabilityType_VulnerabilityLocation) GetPackage

func (*VulnerabilityType_VulnerabilityLocation) GetVersion

func (*VulnerabilityType_VulnerabilityLocation) ProtoMessage

func (*VulnerabilityType_VulnerabilityLocation) Reset

func (*VulnerabilityType_VulnerabilityLocation) String

Jump to

Keyboard shortcuts

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