models

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ecosystem_name = map[int32]string{
		0:  "UNKNOWN_ECOSYSTEM",
		1:  "Maven",
		2:  "RubyGems",
		3:  "Go",
		4:  "Npm",
		5:  "PyPI",
		6:  "Cargo",
		7:  "NuGet",
		8:  "Packagist",
		9:  "Hex",
		10: "Pub",
		11: "CycloneDxSBOM",
		12: "SpdxSBOM",
	}
	Ecosystem_value = map[string]int32{
		"UNKNOWN_ECOSYSTEM": 0,
		"Maven":             1,
		"RubyGems":          2,
		"Go":                3,
		"Npm":               4,
		"PyPI":              5,
		"Cargo":             6,
		"NuGet":             7,
		"Packagist":         8,
		"Hex":               9,
		"Pub":               10,
		"CycloneDxSBOM":     11,
		"SpdxSBOM":          12,
	}
)

Enum value maps for Ecosystem.

View Source
var File_models_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Ecosystem

type Ecosystem int32
const (
	Ecosystem_UNKNOWN_ECOSYSTEM Ecosystem = 0
	Ecosystem_Maven             Ecosystem = 1
	Ecosystem_RubyGems          Ecosystem = 2
	Ecosystem_Go                Ecosystem = 3
	Ecosystem_Npm               Ecosystem = 4
	Ecosystem_PyPI              Ecosystem = 5
	Ecosystem_Cargo             Ecosystem = 6
	Ecosystem_NuGet             Ecosystem = 7
	Ecosystem_Packagist         Ecosystem = 8
	Ecosystem_Hex               Ecosystem = 9
	Ecosystem_Pub               Ecosystem = 10
	Ecosystem_CycloneDxSBOM     Ecosystem = 11
	Ecosystem_SpdxSBOM          Ecosystem = 12
)

func (Ecosystem) Descriptor

func (Ecosystem) Descriptor() protoreflect.EnumDescriptor

func (Ecosystem) Enum

func (x Ecosystem) Enum() *Ecosystem

func (Ecosystem) EnumDescriptor deprecated

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

Deprecated: Use Ecosystem.Descriptor instead.

func (Ecosystem) Number

func (x Ecosystem) Number() protoreflect.EnumNumber

func (Ecosystem) String

func (x Ecosystem) String() string

func (Ecosystem) Type

type Package

type Package struct {
	Ecosystem Ecosystem `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=Ecosystem" json:"ecosystem,omitempty"`
	Name      string    `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Version   string    `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*Package) Descriptor deprecated

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

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetEcosystem

func (x *Package) GetEcosystem() Ecosystem

func (*Package) GetName

func (x *Package) GetName() string

func (*Package) GetVersion

func (x *Package) GetVersion() 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 PackageManifest

type PackageManifest struct {
	Ecosystem Ecosystem  `protobuf:"varint,1,opt,name=ecosystem,proto3,enum=Ecosystem" json:"ecosystem,omitempty"`
	Path      string     `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
	Packages  []*Package `protobuf:"bytes,3,rep,name=packages,proto3" json:"packages,omitempty"`
	// contains filtered or unexported fields
}

func (*PackageManifest) Descriptor deprecated

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

Deprecated: Use PackageManifest.ProtoReflect.Descriptor instead.

func (*PackageManifest) GetEcosystem

func (x *PackageManifest) GetEcosystem() Ecosystem

func (*PackageManifest) GetPackages

func (x *PackageManifest) GetPackages() []*Package

func (*PackageManifest) GetPath

func (x *PackageManifest) GetPath() string

func (*PackageManifest) ProtoMessage

func (*PackageManifest) ProtoMessage()

func (*PackageManifest) ProtoReflect

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

func (*PackageManifest) Reset

func (x *PackageManifest) Reset()

func (*PackageManifest) String

func (x *PackageManifest) String() string

Jump to

Keyboard shortcuts

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