genproto: google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package Index | Files

package _package

import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package"

Index

Package Files

package.pb.go

Variables

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.

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.

var File_google_devtools_containeranalysis_v1beta1_package_package_proto protoreflect.FileDescriptor

type Architecture Uses

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 Uses

func (Architecture) Descriptor() protoreflect.EnumDescriptor

func (Architecture) Enum Uses

func (x Architecture) Enum() *Architecture

func (Architecture) EnumDescriptor Uses

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

Deprecated: Use Architecture.Descriptor instead.

func (Architecture) Number Uses

func (x Architecture) Number() protoreflect.EnumNumber

func (Architecture) String Uses

func (x Architecture) String() string

func (Architecture) Type Uses

func (Architecture) Type() protoreflect.EnumType

type Details Uses

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 Uses

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

Deprecated: Use Details.ProtoReflect.Descriptor instead.

func (*Details) GetInstallation Uses

func (x *Details) GetInstallation() *Installation

func (*Details) ProtoMessage Uses

func (*Details) ProtoMessage()

func (*Details) ProtoReflect Uses

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

func (*Details) Reset Uses

func (x *Details) Reset()

func (*Details) String Uses

func (x *Details) String() string

type Distribution Uses

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 Uses

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

Deprecated: Use Distribution.ProtoReflect.Descriptor instead.

func (*Distribution) GetArchitecture Uses

func (x *Distribution) GetArchitecture() Architecture

func (*Distribution) GetCpeUri Uses

func (x *Distribution) GetCpeUri() string

func (*Distribution) GetDescription Uses

func (x *Distribution) GetDescription() string

func (*Distribution) GetLatestVersion Uses

func (x *Distribution) GetLatestVersion() *Version

func (*Distribution) GetMaintainer Uses

func (x *Distribution) GetMaintainer() string

func (*Distribution) GetUrl Uses

func (x *Distribution) GetUrl() string

func (*Distribution) ProtoMessage Uses

func (*Distribution) ProtoMessage()

func (*Distribution) ProtoReflect Uses

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

func (*Distribution) Reset Uses

func (x *Distribution) Reset()

func (*Distribution) String Uses

func (x *Distribution) String() string

type Installation Uses

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 Uses

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

Deprecated: Use Installation.ProtoReflect.Descriptor instead.

func (*Installation) GetLocation Uses

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

func (*Installation) GetName Uses

func (x *Installation) GetName() string

func (*Installation) ProtoMessage Uses

func (*Installation) ProtoMessage()

func (*Installation) ProtoReflect Uses

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

func (*Installation) Reset Uses

func (x *Installation) Reset()

func (*Installation) String Uses

func (x *Installation) String() string

type Location Uses

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 Uses

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetCpeUri Uses

func (x *Location) GetCpeUri() string

func (*Location) GetPath Uses

func (x *Location) GetPath() string

func (*Location) GetVersion Uses

func (x *Location) GetVersion() *Version

func (*Location) ProtoMessage Uses

func (*Location) ProtoMessage()

func (*Location) ProtoReflect Uses

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

func (*Location) Reset Uses

func (x *Location) Reset()

func (*Location) String Uses

func (x *Location) String() string

type Package Uses

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 Uses

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetDistribution Uses

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

func (*Package) GetName Uses

func (x *Package) GetName() string

func (*Package) ProtoMessage Uses

func (*Package) ProtoMessage()

func (*Package) ProtoReflect Uses

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

func (*Package) Reset Uses

func (x *Package) Reset()

func (*Package) String Uses

func (x *Package) String() string

type Version Uses

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 Uses

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

Deprecated: Use Version.ProtoReflect.Descriptor instead.

func (*Version) GetEpoch Uses

func (x *Version) GetEpoch() int32

func (*Version) GetKind Uses

func (x *Version) GetKind() Version_VersionKind

func (*Version) GetName Uses

func (x *Version) GetName() string

func (*Version) GetRevision Uses

func (x *Version) GetRevision() string

func (*Version) ProtoMessage Uses

func (*Version) ProtoMessage()

func (*Version) ProtoReflect Uses

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

func (*Version) Reset Uses

func (x *Version) Reset()

func (*Version) String Uses

func (x *Version) String() string

type Version_VersionKind Uses

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 Uses

func (Version_VersionKind) Descriptor() protoreflect.EnumDescriptor

func (Version_VersionKind) Enum Uses

func (x Version_VersionKind) Enum() *Version_VersionKind

func (Version_VersionKind) EnumDescriptor Uses

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

Deprecated: Use Version_VersionKind.Descriptor instead.

func (Version_VersionKind) Number Uses

func (x Version_VersionKind) Number() protoreflect.EnumNumber

func (Version_VersionKind) String Uses

func (x Version_VersionKind) String() string

func (Version_VersionKind) Type Uses

func (Version_VersionKind) Type() protoreflect.EnumType

Package _package imports 5 packages (graph) and is imported by 2 packages. Updated 2020-08-13. Refresh now. Tools for package owners.