schema

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	ent.Schema
}

Artifact holds the schema definition for the Artifact entity.

func (Artifact) Edges

func (Artifact) Edges() []ent.Edge

Edges of the Artifact.

func (Artifact) Fields

func (Artifact) Fields() []ent.Field

Fields of the Artifact.

func (Artifact) Indexes

func (Artifact) Indexes() []ent.Index

Indexes of the Artifact.

NOTE: Given the nature of digests, we could treat them as unique identifiers with a single index, but currently we index both alg and digest so that it is possible to query all artifacts using a specific algorithm.

type BillOfMaterials

type BillOfMaterials struct {
	ent.Schema
}

BillOfMaterials holds the schema definition for the BillOfMaterials (SBOM) entity.

func (BillOfMaterials) Edges

func (BillOfMaterials) Edges() []ent.Edge

Edges of the Material.

func (BillOfMaterials) Fields

func (BillOfMaterials) Fields() []ent.Field

Fields of the SBOM.

func (BillOfMaterials) Indexes

func (BillOfMaterials) Indexes() []ent.Index

Indexes of the Material.

type Builder

type Builder struct {
	ent.Schema
}

Builder holds the schema definition for the Builder entity.

func (Builder) Edges

func (Builder) Edges() []ent.Edge

Edges of the Builder.

func (Builder) Fields

func (Builder) Fields() []ent.Field

Fields of the Builder.

func (Builder) Indexes

func (Builder) Indexes() []ent.Index

Indexes of the BuilderNode.

type Certification

type Certification struct {
	ent.Schema
}

Certification holds the schema definition for the Certification entity.

func (Certification) Edges

func (Certification) Edges() []ent.Edge

Edges of the Certification.

func (Certification) Fields

func (Certification) Fields() []ent.Field

Fields of the Certification.

func (Certification) Indexes

func (Certification) Indexes() []ent.Index

type CertifyLegal

type CertifyLegal struct {
	ent.Schema
}

CertifyLegal holds the schema definition for the CertifyLegal entity.

func (CertifyLegal) Edges

func (CertifyLegal) Edges() []ent.Edge

Edges of the CertifyLegal.

func (CertifyLegal) Fields

func (CertifyLegal) Fields() []ent.Field

Fields of the CertifyLegal.

func (CertifyLegal) Indexes

func (CertifyLegal) Indexes() []ent.Index

type CertifyScorecard

type CertifyScorecard struct {
	ent.Schema
}

CertifyScorecard holds the schema definition for the CertifyScorecard entity.

func (CertifyScorecard) Edges

func (CertifyScorecard) Edges() []ent.Edge

Edges of the CertifyScorecard.

func (CertifyScorecard) Fields

func (CertifyScorecard) Fields() []ent.Field

Fields of the CertifyScorecard.

func (CertifyScorecard) Indexes

func (CertifyScorecard) Indexes() []ent.Index

type CertifyVex

type CertifyVex struct {
	ent.Schema
}

CertifyVex holds the schema definition for the CertifyVex entity.

func (CertifyVex) Edges

func (CertifyVex) Edges() []ent.Edge

Edges of the VEX.

func (CertifyVex) Fields

func (CertifyVex) Fields() []ent.Field

Fields of the VEX.

func (CertifyVex) Indexes

func (CertifyVex) Indexes() []ent.Index

Indexes of the VEX.

type CertifyVuln

type CertifyVuln struct {
	ent.Schema
}

CertifyVuln holds the schema definition for the CertifyVuln entity.

func (CertifyVuln) Edges

func (CertifyVuln) Edges() []ent.Edge

Edges of the Vulnerability.

func (CertifyVuln) Fields

func (CertifyVuln) Fields() []ent.Field

Fields of the Vulnerability.

func (CertifyVuln) Indexes

func (CertifyVuln) Indexes() []ent.Index

Indexes of the Vulnerability.

type Dependency

type Dependency struct {
	ent.Schema
}

Dependency holds the schema definition for the Dependency entity.

func (Dependency) Annotations

func (Dependency) Annotations() []schema.Annotation

Annotations of the Dependency.

func (Dependency) Edges

func (Dependency) Edges() []ent.Edge

Edges of the Dependency.

func (Dependency) Fields

func (Dependency) Fields() []ent.Field

Fields of the Dependency.

func (Dependency) Indexes

func (Dependency) Indexes() []ent.Index

Indexes of the Dependency.

type HasMetadata added in v0.2.1

type HasMetadata struct {
	ent.Schema
}

HasMetadata holds the schema definition for the HasMetadata entity.

func (HasMetadata) Edges added in v0.2.1

func (HasMetadata) Edges() []ent.Edge

Edges of the HasMetadata.

func (HasMetadata) Fields added in v0.2.1

func (HasMetadata) Fields() []ent.Field

Fields of the HasMetadata.

func (HasMetadata) Indexes added in v0.2.1

func (HasMetadata) Indexes() []ent.Index

type HasSourceAt

type HasSourceAt struct {
	ent.Schema
}

HasSourceAt holds the schema definition for the HasSourceAt entity.

func (HasSourceAt) Edges

func (HasSourceAt) Edges() []ent.Edge

Edges of the HasSourceAt.

func (HasSourceAt) Fields

func (HasSourceAt) Fields() []ent.Field

Fields of the HasSourceAt.

func (HasSourceAt) Indexes

func (HasSourceAt) Indexes() []ent.Index

type HashEqual

type HashEqual struct {
	ent.Schema
}

HashEqual holds the schema definition for the HashEqual entity.

func (HashEqual) Edges

func (HashEqual) Edges() []ent.Edge

Edges of the HashEqual.

func (HashEqual) Fields

func (HashEqual) Fields() []ent.Field

Fields of the HashEqual.

type IsVulnerability

type IsVulnerability struct {
	ent.Schema
}

IsVulnerability holds the schema definition for the IsVulnerability entity.

func (IsVulnerability) Edges

func (IsVulnerability) Edges() []ent.Edge

Edges of the IsVulnerability.

func (IsVulnerability) Fields

func (IsVulnerability) Fields() []ent.Field

Fields of the IsVulnerability.

func (IsVulnerability) Indexes

func (IsVulnerability) Indexes() []ent.Index

type License

type License struct {
	ent.Schema
}

License holds the schema definition for the License entity.

func (License) Edges

func (License) Edges() []ent.Edge

Edges of the License.

func (License) Fields

func (License) Fields() []ent.Field

Fields of the License.

func (License) Indexes

func (License) Indexes() []ent.Index

Indexes of the License.

type Occurrence

type Occurrence struct {
	ent.Schema
}

Occurrence holds the schema definition for the Occurrence entity.

func (Occurrence) Edges

func (Occurrence) Edges() []ent.Edge

Edges of the Occurrence.

func (Occurrence) Fields

func (Occurrence) Fields() []ent.Field

Fields of the Occurrence.

func (Occurrence) Indexes

func (Occurrence) Indexes() []ent.Index

Indexes of the Occurrence.

type PackageName

type PackageName struct {
	ent.Schema
}

PackageName holds the schema definition for the PackageName entity.

func (PackageName) Edges

func (PackageName) Edges() []ent.Edge

Edges of the PackageName.

func (PackageName) Fields

func (PackageName) Fields() []ent.Field

Fields of the PackageName.

func (PackageName) Indexes

func (PackageName) Indexes() []ent.Index

Indexes of the PackageName.

type PackageNamespace

type PackageNamespace struct {
	ent.Schema
}

PackageNamespace holds the schema definition for the PackageNamespace entity.

func (PackageNamespace) Edges

func (PackageNamespace) Edges() []ent.Edge

Edges of the PackageNamespace.

func (PackageNamespace) Fields

func (PackageNamespace) Fields() []ent.Field

Fields of the PackageNamespace.

func (PackageNamespace) Indexes

func (PackageNamespace) Indexes() []ent.Index

Indexes of the PackageNamespace.

type PackageType

type PackageType struct {
	ent.Schema
}

PackageType holds the schema definition for the PackageType entity. This node maps to models.Package in the GraphQL schema. It is named PackageType because Package is a reserved keyword in Ent.

func (PackageType) Edges

func (PackageType) Edges() []ent.Edge

Edges of the PackageType.

func (PackageType) Fields

func (PackageType) Fields() []ent.Field

Fields of the PackageType.

type PackageVersion

type PackageVersion struct {
	ent.Schema
}

PackageVersion holds the schema definition for the PackageVersion entity.

func (PackageVersion) Edges

func (PackageVersion) Edges() []ent.Edge

Edges of the PackageVersion.

func (PackageVersion) Fields

func (PackageVersion) Fields() []ent.Field

Fields of the PackageVersion.

func (PackageVersion) Indexes

func (PackageVersion) Indexes() []ent.Index

Indexes of the PackageVersion.

type PkgEqual

type PkgEqual struct {
	ent.Schema
}

PkgEqual holds the schema definition for the PkgEqual entity.

func (PkgEqual) Edges

func (PkgEqual) Edges() []ent.Edge

Edges of the PkgEqual.

func (PkgEqual) Fields

func (PkgEqual) Fields() []ent.Field

Fields of the PkgEqual.

func (PkgEqual) Indexes

func (PkgEqual) Indexes() []ent.Index

Indexes of the PkgEqual.

type PointOfContact added in v0.2.1

type PointOfContact struct {
	ent.Schema
}

PointOfContact holds the schema definition for the PointOfContact entity.

func (PointOfContact) Edges added in v0.2.1

func (PointOfContact) Edges() []ent.Edge

Edges of the PointOfContact.

func (PointOfContact) Fields added in v0.2.1

func (PointOfContact) Fields() []ent.Field

Fields of the PointOfContact.

func (PointOfContact) Indexes added in v0.2.1

func (PointOfContact) Indexes() []ent.Index

type SLSAAttestation

type SLSAAttestation struct {
	ent.Schema
}

SLSAAttestation holds the schema definition for the SLSAAttestation entity.

func (SLSAAttestation) Annotations

func (SLSAAttestation) Annotations() []schema.Annotation

Annotations of the User.

func (SLSAAttestation) Edges

func (SLSAAttestation) Edges() []ent.Edge

Edges of the SLSA.

func (SLSAAttestation) Fields

func (SLSAAttestation) Fields() []ent.Field

Fields of the SLSA.

func (SLSAAttestation) Indexes

func (SLSAAttestation) Indexes() []ent.Index

type Scorecard

type Scorecard struct {
	ent.Schema
}

Scorecard holds the schema definition for the Scorecard entity.

func (Scorecard) Edges

func (Scorecard) Edges() []ent.Edge

Edges of the Scorecard.

func (Scorecard) Fields

func (Scorecard) Fields() []ent.Field

Fields of the Scorecard.

func (Scorecard) Indexes

func (Scorecard) Indexes() []ent.Index

type SourceName

type SourceName struct {
	ent.Schema
}

SourceName holds the schema definition for the SourceName entity.

func (SourceName) Edges

func (SourceName) Edges() []ent.Edge

Edges of the SourceName.

func (SourceName) Fields

func (SourceName) Fields() []ent.Field

Fields of the SourceName.

func (SourceName) Indexes

func (SourceName) Indexes() []ent.Index

Indexes of the SourceName.

type SourceNamespace

type SourceNamespace struct {
	ent.Schema
}

SourceNamespace holds the schema definition for the SourceNamespace entity.

func (SourceNamespace) Edges

func (SourceNamespace) Edges() []ent.Edge

Edges of the SourceNamespace.

func (SourceNamespace) Fields

func (SourceNamespace) Fields() []ent.Field

Fields of the SourceNamespace.

func (SourceNamespace) Indexes

func (SourceNamespace) Indexes() []ent.Index

Indexes of the SourceNamespace.

type SourceType

type SourceType struct {
	ent.Schema
}

SourceType holds the schema definition for the SourceType entity.

func (SourceType) Edges

func (SourceType) Edges() []ent.Edge

Edges of the SourceType.

func (SourceType) Fields

func (SourceType) Fields() []ent.Field

Fields of the SourceType.

type VulnEqual

type VulnEqual struct {
	ent.Schema
}

VulnEqual holds the schema definition for the VulnEqual entity.

func (VulnEqual) Edges

func (VulnEqual) Edges() []ent.Edge

Edges of the VulnEqual.

func (VulnEqual) Fields

func (VulnEqual) Fields() []ent.Field

Fields of the VulnEqual.

type VulnerabilityID

type VulnerabilityID struct {
	ent.Schema
}

VulnerabilityID holds the schema definition for the VulnerabilityID entity.

func (VulnerabilityID) Edges

func (VulnerabilityID) Edges() []ent.Edge

Edges of the VulnerabilityID.

func (VulnerabilityID) Fields

func (VulnerabilityID) Fields() []ent.Field

Fields of the VulnerabilityID.

func (VulnerabilityID) Indexes

func (VulnerabilityID) Indexes() []ent.Index

Indexes of the VulnerabilityID.

type VulnerabilityType

type VulnerabilityType struct {
	ent.Schema
}

VulnerabilityType holds the schema definition for the Vulnerability entity.

func (VulnerabilityType) Edges

func (VulnerabilityType) Edges() []ent.Edge

Edges of the GitHubSecurityAdvisory.

func (VulnerabilityType) Fields

func (VulnerabilityType) Fields() []ent.Field

Fields of the GitHubSecurityAdvisory.

func (VulnerabilityType) Indexes

func (VulnerabilityType) Indexes() []ent.Index

Indexes of the GitHubSecurityAdvisory.

Jump to

Keyboard shortcuts

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