_package

package
v0.0.0-...-9240e9c Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 4 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Architecture_name = map[int32]string{
		0: "ARCHITECTURE_UNSPECIFIED",
		1: "X86",
		2: "X64",
	}
	Architecture_value = map[string]int32{
		"ARCHITECTURE_UNSPECIFIED": 0,
		"X86":                      1,
		"X64":                      2,
	}
)

Enum value maps for Architecture.

View Source
var (
	Version_VersionKind_name = map[int32]string{
		0: "VERSION_KIND_UNSPECIFIED",
		1: "NORMAL",
		2: "MINIMUM",
		3: "MAXIMUM",
	}
	Version_VersionKind_value = map[string]int32{
		"VERSION_KIND_UNSPECIFIED": 0,
		"NORMAL":                   1,
		"MINIMUM":                  2,
		"MAXIMUM":                  3,
	}
)

Enum value maps for Version_VersionKind.

View Source
var File_google_devtools_containeranalysis_v1beta1_package_package_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Architecture

type Architecture int32

Instruction set architectures supported by various package managers.

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

func (Architecture) Descriptor

func (Architecture) Enum

func (x Architecture) Enum() *Architecture

func (Architecture) EnumDescriptor deprecated

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

Deprecated: Use Architecture.Descriptor instead.

func (Architecture) Number

func (Architecture) String

func (x Architecture) String() string

func (Architecture) Type

type Details

type Details struct {

	// Required. Where the package was installed.
	Installation *Installation `protobuf:"bytes,1,opt,name=installation,proto3" json:"installation,omitempty"`
	// contains filtered or unexported fields
}

Details of a package occurrence.

func (*Details) Descriptor deprecated

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

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetInstallation

func (x *Details) GetInstallation() *Installation

func (*Details) ProtoMessage

func (*Details) ProtoMessage()

func (*Details) ProtoReflect

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

func (*Details) Reset

func (x *Details) Reset()

func (*Details) String

func (x *Details) String() string

type Distribution

type Distribution struct {

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

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

func (*Distribution) Descriptor deprecated

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

Deprecated: Use Distribution.ProtoReflect.Descriptor instead.

func (*Distribution) GetArchitecture

func (x *Distribution) GetArchitecture() Architecture

func (*Distribution) GetCpeUri

func (x *Distribution) GetCpeUri() string

func (*Distribution) GetDescription

func (x *Distribution) GetDescription() string

func (*Distribution) GetLatestVersion

func (x *Distribution) GetLatestVersion() *Version

func (*Distribution) GetMaintainer

func (x *Distribution) GetMaintainer() string

func (*Distribution) GetUrl

func (x *Distribution) GetUrl() string

func (*Distribution) ProtoMessage

func (*Distribution) ProtoMessage()

func (*Distribution) ProtoReflect

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

func (*Distribution) Reset

func (x *Distribution) Reset()

func (*Distribution) String

func (x *Distribution) String() string

type Installation

type Installation struct {

	// Output only. The name of the installed package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Required. All of the places within the filesystem versions of this package
	// have been found.
	Location []*Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Installation) Descriptor deprecated

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

Deprecated: Use Installation.ProtoReflect.Descriptor instead.

func (*Installation) GetLocation

func (x *Installation) GetLocation() []*Location

func (*Installation) GetName

func (x *Installation) GetName() string

func (*Installation) ProtoMessage

func (*Installation) ProtoMessage()

func (*Installation) ProtoReflect

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

func (*Installation) Reset

func (x *Installation) Reset()

func (*Installation) String

func (x *Installation) String() string

type Location

type Location struct {

	// Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/)
	// denoting the package manager version distributing a package.
	CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
	// The version installed at this location.
	Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// The path from which we gathered that this package/version is installed.
	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Location) Descriptor deprecated

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetCpeUri

func (x *Location) GetCpeUri() string

func (*Location) GetPath

func (x *Location) GetPath() string

func (*Location) GetVersion

func (x *Location) GetVersion() *Version

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

type Package

type Package struct {

	// Required. Immutable. The name of the package.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The various channels by which a package is distributed.
	Distribution []*Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Package) Descriptor deprecated

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetDistribution

func (x *Package) GetDistribution() []*Distribution

func (*Package) GetName

func (x *Package) GetName() string

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

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

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type Version

type Version struct {

	// Used to correct mistakes in the version numbering scheme.
	Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
	// Required only when version kind is NORMAL. The main part of the version
	// name.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The iteration of the package build from the above version.
	Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
	// Required. Distinguishes between sentinel MIN/MAX versions and normal
	// versions.
	Kind Version_VersionKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.package.Version_VersionKind" json:"kind,omitempty"`
	// contains filtered or unexported fields
}

Version contains structured information about the version of a package.

func (*Version) Descriptor deprecated

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetEpoch

func (x *Version) GetEpoch() int32

func (*Version) GetKind

func (x *Version) GetKind() Version_VersionKind

func (*Version) GetName

func (x *Version) GetName() string

func (*Version) GetRevision

func (x *Version) GetRevision() string

func (*Version) ProtoMessage

func (*Version) ProtoMessage()

func (*Version) ProtoReflect

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

func (*Version) Reset

func (x *Version) Reset()

func (*Version) String

func (x *Version) String() string

type Version_VersionKind

type Version_VersionKind int32

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

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

func (Version_VersionKind) Descriptor

func (Version_VersionKind) Enum

func (Version_VersionKind) EnumDescriptor deprecated

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

Deprecated: Use Version_VersionKind.Descriptor instead.

func (Version_VersionKind) Number

func (Version_VersionKind) String

func (x Version_VersionKind) String() string

func (Version_VersionKind) Type

Jump to

Keyboard shortcuts

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