ent

package
v0.0.0-...-aca7f8d Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: MPL-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Operation types.
	OpCreate    = ent.OpCreate
	OpDelete    = ent.OpDelete
	OpDeleteOne = ent.OpDeleteOne
	OpUpdate    = ent.OpUpdate
	OpUpdateOne = ent.OpUpdateOne

	// Node types.
	TypeAdapter                = "Adapter"
	TypeArtifact               = "Artifact"
	TypeCodeIssue              = "CodeIssue"
	TypeCodeScan               = "CodeScan"
	TypeComponent              = "Component"
	TypeEvent                  = "Event"
	TypeGitCommit              = "GitCommit"
	TypeLicense                = "License"
	TypeOrganization           = "Organization"
	TypeProject                = "Project"
	TypeRelease                = "Release"
	TypeReleaseComponent       = "ReleaseComponent"
	TypeReleaseEntry           = "ReleaseEntry"
	TypeReleaseLicense         = "ReleaseLicense"
	TypeReleasePolicy          = "ReleasePolicy"
	TypeReleasePolicyViolation = "ReleasePolicyViolation"
	TypeReleaseVulnerability   = "ReleaseVulnerability"
	TypeRepo                   = "Repo"
	TypeSPDXLicense            = "SPDXLicense"
	TypeTestCase               = "TestCase"
	TypeTestRun                = "TestRun"
	TypeVulnerability          = "Vulnerability"
	TypeVulnerabilityReview    = "VulnerabilityReview"
)

Variables

View Source
var (
	// AdapterOrderFieldName orders Adapter by name.
	AdapterOrderFieldName = &AdapterOrderField{
		field: adapter.FieldName,
		toCursor: func(a *Adapter) Cursor {
			return Cursor{
				ID:    a.ID,
				Value: a.Name,
			}
		},
	}
	// AdapterOrderFieldTag orders Adapter by tag.
	AdapterOrderFieldTag = &AdapterOrderField{
		field: adapter.FieldTag,
		toCursor: func(a *Adapter) Cursor {
			return Cursor{
				ID:    a.ID,
				Value: a.Tag,
			}
		},
	}
)
View Source
var (
	// ArtifactOrderFieldName orders Artifact by name.
	ArtifactOrderFieldName = &ArtifactOrderField{
		field: artifact.FieldName,
		toCursor: func(a *Artifact) Cursor {
			return Cursor{
				ID:    a.ID,
				Value: a.Name,
			}
		},
	}
	// ArtifactOrderFieldSha256 orders Artifact by sha256.
	ArtifactOrderFieldSha256 = &ArtifactOrderField{
		field: artifact.FieldSha256,
		toCursor: func(a *Artifact) Cursor {
			return Cursor{
				ID:    a.ID,
				Value: a.Sha256,
			}
		},
	}
	// ArtifactOrderFieldType orders Artifact by type.
	ArtifactOrderFieldType = &ArtifactOrderField{
		field: artifact.FieldType,
		toCursor: func(a *Artifact) Cursor {
			return Cursor{
				ID:    a.ID,
				Value: a.Type,
			}
		},
	}
	// ArtifactOrderFieldTime orders Artifact by time.
	ArtifactOrderFieldTime = &ArtifactOrderField{
		field: artifact.FieldTime,
		toCursor: func(a *Artifact) Cursor {
			return Cursor{
				ID:    a.ID,
				Value: a.Time,
			}
		},
	}
)
View Source
var (
	// CodeIssueOrderFieldRuleID orders CodeIssue by rule_id.
	CodeIssueOrderFieldRuleID = &CodeIssueOrderField{
		field: codeissue.FieldRuleID,
		toCursor: func(ci *CodeIssue) Cursor {
			return Cursor{
				ID:    ci.ID,
				Value: ci.RuleID,
			}
		},
	}
	// CodeIssueOrderFieldSeverity orders CodeIssue by severity.
	CodeIssueOrderFieldSeverity = &CodeIssueOrderField{
		field: codeissue.FieldSeverity,
		toCursor: func(ci *CodeIssue) Cursor {
			return Cursor{
				ID:    ci.ID,
				Value: ci.Severity,
			}
		},
	}
	// CodeIssueOrderFieldType orders CodeIssue by type.
	CodeIssueOrderFieldType = &CodeIssueOrderField{
		field: codeissue.FieldType,
		toCursor: func(ci *CodeIssue) Cursor {
			return Cursor{
				ID:    ci.ID,
				Value: ci.Type,
			}
		},
	}
)
View Source
var (
	// CodeScanOrderFieldTool orders CodeScan by tool.
	CodeScanOrderFieldTool = &CodeScanOrderField{
		field: codescan.FieldTool,
		toCursor: func(cs *CodeScan) Cursor {
			return Cursor{
				ID:    cs.ID,
				Value: cs.Tool,
			}
		},
	}
	// CodeScanOrderFieldTime orders CodeScan by time.
	CodeScanOrderFieldTime = &CodeScanOrderField{
		field: codescan.FieldTime,
		toCursor: func(cs *CodeScan) Cursor {
			return Cursor{
				ID:    cs.ID,
				Value: cs.Time,
			}
		},
	}
)
View Source
var (
	// ComponentOrderFieldScheme orders Component by scheme.
	ComponentOrderFieldScheme = &ComponentOrderField{
		field: component.FieldScheme,
		toCursor: func(c *Component) Cursor {
			return Cursor{
				ID:    c.ID,
				Value: c.Scheme,
			}
		},
	}
	// ComponentOrderFieldNamespace orders Component by namespace.
	ComponentOrderFieldNamespace = &ComponentOrderField{
		field: component.FieldNamespace,
		toCursor: func(c *Component) Cursor {
			return Cursor{
				ID:    c.ID,
				Value: c.Namespace,
			}
		},
	}
	// ComponentOrderFieldName orders Component by name.
	ComponentOrderFieldName = &ComponentOrderField{
		field: component.FieldName,
		toCursor: func(c *Component) Cursor {
			return Cursor{
				ID:    c.ID,
				Value: c.Name,
			}
		},
	}
	// ComponentOrderFieldVersion orders Component by version.
	ComponentOrderFieldVersion = &ComponentOrderField{
		field: component.FieldVersion,
		toCursor: func(c *Component) Cursor {
			return Cursor{
				ID:    c.ID,
				Value: c.Version,
			}
		},
	}
)
View Source
var (
	// EventOrderFieldType orders Event by type.
	EventOrderFieldType = &EventOrderField{
		field: event.FieldType,
		toCursor: func(e *Event) Cursor {
			return Cursor{
				ID:    e.ID,
				Value: e.Type,
			}
		},
	}
	// EventOrderFieldTime orders Event by time.
	EventOrderFieldTime = &EventOrderField{
		field: event.FieldTime,
		toCursor: func(e *Event) Cursor {
			return Cursor{
				ID:    e.ID,
				Value: e.Time,
			}
		},
	}
)
View Source
var (
	// GitCommitOrderFieldHash orders GitCommit by hash.
	GitCommitOrderFieldHash = &GitCommitOrderField{
		field: gitcommit.FieldHash,
		toCursor: func(gc *GitCommit) Cursor {
			return Cursor{
				ID:    gc.ID,
				Value: gc.Hash,
			}
		},
	}
	// GitCommitOrderFieldBranch orders GitCommit by branch.
	GitCommitOrderFieldBranch = &GitCommitOrderField{
		field: gitcommit.FieldBranch,
		toCursor: func(gc *GitCommit) Cursor {
			return Cursor{
				ID:    gc.ID,
				Value: gc.Branch,
			}
		},
	}
	// GitCommitOrderFieldTag orders GitCommit by tag.
	GitCommitOrderFieldTag = &GitCommitOrderField{
		field: gitcommit.FieldTag,
		toCursor: func(gc *GitCommit) Cursor {
			return Cursor{
				ID:    gc.ID,
				Value: gc.Tag,
			}
		},
	}
	// GitCommitOrderFieldTime orders GitCommit by time.
	GitCommitOrderFieldTime = &GitCommitOrderField{
		field: gitcommit.FieldTime,
		toCursor: func(gc *GitCommit) Cursor {
			return Cursor{
				ID:    gc.ID,
				Value: gc.Time,
			}
		},
	}
)
View Source
var (
	// LicenseOrderFieldLicenseID orders License by license_id.
	LicenseOrderFieldLicenseID = &LicenseOrderField{
		field: license.FieldLicenseID,
		toCursor: func(l *License) Cursor {
			return Cursor{
				ID:    l.ID,
				Value: l.LicenseID,
			}
		},
	}
	// LicenseOrderFieldName orders License by name.
	LicenseOrderFieldName = &LicenseOrderField{
		field: license.FieldName,
		toCursor: func(l *License) Cursor {
			return Cursor{
				ID:    l.ID,
				Value: l.Name,
			}
		},
	}
)
View Source
var (
	// ReleaseOrderFieldName orders Release by name.
	ReleaseOrderFieldName = &ReleaseOrderField{
		field: release.FieldName,
		toCursor: func(r *Release) Cursor {
			return Cursor{
				ID:    r.ID,
				Value: r.Name,
			}
		},
	}
	// ReleaseOrderFieldVersion orders Release by version.
	ReleaseOrderFieldVersion = &ReleaseOrderField{
		field: release.FieldVersion,
		toCursor: func(r *Release) Cursor {
			return Cursor{
				ID:    r.ID,
				Value: r.Version,
			}
		},
	}
)
View Source
var (
	// ReleaseEntryOrderFieldType orders ReleaseEntry by type.
	ReleaseEntryOrderFieldType = &ReleaseEntryOrderField{
		field: releaseentry.FieldType,
		toCursor: func(re *ReleaseEntry) Cursor {
			return Cursor{
				ID:    re.ID,
				Value: re.Type,
			}
		},
	}
	// ReleaseEntryOrderFieldTime orders ReleaseEntry by time.
	ReleaseEntryOrderFieldTime = &ReleaseEntryOrderField{
		field: releaseentry.FieldTime,
		toCursor: func(re *ReleaseEntry) Cursor {
			return Cursor{
				ID:    re.ID,
				Value: re.Time,
			}
		},
	}
)
View Source
var (
	// TestRunOrderFieldTool orders TestRun by tool.
	TestRunOrderFieldTool = &TestRunOrderField{
		field: testrun.FieldTool,
		toCursor: func(tr *TestRun) Cursor {
			return Cursor{
				ID:    tr.ID,
				Value: tr.Tool,
			}
		},
	}
	// TestRunOrderFieldTime orders TestRun by time.
	TestRunOrderFieldTime = &TestRunOrderField{
		field: testrun.FieldTime,
		toCursor: func(tr *TestRun) Cursor {
			return Cursor{
				ID:    tr.ID,
				Value: tr.Time,
			}
		},
	}
)
View Source
var (
	// VulnerabilityOrderFieldVid orders Vulnerability by vid.
	VulnerabilityOrderFieldVid = &VulnerabilityOrderField{
		field: vulnerability.FieldVid,
		toCursor: func(v *Vulnerability) Cursor {
			return Cursor{
				ID:    v.ID,
				Value: v.Vid,
			}
		},
	}
	// VulnerabilityOrderFieldSeverityScore orders Vulnerability by severity_score.
	VulnerabilityOrderFieldSeverityScore = &VulnerabilityOrderField{
		field: vulnerability.FieldSeverityScore,
		toCursor: func(v *Vulnerability) Cursor {
			return Cursor{
				ID:    v.ID,
				Value: v.SeverityScore,
			}
		},
	}
	// VulnerabilityOrderFieldSeverity orders Vulnerability by severity.
	VulnerabilityOrderFieldSeverity = &VulnerabilityOrderField{
		field: vulnerability.FieldSeverity,
		toCursor: func(v *Vulnerability) Cursor {
			return Cursor{
				ID:    v.ID,
				Value: v.Severity,
			}
		},
	}
	// VulnerabilityOrderFieldPublished orders Vulnerability by published.
	VulnerabilityOrderFieldPublished = &VulnerabilityOrderField{
		field: vulnerability.FieldPublished,
		toCursor: func(v *Vulnerability) Cursor {
			return Cursor{
				ID:    v.ID,
				Value: v.Published,
			}
		},
	}
	// VulnerabilityOrderFieldModified orders Vulnerability by modified.
	VulnerabilityOrderFieldModified = &VulnerabilityOrderField{
		field: vulnerability.FieldModified,
		toCursor: func(v *Vulnerability) Cursor {
			return Cursor{
				ID:    v.ID,
				Value: v.Modified,
			}
		},
	}
)
View Source
var DefaultAdapterOrder = &AdapterOrder{
	Direction: OrderDirectionAsc,
	Field: &AdapterOrderField{
		field: adapter.FieldID,
		toCursor: func(a *Adapter) Cursor {
			return Cursor{ID: a.ID}
		},
	},
}

DefaultAdapterOrder is the default ordering of Adapter.

View Source
var DefaultArtifactOrder = &ArtifactOrder{
	Direction: OrderDirectionAsc,
	Field: &ArtifactOrderField{
		field: artifact.FieldID,
		toCursor: func(a *Artifact) Cursor {
			return Cursor{ID: a.ID}
		},
	},
}

DefaultArtifactOrder is the default ordering of Artifact.

View Source
var DefaultCodeIssueOrder = &CodeIssueOrder{
	Direction: OrderDirectionAsc,
	Field: &CodeIssueOrderField{
		field: codeissue.FieldID,
		toCursor: func(ci *CodeIssue) Cursor {
			return Cursor{ID: ci.ID}
		},
	},
}

DefaultCodeIssueOrder is the default ordering of CodeIssue.

View Source
var DefaultCodeScanOrder = &CodeScanOrder{
	Direction: OrderDirectionAsc,
	Field: &CodeScanOrderField{
		field: codescan.FieldID,
		toCursor: func(cs *CodeScan) Cursor {
			return Cursor{ID: cs.ID}
		},
	},
}

DefaultCodeScanOrder is the default ordering of CodeScan.

View Source
var DefaultComponentOrder = &ComponentOrder{
	Direction: OrderDirectionAsc,
	Field: &ComponentOrderField{
		field: component.FieldID,
		toCursor: func(c *Component) Cursor {
			return Cursor{ID: c.ID}
		},
	},
}

DefaultComponentOrder is the default ordering of Component.

View Source
var DefaultEventOrder = &EventOrder{
	Direction: OrderDirectionAsc,
	Field: &EventOrderField{
		field: event.FieldID,
		toCursor: func(e *Event) Cursor {
			return Cursor{ID: e.ID}
		},
	},
}

DefaultEventOrder is the default ordering of Event.

View Source
var DefaultGitCommitOrder = &GitCommitOrder{
	Direction: OrderDirectionAsc,
	Field: &GitCommitOrderField{
		field: gitcommit.FieldID,
		toCursor: func(gc *GitCommit) Cursor {
			return Cursor{ID: gc.ID}
		},
	},
}

DefaultGitCommitOrder is the default ordering of GitCommit.

View Source
var DefaultLicenseOrder = &LicenseOrder{
	Direction: OrderDirectionAsc,
	Field: &LicenseOrderField{
		field: license.FieldID,
		toCursor: func(l *License) Cursor {
			return Cursor{ID: l.ID}
		},
	},
}

DefaultLicenseOrder is the default ordering of License.

View Source
var DefaultOrganizationOrder = &OrganizationOrder{
	Direction: OrderDirectionAsc,
	Field: &OrganizationOrderField{
		field: organization.FieldID,
		toCursor: func(o *Organization) Cursor {
			return Cursor{ID: o.ID}
		},
	},
}

DefaultOrganizationOrder is the default ordering of Organization.

View Source
var DefaultProjectOrder = &ProjectOrder{
	Direction: OrderDirectionAsc,
	Field: &ProjectOrderField{
		field: project.FieldID,
		toCursor: func(pr *Project) Cursor {
			return Cursor{ID: pr.ID}
		},
	},
}

DefaultProjectOrder is the default ordering of Project.

View Source
var DefaultReleaseComponentOrder = &ReleaseComponentOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleaseComponentOrderField{
		field: releasecomponent.FieldID,
		toCursor: func(rc *ReleaseComponent) Cursor {
			return Cursor{ID: rc.ID}
		},
	},
}

DefaultReleaseComponentOrder is the default ordering of ReleaseComponent.

View Source
var DefaultReleaseEntryOrder = &ReleaseEntryOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleaseEntryOrderField{
		field: releaseentry.FieldID,
		toCursor: func(re *ReleaseEntry) Cursor {
			return Cursor{ID: re.ID}
		},
	},
}

DefaultReleaseEntryOrder is the default ordering of ReleaseEntry.

View Source
var DefaultReleaseLicenseOrder = &ReleaseLicenseOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleaseLicenseOrderField{
		field: releaselicense.FieldID,
		toCursor: func(rl *ReleaseLicense) Cursor {
			return Cursor{ID: rl.ID}
		},
	},
}

DefaultReleaseLicenseOrder is the default ordering of ReleaseLicense.

View Source
var DefaultReleaseOrder = &ReleaseOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleaseOrderField{
		field: release.FieldID,
		toCursor: func(r *Release) Cursor {
			return Cursor{ID: r.ID}
		},
	},
}

DefaultReleaseOrder is the default ordering of Release.

View Source
var DefaultReleasePolicyOrder = &ReleasePolicyOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleasePolicyOrderField{
		field: releasepolicy.FieldID,
		toCursor: func(rp *ReleasePolicy) Cursor {
			return Cursor{ID: rp.ID}
		},
	},
}

DefaultReleasePolicyOrder is the default ordering of ReleasePolicy.

View Source
var DefaultReleasePolicyViolationOrder = &ReleasePolicyViolationOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleasePolicyViolationOrderField{
		field: releasepolicyviolation.FieldID,
		toCursor: func(rpv *ReleasePolicyViolation) Cursor {
			return Cursor{ID: rpv.ID}
		},
	},
}

DefaultReleasePolicyViolationOrder is the default ordering of ReleasePolicyViolation.

View Source
var DefaultReleaseVulnerabilityOrder = &ReleaseVulnerabilityOrder{
	Direction: OrderDirectionAsc,
	Field: &ReleaseVulnerabilityOrderField{
		field: releasevulnerability.FieldID,
		toCursor: func(rv *ReleaseVulnerability) Cursor {
			return Cursor{ID: rv.ID}
		},
	},
}

DefaultReleaseVulnerabilityOrder is the default ordering of ReleaseVulnerability.

View Source
var DefaultRepoOrder = &RepoOrder{
	Direction: OrderDirectionAsc,
	Field: &RepoOrderField{
		field: repo.FieldID,
		toCursor: func(r *Repo) Cursor {
			return Cursor{ID: r.ID}
		},
	},
}

DefaultRepoOrder is the default ordering of Repo.

View Source
var DefaultSPDXLicenseOrder = &SPDXLicenseOrder{
	Direction: OrderDirectionAsc,
	Field: &SPDXLicenseOrderField{
		field: spdxlicense.FieldID,
		toCursor: func(sl *SPDXLicense) Cursor {
			return Cursor{ID: sl.ID}
		},
	},
}

DefaultSPDXLicenseOrder is the default ordering of SPDXLicense.

View Source
var DefaultTestCaseOrder = &TestCaseOrder{
	Direction: OrderDirectionAsc,
	Field: &TestCaseOrderField{
		field: testcase.FieldID,
		toCursor: func(tc *TestCase) Cursor {
			return Cursor{ID: tc.ID}
		},
	},
}

DefaultTestCaseOrder is the default ordering of TestCase.

View Source
var DefaultTestRunOrder = &TestRunOrder{
	Direction: OrderDirectionAsc,
	Field: &TestRunOrderField{
		field: testrun.FieldID,
		toCursor: func(tr *TestRun) Cursor {
			return Cursor{ID: tr.ID}
		},
	},
}

DefaultTestRunOrder is the default ordering of TestRun.

View Source
var DefaultVulnerabilityOrder = &VulnerabilityOrder{
	Direction: OrderDirectionAsc,
	Field: &VulnerabilityOrderField{
		field: vulnerability.FieldID,
		toCursor: func(v *Vulnerability) Cursor {
			return Cursor{ID: v.ID}
		},
	},
}

DefaultVulnerabilityOrder is the default ordering of Vulnerability.

View Source
var DefaultVulnerabilityReviewOrder = &VulnerabilityReviewOrder{
	Direction: OrderDirectionAsc,
	Field: &VulnerabilityReviewOrderField{
		field: vulnerabilityreview.FieldID,
		toCursor: func(vr *VulnerabilityReview) Cursor {
			return Cursor{ID: vr.ID}
		},
	},
}

DefaultVulnerabilityReviewOrder is the default ordering of VulnerabilityReview.

View Source
var (
	// ProjectOrderFieldName orders Project by name.
	ProjectOrderFieldName = &ProjectOrderField{
		field: project.FieldName,
		toCursor: func(pr *Project) Cursor {
			return Cursor{
				ID:    pr.ID,
				Value: pr.Name,
			}
		},
	}
)
View Source
var (
	// ReleasePolicyOrderFieldName orders ReleasePolicy by name.
	ReleasePolicyOrderFieldName = &ReleasePolicyOrderField{
		field: releasepolicy.FieldName,
		toCursor: func(rp *ReleasePolicy) Cursor {
			return Cursor{
				ID:    rp.ID,
				Value: rp.Name,
			}
		},
	}
)
View Source
var (
	// RepoOrderFieldName orders Repo by name.
	RepoOrderFieldName = &RepoOrderField{
		field: repo.FieldName,
		toCursor: func(r *Repo) Cursor {
			return Cursor{
				ID:    r.ID,
				Value: r.Name,
			}
		},
	}
)
View Source
var (
	// TestCaseOrderFieldName orders TestCase by name.
	TestCaseOrderFieldName = &TestCaseOrderField{
		field: testcase.FieldName,
		toCursor: func(tc *TestCase) Cursor {
			return Cursor{
				ID:    tc.ID,
				Value: tc.Name,
			}
		},
	}
)
View Source
var (
	// VulnerabilityReviewOrderFieldNote orders VulnerabilityReview by note.
	VulnerabilityReviewOrderFieldNote = &VulnerabilityReviewOrderField{
		field: vulnerabilityreview.FieldNote,
		toCursor: func(vr *VulnerabilityReview) Cursor {
			return Cursor{
				ID:    vr.ID,
				Value: vr.Note,
			}
		},
	}
)

Functions

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

func OpenTxFromContext

func OpenTxFromContext(ctx context.Context) (context.Context, driver.Tx, error)

OpenTxFromContext open transactions from client stored in context.

Types

type Adapter

type Adapter struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Tag holds the value of the "tag" field.
	Tag string `json:"tag,omitempty"`
	// Module holds the value of the "module" field.
	Module string `json:"module,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the AdapterQuery when eager-loading is set.
	Edges AdapterEdges `json:"edges"`
	// contains filtered or unexported fields
}

Adapter is the model entity for the Adapter schema.

func (*Adapter) Node

func (a *Adapter) Node(ctx context.Context) (node *Node, err error)

func (*Adapter) Owner

func (a *Adapter) Owner(ctx context.Context) (*Organization, error)

func (*Adapter) QueryOwner

func (a *Adapter) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Adapter entity.

func (*Adapter) String

func (a *Adapter) String() string

String implements the fmt.Stringer.

func (*Adapter) ToEdge

func (a *Adapter) ToEdge(order *AdapterOrder) *AdapterEdge

ToEdge converts Adapter into AdapterEdge.

func (*Adapter) Unwrap

func (a *Adapter) Unwrap() *Adapter

Unwrap unwraps the Adapter entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Adapter) Update

func (a *Adapter) Update() *AdapterUpdateOne

Update returns a builder for updating this Adapter. Note that you need to call Adapter.Unwrap() before calling this method if this Adapter was returned from a transaction, and the transaction was committed or rolled back.

type AdapterClient

type AdapterClient struct {
	// contains filtered or unexported fields
}

AdapterClient is a client for the Adapter schema.

func NewAdapterClient

func NewAdapterClient(c config) *AdapterClient

NewAdapterClient returns a client for the Adapter from the given config.

func (*AdapterClient) Create

func (c *AdapterClient) Create() *AdapterCreate

Create returns a create builder for Adapter.

func (*AdapterClient) CreateBulk

func (c *AdapterClient) CreateBulk(builders ...*AdapterCreate) *AdapterCreateBulk

CreateBulk returns a builder for creating a bulk of Adapter entities.

func (*AdapterClient) Delete

func (c *AdapterClient) Delete() *AdapterDelete

Delete returns a delete builder for Adapter.

func (*AdapterClient) DeleteOne

func (c *AdapterClient) DeleteOne(a *Adapter) *AdapterDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*AdapterClient) DeleteOneID

func (c *AdapterClient) DeleteOneID(id int) *AdapterDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*AdapterClient) Get

func (c *AdapterClient) Get(ctx context.Context, id int) (*Adapter, error)

Get returns a Adapter entity by its id.

func (*AdapterClient) GetX

func (c *AdapterClient) GetX(ctx context.Context, id int) *Adapter

GetX is like Get, but panics if an error occurs.

func (*AdapterClient) Hooks

func (c *AdapterClient) Hooks() []Hook

Hooks returns the client hooks.

func (*AdapterClient) Query

func (c *AdapterClient) Query() *AdapterQuery

Query returns a query builder for Adapter.

func (*AdapterClient) QueryOwner

func (c *AdapterClient) QueryOwner(a *Adapter) *OrganizationQuery

QueryOwner queries the owner edge of a Adapter.

func (*AdapterClient) Update

func (c *AdapterClient) Update() *AdapterUpdate

Update returns an update builder for Adapter.

func (*AdapterClient) UpdateOne

func (c *AdapterClient) UpdateOne(a *Adapter) *AdapterUpdateOne

UpdateOne returns an update builder for the given entity.

func (*AdapterClient) UpdateOneID

func (c *AdapterClient) UpdateOneID(id int) *AdapterUpdateOne

UpdateOneID returns an update builder for the given id.

func (*AdapterClient) Use

func (c *AdapterClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `adapter.Hooks(f(g(h())))`.

type AdapterConnection

type AdapterConnection struct {
	Edges      []*AdapterEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

AdapterConnection is the connection containing edges to Adapter.

type AdapterCreate

type AdapterCreate struct {
	// contains filtered or unexported fields
}

AdapterCreate is the builder for creating a Adapter entity.

func (*AdapterCreate) Exec

func (ac *AdapterCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*AdapterCreate) ExecX

func (ac *AdapterCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AdapterCreate) Mutation

func (ac *AdapterCreate) Mutation() *AdapterMutation

Mutation returns the AdapterMutation object of the builder.

func (*AdapterCreate) Save

func (ac *AdapterCreate) Save(ctx context.Context) (*Adapter, error)

Save creates the Adapter in the database.

func (*AdapterCreate) SaveX

func (ac *AdapterCreate) SaveX(ctx context.Context) *Adapter

SaveX calls Save and panics if Save returns an error.

func (*AdapterCreate) SetModelCreate

func (a *AdapterCreate) SetModelCreate(model *AdapterModelCreate) *AdapterCreate

func (*AdapterCreate) SetModule

func (ac *AdapterCreate) SetModule(s string) *AdapterCreate

SetModule sets the "module" field.

func (*AdapterCreate) SetName

func (ac *AdapterCreate) SetName(s string) *AdapterCreate

SetName sets the "name" field.

func (*AdapterCreate) SetOwner

func (ac *AdapterCreate) SetOwner(o *Organization) *AdapterCreate

SetOwner sets the "owner" edge to the Organization entity.

func (*AdapterCreate) SetOwnerID

func (ac *AdapterCreate) SetOwnerID(id int) *AdapterCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*AdapterCreate) SetTag

func (ac *AdapterCreate) SetTag(s string) *AdapterCreate

SetTag sets the "tag" field.

type AdapterCreateBulk

type AdapterCreateBulk struct {
	// contains filtered or unexported fields
}

AdapterCreateBulk is the builder for creating many Adapter entities in bulk.

func (*AdapterCreateBulk) Exec

func (acb *AdapterCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*AdapterCreateBulk) ExecX

func (acb *AdapterCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AdapterCreateBulk) Save

func (acb *AdapterCreateBulk) Save(ctx context.Context) ([]*Adapter, error)

Save creates the Adapter entities in the database.

func (*AdapterCreateBulk) SaveX

func (acb *AdapterCreateBulk) SaveX(ctx context.Context) []*Adapter

SaveX is like Save, but panics if an error occurs.

type AdapterDelete

type AdapterDelete struct {
	// contains filtered or unexported fields
}

AdapterDelete is the builder for deleting a Adapter entity.

func (*AdapterDelete) Exec

func (ad *AdapterDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*AdapterDelete) ExecX

func (ad *AdapterDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*AdapterDelete) Where

func (ad *AdapterDelete) Where(ps ...predicate.Adapter) *AdapterDelete

Where appends a list predicates to the AdapterDelete builder.

type AdapterDeleteOne

type AdapterDeleteOne struct {
	// contains filtered or unexported fields
}

AdapterDeleteOne is the builder for deleting a single Adapter entity.

func (*AdapterDeleteOne) Exec

func (ado *AdapterDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*AdapterDeleteOne) ExecX

func (ado *AdapterDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type AdapterEdge

type AdapterEdge struct {
	Node   *Adapter `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

AdapterEdge is the edge representation of Adapter.

type AdapterEdges

type AdapterEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// contains filtered or unexported fields
}

AdapterEdges holds the relations/edges for other nodes in the graph.

func (AdapterEdges) OwnerOrErr

func (e AdapterEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type AdapterGroupBy

type AdapterGroupBy struct {
	// contains filtered or unexported fields
}

AdapterGroupBy is the group-by builder for Adapter entities.

func (*AdapterGroupBy) Aggregate

func (agb *AdapterGroupBy) Aggregate(fns ...AggregateFunc) *AdapterGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*AdapterGroupBy) Bool

func (agb *AdapterGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) BoolX

func (agb *AdapterGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*AdapterGroupBy) Bools

func (agb *AdapterGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) BoolsX

func (agb *AdapterGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*AdapterGroupBy) Float64

func (agb *AdapterGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) Float64X

func (agb *AdapterGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*AdapterGroupBy) Float64s

func (agb *AdapterGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) Float64sX

func (agb *AdapterGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*AdapterGroupBy) Int

func (agb *AdapterGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) IntX

func (agb *AdapterGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*AdapterGroupBy) Ints

func (agb *AdapterGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) IntsX

func (agb *AdapterGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*AdapterGroupBy) Scan

func (agb *AdapterGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*AdapterGroupBy) ScanX

func (agb *AdapterGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*AdapterGroupBy) String

func (agb *AdapterGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) StringX

func (agb *AdapterGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*AdapterGroupBy) Strings

func (agb *AdapterGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*AdapterGroupBy) StringsX

func (agb *AdapterGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type AdapterModelCreate

type AdapterModelCreate struct {
	Name   *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Tag    *string `json:"tag,omitempty" validate:"required" mapstructure:"tag"`
	Module *string `json:"module,omitempty" validate:"required" mapstructure:"module"`
}

func NewAdapterModelCreate

func NewAdapterModelCreate() *AdapterModelCreate

func (*AdapterModelCreate) SetModule

func (a *AdapterModelCreate) SetModule(value string) *AdapterModelCreate

func (*AdapterModelCreate) SetName

func (a *AdapterModelCreate) SetName(value string) *AdapterModelCreate

func (*AdapterModelCreate) SetTag

func (a *AdapterModelCreate) SetTag(value string) *AdapterModelCreate

type AdapterModelRead

type AdapterModelRead struct {
	Name   *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Tag    *string `json:"tag,omitempty" validate:"required" mapstructure:"tag"`
	Module *string `json:"module,omitempty" validate:"required" mapstructure:"module"`
	ID     *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewAdapterModelRead

func NewAdapterModelRead() *AdapterModelRead

func (*AdapterModelRead) FromEnt

func (a *AdapterModelRead) FromEnt(value *Adapter) *AdapterModelRead

type AdapterModelUpdate

type AdapterModelUpdate struct {
	Name   *string `json:"name,omitempty"  mapstructure:"name"`
	Tag    *string `json:"tag,omitempty"  mapstructure:"tag"`
	Module *string `json:"module,omitempty"  mapstructure:"module"`
}

func NewAdapterModelUpdate

func NewAdapterModelUpdate() *AdapterModelUpdate

func (*AdapterModelUpdate) SetModule

func (a *AdapterModelUpdate) SetModule(value string) *AdapterModelUpdate

func (*AdapterModelUpdate) SetName

func (a *AdapterModelUpdate) SetName(value string) *AdapterModelUpdate

func (*AdapterModelUpdate) SetTag

func (a *AdapterModelUpdate) SetTag(value string) *AdapterModelUpdate

type AdapterMutation

type AdapterMutation struct {
	// contains filtered or unexported fields
}

AdapterMutation represents an operation that mutates the Adapter nodes in the graph.

func (*AdapterMutation) AddField

func (m *AdapterMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*AdapterMutation) AddedEdges

func (m *AdapterMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*AdapterMutation) AddedField

func (m *AdapterMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*AdapterMutation) AddedFields

func (m *AdapterMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*AdapterMutation) AddedIDs

func (m *AdapterMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*AdapterMutation) ClearEdge

func (m *AdapterMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*AdapterMutation) ClearField

func (m *AdapterMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*AdapterMutation) ClearOwner

func (m *AdapterMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*AdapterMutation) ClearedEdges

func (m *AdapterMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*AdapterMutation) ClearedFields

func (m *AdapterMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (AdapterMutation) Client

func (m AdapterMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*AdapterMutation) EdgeCleared

func (m *AdapterMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*AdapterMutation) Field

func (m *AdapterMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*AdapterMutation) FieldCleared

func (m *AdapterMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*AdapterMutation) Fields

func (m *AdapterMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*AdapterMutation) ID

func (m *AdapterMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*AdapterMutation) Module

func (m *AdapterMutation) Module() (r string, exists bool)

Module returns the value of the "module" field in the mutation.

func (*AdapterMutation) Name

func (m *AdapterMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*AdapterMutation) OldField

func (m *AdapterMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*AdapterMutation) OldModule

func (m *AdapterMutation) OldModule(ctx context.Context) (v string, err error)

OldModule returns the old "module" field's value of the Adapter entity. If the Adapter object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AdapterMutation) OldName

func (m *AdapterMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Adapter entity. If the Adapter object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AdapterMutation) OldTag

func (m *AdapterMutation) OldTag(ctx context.Context) (v string, err error)

OldTag returns the old "tag" field's value of the Adapter entity. If the Adapter object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*AdapterMutation) Op

func (m *AdapterMutation) Op() Op

Op returns the operation name.

func (*AdapterMutation) OwnerCleared

func (m *AdapterMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*AdapterMutation) OwnerID

func (m *AdapterMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*AdapterMutation) OwnerIDs

func (m *AdapterMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*AdapterMutation) RemovedEdges

func (m *AdapterMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*AdapterMutation) RemovedIDs

func (m *AdapterMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*AdapterMutation) ResetEdge

func (m *AdapterMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*AdapterMutation) ResetField

func (m *AdapterMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*AdapterMutation) ResetModule

func (m *AdapterMutation) ResetModule()

ResetModule resets all changes to the "module" field.

func (*AdapterMutation) ResetName

func (m *AdapterMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*AdapterMutation) ResetOwner

func (m *AdapterMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*AdapterMutation) ResetTag

func (m *AdapterMutation) ResetTag()

ResetTag resets all changes to the "tag" field.

func (*AdapterMutation) SetField

func (m *AdapterMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*AdapterMutation) SetModelCreate

func (a *AdapterMutation) SetModelCreate(model *AdapterModelCreate) *AdapterMutation

func (*AdapterMutation) SetModelUpdate

func (a *AdapterMutation) SetModelUpdate(model *AdapterModelUpdate) *AdapterMutation

func (*AdapterMutation) SetModule

func (m *AdapterMutation) SetModule(s string)

SetModule sets the "module" field.

func (*AdapterMutation) SetName

func (m *AdapterMutation) SetName(s string)

SetName sets the "name" field.

func (*AdapterMutation) SetOwnerID

func (m *AdapterMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*AdapterMutation) SetTag

func (m *AdapterMutation) SetTag(s string)

SetTag sets the "tag" field.

func (*AdapterMutation) Tag

func (m *AdapterMutation) Tag() (r string, exists bool)

Tag returns the value of the "tag" field in the mutation.

func (AdapterMutation) Tx

func (m AdapterMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*AdapterMutation) Type

func (m *AdapterMutation) Type() string

Type returns the node type of this mutation (Adapter).

func (*AdapterMutation) Where

func (m *AdapterMutation) Where(ps ...predicate.Adapter)

Where appends a list predicates to the AdapterMutation builder.

type AdapterOrder

type AdapterOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *AdapterOrderField `json:"field"`
}

AdapterOrder defines the ordering of Adapter.

type AdapterOrderField

type AdapterOrderField struct {
	// contains filtered or unexported fields
}

AdapterOrderField defines the ordering field of Adapter.

func (AdapterOrderField) MarshalGQL

func (f AdapterOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (AdapterOrderField) String

func (f AdapterOrderField) String() string

String implement fmt.Stringer interface.

func (*AdapterOrderField) UnmarshalGQL

func (f *AdapterOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type AdapterPaginateOption

type AdapterPaginateOption func(*adapterPager) error

AdapterPaginateOption enables pagination customization.

func WithAdapterFilter

func WithAdapterFilter(filter func(*AdapterQuery) (*AdapterQuery, error)) AdapterPaginateOption

WithAdapterFilter configures pagination filter.

func WithAdapterOrder

func WithAdapterOrder(order *AdapterOrder) AdapterPaginateOption

WithAdapterOrder configures pagination ordering.

type AdapterQuery

type AdapterQuery struct {
	// contains filtered or unexported fields
}

AdapterQuery is the builder for querying Adapter entities.

func (*AdapterQuery) All

func (aq *AdapterQuery) All(ctx context.Context) ([]*Adapter, error)

All executes the query and returns a list of Adapters.

func (*AdapterQuery) AllX

func (aq *AdapterQuery) AllX(ctx context.Context) []*Adapter

AllX is like All, but panics if an error occurs.

func (*AdapterQuery) Clone

func (aq *AdapterQuery) Clone() *AdapterQuery

Clone returns a duplicate of the AdapterQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*AdapterQuery) CollectFields

func (a *AdapterQuery) CollectFields(ctx context.Context, satisfies ...string) *AdapterQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*AdapterQuery) Count

func (aq *AdapterQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*AdapterQuery) CountX

func (aq *AdapterQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*AdapterQuery) Exist

func (aq *AdapterQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*AdapterQuery) ExistX

func (aq *AdapterQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*AdapterQuery) Filter

func (a *AdapterQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *AdapterOrder, where *AdapterWhereInput,
) ([]*Adapter, error)

func (*AdapterQuery) First

func (aq *AdapterQuery) First(ctx context.Context) (*Adapter, error)

First returns the first Adapter entity from the query. Returns a *NotFoundError when no Adapter was found.

func (*AdapterQuery) FirstID

func (aq *AdapterQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Adapter ID from the query. Returns a *NotFoundError when no Adapter ID was found.

func (*AdapterQuery) FirstIDX

func (aq *AdapterQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*AdapterQuery) FirstX

func (aq *AdapterQuery) FirstX(ctx context.Context) *Adapter

FirstX is like First, but panics if an error occurs.

func (*AdapterQuery) GroupBy

func (aq *AdapterQuery) GroupBy(field string, fields ...string) *AdapterGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Adapter.Query().
	GroupBy(adapter.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*AdapterQuery) IDs

func (aq *AdapterQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Adapter IDs.

func (*AdapterQuery) IDsX

func (aq *AdapterQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*AdapterQuery) Limit

func (aq *AdapterQuery) Limit(limit int) *AdapterQuery

Limit adds a limit step to the query.

func (*AdapterQuery) Offset

func (aq *AdapterQuery) Offset(offset int) *AdapterQuery

Offset adds an offset step to the query.

func (*AdapterQuery) Only

func (aq *AdapterQuery) Only(ctx context.Context) (*Adapter, error)

Only returns a single Adapter entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Adapter entity is not found. Returns a *NotFoundError when no Adapter entities are found.

func (*AdapterQuery) OnlyID

func (aq *AdapterQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Adapter ID in the query. Returns a *NotSingularError when exactly one Adapter ID is not found. Returns a *NotFoundError when no entities are found.

func (*AdapterQuery) OnlyIDX

func (aq *AdapterQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*AdapterQuery) OnlyX

func (aq *AdapterQuery) OnlyX(ctx context.Context) *Adapter

OnlyX is like Only, but panics if an error occurs.

func (*AdapterQuery) Order

func (aq *AdapterQuery) Order(o ...OrderFunc) *AdapterQuery

Order adds an order step to the query.

func (*AdapterQuery) Paginate

func (a *AdapterQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...AdapterPaginateOption,
) (*AdapterConnection, error)

Paginate executes the query and returns a relay based cursor connection to Adapter.

func (*AdapterQuery) QueryOwner

func (aq *AdapterQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*AdapterQuery) Select

func (aq *AdapterQuery) Select(fields ...string) *AdapterSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Adapter.Query().
	Select(adapter.FieldName).
	Scan(ctx, &v)

func (*AdapterQuery) Unique

func (aq *AdapterQuery) Unique(unique bool) *AdapterQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*AdapterQuery) Where

func (aq *AdapterQuery) Where(ps ...predicate.Adapter) *AdapterQuery

Where adds a new predicate for the AdapterQuery builder.

func (*AdapterQuery) WhereInput

func (a *AdapterQuery) WhereInput(input *AdapterWhereInput) *AdapterQuery

func (*AdapterQuery) WithOwner

func (aq *AdapterQuery) WithOwner(opts ...func(*OrganizationQuery)) *AdapterQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

type AdapterSelect

type AdapterSelect struct {
	*AdapterQuery
	// contains filtered or unexported fields
}

AdapterSelect is the builder for selecting fields of Adapter entities.

func (*AdapterSelect) Bool

func (as *AdapterSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) BoolX

func (as *AdapterSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*AdapterSelect) Bools

func (as *AdapterSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) BoolsX

func (as *AdapterSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*AdapterSelect) Float64

func (as *AdapterSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) Float64X

func (as *AdapterSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*AdapterSelect) Float64s

func (as *AdapterSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) Float64sX

func (as *AdapterSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*AdapterSelect) Int

func (as *AdapterSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) IntX

func (as *AdapterSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*AdapterSelect) Ints

func (as *AdapterSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) IntsX

func (as *AdapterSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*AdapterSelect) Scan

func (as *AdapterSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*AdapterSelect) ScanX

func (as *AdapterSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*AdapterSelect) String

func (as *AdapterSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) StringX

func (as *AdapterSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*AdapterSelect) Strings

func (as *AdapterSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*AdapterSelect) StringsX

func (as *AdapterSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type AdapterUpdate

type AdapterUpdate struct {
	// contains filtered or unexported fields
}

AdapterUpdate is the builder for updating Adapter entities.

func (*AdapterUpdate) ClearOwner

func (au *AdapterUpdate) ClearOwner() *AdapterUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*AdapterUpdate) Exec

func (au *AdapterUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*AdapterUpdate) ExecX

func (au *AdapterUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AdapterUpdate) Mutation

func (au *AdapterUpdate) Mutation() *AdapterMutation

Mutation returns the AdapterMutation object of the builder.

func (*AdapterUpdate) Save

func (au *AdapterUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*AdapterUpdate) SaveX

func (au *AdapterUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*AdapterUpdate) SetModule

func (au *AdapterUpdate) SetModule(s string) *AdapterUpdate

SetModule sets the "module" field.

func (*AdapterUpdate) SetName

func (au *AdapterUpdate) SetName(s string) *AdapterUpdate

SetName sets the "name" field.

func (*AdapterUpdate) SetOwner

func (au *AdapterUpdate) SetOwner(o *Organization) *AdapterUpdate

SetOwner sets the "owner" edge to the Organization entity.

func (*AdapterUpdate) SetOwnerID

func (au *AdapterUpdate) SetOwnerID(id int) *AdapterUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*AdapterUpdate) SetTag

func (au *AdapterUpdate) SetTag(s string) *AdapterUpdate

SetTag sets the "tag" field.

func (*AdapterUpdate) Where

func (au *AdapterUpdate) Where(ps ...predicate.Adapter) *AdapterUpdate

Where appends a list predicates to the AdapterUpdate builder.

type AdapterUpdateOne

type AdapterUpdateOne struct {
	// contains filtered or unexported fields
}

AdapterUpdateOne is the builder for updating a single Adapter entity.

func (*AdapterUpdateOne) ClearOwner

func (auo *AdapterUpdateOne) ClearOwner() *AdapterUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*AdapterUpdateOne) Exec

func (auo *AdapterUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*AdapterUpdateOne) ExecX

func (auo *AdapterUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*AdapterUpdateOne) Mutation

func (auo *AdapterUpdateOne) Mutation() *AdapterMutation

Mutation returns the AdapterMutation object of the builder.

func (*AdapterUpdateOne) Save

func (auo *AdapterUpdateOne) Save(ctx context.Context) (*Adapter, error)

Save executes the query and returns the updated Adapter entity.

func (*AdapterUpdateOne) SaveX

func (auo *AdapterUpdateOne) SaveX(ctx context.Context) *Adapter

SaveX is like Save, but panics if an error occurs.

func (*AdapterUpdateOne) Select

func (auo *AdapterUpdateOne) Select(field string, fields ...string) *AdapterUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*AdapterUpdateOne) SetModelCreate

func (a *AdapterUpdateOne) SetModelCreate(model *AdapterModelCreate) *AdapterUpdateOne

func (*AdapterUpdateOne) SetModelUpdate

func (a *AdapterUpdateOne) SetModelUpdate(model *AdapterModelUpdate) *AdapterUpdateOne

func (*AdapterUpdateOne) SetModule

func (auo *AdapterUpdateOne) SetModule(s string) *AdapterUpdateOne

SetModule sets the "module" field.

func (*AdapterUpdateOne) SetName

func (auo *AdapterUpdateOne) SetName(s string) *AdapterUpdateOne

SetName sets the "name" field.

func (*AdapterUpdateOne) SetOwner

func (auo *AdapterUpdateOne) SetOwner(o *Organization) *AdapterUpdateOne

SetOwner sets the "owner" edge to the Organization entity.

func (*AdapterUpdateOne) SetOwnerID

func (auo *AdapterUpdateOne) SetOwnerID(id int) *AdapterUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*AdapterUpdateOne) SetTag

func (auo *AdapterUpdateOne) SetTag(s string) *AdapterUpdateOne

SetTag sets the "tag" field.

type AdapterWhereInput

type AdapterWhereInput struct {
	Not *AdapterWhereInput   `json:"not,omitempty"`
	Or  []*AdapterWhereInput `json:"or,omitempty"`
	And []*AdapterWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "tag" field predicates.
	Tag             *string  `json:"tag,omitempty"`
	TagNEQ          *string  `json:"tagNEQ,omitempty"`
	TagIn           []string `json:"tagIn,omitempty"`
	TagNotIn        []string `json:"tagNotIn,omitempty"`
	TagGT           *string  `json:"tagGT,omitempty"`
	TagGTE          *string  `json:"tagGTE,omitempty"`
	TagLT           *string  `json:"tagLT,omitempty"`
	TagLTE          *string  `json:"tagLTE,omitempty"`
	TagContains     *string  `json:"tagContains,omitempty"`
	TagHasPrefix    *string  `json:"tagHasPrefix,omitempty"`
	TagHasSuffix    *string  `json:"tagHasSuffix,omitempty"`
	TagEqualFold    *string  `json:"tagEqualFold,omitempty"`
	TagContainsFold *string  `json:"tagContainsFold,omitempty"`

	// "module" field predicates.
	Module             *string  `json:"module,omitempty"`
	ModuleNEQ          *string  `json:"moduleNEQ,omitempty"`
	ModuleIn           []string `json:"moduleIn,omitempty"`
	ModuleNotIn        []string `json:"moduleNotIn,omitempty"`
	ModuleGT           *string  `json:"moduleGT,omitempty"`
	ModuleGTE          *string  `json:"moduleGTE,omitempty"`
	ModuleLT           *string  `json:"moduleLT,omitempty"`
	ModuleLTE          *string  `json:"moduleLTE,omitempty"`
	ModuleContains     *string  `json:"moduleContains,omitempty"`
	ModuleHasPrefix    *string  `json:"moduleHasPrefix,omitempty"`
	ModuleHasSuffix    *string  `json:"moduleHasSuffix,omitempty"`
	ModuleEqualFold    *string  `json:"moduleEqualFold,omitempty"`
	ModuleContainsFold *string  `json:"moduleContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`
}

AdapterWhereInput represents a where input for filtering Adapter queries.

func (*AdapterWhereInput) Filter

Filter applies the AdapterWhereInput filter on the AdapterQuery builder.

func (*AdapterWhereInput) P

P returns a predicate for filtering adapters. An error is returned if the input is empty or invalid.

type Adapters

type Adapters []*Adapter

Adapters is a parsable slice of Adapter.

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

As is a pseudo aggregation function for renaming another other functions with custom names. For example:

GroupBy(field1, field2).
Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")).
Scan(ctx, &v)

func Count

func Count() AggregateFunc

Count applies the "count" aggregation function on each group.

func Max

func Max(field string) AggregateFunc

Max applies the "max" aggregation function on the given field of each group.

func Mean

func Mean(field string) AggregateFunc

Mean applies the "mean" aggregation function on the given field of each group.

func Min

func Min(field string) AggregateFunc

Min applies the "min" aggregation function on the given field of each group.

func Sum

func Sum(field string) AggregateFunc

Sum applies the "sum" aggregation function on the given field of each group.

type Artifact

type Artifact struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Sha256 holds the value of the "sha256" field.
	Sha256 string `json:"sha256,omitempty"`
	// Type holds the value of the "type" field.
	Type artifact.Type `json:"type,omitempty"`
	// Time holds the value of the "time" field.
	Time time.Time `json:"time,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ArtifactQuery when eager-loading is set.
	Edges ArtifactEdges `json:"edges"`
	// contains filtered or unexported fields
}

Artifact is the model entity for the Artifact schema.

func (*Artifact) Entry

func (a *Artifact) Entry(ctx context.Context) (*ReleaseEntry, error)

func (*Artifact) Node

func (a *Artifact) Node(ctx context.Context) (node *Node, err error)

func (*Artifact) QueryEntry

func (a *Artifact) QueryEntry() *ReleaseEntryQuery

QueryEntry queries the "entry" edge of the Artifact entity.

func (*Artifact) QueryRelease

func (a *Artifact) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the Artifact entity.

func (*Artifact) Release

func (a *Artifact) Release(ctx context.Context) (*Release, error)

func (*Artifact) String

func (a *Artifact) String() string

String implements the fmt.Stringer.

func (*Artifact) ToEdge

func (a *Artifact) ToEdge(order *ArtifactOrder) *ArtifactEdge

ToEdge converts Artifact into ArtifactEdge.

func (*Artifact) Unwrap

func (a *Artifact) Unwrap() *Artifact

Unwrap unwraps the Artifact entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Artifact) Update

func (a *Artifact) Update() *ArtifactUpdateOne

Update returns a builder for updating this Artifact. Note that you need to call Artifact.Unwrap() before calling this method if this Artifact was returned from a transaction, and the transaction was committed or rolled back.

type ArtifactClient

type ArtifactClient struct {
	// contains filtered or unexported fields
}

ArtifactClient is a client for the Artifact schema.

func NewArtifactClient

func NewArtifactClient(c config) *ArtifactClient

NewArtifactClient returns a client for the Artifact from the given config.

func (*ArtifactClient) Create

func (c *ArtifactClient) Create() *ArtifactCreate

Create returns a create builder for Artifact.

func (*ArtifactClient) CreateBulk

func (c *ArtifactClient) CreateBulk(builders ...*ArtifactCreate) *ArtifactCreateBulk

CreateBulk returns a builder for creating a bulk of Artifact entities.

func (*ArtifactClient) Delete

func (c *ArtifactClient) Delete() *ArtifactDelete

Delete returns a delete builder for Artifact.

func (*ArtifactClient) DeleteOne

func (c *ArtifactClient) DeleteOne(a *Artifact) *ArtifactDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ArtifactClient) DeleteOneID

func (c *ArtifactClient) DeleteOneID(id int) *ArtifactDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ArtifactClient) Get

func (c *ArtifactClient) Get(ctx context.Context, id int) (*Artifact, error)

Get returns a Artifact entity by its id.

func (*ArtifactClient) GetX

func (c *ArtifactClient) GetX(ctx context.Context, id int) *Artifact

GetX is like Get, but panics if an error occurs.

func (*ArtifactClient) Hooks

func (c *ArtifactClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ArtifactClient) Query

func (c *ArtifactClient) Query() *ArtifactQuery

Query returns a query builder for Artifact.

func (*ArtifactClient) QueryEntry

func (c *ArtifactClient) QueryEntry(a *Artifact) *ReleaseEntryQuery

QueryEntry queries the entry edge of a Artifact.

func (*ArtifactClient) QueryRelease

func (c *ArtifactClient) QueryRelease(a *Artifact) *ReleaseQuery

QueryRelease queries the release edge of a Artifact.

func (*ArtifactClient) Update

func (c *ArtifactClient) Update() *ArtifactUpdate

Update returns an update builder for Artifact.

func (*ArtifactClient) UpdateOne

func (c *ArtifactClient) UpdateOne(a *Artifact) *ArtifactUpdateOne

UpdateOne returns an update builder for the given entity.

func (*ArtifactClient) UpdateOneID

func (c *ArtifactClient) UpdateOneID(id int) *ArtifactUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ArtifactClient) Use

func (c *ArtifactClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `artifact.Hooks(f(g(h())))`.

type ArtifactConnection

type ArtifactConnection struct {
	Edges      []*ArtifactEdge `json:"edges"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

ArtifactConnection is the connection containing edges to Artifact.

type ArtifactCreate

type ArtifactCreate struct {
	// contains filtered or unexported fields
}

ArtifactCreate is the builder for creating a Artifact entity.

func (*ArtifactCreate) Exec

func (ac *ArtifactCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ArtifactCreate) ExecX

func (ac *ArtifactCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ArtifactCreate) Mutation

func (ac *ArtifactCreate) Mutation() *ArtifactMutation

Mutation returns the ArtifactMutation object of the builder.

func (*ArtifactCreate) Save

func (ac *ArtifactCreate) Save(ctx context.Context) (*Artifact, error)

Save creates the Artifact in the database.

func (*ArtifactCreate) SaveX

func (ac *ArtifactCreate) SaveX(ctx context.Context) *Artifact

SaveX calls Save and panics if Save returns an error.

func (*ArtifactCreate) SetEntry

func (ac *ArtifactCreate) SetEntry(r *ReleaseEntry) *ArtifactCreate

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*ArtifactCreate) SetEntryID

func (ac *ArtifactCreate) SetEntryID(id int) *ArtifactCreate

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*ArtifactCreate) SetMetadata

func (ac *ArtifactCreate) SetMetadata(s schema.Metadata) *ArtifactCreate

SetMetadata sets the "metadata" field.

func (*ArtifactCreate) SetModelCreate

func (a *ArtifactCreate) SetModelCreate(model *ArtifactModelCreate) *ArtifactCreate

func (*ArtifactCreate) SetName

func (ac *ArtifactCreate) SetName(s string) *ArtifactCreate

SetName sets the "name" field.

func (*ArtifactCreate) SetNillableEntryID

func (ac *ArtifactCreate) SetNillableEntryID(id *int) *ArtifactCreate

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*ArtifactCreate) SetNillableReleaseID

func (ac *ArtifactCreate) SetNillableReleaseID(id *int) *ArtifactCreate

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*ArtifactCreate) SetNillableTime

func (ac *ArtifactCreate) SetNillableTime(t *time.Time) *ArtifactCreate

SetNillableTime sets the "time" field if the given value is not nil.

func (*ArtifactCreate) SetRelease

func (ac *ArtifactCreate) SetRelease(r *Release) *ArtifactCreate

SetRelease sets the "release" edge to the Release entity.

func (*ArtifactCreate) SetReleaseID

func (ac *ArtifactCreate) SetReleaseID(id int) *ArtifactCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ArtifactCreate) SetSha256

func (ac *ArtifactCreate) SetSha256(s string) *ArtifactCreate

SetSha256 sets the "sha256" field.

func (*ArtifactCreate) SetTime

func (ac *ArtifactCreate) SetTime(t time.Time) *ArtifactCreate

SetTime sets the "time" field.

func (*ArtifactCreate) SetType

func (ac *ArtifactCreate) SetType(a artifact.Type) *ArtifactCreate

SetType sets the "type" field.

type ArtifactCreateBulk

type ArtifactCreateBulk struct {
	// contains filtered or unexported fields
}

ArtifactCreateBulk is the builder for creating many Artifact entities in bulk.

func (*ArtifactCreateBulk) Exec

func (acb *ArtifactCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ArtifactCreateBulk) ExecX

func (acb *ArtifactCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ArtifactCreateBulk) Save

func (acb *ArtifactCreateBulk) Save(ctx context.Context) ([]*Artifact, error)

Save creates the Artifact entities in the database.

func (*ArtifactCreateBulk) SaveX

func (acb *ArtifactCreateBulk) SaveX(ctx context.Context) []*Artifact

SaveX is like Save, but panics if an error occurs.

type ArtifactDelete

type ArtifactDelete struct {
	// contains filtered or unexported fields
}

ArtifactDelete is the builder for deleting a Artifact entity.

func (*ArtifactDelete) Exec

func (ad *ArtifactDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ArtifactDelete) ExecX

func (ad *ArtifactDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ArtifactDelete) Where

func (ad *ArtifactDelete) Where(ps ...predicate.Artifact) *ArtifactDelete

Where appends a list predicates to the ArtifactDelete builder.

type ArtifactDeleteOne

type ArtifactDeleteOne struct {
	// contains filtered or unexported fields
}

ArtifactDeleteOne is the builder for deleting a single Artifact entity.

func (*ArtifactDeleteOne) Exec

func (ado *ArtifactDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ArtifactDeleteOne) ExecX

func (ado *ArtifactDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ArtifactEdge

type ArtifactEdge struct {
	Node   *Artifact `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

ArtifactEdge is the edge representation of Artifact.

type ArtifactEdges

type ArtifactEdges struct {
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Entry holds the value of the entry edge.
	Entry *ReleaseEntry `json:"entry,omitempty"`
	// contains filtered or unexported fields
}

ArtifactEdges holds the relations/edges for other nodes in the graph.

func (ArtifactEdges) EntryOrErr

func (e ArtifactEdges) EntryOrErr() (*ReleaseEntry, error)

EntryOrErr returns the Entry value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ArtifactEdges) ReleaseOrErr

func (e ArtifactEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ArtifactGroupBy

type ArtifactGroupBy struct {
	// contains filtered or unexported fields
}

ArtifactGroupBy is the group-by builder for Artifact entities.

func (*ArtifactGroupBy) Aggregate

func (agb *ArtifactGroupBy) Aggregate(fns ...AggregateFunc) *ArtifactGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ArtifactGroupBy) Bool

func (agb *ArtifactGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) BoolX

func (agb *ArtifactGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ArtifactGroupBy) Bools

func (agb *ArtifactGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) BoolsX

func (agb *ArtifactGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ArtifactGroupBy) Float64

func (agb *ArtifactGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) Float64X

func (agb *ArtifactGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ArtifactGroupBy) Float64s

func (agb *ArtifactGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) Float64sX

func (agb *ArtifactGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ArtifactGroupBy) Int

func (agb *ArtifactGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) IntX

func (agb *ArtifactGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ArtifactGroupBy) Ints

func (agb *ArtifactGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) IntsX

func (agb *ArtifactGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ArtifactGroupBy) Scan

func (agb *ArtifactGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ArtifactGroupBy) ScanX

func (agb *ArtifactGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ArtifactGroupBy) String

func (agb *ArtifactGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) StringX

func (agb *ArtifactGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ArtifactGroupBy) Strings

func (agb *ArtifactGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ArtifactGroupBy) StringsX

func (agb *ArtifactGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ArtifactModelCreate

type ArtifactModelCreate struct {
	Name     *string          `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Sha256   *string          `json:"sha256,omitempty" validate:"required" mapstructure:"sha256"`
	Type     *artifact.Type   `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewArtifactModelCreate

func NewArtifactModelCreate() *ArtifactModelCreate

func (*ArtifactModelCreate) SetMetadata

func (a *ArtifactModelCreate) SetMetadata(value schema.Metadata) *ArtifactModelCreate

func (*ArtifactModelCreate) SetName

func (a *ArtifactModelCreate) SetName(value string) *ArtifactModelCreate

func (*ArtifactModelCreate) SetSha256

func (a *ArtifactModelCreate) SetSha256(value string) *ArtifactModelCreate

func (*ArtifactModelCreate) SetTime

func (a *ArtifactModelCreate) SetTime(value time.Time) *ArtifactModelCreate

func (*ArtifactModelCreate) SetType

type ArtifactModelRead

type ArtifactModelRead struct {
	Name     *string          `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Sha256   *string          `json:"sha256,omitempty" validate:"required" mapstructure:"sha256"`
	Type     *artifact.Type   `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	ID       *int             `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewArtifactModelRead

func NewArtifactModelRead() *ArtifactModelRead

func (*ArtifactModelRead) FromEnt

func (a *ArtifactModelRead) FromEnt(value *Artifact) *ArtifactModelRead

type ArtifactModelUpdate

type ArtifactModelUpdate struct {
	Name     *string          `json:"name,omitempty"  mapstructure:"name"`
	Sha256   *string          `json:"sha256,omitempty"  mapstructure:"sha256"`
	Type     *artifact.Type   `json:"type,omitempty"  mapstructure:"type"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewArtifactModelUpdate

func NewArtifactModelUpdate() *ArtifactModelUpdate

func (*ArtifactModelUpdate) SetMetadata

func (a *ArtifactModelUpdate) SetMetadata(value schema.Metadata) *ArtifactModelUpdate

func (*ArtifactModelUpdate) SetName

func (a *ArtifactModelUpdate) SetName(value string) *ArtifactModelUpdate

func (*ArtifactModelUpdate) SetSha256

func (a *ArtifactModelUpdate) SetSha256(value string) *ArtifactModelUpdate

func (*ArtifactModelUpdate) SetTime

func (a *ArtifactModelUpdate) SetTime(value time.Time) *ArtifactModelUpdate

func (*ArtifactModelUpdate) SetType

type ArtifactMutation

type ArtifactMutation struct {
	// contains filtered or unexported fields
}

ArtifactMutation represents an operation that mutates the Artifact nodes in the graph.

func (*ArtifactMutation) AddField

func (m *ArtifactMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ArtifactMutation) AddedEdges

func (m *ArtifactMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ArtifactMutation) AddedField

func (m *ArtifactMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ArtifactMutation) AddedFields

func (m *ArtifactMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ArtifactMutation) AddedIDs

func (m *ArtifactMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ArtifactMutation) ClearEdge

func (m *ArtifactMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ArtifactMutation) ClearEntry

func (m *ArtifactMutation) ClearEntry()

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*ArtifactMutation) ClearField

func (m *ArtifactMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ArtifactMutation) ClearMetadata

func (m *ArtifactMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*ArtifactMutation) ClearRelease

func (m *ArtifactMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*ArtifactMutation) ClearedEdges

func (m *ArtifactMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ArtifactMutation) ClearedFields

func (m *ArtifactMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ArtifactMutation) Client

func (m ArtifactMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ArtifactMutation) EdgeCleared

func (m *ArtifactMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ArtifactMutation) EntryCleared

func (m *ArtifactMutation) EntryCleared() bool

EntryCleared reports if the "entry" edge to the ReleaseEntry entity was cleared.

func (*ArtifactMutation) EntryID

func (m *ArtifactMutation) EntryID() (id int, exists bool)

EntryID returns the "entry" edge ID in the mutation.

func (*ArtifactMutation) EntryIDs

func (m *ArtifactMutation) EntryIDs() (ids []int)

EntryIDs returns the "entry" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EntryID instead. It exists only for internal usage by the builders.

func (*ArtifactMutation) Field

func (m *ArtifactMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ArtifactMutation) FieldCleared

func (m *ArtifactMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ArtifactMutation) Fields

func (m *ArtifactMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ArtifactMutation) GetType

func (m *ArtifactMutation) GetType() (r artifact.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*ArtifactMutation) ID

func (m *ArtifactMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ArtifactMutation) Metadata

func (m *ArtifactMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*ArtifactMutation) MetadataCleared

func (m *ArtifactMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*ArtifactMutation) Name

func (m *ArtifactMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ArtifactMutation) OldField

func (m *ArtifactMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ArtifactMutation) OldMetadata

func (m *ArtifactMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the Artifact entity. If the Artifact object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ArtifactMutation) OldName

func (m *ArtifactMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Artifact entity. If the Artifact object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ArtifactMutation) OldSha256

func (m *ArtifactMutation) OldSha256(ctx context.Context) (v string, err error)

OldSha256 returns the old "sha256" field's value of the Artifact entity. If the Artifact object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ArtifactMutation) OldTime

func (m *ArtifactMutation) OldTime(ctx context.Context) (v time.Time, err error)

OldTime returns the old "time" field's value of the Artifact entity. If the Artifact object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ArtifactMutation) OldType

func (m *ArtifactMutation) OldType(ctx context.Context) (v artifact.Type, err error)

OldType returns the old "type" field's value of the Artifact entity. If the Artifact object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ArtifactMutation) Op

func (m *ArtifactMutation) Op() Op

Op returns the operation name.

func (*ArtifactMutation) ReleaseCleared

func (m *ArtifactMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*ArtifactMutation) ReleaseID

func (m *ArtifactMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*ArtifactMutation) ReleaseIDs

func (m *ArtifactMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*ArtifactMutation) RemovedEdges

func (m *ArtifactMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ArtifactMutation) RemovedIDs

func (m *ArtifactMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ArtifactMutation) ResetEdge

func (m *ArtifactMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ArtifactMutation) ResetEntry

func (m *ArtifactMutation) ResetEntry()

ResetEntry resets all changes to the "entry" edge.

func (*ArtifactMutation) ResetField

func (m *ArtifactMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ArtifactMutation) ResetMetadata

func (m *ArtifactMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*ArtifactMutation) ResetName

func (m *ArtifactMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ArtifactMutation) ResetRelease

func (m *ArtifactMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*ArtifactMutation) ResetSha256

func (m *ArtifactMutation) ResetSha256()

ResetSha256 resets all changes to the "sha256" field.

func (*ArtifactMutation) ResetTime

func (m *ArtifactMutation) ResetTime()

ResetTime resets all changes to the "time" field.

func (*ArtifactMutation) ResetType

func (m *ArtifactMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*ArtifactMutation) SetEntryID

func (m *ArtifactMutation) SetEntryID(id int)

SetEntryID sets the "entry" edge to the ReleaseEntry entity by id.

func (*ArtifactMutation) SetField

func (m *ArtifactMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ArtifactMutation) SetMetadata

func (m *ArtifactMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*ArtifactMutation) SetModelCreate

func (a *ArtifactMutation) SetModelCreate(model *ArtifactModelCreate) *ArtifactMutation

func (*ArtifactMutation) SetModelUpdate

func (a *ArtifactMutation) SetModelUpdate(model *ArtifactModelUpdate) *ArtifactMutation

func (*ArtifactMutation) SetName

func (m *ArtifactMutation) SetName(s string)

SetName sets the "name" field.

func (*ArtifactMutation) SetReleaseID

func (m *ArtifactMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*ArtifactMutation) SetSha256

func (m *ArtifactMutation) SetSha256(s string)

SetSha256 sets the "sha256" field.

func (*ArtifactMutation) SetTime

func (m *ArtifactMutation) SetTime(t time.Time)

SetTime sets the "time" field.

func (*ArtifactMutation) SetType

func (m *ArtifactMutation) SetType(a artifact.Type)

SetType sets the "type" field.

func (*ArtifactMutation) Sha256

func (m *ArtifactMutation) Sha256() (r string, exists bool)

Sha256 returns the value of the "sha256" field in the mutation.

func (*ArtifactMutation) Time

func (m *ArtifactMutation) Time() (r time.Time, exists bool)

Time returns the value of the "time" field in the mutation.

func (ArtifactMutation) Tx

func (m ArtifactMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ArtifactMutation) Type

func (m *ArtifactMutation) Type() string

Type returns the node type of this mutation (Artifact).

func (*ArtifactMutation) Where

func (m *ArtifactMutation) Where(ps ...predicate.Artifact)

Where appends a list predicates to the ArtifactMutation builder.

type ArtifactOrder

type ArtifactOrder struct {
	Direction OrderDirection      `json:"direction"`
	Field     *ArtifactOrderField `json:"field"`
}

ArtifactOrder defines the ordering of Artifact.

type ArtifactOrderField

type ArtifactOrderField struct {
	// contains filtered or unexported fields
}

ArtifactOrderField defines the ordering field of Artifact.

func (ArtifactOrderField) MarshalGQL

func (f ArtifactOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ArtifactOrderField) String

func (f ArtifactOrderField) String() string

String implement fmt.Stringer interface.

func (*ArtifactOrderField) UnmarshalGQL

func (f *ArtifactOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ArtifactPaginateOption

type ArtifactPaginateOption func(*artifactPager) error

ArtifactPaginateOption enables pagination customization.

func WithArtifactFilter

func WithArtifactFilter(filter func(*ArtifactQuery) (*ArtifactQuery, error)) ArtifactPaginateOption

WithArtifactFilter configures pagination filter.

func WithArtifactOrder

func WithArtifactOrder(order *ArtifactOrder) ArtifactPaginateOption

WithArtifactOrder configures pagination ordering.

type ArtifactQuery

type ArtifactQuery struct {
	// contains filtered or unexported fields
}

ArtifactQuery is the builder for querying Artifact entities.

func (*ArtifactQuery) All

func (aq *ArtifactQuery) All(ctx context.Context) ([]*Artifact, error)

All executes the query and returns a list of Artifacts.

func (*ArtifactQuery) AllX

func (aq *ArtifactQuery) AllX(ctx context.Context) []*Artifact

AllX is like All, but panics if an error occurs.

func (*ArtifactQuery) Clone

func (aq *ArtifactQuery) Clone() *ArtifactQuery

Clone returns a duplicate of the ArtifactQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ArtifactQuery) CollectFields

func (a *ArtifactQuery) CollectFields(ctx context.Context, satisfies ...string) *ArtifactQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ArtifactQuery) Count

func (aq *ArtifactQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ArtifactQuery) CountX

func (aq *ArtifactQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ArtifactQuery) Exist

func (aq *ArtifactQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ArtifactQuery) ExistX

func (aq *ArtifactQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ArtifactQuery) Filter

func (a *ArtifactQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ArtifactOrder, where *ArtifactWhereInput,
) ([]*Artifact, error)

func (*ArtifactQuery) First

func (aq *ArtifactQuery) First(ctx context.Context) (*Artifact, error)

First returns the first Artifact entity from the query. Returns a *NotFoundError when no Artifact was found.

func (*ArtifactQuery) FirstID

func (aq *ArtifactQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Artifact ID from the query. Returns a *NotFoundError when no Artifact ID was found.

func (*ArtifactQuery) FirstIDX

func (aq *ArtifactQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ArtifactQuery) FirstX

func (aq *ArtifactQuery) FirstX(ctx context.Context) *Artifact

FirstX is like First, but panics if an error occurs.

func (*ArtifactQuery) GroupBy

func (aq *ArtifactQuery) GroupBy(field string, fields ...string) *ArtifactGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Artifact.Query().
	GroupBy(artifact.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ArtifactQuery) IDs

func (aq *ArtifactQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Artifact IDs.

func (*ArtifactQuery) IDsX

func (aq *ArtifactQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ArtifactQuery) Limit

func (aq *ArtifactQuery) Limit(limit int) *ArtifactQuery

Limit adds a limit step to the query.

func (*ArtifactQuery) Offset

func (aq *ArtifactQuery) Offset(offset int) *ArtifactQuery

Offset adds an offset step to the query.

func (*ArtifactQuery) Only

func (aq *ArtifactQuery) Only(ctx context.Context) (*Artifact, error)

Only returns a single Artifact entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Artifact entity is not found. Returns a *NotFoundError when no Artifact entities are found.

func (*ArtifactQuery) OnlyID

func (aq *ArtifactQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Artifact ID in the query. Returns a *NotSingularError when exactly one Artifact ID is not found. Returns a *NotFoundError when no entities are found.

func (*ArtifactQuery) OnlyIDX

func (aq *ArtifactQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ArtifactQuery) OnlyX

func (aq *ArtifactQuery) OnlyX(ctx context.Context) *Artifact

OnlyX is like Only, but panics if an error occurs.

func (*ArtifactQuery) Order

func (aq *ArtifactQuery) Order(o ...OrderFunc) *ArtifactQuery

Order adds an order step to the query.

func (*ArtifactQuery) Paginate

func (a *ArtifactQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ArtifactPaginateOption,
) (*ArtifactConnection, error)

Paginate executes the query and returns a relay based cursor connection to Artifact.

func (*ArtifactQuery) QueryEntry

func (aq *ArtifactQuery) QueryEntry() *ReleaseEntryQuery

QueryEntry chains the current query on the "entry" edge.

func (*ArtifactQuery) QueryRelease

func (aq *ArtifactQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*ArtifactQuery) Select

func (aq *ArtifactQuery) Select(fields ...string) *ArtifactSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Artifact.Query().
	Select(artifact.FieldName).
	Scan(ctx, &v)

func (*ArtifactQuery) Unique

func (aq *ArtifactQuery) Unique(unique bool) *ArtifactQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ArtifactQuery) Where

func (aq *ArtifactQuery) Where(ps ...predicate.Artifact) *ArtifactQuery

Where adds a new predicate for the ArtifactQuery builder.

func (*ArtifactQuery) WhereInput

func (a *ArtifactQuery) WhereInput(input *ArtifactWhereInput) *ArtifactQuery

func (*ArtifactQuery) WithEntry

func (aq *ArtifactQuery) WithEntry(opts ...func(*ReleaseEntryQuery)) *ArtifactQuery

WithEntry tells the query-builder to eager-load the nodes that are connected to the "entry" edge. The optional arguments are used to configure the query builder of the edge.

func (*ArtifactQuery) WithRelease

func (aq *ArtifactQuery) WithRelease(opts ...func(*ReleaseQuery)) *ArtifactQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

type ArtifactSelect

type ArtifactSelect struct {
	*ArtifactQuery
	// contains filtered or unexported fields
}

ArtifactSelect is the builder for selecting fields of Artifact entities.

func (*ArtifactSelect) Bool

func (as *ArtifactSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) BoolX

func (as *ArtifactSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ArtifactSelect) Bools

func (as *ArtifactSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) BoolsX

func (as *ArtifactSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ArtifactSelect) Float64

func (as *ArtifactSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) Float64X

func (as *ArtifactSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ArtifactSelect) Float64s

func (as *ArtifactSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) Float64sX

func (as *ArtifactSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ArtifactSelect) Int

func (as *ArtifactSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) IntX

func (as *ArtifactSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ArtifactSelect) Ints

func (as *ArtifactSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) IntsX

func (as *ArtifactSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ArtifactSelect) Scan

func (as *ArtifactSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ArtifactSelect) ScanX

func (as *ArtifactSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ArtifactSelect) String

func (as *ArtifactSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) StringX

func (as *ArtifactSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ArtifactSelect) Strings

func (as *ArtifactSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ArtifactSelect) StringsX

func (as *ArtifactSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ArtifactUpdate

type ArtifactUpdate struct {
	// contains filtered or unexported fields
}

ArtifactUpdate is the builder for updating Artifact entities.

func (*ArtifactUpdate) ClearEntry

func (au *ArtifactUpdate) ClearEntry() *ArtifactUpdate

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*ArtifactUpdate) ClearMetadata

func (au *ArtifactUpdate) ClearMetadata() *ArtifactUpdate

ClearMetadata clears the value of the "metadata" field.

func (*ArtifactUpdate) ClearRelease

func (au *ArtifactUpdate) ClearRelease() *ArtifactUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*ArtifactUpdate) Exec

func (au *ArtifactUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ArtifactUpdate) ExecX

func (au *ArtifactUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ArtifactUpdate) Mutation

func (au *ArtifactUpdate) Mutation() *ArtifactMutation

Mutation returns the ArtifactMutation object of the builder.

func (*ArtifactUpdate) Save

func (au *ArtifactUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ArtifactUpdate) SaveX

func (au *ArtifactUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ArtifactUpdate) SetEntry

func (au *ArtifactUpdate) SetEntry(r *ReleaseEntry) *ArtifactUpdate

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*ArtifactUpdate) SetEntryID

func (au *ArtifactUpdate) SetEntryID(id int) *ArtifactUpdate

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*ArtifactUpdate) SetMetadata

func (au *ArtifactUpdate) SetMetadata(s schema.Metadata) *ArtifactUpdate

SetMetadata sets the "metadata" field.

func (*ArtifactUpdate) SetNillableEntryID

func (au *ArtifactUpdate) SetNillableEntryID(id *int) *ArtifactUpdate

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*ArtifactUpdate) SetNillableReleaseID

func (au *ArtifactUpdate) SetNillableReleaseID(id *int) *ArtifactUpdate

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*ArtifactUpdate) SetRelease

func (au *ArtifactUpdate) SetRelease(r *Release) *ArtifactUpdate

SetRelease sets the "release" edge to the Release entity.

func (*ArtifactUpdate) SetReleaseID

func (au *ArtifactUpdate) SetReleaseID(id int) *ArtifactUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ArtifactUpdate) Where

func (au *ArtifactUpdate) Where(ps ...predicate.Artifact) *ArtifactUpdate

Where appends a list predicates to the ArtifactUpdate builder.

type ArtifactUpdateOne

type ArtifactUpdateOne struct {
	// contains filtered or unexported fields
}

ArtifactUpdateOne is the builder for updating a single Artifact entity.

func (*ArtifactUpdateOne) ClearEntry

func (auo *ArtifactUpdateOne) ClearEntry() *ArtifactUpdateOne

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*ArtifactUpdateOne) ClearMetadata

func (auo *ArtifactUpdateOne) ClearMetadata() *ArtifactUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*ArtifactUpdateOne) ClearRelease

func (auo *ArtifactUpdateOne) ClearRelease() *ArtifactUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*ArtifactUpdateOne) Exec

func (auo *ArtifactUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ArtifactUpdateOne) ExecX

func (auo *ArtifactUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ArtifactUpdateOne) Mutation

func (auo *ArtifactUpdateOne) Mutation() *ArtifactMutation

Mutation returns the ArtifactMutation object of the builder.

func (*ArtifactUpdateOne) Save

func (auo *ArtifactUpdateOne) Save(ctx context.Context) (*Artifact, error)

Save executes the query and returns the updated Artifact entity.

func (*ArtifactUpdateOne) SaveX

func (auo *ArtifactUpdateOne) SaveX(ctx context.Context) *Artifact

SaveX is like Save, but panics if an error occurs.

func (*ArtifactUpdateOne) Select

func (auo *ArtifactUpdateOne) Select(field string, fields ...string) *ArtifactUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ArtifactUpdateOne) SetEntry

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*ArtifactUpdateOne) SetEntryID

func (auo *ArtifactUpdateOne) SetEntryID(id int) *ArtifactUpdateOne

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*ArtifactUpdateOne) SetMetadata

func (auo *ArtifactUpdateOne) SetMetadata(s schema.Metadata) *ArtifactUpdateOne

SetMetadata sets the "metadata" field.

func (*ArtifactUpdateOne) SetModelCreate

func (a *ArtifactUpdateOne) SetModelCreate(model *ArtifactModelCreate) *ArtifactUpdateOne

func (*ArtifactUpdateOne) SetModelUpdate

func (a *ArtifactUpdateOne) SetModelUpdate(model *ArtifactModelUpdate) *ArtifactUpdateOne

func (*ArtifactUpdateOne) SetNillableEntryID

func (auo *ArtifactUpdateOne) SetNillableEntryID(id *int) *ArtifactUpdateOne

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*ArtifactUpdateOne) SetNillableReleaseID

func (auo *ArtifactUpdateOne) SetNillableReleaseID(id *int) *ArtifactUpdateOne

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*ArtifactUpdateOne) SetRelease

func (auo *ArtifactUpdateOne) SetRelease(r *Release) *ArtifactUpdateOne

SetRelease sets the "release" edge to the Release entity.

func (*ArtifactUpdateOne) SetReleaseID

func (auo *ArtifactUpdateOne) SetReleaseID(id int) *ArtifactUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

type ArtifactWhereInput

type ArtifactWhereInput struct {
	Not *ArtifactWhereInput   `json:"not,omitempty"`
	Or  []*ArtifactWhereInput `json:"or,omitempty"`
	And []*ArtifactWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "sha256" field predicates.
	Sha256             *string  `json:"sha256,omitempty"`
	Sha256NEQ          *string  `json:"sha256NEQ,omitempty"`
	Sha256In           []string `json:"sha256In,omitempty"`
	Sha256NotIn        []string `json:"sha256NotIn,omitempty"`
	Sha256GT           *string  `json:"sha256GT,omitempty"`
	Sha256GTE          *string  `json:"sha256GTE,omitempty"`
	Sha256LT           *string  `json:"sha256LT,omitempty"`
	Sha256LTE          *string  `json:"sha256LTE,omitempty"`
	Sha256Contains     *string  `json:"sha256Contains,omitempty"`
	Sha256HasPrefix    *string  `json:"sha256HasPrefix,omitempty"`
	Sha256HasSuffix    *string  `json:"sha256HasSuffix,omitempty"`
	Sha256EqualFold    *string  `json:"sha256EqualFold,omitempty"`
	Sha256ContainsFold *string  `json:"sha256ContainsFold,omitempty"`

	// "type" field predicates.
	Type      *artifact.Type  `json:"type,omitempty"`
	TypeNEQ   *artifact.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []artifact.Type `json:"typeIn,omitempty"`
	TypeNotIn []artifact.Type `json:"typeNotIn,omitempty"`

	// "time" field predicates.
	Time      *time.Time  `json:"time,omitempty"`
	TimeNEQ   *time.Time  `json:"timeNEQ,omitempty"`
	TimeIn    []time.Time `json:"timeIn,omitempty"`
	TimeNotIn []time.Time `json:"timeNotIn,omitempty"`
	TimeGT    *time.Time  `json:"timeGT,omitempty"`
	TimeGTE   *time.Time  `json:"timeGTE,omitempty"`
	TimeLT    *time.Time  `json:"timeLT,omitempty"`
	TimeLTE   *time.Time  `json:"timeLTE,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "entry" edge predicates.
	HasEntry     *bool                     `json:"hasEntry,omitempty"`
	HasEntryWith []*ReleaseEntryWhereInput `json:"hasEntryWith,omitempty"`
}

ArtifactWhereInput represents a where input for filtering Artifact queries.

func (*ArtifactWhereInput) Filter

Filter applies the ArtifactWhereInput filter on the ArtifactQuery builder.

func (*ArtifactWhereInput) P

P returns a predicate for filtering artifacts. An error is returned if the input is empty or invalid.

type Artifacts

type Artifacts []*Artifact

Artifacts is a parsable slice of Artifact.

type Client

type Client struct {

	// Schema is the client for creating, migrating and dropping schema.
	Schema *migrate.Schema
	// Adapter is the client for interacting with the Adapter builders.
	Adapter *AdapterClient
	// Artifact is the client for interacting with the Artifact builders.
	Artifact *ArtifactClient
	// CodeIssue is the client for interacting with the CodeIssue builders.
	CodeIssue *CodeIssueClient
	// CodeScan is the client for interacting with the CodeScan builders.
	CodeScan *CodeScanClient
	// Component is the client for interacting with the Component builders.
	Component *ComponentClient
	// Event is the client for interacting with the Event builders.
	Event *EventClient
	// GitCommit is the client for interacting with the GitCommit builders.
	GitCommit *GitCommitClient
	// License is the client for interacting with the License builders.
	License *LicenseClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// Project is the client for interacting with the Project builders.
	Project *ProjectClient
	// Release is the client for interacting with the Release builders.
	Release *ReleaseClient
	// ReleaseComponent is the client for interacting with the ReleaseComponent builders.
	ReleaseComponent *ReleaseComponentClient
	// ReleaseEntry is the client for interacting with the ReleaseEntry builders.
	ReleaseEntry *ReleaseEntryClient
	// ReleaseLicense is the client for interacting with the ReleaseLicense builders.
	ReleaseLicense *ReleaseLicenseClient
	// ReleasePolicy is the client for interacting with the ReleasePolicy builders.
	ReleasePolicy *ReleasePolicyClient
	// ReleasePolicyViolation is the client for interacting with the ReleasePolicyViolation builders.
	ReleasePolicyViolation *ReleasePolicyViolationClient
	// ReleaseVulnerability is the client for interacting with the ReleaseVulnerability builders.
	ReleaseVulnerability *ReleaseVulnerabilityClient
	// Repo is the client for interacting with the Repo builders.
	Repo *RepoClient
	// SPDXLicense is the client for interacting with the SPDXLicense builders.
	SPDXLicense *SPDXLicenseClient
	// TestCase is the client for interacting with the TestCase builders.
	TestCase *TestCaseClient
	// TestRun is the client for interacting with the TestRun builders.
	TestRun *TestRunClient
	// Vulnerability is the client for interacting with the Vulnerability builders.
	Vulnerability *VulnerabilityClient
	// VulnerabilityReview is the client for interacting with the VulnerabilityReview builders.
	VulnerabilityReview *VulnerabilityReviewClient
	// contains filtered or unexported fields
}

Client is the client that holds all ent builders.

func FromContext

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.

func (*Client) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	Adapter.
	Query().
	Count(ctx)

func (*Client) Node

func (c *Client) Node(ctx context.Context, id int) (*Node, error)

func (*Client) Noder

func (c *Client) Noder(ctx context.Context, id int, opts ...NodeOption) (_ Noder, err error)

Noder returns a Node by its id. If the NodeType was not provided, it will be derived from the id value according to the universal-id configuration.

c.Noder(ctx, id)
c.Noder(ctx, id, ent.WithNodeType(pet.Table))

func (*Client) Noders

func (c *Client) Noders(ctx context.Context, ids []int, opts ...NodeOption) ([]Noder, error)

func (*Client) OpenTx

func (c *Client) OpenTx(ctx context.Context) (context.Context, driver.Tx, error)

OpenTx opens a transaction and returns a transactional context along with the created transaction.

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CodeIssue

type CodeIssue struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// RuleID holds the value of the "rule_id" field.
	RuleID string `json:"rule_id,omitempty"`
	// Message holds the value of the "message" field.
	Message string `json:"message,omitempty"`
	// Severity holds the value of the "severity" field.
	Severity codeissue.Severity `json:"severity,omitempty"`
	// Type holds the value of the "type" field.
	Type codeissue.Type `json:"type,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the CodeIssueQuery when eager-loading is set.
	Edges CodeIssueEdges `json:"edges"`
	// contains filtered or unexported fields
}

CodeIssue is the model entity for the CodeIssue schema.

func (*CodeIssue) Node

func (ci *CodeIssue) Node(ctx context.Context) (node *Node, err error)

func (*CodeIssue) QueryScan

func (ci *CodeIssue) QueryScan() *CodeScanQuery

QueryScan queries the "scan" edge of the CodeIssue entity.

func (*CodeIssue) Scan

func (ci *CodeIssue) Scan(ctx context.Context) (*CodeScan, error)

func (*CodeIssue) String

func (ci *CodeIssue) String() string

String implements the fmt.Stringer.

func (*CodeIssue) ToEdge

func (ci *CodeIssue) ToEdge(order *CodeIssueOrder) *CodeIssueEdge

ToEdge converts CodeIssue into CodeIssueEdge.

func (*CodeIssue) Unwrap

func (ci *CodeIssue) Unwrap() *CodeIssue

Unwrap unwraps the CodeIssue entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*CodeIssue) Update

func (ci *CodeIssue) Update() *CodeIssueUpdateOne

Update returns a builder for updating this CodeIssue. Note that you need to call CodeIssue.Unwrap() before calling this method if this CodeIssue was returned from a transaction, and the transaction was committed or rolled back.

type CodeIssueClient

type CodeIssueClient struct {
	// contains filtered or unexported fields
}

CodeIssueClient is a client for the CodeIssue schema.

func NewCodeIssueClient

func NewCodeIssueClient(c config) *CodeIssueClient

NewCodeIssueClient returns a client for the CodeIssue from the given config.

func (*CodeIssueClient) Create

func (c *CodeIssueClient) Create() *CodeIssueCreate

Create returns a create builder for CodeIssue.

func (*CodeIssueClient) CreateBulk

func (c *CodeIssueClient) CreateBulk(builders ...*CodeIssueCreate) *CodeIssueCreateBulk

CreateBulk returns a builder for creating a bulk of CodeIssue entities.

func (*CodeIssueClient) Delete

func (c *CodeIssueClient) Delete() *CodeIssueDelete

Delete returns a delete builder for CodeIssue.

func (*CodeIssueClient) DeleteOne

func (c *CodeIssueClient) DeleteOne(ci *CodeIssue) *CodeIssueDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*CodeIssueClient) DeleteOneID

func (c *CodeIssueClient) DeleteOneID(id int) *CodeIssueDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*CodeIssueClient) Get

func (c *CodeIssueClient) Get(ctx context.Context, id int) (*CodeIssue, error)

Get returns a CodeIssue entity by its id.

func (*CodeIssueClient) GetX

func (c *CodeIssueClient) GetX(ctx context.Context, id int) *CodeIssue

GetX is like Get, but panics if an error occurs.

func (*CodeIssueClient) Hooks

func (c *CodeIssueClient) Hooks() []Hook

Hooks returns the client hooks.

func (*CodeIssueClient) Query

func (c *CodeIssueClient) Query() *CodeIssueQuery

Query returns a query builder for CodeIssue.

func (*CodeIssueClient) QueryScan

func (c *CodeIssueClient) QueryScan(ci *CodeIssue) *CodeScanQuery

QueryScan queries the scan edge of a CodeIssue.

func (*CodeIssueClient) Update

func (c *CodeIssueClient) Update() *CodeIssueUpdate

Update returns an update builder for CodeIssue.

func (*CodeIssueClient) UpdateOne

func (c *CodeIssueClient) UpdateOne(ci *CodeIssue) *CodeIssueUpdateOne

UpdateOne returns an update builder for the given entity.

func (*CodeIssueClient) UpdateOneID

func (c *CodeIssueClient) UpdateOneID(id int) *CodeIssueUpdateOne

UpdateOneID returns an update builder for the given id.

func (*CodeIssueClient) Use

func (c *CodeIssueClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `codeissue.Hooks(f(g(h())))`.

type CodeIssueConnection

type CodeIssueConnection struct {
	Edges      []*CodeIssueEdge `json:"edges"`
	PageInfo   PageInfo         `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

CodeIssueConnection is the connection containing edges to CodeIssue.

type CodeIssueCreate

type CodeIssueCreate struct {
	// contains filtered or unexported fields
}

CodeIssueCreate is the builder for creating a CodeIssue entity.

func (*CodeIssueCreate) Exec

func (cic *CodeIssueCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeIssueCreate) ExecX

func (cic *CodeIssueCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeIssueCreate) Mutation

func (cic *CodeIssueCreate) Mutation() *CodeIssueMutation

Mutation returns the CodeIssueMutation object of the builder.

func (*CodeIssueCreate) Save

func (cic *CodeIssueCreate) Save(ctx context.Context) (*CodeIssue, error)

Save creates the CodeIssue in the database.

func (*CodeIssueCreate) SaveX

func (cic *CodeIssueCreate) SaveX(ctx context.Context) *CodeIssue

SaveX calls Save and panics if Save returns an error.

func (*CodeIssueCreate) SetMessage

func (cic *CodeIssueCreate) SetMessage(s string) *CodeIssueCreate

SetMessage sets the "message" field.

func (*CodeIssueCreate) SetMetadata

func (cic *CodeIssueCreate) SetMetadata(s schema.Metadata) *CodeIssueCreate

SetMetadata sets the "metadata" field.

func (*CodeIssueCreate) SetModelCreate

func (ci *CodeIssueCreate) SetModelCreate(model *CodeIssueModelCreate) *CodeIssueCreate

func (*CodeIssueCreate) SetRuleID

func (cic *CodeIssueCreate) SetRuleID(s string) *CodeIssueCreate

SetRuleID sets the "rule_id" field.

func (*CodeIssueCreate) SetScan

func (cic *CodeIssueCreate) SetScan(c *CodeScan) *CodeIssueCreate

SetScan sets the "scan" edge to the CodeScan entity.

func (*CodeIssueCreate) SetScanID

func (cic *CodeIssueCreate) SetScanID(id int) *CodeIssueCreate

SetScanID sets the "scan" edge to the CodeScan entity by ID.

func (*CodeIssueCreate) SetSeverity

func (cic *CodeIssueCreate) SetSeverity(c codeissue.Severity) *CodeIssueCreate

SetSeverity sets the "severity" field.

func (*CodeIssueCreate) SetType

func (cic *CodeIssueCreate) SetType(c codeissue.Type) *CodeIssueCreate

SetType sets the "type" field.

type CodeIssueCreateBulk

type CodeIssueCreateBulk struct {
	// contains filtered or unexported fields
}

CodeIssueCreateBulk is the builder for creating many CodeIssue entities in bulk.

func (*CodeIssueCreateBulk) Exec

func (cicb *CodeIssueCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeIssueCreateBulk) ExecX

func (cicb *CodeIssueCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeIssueCreateBulk) Save

func (cicb *CodeIssueCreateBulk) Save(ctx context.Context) ([]*CodeIssue, error)

Save creates the CodeIssue entities in the database.

func (*CodeIssueCreateBulk) SaveX

func (cicb *CodeIssueCreateBulk) SaveX(ctx context.Context) []*CodeIssue

SaveX is like Save, but panics if an error occurs.

type CodeIssueDelete

type CodeIssueDelete struct {
	// contains filtered or unexported fields
}

CodeIssueDelete is the builder for deleting a CodeIssue entity.

func (*CodeIssueDelete) Exec

func (cid *CodeIssueDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*CodeIssueDelete) ExecX

func (cid *CodeIssueDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*CodeIssueDelete) Where

Where appends a list predicates to the CodeIssueDelete builder.

type CodeIssueDeleteOne

type CodeIssueDeleteOne struct {
	// contains filtered or unexported fields
}

CodeIssueDeleteOne is the builder for deleting a single CodeIssue entity.

func (*CodeIssueDeleteOne) Exec

func (cido *CodeIssueDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*CodeIssueDeleteOne) ExecX

func (cido *CodeIssueDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type CodeIssueEdge

type CodeIssueEdge struct {
	Node   *CodeIssue `json:"node"`
	Cursor Cursor     `json:"cursor"`
}

CodeIssueEdge is the edge representation of CodeIssue.

type CodeIssueEdges

type CodeIssueEdges struct {
	// Scan holds the value of the scan edge.
	Scan *CodeScan `json:"scan,omitempty"`
	// contains filtered or unexported fields
}

CodeIssueEdges holds the relations/edges for other nodes in the graph.

func (CodeIssueEdges) ScanOrErr

func (e CodeIssueEdges) ScanOrErr() (*CodeScan, error)

ScanOrErr returns the Scan value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type CodeIssueGroupBy

type CodeIssueGroupBy struct {
	// contains filtered or unexported fields
}

CodeIssueGroupBy is the group-by builder for CodeIssue entities.

func (*CodeIssueGroupBy) Aggregate

func (cigb *CodeIssueGroupBy) Aggregate(fns ...AggregateFunc) *CodeIssueGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*CodeIssueGroupBy) Bool

func (cigb *CodeIssueGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) BoolX

func (cigb *CodeIssueGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*CodeIssueGroupBy) Bools

func (cigb *CodeIssueGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) BoolsX

func (cigb *CodeIssueGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*CodeIssueGroupBy) Float64

func (cigb *CodeIssueGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) Float64X

func (cigb *CodeIssueGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*CodeIssueGroupBy) Float64s

func (cigb *CodeIssueGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) Float64sX

func (cigb *CodeIssueGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*CodeIssueGroupBy) Int

func (cigb *CodeIssueGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) IntX

func (cigb *CodeIssueGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*CodeIssueGroupBy) Ints

func (cigb *CodeIssueGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) IntsX

func (cigb *CodeIssueGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*CodeIssueGroupBy) Scan

func (cigb *CodeIssueGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*CodeIssueGroupBy) ScanX

func (cigb *CodeIssueGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*CodeIssueGroupBy) String

func (cigb *CodeIssueGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) StringX

func (cigb *CodeIssueGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*CodeIssueGroupBy) Strings

func (cigb *CodeIssueGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeIssueGroupBy) StringsX

func (cigb *CodeIssueGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type CodeIssueModelCreate

type CodeIssueModelCreate struct {
	RuleID   *string             `json:"rule_id,omitempty" validate:"required" mapstructure:"rule_id"`
	Message  *string             `json:"message,omitempty" validate:"required" mapstructure:"message"`
	Severity *codeissue.Severity `json:"severity,omitempty" validate:"required" mapstructure:"severity"`
	Type     *codeissue.Type     `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Metadata *schema.Metadata    `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewCodeIssueModelCreate

func NewCodeIssueModelCreate() *CodeIssueModelCreate

func (*CodeIssueModelCreate) SetMessage

func (ci *CodeIssueModelCreate) SetMessage(value string) *CodeIssueModelCreate

func (*CodeIssueModelCreate) SetMetadata

func (ci *CodeIssueModelCreate) SetMetadata(value schema.Metadata) *CodeIssueModelCreate

func (*CodeIssueModelCreate) SetRuleID

func (ci *CodeIssueModelCreate) SetRuleID(value string) *CodeIssueModelCreate

func (*CodeIssueModelCreate) SetSeverity

func (*CodeIssueModelCreate) SetType

type CodeIssueModelRead

type CodeIssueModelRead struct {
	RuleID   *string             `json:"rule_id,omitempty" validate:"required" mapstructure:"rule_id"`
	Message  *string             `json:"message,omitempty" validate:"required" mapstructure:"message"`
	Severity *codeissue.Severity `json:"severity,omitempty" validate:"required" mapstructure:"severity"`
	Type     *codeissue.Type     `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Metadata *schema.Metadata    `json:"metadata,omitempty"  mapstructure:"metadata"`
	ID       *int                `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewCodeIssueModelRead

func NewCodeIssueModelRead() *CodeIssueModelRead

func (*CodeIssueModelRead) FromEnt

func (ci *CodeIssueModelRead) FromEnt(value *CodeIssue) *CodeIssueModelRead

type CodeIssueModelUpdate

type CodeIssueModelUpdate struct {
	RuleID   *string             `json:"rule_id,omitempty"  mapstructure:"rule_id"`
	Message  *string             `json:"message,omitempty"  mapstructure:"message"`
	Severity *codeissue.Severity `json:"severity,omitempty"  mapstructure:"severity"`
	Type     *codeissue.Type     `json:"type,omitempty"  mapstructure:"type"`
	Metadata *schema.Metadata    `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewCodeIssueModelUpdate

func NewCodeIssueModelUpdate() *CodeIssueModelUpdate

func (*CodeIssueModelUpdate) SetMessage

func (ci *CodeIssueModelUpdate) SetMessage(value string) *CodeIssueModelUpdate

func (*CodeIssueModelUpdate) SetMetadata

func (ci *CodeIssueModelUpdate) SetMetadata(value schema.Metadata) *CodeIssueModelUpdate

func (*CodeIssueModelUpdate) SetRuleID

func (ci *CodeIssueModelUpdate) SetRuleID(value string) *CodeIssueModelUpdate

func (*CodeIssueModelUpdate) SetSeverity

func (*CodeIssueModelUpdate) SetType

type CodeIssueMutation

type CodeIssueMutation struct {
	// contains filtered or unexported fields
}

CodeIssueMutation represents an operation that mutates the CodeIssue nodes in the graph.

func (*CodeIssueMutation) AddField

func (m *CodeIssueMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*CodeIssueMutation) AddedEdges

func (m *CodeIssueMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*CodeIssueMutation) AddedField

func (m *CodeIssueMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*CodeIssueMutation) AddedFields

func (m *CodeIssueMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*CodeIssueMutation) AddedIDs

func (m *CodeIssueMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*CodeIssueMutation) ClearEdge

func (m *CodeIssueMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*CodeIssueMutation) ClearField

func (m *CodeIssueMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*CodeIssueMutation) ClearMetadata

func (m *CodeIssueMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*CodeIssueMutation) ClearScan

func (m *CodeIssueMutation) ClearScan()

ClearScan clears the "scan" edge to the CodeScan entity.

func (*CodeIssueMutation) ClearedEdges

func (m *CodeIssueMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*CodeIssueMutation) ClearedFields

func (m *CodeIssueMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (CodeIssueMutation) Client

func (m CodeIssueMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*CodeIssueMutation) EdgeCleared

func (m *CodeIssueMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*CodeIssueMutation) Field

func (m *CodeIssueMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*CodeIssueMutation) FieldCleared

func (m *CodeIssueMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*CodeIssueMutation) Fields

func (m *CodeIssueMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*CodeIssueMutation) GetType

func (m *CodeIssueMutation) GetType() (r codeissue.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*CodeIssueMutation) ID

func (m *CodeIssueMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*CodeIssueMutation) Message

func (m *CodeIssueMutation) Message() (r string, exists bool)

Message returns the value of the "message" field in the mutation.

func (*CodeIssueMutation) Metadata

func (m *CodeIssueMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*CodeIssueMutation) MetadataCleared

func (m *CodeIssueMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*CodeIssueMutation) OldField

func (m *CodeIssueMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*CodeIssueMutation) OldMessage

func (m *CodeIssueMutation) OldMessage(ctx context.Context) (v string, err error)

OldMessage returns the old "message" field's value of the CodeIssue entity. If the CodeIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeIssueMutation) OldMetadata

func (m *CodeIssueMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the CodeIssue entity. If the CodeIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeIssueMutation) OldRuleID

func (m *CodeIssueMutation) OldRuleID(ctx context.Context) (v string, err error)

OldRuleID returns the old "rule_id" field's value of the CodeIssue entity. If the CodeIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeIssueMutation) OldSeverity

func (m *CodeIssueMutation) OldSeverity(ctx context.Context) (v codeissue.Severity, err error)

OldSeverity returns the old "severity" field's value of the CodeIssue entity. If the CodeIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeIssueMutation) OldType

func (m *CodeIssueMutation) OldType(ctx context.Context) (v codeissue.Type, err error)

OldType returns the old "type" field's value of the CodeIssue entity. If the CodeIssue object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeIssueMutation) Op

func (m *CodeIssueMutation) Op() Op

Op returns the operation name.

func (*CodeIssueMutation) RemovedEdges

func (m *CodeIssueMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*CodeIssueMutation) RemovedIDs

func (m *CodeIssueMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*CodeIssueMutation) ResetEdge

func (m *CodeIssueMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*CodeIssueMutation) ResetField

func (m *CodeIssueMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*CodeIssueMutation) ResetMessage

func (m *CodeIssueMutation) ResetMessage()

ResetMessage resets all changes to the "message" field.

func (*CodeIssueMutation) ResetMetadata

func (m *CodeIssueMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*CodeIssueMutation) ResetRuleID

func (m *CodeIssueMutation) ResetRuleID()

ResetRuleID resets all changes to the "rule_id" field.

func (*CodeIssueMutation) ResetScan

func (m *CodeIssueMutation) ResetScan()

ResetScan resets all changes to the "scan" edge.

func (*CodeIssueMutation) ResetSeverity

func (m *CodeIssueMutation) ResetSeverity()

ResetSeverity resets all changes to the "severity" field.

func (*CodeIssueMutation) ResetType

func (m *CodeIssueMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*CodeIssueMutation) RuleID

func (m *CodeIssueMutation) RuleID() (r string, exists bool)

RuleID returns the value of the "rule_id" field in the mutation.

func (*CodeIssueMutation) ScanCleared

func (m *CodeIssueMutation) ScanCleared() bool

ScanCleared reports if the "scan" edge to the CodeScan entity was cleared.

func (*CodeIssueMutation) ScanID

func (m *CodeIssueMutation) ScanID() (id int, exists bool)

ScanID returns the "scan" edge ID in the mutation.

func (*CodeIssueMutation) ScanIDs

func (m *CodeIssueMutation) ScanIDs() (ids []int)

ScanIDs returns the "scan" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ScanID instead. It exists only for internal usage by the builders.

func (*CodeIssueMutation) SetField

func (m *CodeIssueMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*CodeIssueMutation) SetMessage

func (m *CodeIssueMutation) SetMessage(s string)

SetMessage sets the "message" field.

func (*CodeIssueMutation) SetMetadata

func (m *CodeIssueMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*CodeIssueMutation) SetModelCreate

func (ci *CodeIssueMutation) SetModelCreate(model *CodeIssueModelCreate) *CodeIssueMutation

func (*CodeIssueMutation) SetModelUpdate

func (ci *CodeIssueMutation) SetModelUpdate(model *CodeIssueModelUpdate) *CodeIssueMutation

func (*CodeIssueMutation) SetRuleID

func (m *CodeIssueMutation) SetRuleID(s string)

SetRuleID sets the "rule_id" field.

func (*CodeIssueMutation) SetScanID

func (m *CodeIssueMutation) SetScanID(id int)

SetScanID sets the "scan" edge to the CodeScan entity by id.

func (*CodeIssueMutation) SetSeverity

func (m *CodeIssueMutation) SetSeverity(c codeissue.Severity)

SetSeverity sets the "severity" field.

func (*CodeIssueMutation) SetType

func (m *CodeIssueMutation) SetType(c codeissue.Type)

SetType sets the "type" field.

func (*CodeIssueMutation) Severity

func (m *CodeIssueMutation) Severity() (r codeissue.Severity, exists bool)

Severity returns the value of the "severity" field in the mutation.

func (CodeIssueMutation) Tx

func (m CodeIssueMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*CodeIssueMutation) Type

func (m *CodeIssueMutation) Type() string

Type returns the node type of this mutation (CodeIssue).

func (*CodeIssueMutation) Where

func (m *CodeIssueMutation) Where(ps ...predicate.CodeIssue)

Where appends a list predicates to the CodeIssueMutation builder.

type CodeIssueOrder

type CodeIssueOrder struct {
	Direction OrderDirection       `json:"direction"`
	Field     *CodeIssueOrderField `json:"field"`
}

CodeIssueOrder defines the ordering of CodeIssue.

type CodeIssueOrderField

type CodeIssueOrderField struct {
	// contains filtered or unexported fields
}

CodeIssueOrderField defines the ordering field of CodeIssue.

func (CodeIssueOrderField) MarshalGQL

func (f CodeIssueOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (CodeIssueOrderField) String

func (f CodeIssueOrderField) String() string

String implement fmt.Stringer interface.

func (*CodeIssueOrderField) UnmarshalGQL

func (f *CodeIssueOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type CodeIssuePaginateOption

type CodeIssuePaginateOption func(*codeIssuePager) error

CodeIssuePaginateOption enables pagination customization.

func WithCodeIssueFilter

func WithCodeIssueFilter(filter func(*CodeIssueQuery) (*CodeIssueQuery, error)) CodeIssuePaginateOption

WithCodeIssueFilter configures pagination filter.

func WithCodeIssueOrder

func WithCodeIssueOrder(order *CodeIssueOrder) CodeIssuePaginateOption

WithCodeIssueOrder configures pagination ordering.

type CodeIssueQuery

type CodeIssueQuery struct {
	// contains filtered or unexported fields
}

CodeIssueQuery is the builder for querying CodeIssue entities.

func (*CodeIssueQuery) All

func (ciq *CodeIssueQuery) All(ctx context.Context) ([]*CodeIssue, error)

All executes the query and returns a list of CodeIssues.

func (*CodeIssueQuery) AllX

func (ciq *CodeIssueQuery) AllX(ctx context.Context) []*CodeIssue

AllX is like All, but panics if an error occurs.

func (*CodeIssueQuery) Clone

func (ciq *CodeIssueQuery) Clone() *CodeIssueQuery

Clone returns a duplicate of the CodeIssueQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*CodeIssueQuery) CollectFields

func (ci *CodeIssueQuery) CollectFields(ctx context.Context, satisfies ...string) *CodeIssueQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*CodeIssueQuery) Count

func (ciq *CodeIssueQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*CodeIssueQuery) CountX

func (ciq *CodeIssueQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*CodeIssueQuery) Exist

func (ciq *CodeIssueQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*CodeIssueQuery) ExistX

func (ciq *CodeIssueQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*CodeIssueQuery) Filter

func (ci *CodeIssueQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *CodeIssueOrder, where *CodeIssueWhereInput,
) ([]*CodeIssue, error)

func (*CodeIssueQuery) First

func (ciq *CodeIssueQuery) First(ctx context.Context) (*CodeIssue, error)

First returns the first CodeIssue entity from the query. Returns a *NotFoundError when no CodeIssue was found.

func (*CodeIssueQuery) FirstID

func (ciq *CodeIssueQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first CodeIssue ID from the query. Returns a *NotFoundError when no CodeIssue ID was found.

func (*CodeIssueQuery) FirstIDX

func (ciq *CodeIssueQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*CodeIssueQuery) FirstX

func (ciq *CodeIssueQuery) FirstX(ctx context.Context) *CodeIssue

FirstX is like First, but panics if an error occurs.

func (*CodeIssueQuery) GroupBy

func (ciq *CodeIssueQuery) GroupBy(field string, fields ...string) *CodeIssueGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	RuleID string `json:"rule_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.CodeIssue.Query().
	GroupBy(codeissue.FieldRuleID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*CodeIssueQuery) IDs

func (ciq *CodeIssueQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of CodeIssue IDs.

func (*CodeIssueQuery) IDsX

func (ciq *CodeIssueQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*CodeIssueQuery) Limit

func (ciq *CodeIssueQuery) Limit(limit int) *CodeIssueQuery

Limit adds a limit step to the query.

func (*CodeIssueQuery) Offset

func (ciq *CodeIssueQuery) Offset(offset int) *CodeIssueQuery

Offset adds an offset step to the query.

func (*CodeIssueQuery) Only

func (ciq *CodeIssueQuery) Only(ctx context.Context) (*CodeIssue, error)

Only returns a single CodeIssue entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one CodeIssue entity is not found. Returns a *NotFoundError when no CodeIssue entities are found.

func (*CodeIssueQuery) OnlyID

func (ciq *CodeIssueQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only CodeIssue ID in the query. Returns a *NotSingularError when exactly one CodeIssue ID is not found. Returns a *NotFoundError when no entities are found.

func (*CodeIssueQuery) OnlyIDX

func (ciq *CodeIssueQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*CodeIssueQuery) OnlyX

func (ciq *CodeIssueQuery) OnlyX(ctx context.Context) *CodeIssue

OnlyX is like Only, but panics if an error occurs.

func (*CodeIssueQuery) Order

func (ciq *CodeIssueQuery) Order(o ...OrderFunc) *CodeIssueQuery

Order adds an order step to the query.

func (*CodeIssueQuery) Paginate

func (ci *CodeIssueQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...CodeIssuePaginateOption,
) (*CodeIssueConnection, error)

Paginate executes the query and returns a relay based cursor connection to CodeIssue.

func (*CodeIssueQuery) QueryScan

func (ciq *CodeIssueQuery) QueryScan() *CodeScanQuery

QueryScan chains the current query on the "scan" edge.

func (*CodeIssueQuery) Select

func (ciq *CodeIssueQuery) Select(fields ...string) *CodeIssueSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	RuleID string `json:"rule_id,omitempty"`
}

client.CodeIssue.Query().
	Select(codeissue.FieldRuleID).
	Scan(ctx, &v)

func (*CodeIssueQuery) Unique

func (ciq *CodeIssueQuery) Unique(unique bool) *CodeIssueQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*CodeIssueQuery) Where

func (ciq *CodeIssueQuery) Where(ps ...predicate.CodeIssue) *CodeIssueQuery

Where adds a new predicate for the CodeIssueQuery builder.

func (*CodeIssueQuery) WhereInput

func (ci *CodeIssueQuery) WhereInput(input *CodeIssueWhereInput) *CodeIssueQuery

func (*CodeIssueQuery) WithScan

func (ciq *CodeIssueQuery) WithScan(opts ...func(*CodeScanQuery)) *CodeIssueQuery

WithScan tells the query-builder to eager-load the nodes that are connected to the "scan" edge. The optional arguments are used to configure the query builder of the edge.

type CodeIssueSelect

type CodeIssueSelect struct {
	*CodeIssueQuery
	// contains filtered or unexported fields
}

CodeIssueSelect is the builder for selecting fields of CodeIssue entities.

func (*CodeIssueSelect) Bool

func (cis *CodeIssueSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) BoolX

func (cis *CodeIssueSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*CodeIssueSelect) Bools

func (cis *CodeIssueSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) BoolsX

func (cis *CodeIssueSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*CodeIssueSelect) Float64

func (cis *CodeIssueSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) Float64X

func (cis *CodeIssueSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*CodeIssueSelect) Float64s

func (cis *CodeIssueSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) Float64sX

func (cis *CodeIssueSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*CodeIssueSelect) Int

func (cis *CodeIssueSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) IntX

func (cis *CodeIssueSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*CodeIssueSelect) Ints

func (cis *CodeIssueSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) IntsX

func (cis *CodeIssueSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*CodeIssueSelect) Scan

func (cis *CodeIssueSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*CodeIssueSelect) ScanX

func (cis *CodeIssueSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*CodeIssueSelect) String

func (cis *CodeIssueSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) StringX

func (cis *CodeIssueSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*CodeIssueSelect) Strings

func (cis *CodeIssueSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*CodeIssueSelect) StringsX

func (cis *CodeIssueSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type CodeIssueUpdate

type CodeIssueUpdate struct {
	// contains filtered or unexported fields
}

CodeIssueUpdate is the builder for updating CodeIssue entities.

func (*CodeIssueUpdate) ClearMetadata

func (ciu *CodeIssueUpdate) ClearMetadata() *CodeIssueUpdate

ClearMetadata clears the value of the "metadata" field.

func (*CodeIssueUpdate) ClearScan

func (ciu *CodeIssueUpdate) ClearScan() *CodeIssueUpdate

ClearScan clears the "scan" edge to the CodeScan entity.

func (*CodeIssueUpdate) Exec

func (ciu *CodeIssueUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeIssueUpdate) ExecX

func (ciu *CodeIssueUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeIssueUpdate) Mutation

func (ciu *CodeIssueUpdate) Mutation() *CodeIssueMutation

Mutation returns the CodeIssueMutation object of the builder.

func (*CodeIssueUpdate) Save

func (ciu *CodeIssueUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*CodeIssueUpdate) SaveX

func (ciu *CodeIssueUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*CodeIssueUpdate) SetMetadata

func (ciu *CodeIssueUpdate) SetMetadata(s schema.Metadata) *CodeIssueUpdate

SetMetadata sets the "metadata" field.

func (*CodeIssueUpdate) SetScan

func (ciu *CodeIssueUpdate) SetScan(c *CodeScan) *CodeIssueUpdate

SetScan sets the "scan" edge to the CodeScan entity.

func (*CodeIssueUpdate) SetScanID

func (ciu *CodeIssueUpdate) SetScanID(id int) *CodeIssueUpdate

SetScanID sets the "scan" edge to the CodeScan entity by ID.

func (*CodeIssueUpdate) Where

Where appends a list predicates to the CodeIssueUpdate builder.

type CodeIssueUpdateOne

type CodeIssueUpdateOne struct {
	// contains filtered or unexported fields
}

CodeIssueUpdateOne is the builder for updating a single CodeIssue entity.

func (*CodeIssueUpdateOne) ClearMetadata

func (ciuo *CodeIssueUpdateOne) ClearMetadata() *CodeIssueUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*CodeIssueUpdateOne) ClearScan

func (ciuo *CodeIssueUpdateOne) ClearScan() *CodeIssueUpdateOne

ClearScan clears the "scan" edge to the CodeScan entity.

func (*CodeIssueUpdateOne) Exec

func (ciuo *CodeIssueUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*CodeIssueUpdateOne) ExecX

func (ciuo *CodeIssueUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeIssueUpdateOne) Mutation

func (ciuo *CodeIssueUpdateOne) Mutation() *CodeIssueMutation

Mutation returns the CodeIssueMutation object of the builder.

func (*CodeIssueUpdateOne) Save

func (ciuo *CodeIssueUpdateOne) Save(ctx context.Context) (*CodeIssue, error)

Save executes the query and returns the updated CodeIssue entity.

func (*CodeIssueUpdateOne) SaveX

func (ciuo *CodeIssueUpdateOne) SaveX(ctx context.Context) *CodeIssue

SaveX is like Save, but panics if an error occurs.

func (*CodeIssueUpdateOne) Select

func (ciuo *CodeIssueUpdateOne) Select(field string, fields ...string) *CodeIssueUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*CodeIssueUpdateOne) SetMetadata

func (ciuo *CodeIssueUpdateOne) SetMetadata(s schema.Metadata) *CodeIssueUpdateOne

SetMetadata sets the "metadata" field.

func (*CodeIssueUpdateOne) SetModelCreate

func (ci *CodeIssueUpdateOne) SetModelCreate(model *CodeIssueModelCreate) *CodeIssueUpdateOne

func (*CodeIssueUpdateOne) SetModelUpdate

func (ci *CodeIssueUpdateOne) SetModelUpdate(model *CodeIssueModelUpdate) *CodeIssueUpdateOne

func (*CodeIssueUpdateOne) SetScan

func (ciuo *CodeIssueUpdateOne) SetScan(c *CodeScan) *CodeIssueUpdateOne

SetScan sets the "scan" edge to the CodeScan entity.

func (*CodeIssueUpdateOne) SetScanID

func (ciuo *CodeIssueUpdateOne) SetScanID(id int) *CodeIssueUpdateOne

SetScanID sets the "scan" edge to the CodeScan entity by ID.

type CodeIssueWhereInput

type CodeIssueWhereInput struct {
	Not *CodeIssueWhereInput   `json:"not,omitempty"`
	Or  []*CodeIssueWhereInput `json:"or,omitempty"`
	And []*CodeIssueWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "rule_id" field predicates.
	RuleID             *string  `json:"ruleID,omitempty"`
	RuleIDNEQ          *string  `json:"ruleIDNEQ,omitempty"`
	RuleIDIn           []string `json:"ruleIDIn,omitempty"`
	RuleIDNotIn        []string `json:"ruleIDNotIn,omitempty"`
	RuleIDGT           *string  `json:"ruleIDGT,omitempty"`
	RuleIDGTE          *string  `json:"ruleIDGTE,omitempty"`
	RuleIDLT           *string  `json:"ruleIDLT,omitempty"`
	RuleIDLTE          *string  `json:"ruleIDLTE,omitempty"`
	RuleIDContains     *string  `json:"ruleIDContains,omitempty"`
	RuleIDHasPrefix    *string  `json:"ruleIDHasPrefix,omitempty"`
	RuleIDHasSuffix    *string  `json:"ruleIDHasSuffix,omitempty"`
	RuleIDEqualFold    *string  `json:"ruleIDEqualFold,omitempty"`
	RuleIDContainsFold *string  `json:"ruleIDContainsFold,omitempty"`

	// "message" field predicates.
	Message             *string  `json:"message,omitempty"`
	MessageNEQ          *string  `json:"messageNEQ,omitempty"`
	MessageIn           []string `json:"messageIn,omitempty"`
	MessageNotIn        []string `json:"messageNotIn,omitempty"`
	MessageGT           *string  `json:"messageGT,omitempty"`
	MessageGTE          *string  `json:"messageGTE,omitempty"`
	MessageLT           *string  `json:"messageLT,omitempty"`
	MessageLTE          *string  `json:"messageLTE,omitempty"`
	MessageContains     *string  `json:"messageContains,omitempty"`
	MessageHasPrefix    *string  `json:"messageHasPrefix,omitempty"`
	MessageHasSuffix    *string  `json:"messageHasSuffix,omitempty"`
	MessageEqualFold    *string  `json:"messageEqualFold,omitempty"`
	MessageContainsFold *string  `json:"messageContainsFold,omitempty"`

	// "severity" field predicates.
	Severity      *codeissue.Severity  `json:"severity,omitempty"`
	SeverityNEQ   *codeissue.Severity  `json:"severityNEQ,omitempty"`
	SeverityIn    []codeissue.Severity `json:"severityIn,omitempty"`
	SeverityNotIn []codeissue.Severity `json:"severityNotIn,omitempty"`

	// "type" field predicates.
	Type      *codeissue.Type  `json:"type,omitempty"`
	TypeNEQ   *codeissue.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []codeissue.Type `json:"typeIn,omitempty"`
	TypeNotIn []codeissue.Type `json:"typeNotIn,omitempty"`

	// "scan" edge predicates.
	HasScan     *bool                 `json:"hasScan,omitempty"`
	HasScanWith []*CodeScanWhereInput `json:"hasScanWith,omitempty"`
}

CodeIssueWhereInput represents a where input for filtering CodeIssue queries.

func (*CodeIssueWhereInput) Filter

Filter applies the CodeIssueWhereInput filter on the CodeIssueQuery builder.

func (*CodeIssueWhereInput) P

P returns a predicate for filtering codeissues. An error is returned if the input is empty or invalid.

type CodeIssues

type CodeIssues []*CodeIssue

CodeIssues is a parsable slice of CodeIssue.

type CodeScan

type CodeScan struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Tool holds the value of the "tool" field.
	Tool string `json:"tool,omitempty"`
	// Time holds the value of the "time" field.
	Time time.Time `json:"time,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the CodeScanQuery when eager-loading is set.
	Edges CodeScanEdges `json:"edges"`
	// contains filtered or unexported fields
}

CodeScan is the model entity for the CodeScan schema.

func (*CodeScan) Components

func (cs *CodeScan) Components(ctx context.Context) ([]*ReleaseComponent, error)

func (*CodeScan) Entry

func (cs *CodeScan) Entry(ctx context.Context) (*ReleaseEntry, error)

func (*CodeScan) Issues

func (cs *CodeScan) Issues(ctx context.Context) ([]*CodeIssue, error)

func (*CodeScan) Licenses

func (cs *CodeScan) Licenses(ctx context.Context) ([]*ReleaseLicense, error)

func (*CodeScan) Node

func (cs *CodeScan) Node(ctx context.Context) (node *Node, err error)

func (*CodeScan) QueryComponents

func (cs *CodeScan) QueryComponents() *ReleaseComponentQuery

QueryComponents queries the "components" edge of the CodeScan entity.

func (*CodeScan) QueryEntry

func (cs *CodeScan) QueryEntry() *ReleaseEntryQuery

QueryEntry queries the "entry" edge of the CodeScan entity.

func (*CodeScan) QueryIssues

func (cs *CodeScan) QueryIssues() *CodeIssueQuery

QueryIssues queries the "issues" edge of the CodeScan entity.

func (*CodeScan) QueryLicenses

func (cs *CodeScan) QueryLicenses() *ReleaseLicenseQuery

QueryLicenses queries the "licenses" edge of the CodeScan entity.

func (*CodeScan) QueryRelease

func (cs *CodeScan) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the CodeScan entity.

func (*CodeScan) QueryVulnerabilities

func (cs *CodeScan) QueryVulnerabilities() *ReleaseVulnerabilityQuery

QueryVulnerabilities queries the "vulnerabilities" edge of the CodeScan entity.

func (*CodeScan) Release

func (cs *CodeScan) Release(ctx context.Context) (*Release, error)

func (*CodeScan) String

func (cs *CodeScan) String() string

String implements the fmt.Stringer.

func (*CodeScan) ToEdge

func (cs *CodeScan) ToEdge(order *CodeScanOrder) *CodeScanEdge

ToEdge converts CodeScan into CodeScanEdge.

func (*CodeScan) Unwrap

func (cs *CodeScan) Unwrap() *CodeScan

Unwrap unwraps the CodeScan entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*CodeScan) Update

func (cs *CodeScan) Update() *CodeScanUpdateOne

Update returns a builder for updating this CodeScan. Note that you need to call CodeScan.Unwrap() before calling this method if this CodeScan was returned from a transaction, and the transaction was committed or rolled back.

func (*CodeScan) Vulnerabilities

func (cs *CodeScan) Vulnerabilities(ctx context.Context) ([]*ReleaseVulnerability, error)

type CodeScanClient

type CodeScanClient struct {
	// contains filtered or unexported fields
}

CodeScanClient is a client for the CodeScan schema.

func NewCodeScanClient

func NewCodeScanClient(c config) *CodeScanClient

NewCodeScanClient returns a client for the CodeScan from the given config.

func (*CodeScanClient) Create

func (c *CodeScanClient) Create() *CodeScanCreate

Create returns a create builder for CodeScan.

func (*CodeScanClient) CreateBulk

func (c *CodeScanClient) CreateBulk(builders ...*CodeScanCreate) *CodeScanCreateBulk

CreateBulk returns a builder for creating a bulk of CodeScan entities.

func (*CodeScanClient) Delete

func (c *CodeScanClient) Delete() *CodeScanDelete

Delete returns a delete builder for CodeScan.

func (*CodeScanClient) DeleteOne

func (c *CodeScanClient) DeleteOne(cs *CodeScan) *CodeScanDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*CodeScanClient) DeleteOneID

func (c *CodeScanClient) DeleteOneID(id int) *CodeScanDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*CodeScanClient) Get

func (c *CodeScanClient) Get(ctx context.Context, id int) (*CodeScan, error)

Get returns a CodeScan entity by its id.

func (*CodeScanClient) GetX

func (c *CodeScanClient) GetX(ctx context.Context, id int) *CodeScan

GetX is like Get, but panics if an error occurs.

func (*CodeScanClient) Hooks

func (c *CodeScanClient) Hooks() []Hook

Hooks returns the client hooks.

func (*CodeScanClient) Query

func (c *CodeScanClient) Query() *CodeScanQuery

Query returns a query builder for CodeScan.

func (*CodeScanClient) QueryComponents

func (c *CodeScanClient) QueryComponents(cs *CodeScan) *ReleaseComponentQuery

QueryComponents queries the components edge of a CodeScan.

func (*CodeScanClient) QueryEntry

func (c *CodeScanClient) QueryEntry(cs *CodeScan) *ReleaseEntryQuery

QueryEntry queries the entry edge of a CodeScan.

func (*CodeScanClient) QueryIssues

func (c *CodeScanClient) QueryIssues(cs *CodeScan) *CodeIssueQuery

QueryIssues queries the issues edge of a CodeScan.

func (*CodeScanClient) QueryLicenses

func (c *CodeScanClient) QueryLicenses(cs *CodeScan) *ReleaseLicenseQuery

QueryLicenses queries the licenses edge of a CodeScan.

func (*CodeScanClient) QueryRelease

func (c *CodeScanClient) QueryRelease(cs *CodeScan) *ReleaseQuery

QueryRelease queries the release edge of a CodeScan.

func (*CodeScanClient) QueryVulnerabilities

func (c *CodeScanClient) QueryVulnerabilities(cs *CodeScan) *ReleaseVulnerabilityQuery

QueryVulnerabilities queries the vulnerabilities edge of a CodeScan.

func (*CodeScanClient) Update

func (c *CodeScanClient) Update() *CodeScanUpdate

Update returns an update builder for CodeScan.

func (*CodeScanClient) UpdateOne

func (c *CodeScanClient) UpdateOne(cs *CodeScan) *CodeScanUpdateOne

UpdateOne returns an update builder for the given entity.

func (*CodeScanClient) UpdateOneID

func (c *CodeScanClient) UpdateOneID(id int) *CodeScanUpdateOne

UpdateOneID returns an update builder for the given id.

func (*CodeScanClient) Use

func (c *CodeScanClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `codescan.Hooks(f(g(h())))`.

type CodeScanConnection

type CodeScanConnection struct {
	Edges      []*CodeScanEdge `json:"edges"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

CodeScanConnection is the connection containing edges to CodeScan.

type CodeScanCreate

type CodeScanCreate struct {
	// contains filtered or unexported fields
}

CodeScanCreate is the builder for creating a CodeScan entity.

func (*CodeScanCreate) AddComponentIDs

func (csc *CodeScanCreate) AddComponentIDs(ids ...int) *CodeScanCreate

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by IDs.

func (*CodeScanCreate) AddComponents

func (csc *CodeScanCreate) AddComponents(r ...*ReleaseComponent) *CodeScanCreate

AddComponents adds the "components" edges to the ReleaseComponent entity.

func (*CodeScanCreate) AddIssueIDs

func (csc *CodeScanCreate) AddIssueIDs(ids ...int) *CodeScanCreate

AddIssueIDs adds the "issues" edge to the CodeIssue entity by IDs.

func (*CodeScanCreate) AddIssues

func (csc *CodeScanCreate) AddIssues(c ...*CodeIssue) *CodeScanCreate

AddIssues adds the "issues" edges to the CodeIssue entity.

func (*CodeScanCreate) AddLicenseIDs

func (csc *CodeScanCreate) AddLicenseIDs(ids ...int) *CodeScanCreate

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*CodeScanCreate) AddLicenses

func (csc *CodeScanCreate) AddLicenses(r ...*ReleaseLicense) *CodeScanCreate

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*CodeScanCreate) AddVulnerabilities

func (csc *CodeScanCreate) AddVulnerabilities(r ...*ReleaseVulnerability) *CodeScanCreate

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*CodeScanCreate) AddVulnerabilityIDs

func (csc *CodeScanCreate) AddVulnerabilityIDs(ids ...int) *CodeScanCreate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*CodeScanCreate) Exec

func (csc *CodeScanCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeScanCreate) ExecX

func (csc *CodeScanCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeScanCreate) Mutation

func (csc *CodeScanCreate) Mutation() *CodeScanMutation

Mutation returns the CodeScanMutation object of the builder.

func (*CodeScanCreate) Save

func (csc *CodeScanCreate) Save(ctx context.Context) (*CodeScan, error)

Save creates the CodeScan in the database.

func (*CodeScanCreate) SaveX

func (csc *CodeScanCreate) SaveX(ctx context.Context) *CodeScan

SaveX calls Save and panics if Save returns an error.

func (*CodeScanCreate) SetEntry

func (csc *CodeScanCreate) SetEntry(r *ReleaseEntry) *CodeScanCreate

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*CodeScanCreate) SetEntryID

func (csc *CodeScanCreate) SetEntryID(id int) *CodeScanCreate

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*CodeScanCreate) SetMetadata

func (csc *CodeScanCreate) SetMetadata(s schema.Metadata) *CodeScanCreate

SetMetadata sets the "metadata" field.

func (*CodeScanCreate) SetModelCreate

func (cs *CodeScanCreate) SetModelCreate(model *CodeScanModelCreate) *CodeScanCreate

func (*CodeScanCreate) SetNillableEntryID

func (csc *CodeScanCreate) SetNillableEntryID(id *int) *CodeScanCreate

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*CodeScanCreate) SetNillableTime

func (csc *CodeScanCreate) SetNillableTime(t *time.Time) *CodeScanCreate

SetNillableTime sets the "time" field if the given value is not nil.

func (*CodeScanCreate) SetRelease

func (csc *CodeScanCreate) SetRelease(r *Release) *CodeScanCreate

SetRelease sets the "release" edge to the Release entity.

func (*CodeScanCreate) SetReleaseID

func (csc *CodeScanCreate) SetReleaseID(id int) *CodeScanCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*CodeScanCreate) SetTime

func (csc *CodeScanCreate) SetTime(t time.Time) *CodeScanCreate

SetTime sets the "time" field.

func (*CodeScanCreate) SetTool

func (csc *CodeScanCreate) SetTool(s string) *CodeScanCreate

SetTool sets the "tool" field.

type CodeScanCreateBulk

type CodeScanCreateBulk struct {
	// contains filtered or unexported fields
}

CodeScanCreateBulk is the builder for creating many CodeScan entities in bulk.

func (*CodeScanCreateBulk) Exec

func (cscb *CodeScanCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeScanCreateBulk) ExecX

func (cscb *CodeScanCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeScanCreateBulk) Save

func (cscb *CodeScanCreateBulk) Save(ctx context.Context) ([]*CodeScan, error)

Save creates the CodeScan entities in the database.

func (*CodeScanCreateBulk) SaveX

func (cscb *CodeScanCreateBulk) SaveX(ctx context.Context) []*CodeScan

SaveX is like Save, but panics if an error occurs.

type CodeScanDelete

type CodeScanDelete struct {
	// contains filtered or unexported fields
}

CodeScanDelete is the builder for deleting a CodeScan entity.

func (*CodeScanDelete) Exec

func (csd *CodeScanDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*CodeScanDelete) ExecX

func (csd *CodeScanDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*CodeScanDelete) Where

func (csd *CodeScanDelete) Where(ps ...predicate.CodeScan) *CodeScanDelete

Where appends a list predicates to the CodeScanDelete builder.

type CodeScanDeleteOne

type CodeScanDeleteOne struct {
	// contains filtered or unexported fields
}

CodeScanDeleteOne is the builder for deleting a single CodeScan entity.

func (*CodeScanDeleteOne) Exec

func (csdo *CodeScanDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*CodeScanDeleteOne) ExecX

func (csdo *CodeScanDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type CodeScanEdge

type CodeScanEdge struct {
	Node   *CodeScan `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

CodeScanEdge is the edge representation of CodeScan.

type CodeScanEdges

type CodeScanEdges struct {
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Entry holds the value of the entry edge.
	Entry *ReleaseEntry `json:"entry,omitempty"`
	// Issues holds the value of the issues edge.
	Issues []*CodeIssue `json:"issues,omitempty"`
	// Vulnerabilities holds the value of the vulnerabilities edge.
	Vulnerabilities []*ReleaseVulnerability `json:"vulnerabilities,omitempty"`
	// Licenses holds the value of the licenses edge.
	Licenses []*ReleaseLicense `json:"licenses,omitempty"`
	// Components holds the value of the components edge.
	Components []*ReleaseComponent `json:"components,omitempty"`
	// contains filtered or unexported fields
}

CodeScanEdges holds the relations/edges for other nodes in the graph.

func (CodeScanEdges) ComponentsOrErr

func (e CodeScanEdges) ComponentsOrErr() ([]*ReleaseComponent, error)

ComponentsOrErr returns the Components value or an error if the edge was not loaded in eager-loading.

func (CodeScanEdges) EntryOrErr

func (e CodeScanEdges) EntryOrErr() (*ReleaseEntry, error)

EntryOrErr returns the Entry value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (CodeScanEdges) IssuesOrErr

func (e CodeScanEdges) IssuesOrErr() ([]*CodeIssue, error)

IssuesOrErr returns the Issues value or an error if the edge was not loaded in eager-loading.

func (CodeScanEdges) LicensesOrErr

func (e CodeScanEdges) LicensesOrErr() ([]*ReleaseLicense, error)

LicensesOrErr returns the Licenses value or an error if the edge was not loaded in eager-loading.

func (CodeScanEdges) ReleaseOrErr

func (e CodeScanEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (CodeScanEdges) VulnerabilitiesOrErr

func (e CodeScanEdges) VulnerabilitiesOrErr() ([]*ReleaseVulnerability, error)

VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge was not loaded in eager-loading.

type CodeScanGroupBy

type CodeScanGroupBy struct {
	// contains filtered or unexported fields
}

CodeScanGroupBy is the group-by builder for CodeScan entities.

func (*CodeScanGroupBy) Aggregate

func (csgb *CodeScanGroupBy) Aggregate(fns ...AggregateFunc) *CodeScanGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*CodeScanGroupBy) Bool

func (csgb *CodeScanGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) BoolX

func (csgb *CodeScanGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*CodeScanGroupBy) Bools

func (csgb *CodeScanGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) BoolsX

func (csgb *CodeScanGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*CodeScanGroupBy) Float64

func (csgb *CodeScanGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) Float64X

func (csgb *CodeScanGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*CodeScanGroupBy) Float64s

func (csgb *CodeScanGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) Float64sX

func (csgb *CodeScanGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*CodeScanGroupBy) Int

func (csgb *CodeScanGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) IntX

func (csgb *CodeScanGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*CodeScanGroupBy) Ints

func (csgb *CodeScanGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) IntsX

func (csgb *CodeScanGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*CodeScanGroupBy) Scan

func (csgb *CodeScanGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*CodeScanGroupBy) ScanX

func (csgb *CodeScanGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*CodeScanGroupBy) String

func (csgb *CodeScanGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) StringX

func (csgb *CodeScanGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*CodeScanGroupBy) Strings

func (csgb *CodeScanGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*CodeScanGroupBy) StringsX

func (csgb *CodeScanGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type CodeScanModelCreate

type CodeScanModelCreate struct {
	Tool     *string          `json:"tool,omitempty" validate:"required" mapstructure:"tool"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewCodeScanModelCreate

func NewCodeScanModelCreate() *CodeScanModelCreate

func (*CodeScanModelCreate) SetMetadata

func (cs *CodeScanModelCreate) SetMetadata(value schema.Metadata) *CodeScanModelCreate

func (*CodeScanModelCreate) SetTime

func (cs *CodeScanModelCreate) SetTime(value time.Time) *CodeScanModelCreate

func (*CodeScanModelCreate) SetTool

func (cs *CodeScanModelCreate) SetTool(value string) *CodeScanModelCreate

type CodeScanModelRead

type CodeScanModelRead struct {
	Tool     *string          `json:"tool,omitempty" validate:"required" mapstructure:"tool"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	ID       *int             `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewCodeScanModelRead

func NewCodeScanModelRead() *CodeScanModelRead

func (*CodeScanModelRead) FromEnt

func (cs *CodeScanModelRead) FromEnt(value *CodeScan) *CodeScanModelRead

type CodeScanModelUpdate

type CodeScanModelUpdate struct {
	Tool     *string          `json:"tool,omitempty"  mapstructure:"tool"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewCodeScanModelUpdate

func NewCodeScanModelUpdate() *CodeScanModelUpdate

func (*CodeScanModelUpdate) SetMetadata

func (cs *CodeScanModelUpdate) SetMetadata(value schema.Metadata) *CodeScanModelUpdate

func (*CodeScanModelUpdate) SetTime

func (cs *CodeScanModelUpdate) SetTime(value time.Time) *CodeScanModelUpdate

func (*CodeScanModelUpdate) SetTool

func (cs *CodeScanModelUpdate) SetTool(value string) *CodeScanModelUpdate

type CodeScanMutation

type CodeScanMutation struct {
	// contains filtered or unexported fields
}

CodeScanMutation represents an operation that mutates the CodeScan nodes in the graph.

func (*CodeScanMutation) AddComponentIDs

func (m *CodeScanMutation) AddComponentIDs(ids ...int)

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by ids.

func (*CodeScanMutation) AddField

func (m *CodeScanMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*CodeScanMutation) AddIssueIDs

func (m *CodeScanMutation) AddIssueIDs(ids ...int)

AddIssueIDs adds the "issues" edge to the CodeIssue entity by ids.

func (*CodeScanMutation) AddLicenseIDs

func (m *CodeScanMutation) AddLicenseIDs(ids ...int)

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by ids.

func (*CodeScanMutation) AddVulnerabilityIDs

func (m *CodeScanMutation) AddVulnerabilityIDs(ids ...int)

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by ids.

func (*CodeScanMutation) AddedEdges

func (m *CodeScanMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*CodeScanMutation) AddedField

func (m *CodeScanMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*CodeScanMutation) AddedFields

func (m *CodeScanMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*CodeScanMutation) AddedIDs

func (m *CodeScanMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*CodeScanMutation) ClearComponents

func (m *CodeScanMutation) ClearComponents()

ClearComponents clears the "components" edge to the ReleaseComponent entity.

func (*CodeScanMutation) ClearEdge

func (m *CodeScanMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*CodeScanMutation) ClearEntry

func (m *CodeScanMutation) ClearEntry()

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*CodeScanMutation) ClearField

func (m *CodeScanMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*CodeScanMutation) ClearIssues

func (m *CodeScanMutation) ClearIssues()

ClearIssues clears the "issues" edge to the CodeIssue entity.

func (*CodeScanMutation) ClearLicenses

func (m *CodeScanMutation) ClearLicenses()

ClearLicenses clears the "licenses" edge to the ReleaseLicense entity.

func (*CodeScanMutation) ClearMetadata

func (m *CodeScanMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*CodeScanMutation) ClearRelease

func (m *CodeScanMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*CodeScanMutation) ClearVulnerabilities

func (m *CodeScanMutation) ClearVulnerabilities()

ClearVulnerabilities clears the "vulnerabilities" edge to the ReleaseVulnerability entity.

func (*CodeScanMutation) ClearedEdges

func (m *CodeScanMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*CodeScanMutation) ClearedFields

func (m *CodeScanMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (CodeScanMutation) Client

func (m CodeScanMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*CodeScanMutation) ComponentsCleared

func (m *CodeScanMutation) ComponentsCleared() bool

ComponentsCleared reports if the "components" edge to the ReleaseComponent entity was cleared.

func (*CodeScanMutation) ComponentsIDs

func (m *CodeScanMutation) ComponentsIDs() (ids []int)

ComponentsIDs returns the "components" edge IDs in the mutation.

func (*CodeScanMutation) EdgeCleared

func (m *CodeScanMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*CodeScanMutation) EntryCleared

func (m *CodeScanMutation) EntryCleared() bool

EntryCleared reports if the "entry" edge to the ReleaseEntry entity was cleared.

func (*CodeScanMutation) EntryID

func (m *CodeScanMutation) EntryID() (id int, exists bool)

EntryID returns the "entry" edge ID in the mutation.

func (*CodeScanMutation) EntryIDs

func (m *CodeScanMutation) EntryIDs() (ids []int)

EntryIDs returns the "entry" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EntryID instead. It exists only for internal usage by the builders.

func (*CodeScanMutation) Field

func (m *CodeScanMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*CodeScanMutation) FieldCleared

func (m *CodeScanMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*CodeScanMutation) Fields

func (m *CodeScanMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*CodeScanMutation) ID

func (m *CodeScanMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*CodeScanMutation) IssuesCleared

func (m *CodeScanMutation) IssuesCleared() bool

IssuesCleared reports if the "issues" edge to the CodeIssue entity was cleared.

func (*CodeScanMutation) IssuesIDs

func (m *CodeScanMutation) IssuesIDs() (ids []int)

IssuesIDs returns the "issues" edge IDs in the mutation.

func (*CodeScanMutation) LicensesCleared

func (m *CodeScanMutation) LicensesCleared() bool

LicensesCleared reports if the "licenses" edge to the ReleaseLicense entity was cleared.

func (*CodeScanMutation) LicensesIDs

func (m *CodeScanMutation) LicensesIDs() (ids []int)

LicensesIDs returns the "licenses" edge IDs in the mutation.

func (*CodeScanMutation) Metadata

func (m *CodeScanMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*CodeScanMutation) MetadataCleared

func (m *CodeScanMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*CodeScanMutation) OldField

func (m *CodeScanMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*CodeScanMutation) OldMetadata

func (m *CodeScanMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the CodeScan entity. If the CodeScan object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeScanMutation) OldTime

func (m *CodeScanMutation) OldTime(ctx context.Context) (v time.Time, err error)

OldTime returns the old "time" field's value of the CodeScan entity. If the CodeScan object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeScanMutation) OldTool

func (m *CodeScanMutation) OldTool(ctx context.Context) (v string, err error)

OldTool returns the old "tool" field's value of the CodeScan entity. If the CodeScan object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*CodeScanMutation) Op

func (m *CodeScanMutation) Op() Op

Op returns the operation name.

func (*CodeScanMutation) ReleaseCleared

func (m *CodeScanMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*CodeScanMutation) ReleaseID

func (m *CodeScanMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*CodeScanMutation) ReleaseIDs

func (m *CodeScanMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*CodeScanMutation) RemoveComponentIDs

func (m *CodeScanMutation) RemoveComponentIDs(ids ...int)

RemoveComponentIDs removes the "components" edge to the ReleaseComponent entity by IDs.

func (*CodeScanMutation) RemoveIssueIDs

func (m *CodeScanMutation) RemoveIssueIDs(ids ...int)

RemoveIssueIDs removes the "issues" edge to the CodeIssue entity by IDs.

func (*CodeScanMutation) RemoveLicenseIDs

func (m *CodeScanMutation) RemoveLicenseIDs(ids ...int)

RemoveLicenseIDs removes the "licenses" edge to the ReleaseLicense entity by IDs.

func (*CodeScanMutation) RemoveVulnerabilityIDs

func (m *CodeScanMutation) RemoveVulnerabilityIDs(ids ...int)

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*CodeScanMutation) RemovedComponentsIDs

func (m *CodeScanMutation) RemovedComponentsIDs() (ids []int)

RemovedComponents returns the removed IDs of the "components" edge to the ReleaseComponent entity.

func (*CodeScanMutation) RemovedEdges

func (m *CodeScanMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*CodeScanMutation) RemovedIDs

func (m *CodeScanMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*CodeScanMutation) RemovedIssuesIDs

func (m *CodeScanMutation) RemovedIssuesIDs() (ids []int)

RemovedIssues returns the removed IDs of the "issues" edge to the CodeIssue entity.

func (*CodeScanMutation) RemovedLicensesIDs

func (m *CodeScanMutation) RemovedLicensesIDs() (ids []int)

RemovedLicenses returns the removed IDs of the "licenses" edge to the ReleaseLicense entity.

func (*CodeScanMutation) RemovedVulnerabilitiesIDs

func (m *CodeScanMutation) RemovedVulnerabilitiesIDs() (ids []int)

RemovedVulnerabilities returns the removed IDs of the "vulnerabilities" edge to the ReleaseVulnerability entity.

func (*CodeScanMutation) ResetComponents

func (m *CodeScanMutation) ResetComponents()

ResetComponents resets all changes to the "components" edge.

func (*CodeScanMutation) ResetEdge

func (m *CodeScanMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*CodeScanMutation) ResetEntry

func (m *CodeScanMutation) ResetEntry()

ResetEntry resets all changes to the "entry" edge.

func (*CodeScanMutation) ResetField

func (m *CodeScanMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*CodeScanMutation) ResetIssues

func (m *CodeScanMutation) ResetIssues()

ResetIssues resets all changes to the "issues" edge.

func (*CodeScanMutation) ResetLicenses

func (m *CodeScanMutation) ResetLicenses()

ResetLicenses resets all changes to the "licenses" edge.

func (*CodeScanMutation) ResetMetadata

func (m *CodeScanMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*CodeScanMutation) ResetRelease

func (m *CodeScanMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*CodeScanMutation) ResetTime

func (m *CodeScanMutation) ResetTime()

ResetTime resets all changes to the "time" field.

func (*CodeScanMutation) ResetTool

func (m *CodeScanMutation) ResetTool()

ResetTool resets all changes to the "tool" field.

func (*CodeScanMutation) ResetVulnerabilities

func (m *CodeScanMutation) ResetVulnerabilities()

ResetVulnerabilities resets all changes to the "vulnerabilities" edge.

func (*CodeScanMutation) SetEntryID

func (m *CodeScanMutation) SetEntryID(id int)

SetEntryID sets the "entry" edge to the ReleaseEntry entity by id.

func (*CodeScanMutation) SetField

func (m *CodeScanMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*CodeScanMutation) SetMetadata

func (m *CodeScanMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*CodeScanMutation) SetModelCreate

func (cs *CodeScanMutation) SetModelCreate(model *CodeScanModelCreate) *CodeScanMutation

func (*CodeScanMutation) SetModelUpdate

func (cs *CodeScanMutation) SetModelUpdate(model *CodeScanModelUpdate) *CodeScanMutation

func (*CodeScanMutation) SetReleaseID

func (m *CodeScanMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*CodeScanMutation) SetTime

func (m *CodeScanMutation) SetTime(t time.Time)

SetTime sets the "time" field.

func (*CodeScanMutation) SetTool

func (m *CodeScanMutation) SetTool(s string)

SetTool sets the "tool" field.

func (*CodeScanMutation) Time

func (m *CodeScanMutation) Time() (r time.Time, exists bool)

Time returns the value of the "time" field in the mutation.

func (*CodeScanMutation) Tool

func (m *CodeScanMutation) Tool() (r string, exists bool)

Tool returns the value of the "tool" field in the mutation.

func (CodeScanMutation) Tx

func (m CodeScanMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*CodeScanMutation) Type

func (m *CodeScanMutation) Type() string

Type returns the node type of this mutation (CodeScan).

func (*CodeScanMutation) VulnerabilitiesCleared

func (m *CodeScanMutation) VulnerabilitiesCleared() bool

VulnerabilitiesCleared reports if the "vulnerabilities" edge to the ReleaseVulnerability entity was cleared.

func (*CodeScanMutation) VulnerabilitiesIDs

func (m *CodeScanMutation) VulnerabilitiesIDs() (ids []int)

VulnerabilitiesIDs returns the "vulnerabilities" edge IDs in the mutation.

func (*CodeScanMutation) Where

func (m *CodeScanMutation) Where(ps ...predicate.CodeScan)

Where appends a list predicates to the CodeScanMutation builder.

type CodeScanOrder

type CodeScanOrder struct {
	Direction OrderDirection      `json:"direction"`
	Field     *CodeScanOrderField `json:"field"`
}

CodeScanOrder defines the ordering of CodeScan.

type CodeScanOrderField

type CodeScanOrderField struct {
	// contains filtered or unexported fields
}

CodeScanOrderField defines the ordering field of CodeScan.

func (CodeScanOrderField) MarshalGQL

func (f CodeScanOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (CodeScanOrderField) String

func (f CodeScanOrderField) String() string

String implement fmt.Stringer interface.

func (*CodeScanOrderField) UnmarshalGQL

func (f *CodeScanOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type CodeScanPaginateOption

type CodeScanPaginateOption func(*codeScanPager) error

CodeScanPaginateOption enables pagination customization.

func WithCodeScanFilter

func WithCodeScanFilter(filter func(*CodeScanQuery) (*CodeScanQuery, error)) CodeScanPaginateOption

WithCodeScanFilter configures pagination filter.

func WithCodeScanOrder

func WithCodeScanOrder(order *CodeScanOrder) CodeScanPaginateOption

WithCodeScanOrder configures pagination ordering.

type CodeScanQuery

type CodeScanQuery struct {
	// contains filtered or unexported fields
}

CodeScanQuery is the builder for querying CodeScan entities.

func (*CodeScanQuery) All

func (csq *CodeScanQuery) All(ctx context.Context) ([]*CodeScan, error)

All executes the query and returns a list of CodeScans.

func (*CodeScanQuery) AllX

func (csq *CodeScanQuery) AllX(ctx context.Context) []*CodeScan

AllX is like All, but panics if an error occurs.

func (*CodeScanQuery) Clone

func (csq *CodeScanQuery) Clone() *CodeScanQuery

Clone returns a duplicate of the CodeScanQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*CodeScanQuery) CollectFields

func (cs *CodeScanQuery) CollectFields(ctx context.Context, satisfies ...string) *CodeScanQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*CodeScanQuery) Count

func (csq *CodeScanQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*CodeScanQuery) CountX

func (csq *CodeScanQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*CodeScanQuery) Exist

func (csq *CodeScanQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*CodeScanQuery) ExistX

func (csq *CodeScanQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*CodeScanQuery) Filter

func (cs *CodeScanQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *CodeScanOrder, where *CodeScanWhereInput,
) ([]*CodeScan, error)

func (*CodeScanQuery) First

func (csq *CodeScanQuery) First(ctx context.Context) (*CodeScan, error)

First returns the first CodeScan entity from the query. Returns a *NotFoundError when no CodeScan was found.

func (*CodeScanQuery) FirstID

func (csq *CodeScanQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first CodeScan ID from the query. Returns a *NotFoundError when no CodeScan ID was found.

func (*CodeScanQuery) FirstIDX

func (csq *CodeScanQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*CodeScanQuery) FirstX

func (csq *CodeScanQuery) FirstX(ctx context.Context) *CodeScan

FirstX is like First, but panics if an error occurs.

func (*CodeScanQuery) GroupBy

func (csq *CodeScanQuery) GroupBy(field string, fields ...string) *CodeScanGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Tool string `json:"tool,omitempty"`
	Count int `json:"count,omitempty"`
}

client.CodeScan.Query().
	GroupBy(codescan.FieldTool).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*CodeScanQuery) IDs

func (csq *CodeScanQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of CodeScan IDs.

func (*CodeScanQuery) IDsX

func (csq *CodeScanQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*CodeScanQuery) Limit

func (csq *CodeScanQuery) Limit(limit int) *CodeScanQuery

Limit adds a limit step to the query.

func (*CodeScanQuery) Offset

func (csq *CodeScanQuery) Offset(offset int) *CodeScanQuery

Offset adds an offset step to the query.

func (*CodeScanQuery) Only

func (csq *CodeScanQuery) Only(ctx context.Context) (*CodeScan, error)

Only returns a single CodeScan entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one CodeScan entity is not found. Returns a *NotFoundError when no CodeScan entities are found.

func (*CodeScanQuery) OnlyID

func (csq *CodeScanQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only CodeScan ID in the query. Returns a *NotSingularError when exactly one CodeScan ID is not found. Returns a *NotFoundError when no entities are found.

func (*CodeScanQuery) OnlyIDX

func (csq *CodeScanQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*CodeScanQuery) OnlyX

func (csq *CodeScanQuery) OnlyX(ctx context.Context) *CodeScan

OnlyX is like Only, but panics if an error occurs.

func (*CodeScanQuery) Order

func (csq *CodeScanQuery) Order(o ...OrderFunc) *CodeScanQuery

Order adds an order step to the query.

func (*CodeScanQuery) Paginate

func (cs *CodeScanQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...CodeScanPaginateOption,
) (*CodeScanConnection, error)

Paginate executes the query and returns a relay based cursor connection to CodeScan.

func (*CodeScanQuery) QueryComponents

func (csq *CodeScanQuery) QueryComponents() *ReleaseComponentQuery

QueryComponents chains the current query on the "components" edge.

func (*CodeScanQuery) QueryEntry

func (csq *CodeScanQuery) QueryEntry() *ReleaseEntryQuery

QueryEntry chains the current query on the "entry" edge.

func (*CodeScanQuery) QueryIssues

func (csq *CodeScanQuery) QueryIssues() *CodeIssueQuery

QueryIssues chains the current query on the "issues" edge.

func (*CodeScanQuery) QueryLicenses

func (csq *CodeScanQuery) QueryLicenses() *ReleaseLicenseQuery

QueryLicenses chains the current query on the "licenses" edge.

func (*CodeScanQuery) QueryRelease

func (csq *CodeScanQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*CodeScanQuery) QueryVulnerabilities

func (csq *CodeScanQuery) QueryVulnerabilities() *ReleaseVulnerabilityQuery

QueryVulnerabilities chains the current query on the "vulnerabilities" edge.

func (*CodeScanQuery) Select

func (csq *CodeScanQuery) Select(fields ...string) *CodeScanSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Tool string `json:"tool,omitempty"`
}

client.CodeScan.Query().
	Select(codescan.FieldTool).
	Scan(ctx, &v)

func (*CodeScanQuery) Unique

func (csq *CodeScanQuery) Unique(unique bool) *CodeScanQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*CodeScanQuery) Where

func (csq *CodeScanQuery) Where(ps ...predicate.CodeScan) *CodeScanQuery

Where adds a new predicate for the CodeScanQuery builder.

func (*CodeScanQuery) WhereInput

func (cs *CodeScanQuery) WhereInput(input *CodeScanWhereInput) *CodeScanQuery

func (*CodeScanQuery) WithComponents

func (csq *CodeScanQuery) WithComponents(opts ...func(*ReleaseComponentQuery)) *CodeScanQuery

WithComponents tells the query-builder to eager-load the nodes that are connected to the "components" edge. The optional arguments are used to configure the query builder of the edge.

func (*CodeScanQuery) WithEntry

func (csq *CodeScanQuery) WithEntry(opts ...func(*ReleaseEntryQuery)) *CodeScanQuery

WithEntry tells the query-builder to eager-load the nodes that are connected to the "entry" edge. The optional arguments are used to configure the query builder of the edge.

func (*CodeScanQuery) WithIssues

func (csq *CodeScanQuery) WithIssues(opts ...func(*CodeIssueQuery)) *CodeScanQuery

WithIssues tells the query-builder to eager-load the nodes that are connected to the "issues" edge. The optional arguments are used to configure the query builder of the edge.

func (*CodeScanQuery) WithLicenses

func (csq *CodeScanQuery) WithLicenses(opts ...func(*ReleaseLicenseQuery)) *CodeScanQuery

WithLicenses tells the query-builder to eager-load the nodes that are connected to the "licenses" edge. The optional arguments are used to configure the query builder of the edge.

func (*CodeScanQuery) WithRelease

func (csq *CodeScanQuery) WithRelease(opts ...func(*ReleaseQuery)) *CodeScanQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*CodeScanQuery) WithVulnerabilities

func (csq *CodeScanQuery) WithVulnerabilities(opts ...func(*ReleaseVulnerabilityQuery)) *CodeScanQuery

WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge.

type CodeScanSelect

type CodeScanSelect struct {
	*CodeScanQuery
	// contains filtered or unexported fields
}

CodeScanSelect is the builder for selecting fields of CodeScan entities.

func (*CodeScanSelect) Bool

func (css *CodeScanSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) BoolX

func (css *CodeScanSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*CodeScanSelect) Bools

func (css *CodeScanSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) BoolsX

func (css *CodeScanSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*CodeScanSelect) Float64

func (css *CodeScanSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) Float64X

func (css *CodeScanSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*CodeScanSelect) Float64s

func (css *CodeScanSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) Float64sX

func (css *CodeScanSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*CodeScanSelect) Int

func (css *CodeScanSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) IntX

func (css *CodeScanSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*CodeScanSelect) Ints

func (css *CodeScanSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) IntsX

func (css *CodeScanSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*CodeScanSelect) Scan

func (css *CodeScanSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*CodeScanSelect) ScanX

func (css *CodeScanSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*CodeScanSelect) String

func (css *CodeScanSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) StringX

func (css *CodeScanSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*CodeScanSelect) Strings

func (css *CodeScanSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*CodeScanSelect) StringsX

func (css *CodeScanSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type CodeScanUpdate

type CodeScanUpdate struct {
	// contains filtered or unexported fields
}

CodeScanUpdate is the builder for updating CodeScan entities.

func (*CodeScanUpdate) AddComponentIDs

func (csu *CodeScanUpdate) AddComponentIDs(ids ...int) *CodeScanUpdate

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by IDs.

func (*CodeScanUpdate) AddComponents

func (csu *CodeScanUpdate) AddComponents(r ...*ReleaseComponent) *CodeScanUpdate

AddComponents adds the "components" edges to the ReleaseComponent entity.

func (*CodeScanUpdate) AddIssueIDs

func (csu *CodeScanUpdate) AddIssueIDs(ids ...int) *CodeScanUpdate

AddIssueIDs adds the "issues" edge to the CodeIssue entity by IDs.

func (*CodeScanUpdate) AddIssues

func (csu *CodeScanUpdate) AddIssues(c ...*CodeIssue) *CodeScanUpdate

AddIssues adds the "issues" edges to the CodeIssue entity.

func (*CodeScanUpdate) AddLicenseIDs

func (csu *CodeScanUpdate) AddLicenseIDs(ids ...int) *CodeScanUpdate

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*CodeScanUpdate) AddLicenses

func (csu *CodeScanUpdate) AddLicenses(r ...*ReleaseLicense) *CodeScanUpdate

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*CodeScanUpdate) AddVulnerabilities

func (csu *CodeScanUpdate) AddVulnerabilities(r ...*ReleaseVulnerability) *CodeScanUpdate

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*CodeScanUpdate) AddVulnerabilityIDs

func (csu *CodeScanUpdate) AddVulnerabilityIDs(ids ...int) *CodeScanUpdate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*CodeScanUpdate) ClearComponents

func (csu *CodeScanUpdate) ClearComponents() *CodeScanUpdate

ClearComponents clears all "components" edges to the ReleaseComponent entity.

func (*CodeScanUpdate) ClearEntry

func (csu *CodeScanUpdate) ClearEntry() *CodeScanUpdate

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*CodeScanUpdate) ClearIssues

func (csu *CodeScanUpdate) ClearIssues() *CodeScanUpdate

ClearIssues clears all "issues" edges to the CodeIssue entity.

func (*CodeScanUpdate) ClearLicenses

func (csu *CodeScanUpdate) ClearLicenses() *CodeScanUpdate

ClearLicenses clears all "licenses" edges to the ReleaseLicense entity.

func (*CodeScanUpdate) ClearMetadata

func (csu *CodeScanUpdate) ClearMetadata() *CodeScanUpdate

ClearMetadata clears the value of the "metadata" field.

func (*CodeScanUpdate) ClearRelease

func (csu *CodeScanUpdate) ClearRelease() *CodeScanUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*CodeScanUpdate) ClearVulnerabilities

func (csu *CodeScanUpdate) ClearVulnerabilities() *CodeScanUpdate

ClearVulnerabilities clears all "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*CodeScanUpdate) Exec

func (csu *CodeScanUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*CodeScanUpdate) ExecX

func (csu *CodeScanUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeScanUpdate) Mutation

func (csu *CodeScanUpdate) Mutation() *CodeScanMutation

Mutation returns the CodeScanMutation object of the builder.

func (*CodeScanUpdate) RemoveComponentIDs

func (csu *CodeScanUpdate) RemoveComponentIDs(ids ...int) *CodeScanUpdate

RemoveComponentIDs removes the "components" edge to ReleaseComponent entities by IDs.

func (*CodeScanUpdate) RemoveComponents

func (csu *CodeScanUpdate) RemoveComponents(r ...*ReleaseComponent) *CodeScanUpdate

RemoveComponents removes "components" edges to ReleaseComponent entities.

func (*CodeScanUpdate) RemoveIssueIDs

func (csu *CodeScanUpdate) RemoveIssueIDs(ids ...int) *CodeScanUpdate

RemoveIssueIDs removes the "issues" edge to CodeIssue entities by IDs.

func (*CodeScanUpdate) RemoveIssues

func (csu *CodeScanUpdate) RemoveIssues(c ...*CodeIssue) *CodeScanUpdate

RemoveIssues removes "issues" edges to CodeIssue entities.

func (*CodeScanUpdate) RemoveLicenseIDs

func (csu *CodeScanUpdate) RemoveLicenseIDs(ids ...int) *CodeScanUpdate

RemoveLicenseIDs removes the "licenses" edge to ReleaseLicense entities by IDs.

func (*CodeScanUpdate) RemoveLicenses

func (csu *CodeScanUpdate) RemoveLicenses(r ...*ReleaseLicense) *CodeScanUpdate

RemoveLicenses removes "licenses" edges to ReleaseLicense entities.

func (*CodeScanUpdate) RemoveVulnerabilities

func (csu *CodeScanUpdate) RemoveVulnerabilities(r ...*ReleaseVulnerability) *CodeScanUpdate

RemoveVulnerabilities removes "vulnerabilities" edges to ReleaseVulnerability entities.

func (*CodeScanUpdate) RemoveVulnerabilityIDs

func (csu *CodeScanUpdate) RemoveVulnerabilityIDs(ids ...int) *CodeScanUpdate

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReleaseVulnerability entities by IDs.

func (*CodeScanUpdate) Save

func (csu *CodeScanUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*CodeScanUpdate) SaveX

func (csu *CodeScanUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*CodeScanUpdate) SetEntry

func (csu *CodeScanUpdate) SetEntry(r *ReleaseEntry) *CodeScanUpdate

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*CodeScanUpdate) SetEntryID

func (csu *CodeScanUpdate) SetEntryID(id int) *CodeScanUpdate

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*CodeScanUpdate) SetMetadata

func (csu *CodeScanUpdate) SetMetadata(s schema.Metadata) *CodeScanUpdate

SetMetadata sets the "metadata" field.

func (*CodeScanUpdate) SetNillableEntryID

func (csu *CodeScanUpdate) SetNillableEntryID(id *int) *CodeScanUpdate

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*CodeScanUpdate) SetRelease

func (csu *CodeScanUpdate) SetRelease(r *Release) *CodeScanUpdate

SetRelease sets the "release" edge to the Release entity.

func (*CodeScanUpdate) SetReleaseID

func (csu *CodeScanUpdate) SetReleaseID(id int) *CodeScanUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*CodeScanUpdate) Where

func (csu *CodeScanUpdate) Where(ps ...predicate.CodeScan) *CodeScanUpdate

Where appends a list predicates to the CodeScanUpdate builder.

type CodeScanUpdateOne

type CodeScanUpdateOne struct {
	// contains filtered or unexported fields
}

CodeScanUpdateOne is the builder for updating a single CodeScan entity.

func (*CodeScanUpdateOne) AddComponentIDs

func (csuo *CodeScanUpdateOne) AddComponentIDs(ids ...int) *CodeScanUpdateOne

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by IDs.

func (*CodeScanUpdateOne) AddComponents

func (csuo *CodeScanUpdateOne) AddComponents(r ...*ReleaseComponent) *CodeScanUpdateOne

AddComponents adds the "components" edges to the ReleaseComponent entity.

func (*CodeScanUpdateOne) AddIssueIDs

func (csuo *CodeScanUpdateOne) AddIssueIDs(ids ...int) *CodeScanUpdateOne

AddIssueIDs adds the "issues" edge to the CodeIssue entity by IDs.

func (*CodeScanUpdateOne) AddIssues

func (csuo *CodeScanUpdateOne) AddIssues(c ...*CodeIssue) *CodeScanUpdateOne

AddIssues adds the "issues" edges to the CodeIssue entity.

func (*CodeScanUpdateOne) AddLicenseIDs

func (csuo *CodeScanUpdateOne) AddLicenseIDs(ids ...int) *CodeScanUpdateOne

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*CodeScanUpdateOne) AddLicenses

func (csuo *CodeScanUpdateOne) AddLicenses(r ...*ReleaseLicense) *CodeScanUpdateOne

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*CodeScanUpdateOne) AddVulnerabilities

func (csuo *CodeScanUpdateOne) AddVulnerabilities(r ...*ReleaseVulnerability) *CodeScanUpdateOne

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*CodeScanUpdateOne) AddVulnerabilityIDs

func (csuo *CodeScanUpdateOne) AddVulnerabilityIDs(ids ...int) *CodeScanUpdateOne

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*CodeScanUpdateOne) ClearComponents

func (csuo *CodeScanUpdateOne) ClearComponents() *CodeScanUpdateOne

ClearComponents clears all "components" edges to the ReleaseComponent entity.

func (*CodeScanUpdateOne) ClearEntry

func (csuo *CodeScanUpdateOne) ClearEntry() *CodeScanUpdateOne

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*CodeScanUpdateOne) ClearIssues

func (csuo *CodeScanUpdateOne) ClearIssues() *CodeScanUpdateOne

ClearIssues clears all "issues" edges to the CodeIssue entity.

func (*CodeScanUpdateOne) ClearLicenses

func (csuo *CodeScanUpdateOne) ClearLicenses() *CodeScanUpdateOne

ClearLicenses clears all "licenses" edges to the ReleaseLicense entity.

func (*CodeScanUpdateOne) ClearMetadata

func (csuo *CodeScanUpdateOne) ClearMetadata() *CodeScanUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*CodeScanUpdateOne) ClearRelease

func (csuo *CodeScanUpdateOne) ClearRelease() *CodeScanUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*CodeScanUpdateOne) ClearVulnerabilities

func (csuo *CodeScanUpdateOne) ClearVulnerabilities() *CodeScanUpdateOne

ClearVulnerabilities clears all "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*CodeScanUpdateOne) Exec

func (csuo *CodeScanUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*CodeScanUpdateOne) ExecX

func (csuo *CodeScanUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*CodeScanUpdateOne) Mutation

func (csuo *CodeScanUpdateOne) Mutation() *CodeScanMutation

Mutation returns the CodeScanMutation object of the builder.

func (*CodeScanUpdateOne) RemoveComponentIDs

func (csuo *CodeScanUpdateOne) RemoveComponentIDs(ids ...int) *CodeScanUpdateOne

RemoveComponentIDs removes the "components" edge to ReleaseComponent entities by IDs.

func (*CodeScanUpdateOne) RemoveComponents

func (csuo *CodeScanUpdateOne) RemoveComponents(r ...*ReleaseComponent) *CodeScanUpdateOne

RemoveComponents removes "components" edges to ReleaseComponent entities.

func (*CodeScanUpdateOne) RemoveIssueIDs

func (csuo *CodeScanUpdateOne) RemoveIssueIDs(ids ...int) *CodeScanUpdateOne

RemoveIssueIDs removes the "issues" edge to CodeIssue entities by IDs.

func (*CodeScanUpdateOne) RemoveIssues

func (csuo *CodeScanUpdateOne) RemoveIssues(c ...*CodeIssue) *CodeScanUpdateOne

RemoveIssues removes "issues" edges to CodeIssue entities.

func (*CodeScanUpdateOne) RemoveLicenseIDs

func (csuo *CodeScanUpdateOne) RemoveLicenseIDs(ids ...int) *CodeScanUpdateOne

RemoveLicenseIDs removes the "licenses" edge to ReleaseLicense entities by IDs.

func (*CodeScanUpdateOne) RemoveLicenses

func (csuo *CodeScanUpdateOne) RemoveLicenses(r ...*ReleaseLicense) *CodeScanUpdateOne

RemoveLicenses removes "licenses" edges to ReleaseLicense entities.

func (*CodeScanUpdateOne) RemoveVulnerabilities

func (csuo *CodeScanUpdateOne) RemoveVulnerabilities(r ...*ReleaseVulnerability) *CodeScanUpdateOne

RemoveVulnerabilities removes "vulnerabilities" edges to ReleaseVulnerability entities.

func (*CodeScanUpdateOne) RemoveVulnerabilityIDs

func (csuo *CodeScanUpdateOne) RemoveVulnerabilityIDs(ids ...int) *CodeScanUpdateOne

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReleaseVulnerability entities by IDs.

func (*CodeScanUpdateOne) Save

func (csuo *CodeScanUpdateOne) Save(ctx context.Context) (*CodeScan, error)

Save executes the query and returns the updated CodeScan entity.

func (*CodeScanUpdateOne) SaveX

func (csuo *CodeScanUpdateOne) SaveX(ctx context.Context) *CodeScan

SaveX is like Save, but panics if an error occurs.

func (*CodeScanUpdateOne) Select

func (csuo *CodeScanUpdateOne) Select(field string, fields ...string) *CodeScanUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*CodeScanUpdateOne) SetEntry

func (csuo *CodeScanUpdateOne) SetEntry(r *ReleaseEntry) *CodeScanUpdateOne

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*CodeScanUpdateOne) SetEntryID

func (csuo *CodeScanUpdateOne) SetEntryID(id int) *CodeScanUpdateOne

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*CodeScanUpdateOne) SetMetadata

func (csuo *CodeScanUpdateOne) SetMetadata(s schema.Metadata) *CodeScanUpdateOne

SetMetadata sets the "metadata" field.

func (*CodeScanUpdateOne) SetModelCreate

func (cs *CodeScanUpdateOne) SetModelCreate(model *CodeScanModelCreate) *CodeScanUpdateOne

func (*CodeScanUpdateOne) SetModelUpdate

func (cs *CodeScanUpdateOne) SetModelUpdate(model *CodeScanModelUpdate) *CodeScanUpdateOne

func (*CodeScanUpdateOne) SetNillableEntryID

func (csuo *CodeScanUpdateOne) SetNillableEntryID(id *int) *CodeScanUpdateOne

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*CodeScanUpdateOne) SetRelease

func (csuo *CodeScanUpdateOne) SetRelease(r *Release) *CodeScanUpdateOne

SetRelease sets the "release" edge to the Release entity.

func (*CodeScanUpdateOne) SetReleaseID

func (csuo *CodeScanUpdateOne) SetReleaseID(id int) *CodeScanUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

type CodeScanWhereInput

type CodeScanWhereInput struct {
	Not *CodeScanWhereInput   `json:"not,omitempty"`
	Or  []*CodeScanWhereInput `json:"or,omitempty"`
	And []*CodeScanWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "tool" field predicates.
	Tool             *string  `json:"tool,omitempty"`
	ToolNEQ          *string  `json:"toolNEQ,omitempty"`
	ToolIn           []string `json:"toolIn,omitempty"`
	ToolNotIn        []string `json:"toolNotIn,omitempty"`
	ToolGT           *string  `json:"toolGT,omitempty"`
	ToolGTE          *string  `json:"toolGTE,omitempty"`
	ToolLT           *string  `json:"toolLT,omitempty"`
	ToolLTE          *string  `json:"toolLTE,omitempty"`
	ToolContains     *string  `json:"toolContains,omitempty"`
	ToolHasPrefix    *string  `json:"toolHasPrefix,omitempty"`
	ToolHasSuffix    *string  `json:"toolHasSuffix,omitempty"`
	ToolEqualFold    *string  `json:"toolEqualFold,omitempty"`
	ToolContainsFold *string  `json:"toolContainsFold,omitempty"`

	// "time" field predicates.
	Time      *time.Time  `json:"time,omitempty"`
	TimeNEQ   *time.Time  `json:"timeNEQ,omitempty"`
	TimeIn    []time.Time `json:"timeIn,omitempty"`
	TimeNotIn []time.Time `json:"timeNotIn,omitempty"`
	TimeGT    *time.Time  `json:"timeGT,omitempty"`
	TimeGTE   *time.Time  `json:"timeGTE,omitempty"`
	TimeLT    *time.Time  `json:"timeLT,omitempty"`
	TimeLTE   *time.Time  `json:"timeLTE,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "entry" edge predicates.
	HasEntry     *bool                     `json:"hasEntry,omitempty"`
	HasEntryWith []*ReleaseEntryWhereInput `json:"hasEntryWith,omitempty"`

	// "issues" edge predicates.
	HasIssues     *bool                  `json:"hasIssues,omitempty"`
	HasIssuesWith []*CodeIssueWhereInput `json:"hasIssuesWith,omitempty"`

	// "vulnerabilities" edge predicates.
	HasVulnerabilities     *bool                             `json:"hasVulnerabilities,omitempty"`
	HasVulnerabilitiesWith []*ReleaseVulnerabilityWhereInput `json:"hasVulnerabilitiesWith,omitempty"`

	// "licenses" edge predicates.
	HasLicenses     *bool                       `json:"hasLicenses,omitempty"`
	HasLicensesWith []*ReleaseLicenseWhereInput `json:"hasLicensesWith,omitempty"`

	// "components" edge predicates.
	HasComponents     *bool                         `json:"hasComponents,omitempty"`
	HasComponentsWith []*ReleaseComponentWhereInput `json:"hasComponentsWith,omitempty"`
}

CodeScanWhereInput represents a where input for filtering CodeScan queries.

func (*CodeScanWhereInput) Filter

Filter applies the CodeScanWhereInput filter on the CodeScanQuery builder.

func (*CodeScanWhereInput) P

P returns a predicate for filtering codescans. An error is returned if the input is empty or invalid.

type CodeScans

type CodeScans []*CodeScan

CodeScans is a parsable slice of CodeScan.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:

hook := func(next ent.Committer) ent.Committer {
	return ent.CommitFunc(func(context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Commit(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Committer method.

type Component

type Component struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Scheme holds the value of the "scheme" field.
	Scheme string `json:"scheme,omitempty"`
	// Namespace holds the value of the "namespace" field.
	Namespace string `json:"namespace,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Version holds the value of the "version" field.
	Version string `json:"version,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// URL holds the value of the "url" field.
	URL string `json:"url,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Labels holds the value of the "labels" field.
	Labels schema.Labels `json:"labels,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ComponentQuery when eager-loading is set.
	Edges ComponentEdges `json:"edges"`
	// contains filtered or unexported fields
}

Component is the model entity for the Component schema.

func (*Component) Licenses

func (c *Component) Licenses(ctx context.Context) ([]*License, error)

func (*Component) Node

func (c *Component) Node(ctx context.Context) (node *Node, err error)

func (*Component) Owner

func (c *Component) Owner(ctx context.Context) (*Organization, error)

func (*Component) QueryLicenses

func (c *Component) QueryLicenses() *LicenseQuery

QueryLicenses queries the "licenses" edge of the Component entity.

func (*Component) QueryOwner

func (c *Component) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Component entity.

func (*Component) QueryUses

func (c *Component) QueryUses() *ReleaseComponentQuery

QueryUses queries the "uses" edge of the Component entity.

func (*Component) QueryVulnerabilities

func (c *Component) QueryVulnerabilities() *VulnerabilityQuery

QueryVulnerabilities queries the "vulnerabilities" edge of the Component entity.

func (*Component) String

func (c *Component) String() string

String implements the fmt.Stringer.

func (*Component) ToEdge

func (c *Component) ToEdge(order *ComponentOrder) *ComponentEdge

ToEdge converts Component into ComponentEdge.

func (*Component) Unwrap

func (c *Component) Unwrap() *Component

Unwrap unwraps the Component entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Component) Update

func (c *Component) Update() *ComponentUpdateOne

Update returns a builder for updating this Component. Note that you need to call Component.Unwrap() before calling this method if this Component was returned from a transaction, and the transaction was committed or rolled back.

func (*Component) Uses

func (c *Component) Uses(ctx context.Context) ([]*ReleaseComponent, error)

func (*Component) Vulnerabilities

func (c *Component) Vulnerabilities(ctx context.Context) ([]*Vulnerability, error)

type ComponentClient

type ComponentClient struct {
	// contains filtered or unexported fields
}

ComponentClient is a client for the Component schema.

func NewComponentClient

func NewComponentClient(c config) *ComponentClient

NewComponentClient returns a client for the Component from the given config.

func (*ComponentClient) Create

func (c *ComponentClient) Create() *ComponentCreate

Create returns a create builder for Component.

func (*ComponentClient) CreateBulk

func (c *ComponentClient) CreateBulk(builders ...*ComponentCreate) *ComponentCreateBulk

CreateBulk returns a builder for creating a bulk of Component entities.

func (*ComponentClient) Delete

func (c *ComponentClient) Delete() *ComponentDelete

Delete returns a delete builder for Component.

func (*ComponentClient) DeleteOne

func (c *ComponentClient) DeleteOne(co *Component) *ComponentDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ComponentClient) DeleteOneID

func (c *ComponentClient) DeleteOneID(id int) *ComponentDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ComponentClient) Get

func (c *ComponentClient) Get(ctx context.Context, id int) (*Component, error)

Get returns a Component entity by its id.

func (*ComponentClient) GetX

func (c *ComponentClient) GetX(ctx context.Context, id int) *Component

GetX is like Get, but panics if an error occurs.

func (*ComponentClient) Hooks

func (c *ComponentClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ComponentClient) Query

func (c *ComponentClient) Query() *ComponentQuery

Query returns a query builder for Component.

func (*ComponentClient) QueryLicenses

func (c *ComponentClient) QueryLicenses(co *Component) *LicenseQuery

QueryLicenses queries the licenses edge of a Component.

func (*ComponentClient) QueryOwner

func (c *ComponentClient) QueryOwner(co *Component) *OrganizationQuery

QueryOwner queries the owner edge of a Component.

func (*ComponentClient) QueryUses

func (c *ComponentClient) QueryUses(co *Component) *ReleaseComponentQuery

QueryUses queries the uses edge of a Component.

func (*ComponentClient) QueryVulnerabilities

func (c *ComponentClient) QueryVulnerabilities(co *Component) *VulnerabilityQuery

QueryVulnerabilities queries the vulnerabilities edge of a Component.

func (*ComponentClient) Update

func (c *ComponentClient) Update() *ComponentUpdate

Update returns an update builder for Component.

func (*ComponentClient) UpdateOne

func (c *ComponentClient) UpdateOne(co *Component) *ComponentUpdateOne

UpdateOne returns an update builder for the given entity.

func (*ComponentClient) UpdateOneID

func (c *ComponentClient) UpdateOneID(id int) *ComponentUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ComponentClient) Use

func (c *ComponentClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `component.Hooks(f(g(h())))`.

type ComponentConnection

type ComponentConnection struct {
	Edges      []*ComponentEdge `json:"edges"`
	PageInfo   PageInfo         `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

ComponentConnection is the connection containing edges to Component.

type ComponentCreate

type ComponentCreate struct {
	// contains filtered or unexported fields
}

ComponentCreate is the builder for creating a Component entity.

func (*ComponentCreate) AddLicenseIDs

func (cc *ComponentCreate) AddLicenseIDs(ids ...int) *ComponentCreate

AddLicenseIDs adds the "licenses" edge to the License entity by IDs.

func (*ComponentCreate) AddLicenses

func (cc *ComponentCreate) AddLicenses(l ...*License) *ComponentCreate

AddLicenses adds the "licenses" edges to the License entity.

func (*ComponentCreate) AddUseIDs

func (cc *ComponentCreate) AddUseIDs(ids ...int) *ComponentCreate

AddUseIDs adds the "uses" edge to the ReleaseComponent entity by IDs.

func (*ComponentCreate) AddUses

func (cc *ComponentCreate) AddUses(r ...*ReleaseComponent) *ComponentCreate

AddUses adds the "uses" edges to the ReleaseComponent entity.

func (*ComponentCreate) AddVulnerabilities

func (cc *ComponentCreate) AddVulnerabilities(v ...*Vulnerability) *ComponentCreate

AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity.

func (*ComponentCreate) AddVulnerabilityIDs

func (cc *ComponentCreate) AddVulnerabilityIDs(ids ...int) *ComponentCreate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs.

func (*ComponentCreate) Exec

func (cc *ComponentCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ComponentCreate) ExecX

func (cc *ComponentCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ComponentCreate) Mutation

func (cc *ComponentCreate) Mutation() *ComponentMutation

Mutation returns the ComponentMutation object of the builder.

func (*ComponentCreate) Save

func (cc *ComponentCreate) Save(ctx context.Context) (*Component, error)

Save creates the Component in the database.

func (*ComponentCreate) SaveX

func (cc *ComponentCreate) SaveX(ctx context.Context) *Component

SaveX calls Save and panics if Save returns an error.

func (*ComponentCreate) SetDescription

func (cc *ComponentCreate) SetDescription(s string) *ComponentCreate

SetDescription sets the "description" field.

func (*ComponentCreate) SetLabels

func (cc *ComponentCreate) SetLabels(s schema.Labels) *ComponentCreate

SetLabels sets the "labels" field.

func (*ComponentCreate) SetMetadata

func (cc *ComponentCreate) SetMetadata(s schema.Metadata) *ComponentCreate

SetMetadata sets the "metadata" field.

func (*ComponentCreate) SetModelCreate

func (c *ComponentCreate) SetModelCreate(model *ComponentModelCreate) *ComponentCreate

func (*ComponentCreate) SetName

func (cc *ComponentCreate) SetName(s string) *ComponentCreate

SetName sets the "name" field.

func (*ComponentCreate) SetNamespace

func (cc *ComponentCreate) SetNamespace(s string) *ComponentCreate

SetNamespace sets the "namespace" field.

func (*ComponentCreate) SetNillableDescription

func (cc *ComponentCreate) SetNillableDescription(s *string) *ComponentCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ComponentCreate) SetNillableNamespace

func (cc *ComponentCreate) SetNillableNamespace(s *string) *ComponentCreate

SetNillableNamespace sets the "namespace" field if the given value is not nil.

func (*ComponentCreate) SetNillableURL

func (cc *ComponentCreate) SetNillableURL(s *string) *ComponentCreate

SetNillableURL sets the "url" field if the given value is not nil.

func (*ComponentCreate) SetOwner

func (cc *ComponentCreate) SetOwner(o *Organization) *ComponentCreate

SetOwner sets the "owner" edge to the Organization entity.

func (*ComponentCreate) SetOwnerID

func (cc *ComponentCreate) SetOwnerID(id int) *ComponentCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*ComponentCreate) SetScheme

func (cc *ComponentCreate) SetScheme(s string) *ComponentCreate

SetScheme sets the "scheme" field.

func (*ComponentCreate) SetURL

func (cc *ComponentCreate) SetURL(s string) *ComponentCreate

SetURL sets the "url" field.

func (*ComponentCreate) SetVersion

func (cc *ComponentCreate) SetVersion(s string) *ComponentCreate

SetVersion sets the "version" field.

type ComponentCreateBulk

type ComponentCreateBulk struct {
	// contains filtered or unexported fields
}

ComponentCreateBulk is the builder for creating many Component entities in bulk.

func (*ComponentCreateBulk) Exec

func (ccb *ComponentCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ComponentCreateBulk) ExecX

func (ccb *ComponentCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ComponentCreateBulk) Save

func (ccb *ComponentCreateBulk) Save(ctx context.Context) ([]*Component, error)

Save creates the Component entities in the database.

func (*ComponentCreateBulk) SaveX

func (ccb *ComponentCreateBulk) SaveX(ctx context.Context) []*Component

SaveX is like Save, but panics if an error occurs.

type ComponentDelete

type ComponentDelete struct {
	// contains filtered or unexported fields
}

ComponentDelete is the builder for deleting a Component entity.

func (*ComponentDelete) Exec

func (cd *ComponentDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ComponentDelete) ExecX

func (cd *ComponentDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ComponentDelete) Where

Where appends a list predicates to the ComponentDelete builder.

type ComponentDeleteOne

type ComponentDeleteOne struct {
	// contains filtered or unexported fields
}

ComponentDeleteOne is the builder for deleting a single Component entity.

func (*ComponentDeleteOne) Exec

func (cdo *ComponentDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ComponentDeleteOne) ExecX

func (cdo *ComponentDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ComponentEdge

type ComponentEdge struct {
	Node   *Component `json:"node"`
	Cursor Cursor     `json:"cursor"`
}

ComponentEdge is the edge representation of Component.

type ComponentEdges

type ComponentEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// Vulnerabilities holds the value of the vulnerabilities edge.
	Vulnerabilities []*Vulnerability `json:"vulnerabilities,omitempty"`
	// Licenses holds the value of the licenses edge.
	Licenses []*License `json:"licenses,omitempty"`
	// Uses holds the value of the uses edge.
	Uses []*ReleaseComponent `json:"uses,omitempty"`
	// contains filtered or unexported fields
}

ComponentEdges holds the relations/edges for other nodes in the graph.

func (ComponentEdges) LicensesOrErr

func (e ComponentEdges) LicensesOrErr() ([]*License, error)

LicensesOrErr returns the Licenses value or an error if the edge was not loaded in eager-loading.

func (ComponentEdges) OwnerOrErr

func (e ComponentEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ComponentEdges) UsesOrErr

func (e ComponentEdges) UsesOrErr() ([]*ReleaseComponent, error)

UsesOrErr returns the Uses value or an error if the edge was not loaded in eager-loading.

func (ComponentEdges) VulnerabilitiesOrErr

func (e ComponentEdges) VulnerabilitiesOrErr() ([]*Vulnerability, error)

VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge was not loaded in eager-loading.

type ComponentGroupBy

type ComponentGroupBy struct {
	// contains filtered or unexported fields
}

ComponentGroupBy is the group-by builder for Component entities.

func (*ComponentGroupBy) Aggregate

func (cgb *ComponentGroupBy) Aggregate(fns ...AggregateFunc) *ComponentGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ComponentGroupBy) Bool

func (cgb *ComponentGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) BoolX

func (cgb *ComponentGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ComponentGroupBy) Bools

func (cgb *ComponentGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) BoolsX

func (cgb *ComponentGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ComponentGroupBy) Float64

func (cgb *ComponentGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) Float64X

func (cgb *ComponentGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ComponentGroupBy) Float64s

func (cgb *ComponentGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) Float64sX

func (cgb *ComponentGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ComponentGroupBy) Int

func (cgb *ComponentGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) IntX

func (cgb *ComponentGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ComponentGroupBy) Ints

func (cgb *ComponentGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) IntsX

func (cgb *ComponentGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ComponentGroupBy) Scan

func (cgb *ComponentGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ComponentGroupBy) ScanX

func (cgb *ComponentGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ComponentGroupBy) String

func (cgb *ComponentGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) StringX

func (cgb *ComponentGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ComponentGroupBy) Strings

func (cgb *ComponentGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ComponentGroupBy) StringsX

func (cgb *ComponentGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ComponentModelCreate

type ComponentModelCreate struct {
	Scheme      *string          `json:"scheme,omitempty" validate:"required" mapstructure:"scheme"`
	Namespace   *string          `json:"namespace,omitempty"  mapstructure:"namespace"`
	Name        *string          `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Version     *string          `json:"version,omitempty" validate:"required" mapstructure:"version"`
	Description *string          `json:"description,omitempty"  mapstructure:"description"`
	URL         *string          `json:"url,omitempty"  mapstructure:"url"`
	Metadata    *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	Labels      *schema.Labels   `json:"labels,omitempty"  mapstructure:"labels"`
}

func NewComponentModelCreate

func NewComponentModelCreate() *ComponentModelCreate

func (*ComponentModelCreate) SetDescription

func (c *ComponentModelCreate) SetDescription(value string) *ComponentModelCreate

func (*ComponentModelCreate) SetLabels

func (*ComponentModelCreate) SetMetadata

func (*ComponentModelCreate) SetName

func (*ComponentModelCreate) SetNamespace

func (c *ComponentModelCreate) SetNamespace(value string) *ComponentModelCreate

func (*ComponentModelCreate) SetScheme

func (c *ComponentModelCreate) SetScheme(value string) *ComponentModelCreate

func (*ComponentModelCreate) SetURL

func (*ComponentModelCreate) SetVersion

func (c *ComponentModelCreate) SetVersion(value string) *ComponentModelCreate

type ComponentModelRead

type ComponentModelRead struct {
	Scheme      *string          `json:"scheme,omitempty" validate:"required" mapstructure:"scheme"`
	Namespace   *string          `json:"namespace,omitempty"  mapstructure:"namespace"`
	Name        *string          `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Version     *string          `json:"version,omitempty" validate:"required" mapstructure:"version"`
	Description *string          `json:"description,omitempty"  mapstructure:"description"`
	URL         *string          `json:"url,omitempty"  mapstructure:"url"`
	Metadata    *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	Labels      *schema.Labels   `json:"labels,omitempty"  mapstructure:"labels"`
	ID          *int             `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewComponentModelRead

func NewComponentModelRead() *ComponentModelRead

func (*ComponentModelRead) FromEnt

func (c *ComponentModelRead) FromEnt(value *Component) *ComponentModelRead

type ComponentModelUpdate

type ComponentModelUpdate struct {
	Scheme      *string          `json:"scheme,omitempty"  mapstructure:"scheme"`
	Namespace   *string          `json:"namespace,omitempty"  mapstructure:"namespace"`
	Name        *string          `json:"name,omitempty"  mapstructure:"name"`
	Version     *string          `json:"version,omitempty"  mapstructure:"version"`
	Description *string          `json:"description,omitempty"  mapstructure:"description"`
	URL         *string          `json:"url,omitempty"  mapstructure:"url"`
	Metadata    *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	Labels      *schema.Labels   `json:"labels,omitempty"  mapstructure:"labels"`
}

func NewComponentModelUpdate

func NewComponentModelUpdate() *ComponentModelUpdate

func (*ComponentModelUpdate) SetDescription

func (c *ComponentModelUpdate) SetDescription(value string) *ComponentModelUpdate

func (*ComponentModelUpdate) SetLabels

func (*ComponentModelUpdate) SetMetadata

func (*ComponentModelUpdate) SetName

func (*ComponentModelUpdate) SetNamespace

func (c *ComponentModelUpdate) SetNamespace(value string) *ComponentModelUpdate

func (*ComponentModelUpdate) SetScheme

func (c *ComponentModelUpdate) SetScheme(value string) *ComponentModelUpdate

func (*ComponentModelUpdate) SetURL

func (*ComponentModelUpdate) SetVersion

func (c *ComponentModelUpdate) SetVersion(value string) *ComponentModelUpdate

type ComponentMutation

type ComponentMutation struct {
	// contains filtered or unexported fields
}

ComponentMutation represents an operation that mutates the Component nodes in the graph.

func (*ComponentMutation) AddField

func (m *ComponentMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ComponentMutation) AddLicenseIDs

func (m *ComponentMutation) AddLicenseIDs(ids ...int)

AddLicenseIDs adds the "licenses" edge to the License entity by ids.

func (*ComponentMutation) AddUseIDs

func (m *ComponentMutation) AddUseIDs(ids ...int)

AddUseIDs adds the "uses" edge to the ReleaseComponent entity by ids.

func (*ComponentMutation) AddVulnerabilityIDs

func (m *ComponentMutation) AddVulnerabilityIDs(ids ...int)

AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by ids.

func (*ComponentMutation) AddedEdges

func (m *ComponentMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ComponentMutation) AddedField

func (m *ComponentMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ComponentMutation) AddedFields

func (m *ComponentMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ComponentMutation) AddedIDs

func (m *ComponentMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ComponentMutation) ClearDescription

func (m *ComponentMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*ComponentMutation) ClearEdge

func (m *ComponentMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ComponentMutation) ClearField

func (m *ComponentMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ComponentMutation) ClearLabels

func (m *ComponentMutation) ClearLabels()

ClearLabels clears the value of the "labels" field.

func (*ComponentMutation) ClearLicenses

func (m *ComponentMutation) ClearLicenses()

ClearLicenses clears the "licenses" edge to the License entity.

func (*ComponentMutation) ClearMetadata

func (m *ComponentMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*ComponentMutation) ClearOwner

func (m *ComponentMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*ComponentMutation) ClearURL

func (m *ComponentMutation) ClearURL()

ClearURL clears the value of the "url" field.

func (*ComponentMutation) ClearUses

func (m *ComponentMutation) ClearUses()

ClearUses clears the "uses" edge to the ReleaseComponent entity.

func (*ComponentMutation) ClearVulnerabilities

func (m *ComponentMutation) ClearVulnerabilities()

ClearVulnerabilities clears the "vulnerabilities" edge to the Vulnerability entity.

func (*ComponentMutation) ClearedEdges

func (m *ComponentMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ComponentMutation) ClearedFields

func (m *ComponentMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ComponentMutation) Client

func (m ComponentMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ComponentMutation) Description

func (m *ComponentMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*ComponentMutation) DescriptionCleared

func (m *ComponentMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*ComponentMutation) EdgeCleared

func (m *ComponentMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ComponentMutation) Field

func (m *ComponentMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ComponentMutation) FieldCleared

func (m *ComponentMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ComponentMutation) Fields

func (m *ComponentMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ComponentMutation) ID

func (m *ComponentMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ComponentMutation) Labels

func (m *ComponentMutation) Labels() (r schema.Labels, exists bool)

Labels returns the value of the "labels" field in the mutation.

func (*ComponentMutation) LabelsCleared

func (m *ComponentMutation) LabelsCleared() bool

LabelsCleared returns if the "labels" field was cleared in this mutation.

func (*ComponentMutation) LicensesCleared

func (m *ComponentMutation) LicensesCleared() bool

LicensesCleared reports if the "licenses" edge to the License entity was cleared.

func (*ComponentMutation) LicensesIDs

func (m *ComponentMutation) LicensesIDs() (ids []int)

LicensesIDs returns the "licenses" edge IDs in the mutation.

func (*ComponentMutation) Metadata

func (m *ComponentMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*ComponentMutation) MetadataCleared

func (m *ComponentMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*ComponentMutation) Name

func (m *ComponentMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ComponentMutation) Namespace

func (m *ComponentMutation) Namespace() (r string, exists bool)

Namespace returns the value of the "namespace" field in the mutation.

func (*ComponentMutation) OldDescription

func (m *ComponentMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldField

func (m *ComponentMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ComponentMutation) OldLabels

func (m *ComponentMutation) OldLabels(ctx context.Context) (v schema.Labels, err error)

OldLabels returns the old "labels" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldMetadata

func (m *ComponentMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldName

func (m *ComponentMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldNamespace

func (m *ComponentMutation) OldNamespace(ctx context.Context) (v string, err error)

OldNamespace returns the old "namespace" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldScheme

func (m *ComponentMutation) OldScheme(ctx context.Context) (v string, err error)

OldScheme returns the old "scheme" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldURL

func (m *ComponentMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) OldVersion

func (m *ComponentMutation) OldVersion(ctx context.Context) (v string, err error)

OldVersion returns the old "version" field's value of the Component entity. If the Component object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ComponentMutation) Op

func (m *ComponentMutation) Op() Op

Op returns the operation name.

func (*ComponentMutation) OwnerCleared

func (m *ComponentMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*ComponentMutation) OwnerID

func (m *ComponentMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*ComponentMutation) OwnerIDs

func (m *ComponentMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*ComponentMutation) RemoveLicenseIDs

func (m *ComponentMutation) RemoveLicenseIDs(ids ...int)

RemoveLicenseIDs removes the "licenses" edge to the License entity by IDs.

func (*ComponentMutation) RemoveUseIDs

func (m *ComponentMutation) RemoveUseIDs(ids ...int)

RemoveUseIDs removes the "uses" edge to the ReleaseComponent entity by IDs.

func (*ComponentMutation) RemoveVulnerabilityIDs

func (m *ComponentMutation) RemoveVulnerabilityIDs(ids ...int)

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to the Vulnerability entity by IDs.

func (*ComponentMutation) RemovedEdges

func (m *ComponentMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ComponentMutation) RemovedIDs

func (m *ComponentMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ComponentMutation) RemovedLicensesIDs

func (m *ComponentMutation) RemovedLicensesIDs() (ids []int)

RemovedLicenses returns the removed IDs of the "licenses" edge to the License entity.

func (*ComponentMutation) RemovedUsesIDs

func (m *ComponentMutation) RemovedUsesIDs() (ids []int)

RemovedUses returns the removed IDs of the "uses" edge to the ReleaseComponent entity.

func (*ComponentMutation) RemovedVulnerabilitiesIDs

func (m *ComponentMutation) RemovedVulnerabilitiesIDs() (ids []int)

RemovedVulnerabilities returns the removed IDs of the "vulnerabilities" edge to the Vulnerability entity.

func (*ComponentMutation) ResetDescription

func (m *ComponentMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*ComponentMutation) ResetEdge

func (m *ComponentMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ComponentMutation) ResetField

func (m *ComponentMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ComponentMutation) ResetLabels

func (m *ComponentMutation) ResetLabels()

ResetLabels resets all changes to the "labels" field.

func (*ComponentMutation) ResetLicenses

func (m *ComponentMutation) ResetLicenses()

ResetLicenses resets all changes to the "licenses" edge.

func (*ComponentMutation) ResetMetadata

func (m *ComponentMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*ComponentMutation) ResetName

func (m *ComponentMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ComponentMutation) ResetNamespace

func (m *ComponentMutation) ResetNamespace()

ResetNamespace resets all changes to the "namespace" field.

func (*ComponentMutation) ResetOwner

func (m *ComponentMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*ComponentMutation) ResetScheme

func (m *ComponentMutation) ResetScheme()

ResetScheme resets all changes to the "scheme" field.

func (*ComponentMutation) ResetURL

func (m *ComponentMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*ComponentMutation) ResetUses

func (m *ComponentMutation) ResetUses()

ResetUses resets all changes to the "uses" edge.

func (*ComponentMutation) ResetVersion

func (m *ComponentMutation) ResetVersion()

ResetVersion resets all changes to the "version" field.

func (*ComponentMutation) ResetVulnerabilities

func (m *ComponentMutation) ResetVulnerabilities()

ResetVulnerabilities resets all changes to the "vulnerabilities" edge.

func (*ComponentMutation) Scheme

func (m *ComponentMutation) Scheme() (r string, exists bool)

Scheme returns the value of the "scheme" field in the mutation.

func (*ComponentMutation) SetDescription

func (m *ComponentMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*ComponentMutation) SetField

func (m *ComponentMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ComponentMutation) SetLabels

func (m *ComponentMutation) SetLabels(s schema.Labels)

SetLabels sets the "labels" field.

func (*ComponentMutation) SetMetadata

func (m *ComponentMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*ComponentMutation) SetModelCreate

func (c *ComponentMutation) SetModelCreate(model *ComponentModelCreate) *ComponentMutation

func (*ComponentMutation) SetModelUpdate

func (c *ComponentMutation) SetModelUpdate(model *ComponentModelUpdate) *ComponentMutation

func (*ComponentMutation) SetName

func (m *ComponentMutation) SetName(s string)

SetName sets the "name" field.

func (*ComponentMutation) SetNamespace

func (m *ComponentMutation) SetNamespace(s string)

SetNamespace sets the "namespace" field.

func (*ComponentMutation) SetOwnerID

func (m *ComponentMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*ComponentMutation) SetScheme

func (m *ComponentMutation) SetScheme(s string)

SetScheme sets the "scheme" field.

func (*ComponentMutation) SetURL

func (m *ComponentMutation) SetURL(s string)

SetURL sets the "url" field.

func (*ComponentMutation) SetVersion

func (m *ComponentMutation) SetVersion(s string)

SetVersion sets the "version" field.

func (ComponentMutation) Tx

func (m ComponentMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ComponentMutation) Type

func (m *ComponentMutation) Type() string

Type returns the node type of this mutation (Component).

func (*ComponentMutation) URL

func (m *ComponentMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*ComponentMutation) URLCleared

func (m *ComponentMutation) URLCleared() bool

URLCleared returns if the "url" field was cleared in this mutation.

func (*ComponentMutation) UsesCleared

func (m *ComponentMutation) UsesCleared() bool

UsesCleared reports if the "uses" edge to the ReleaseComponent entity was cleared.

func (*ComponentMutation) UsesIDs

func (m *ComponentMutation) UsesIDs() (ids []int)

UsesIDs returns the "uses" edge IDs in the mutation.

func (*ComponentMutation) Version

func (m *ComponentMutation) Version() (r string, exists bool)

Version returns the value of the "version" field in the mutation.

func (*ComponentMutation) VulnerabilitiesCleared

func (m *ComponentMutation) VulnerabilitiesCleared() bool

VulnerabilitiesCleared reports if the "vulnerabilities" edge to the Vulnerability entity was cleared.

func (*ComponentMutation) VulnerabilitiesIDs

func (m *ComponentMutation) VulnerabilitiesIDs() (ids []int)

VulnerabilitiesIDs returns the "vulnerabilities" edge IDs in the mutation.

func (*ComponentMutation) Where

func (m *ComponentMutation) Where(ps ...predicate.Component)

Where appends a list predicates to the ComponentMutation builder.

type ComponentOrder

type ComponentOrder struct {
	Direction OrderDirection       `json:"direction"`
	Field     *ComponentOrderField `json:"field"`
}

ComponentOrder defines the ordering of Component.

type ComponentOrderField

type ComponentOrderField struct {
	// contains filtered or unexported fields
}

ComponentOrderField defines the ordering field of Component.

func (ComponentOrderField) MarshalGQL

func (f ComponentOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ComponentOrderField) String

func (f ComponentOrderField) String() string

String implement fmt.Stringer interface.

func (*ComponentOrderField) UnmarshalGQL

func (f *ComponentOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ComponentPaginateOption

type ComponentPaginateOption func(*componentPager) error

ComponentPaginateOption enables pagination customization.

func WithComponentFilter

func WithComponentFilter(filter func(*ComponentQuery) (*ComponentQuery, error)) ComponentPaginateOption

WithComponentFilter configures pagination filter.

func WithComponentOrder

func WithComponentOrder(order *ComponentOrder) ComponentPaginateOption

WithComponentOrder configures pagination ordering.

type ComponentQuery

type ComponentQuery struct {
	// contains filtered or unexported fields
}

ComponentQuery is the builder for querying Component entities.

func (*ComponentQuery) All

func (cq *ComponentQuery) All(ctx context.Context) ([]*Component, error)

All executes the query and returns a list of Components.

func (*ComponentQuery) AllX

func (cq *ComponentQuery) AllX(ctx context.Context) []*Component

AllX is like All, but panics if an error occurs.

func (*ComponentQuery) Clone

func (cq *ComponentQuery) Clone() *ComponentQuery

Clone returns a duplicate of the ComponentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ComponentQuery) CollectFields

func (c *ComponentQuery) CollectFields(ctx context.Context, satisfies ...string) *ComponentQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ComponentQuery) Count

func (cq *ComponentQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ComponentQuery) CountX

func (cq *ComponentQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ComponentQuery) Exist

func (cq *ComponentQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ComponentQuery) ExistX

func (cq *ComponentQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ComponentQuery) Filter

func (c *ComponentQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ComponentOrder, where *ComponentWhereInput,
) ([]*Component, error)

func (*ComponentQuery) First

func (cq *ComponentQuery) First(ctx context.Context) (*Component, error)

First returns the first Component entity from the query. Returns a *NotFoundError when no Component was found.

func (*ComponentQuery) FirstID

func (cq *ComponentQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Component ID from the query. Returns a *NotFoundError when no Component ID was found.

func (*ComponentQuery) FirstIDX

func (cq *ComponentQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ComponentQuery) FirstX

func (cq *ComponentQuery) FirstX(ctx context.Context) *Component

FirstX is like First, but panics if an error occurs.

func (*ComponentQuery) GroupBy

func (cq *ComponentQuery) GroupBy(field string, fields ...string) *ComponentGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Scheme string `json:"scheme,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Component.Query().
	GroupBy(component.FieldScheme).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ComponentQuery) IDs

func (cq *ComponentQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Component IDs.

func (*ComponentQuery) IDsX

func (cq *ComponentQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ComponentQuery) Limit

func (cq *ComponentQuery) Limit(limit int) *ComponentQuery

Limit adds a limit step to the query.

func (*ComponentQuery) Offset

func (cq *ComponentQuery) Offset(offset int) *ComponentQuery

Offset adds an offset step to the query.

func (*ComponentQuery) Only

func (cq *ComponentQuery) Only(ctx context.Context) (*Component, error)

Only returns a single Component entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Component entity is not found. Returns a *NotFoundError when no Component entities are found.

func (*ComponentQuery) OnlyID

func (cq *ComponentQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Component ID in the query. Returns a *NotSingularError when exactly one Component ID is not found. Returns a *NotFoundError when no entities are found.

func (*ComponentQuery) OnlyIDX

func (cq *ComponentQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ComponentQuery) OnlyX

func (cq *ComponentQuery) OnlyX(ctx context.Context) *Component

OnlyX is like Only, but panics if an error occurs.

func (*ComponentQuery) Order

func (cq *ComponentQuery) Order(o ...OrderFunc) *ComponentQuery

Order adds an order step to the query.

func (*ComponentQuery) Paginate

func (c *ComponentQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ComponentPaginateOption,
) (*ComponentConnection, error)

Paginate executes the query and returns a relay based cursor connection to Component.

func (*ComponentQuery) QueryLicenses

func (cq *ComponentQuery) QueryLicenses() *LicenseQuery

QueryLicenses chains the current query on the "licenses" edge.

func (*ComponentQuery) QueryOwner

func (cq *ComponentQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*ComponentQuery) QueryUses

func (cq *ComponentQuery) QueryUses() *ReleaseComponentQuery

QueryUses chains the current query on the "uses" edge.

func (*ComponentQuery) QueryVulnerabilities

func (cq *ComponentQuery) QueryVulnerabilities() *VulnerabilityQuery

QueryVulnerabilities chains the current query on the "vulnerabilities" edge.

func (*ComponentQuery) Select

func (cq *ComponentQuery) Select(fields ...string) *ComponentSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Scheme string `json:"scheme,omitempty"`
}

client.Component.Query().
	Select(component.FieldScheme).
	Scan(ctx, &v)

func (*ComponentQuery) Unique

func (cq *ComponentQuery) Unique(unique bool) *ComponentQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ComponentQuery) Where

Where adds a new predicate for the ComponentQuery builder.

func (*ComponentQuery) WhereInput

func (c *ComponentQuery) WhereInput(input *ComponentWhereInput) *ComponentQuery

func (*ComponentQuery) WithLicenses

func (cq *ComponentQuery) WithLicenses(opts ...func(*LicenseQuery)) *ComponentQuery

WithLicenses tells the query-builder to eager-load the nodes that are connected to the "licenses" edge. The optional arguments are used to configure the query builder of the edge.

func (*ComponentQuery) WithOwner

func (cq *ComponentQuery) WithOwner(opts ...func(*OrganizationQuery)) *ComponentQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*ComponentQuery) WithUses

func (cq *ComponentQuery) WithUses(opts ...func(*ReleaseComponentQuery)) *ComponentQuery

WithUses tells the query-builder to eager-load the nodes that are connected to the "uses" edge. The optional arguments are used to configure the query builder of the edge.

func (*ComponentQuery) WithVulnerabilities

func (cq *ComponentQuery) WithVulnerabilities(opts ...func(*VulnerabilityQuery)) *ComponentQuery

WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge.

type ComponentSelect

type ComponentSelect struct {
	*ComponentQuery
	// contains filtered or unexported fields
}

ComponentSelect is the builder for selecting fields of Component entities.

func (*ComponentSelect) Bool

func (cs *ComponentSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) BoolX

func (cs *ComponentSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ComponentSelect) Bools

func (cs *ComponentSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) BoolsX

func (cs *ComponentSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ComponentSelect) Float64

func (cs *ComponentSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) Float64X

func (cs *ComponentSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ComponentSelect) Float64s

func (cs *ComponentSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) Float64sX

func (cs *ComponentSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ComponentSelect) Int

func (cs *ComponentSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) IntX

func (cs *ComponentSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ComponentSelect) Ints

func (cs *ComponentSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) IntsX

func (cs *ComponentSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ComponentSelect) Scan

func (cs *ComponentSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ComponentSelect) ScanX

func (cs *ComponentSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ComponentSelect) String

func (cs *ComponentSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) StringX

func (cs *ComponentSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ComponentSelect) Strings

func (cs *ComponentSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ComponentSelect) StringsX

func (cs *ComponentSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ComponentUpdate

type ComponentUpdate struct {
	// contains filtered or unexported fields
}

ComponentUpdate is the builder for updating Component entities.

func (*ComponentUpdate) AddLicenseIDs

func (cu *ComponentUpdate) AddLicenseIDs(ids ...int) *ComponentUpdate

AddLicenseIDs adds the "licenses" edge to the License entity by IDs.

func (*ComponentUpdate) AddLicenses

func (cu *ComponentUpdate) AddLicenses(l ...*License) *ComponentUpdate

AddLicenses adds the "licenses" edges to the License entity.

func (*ComponentUpdate) AddUseIDs

func (cu *ComponentUpdate) AddUseIDs(ids ...int) *ComponentUpdate

AddUseIDs adds the "uses" edge to the ReleaseComponent entity by IDs.

func (*ComponentUpdate) AddUses

func (cu *ComponentUpdate) AddUses(r ...*ReleaseComponent) *ComponentUpdate

AddUses adds the "uses" edges to the ReleaseComponent entity.

func (*ComponentUpdate) AddVulnerabilities

func (cu *ComponentUpdate) AddVulnerabilities(v ...*Vulnerability) *ComponentUpdate

AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity.

func (*ComponentUpdate) AddVulnerabilityIDs

func (cu *ComponentUpdate) AddVulnerabilityIDs(ids ...int) *ComponentUpdate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs.

func (*ComponentUpdate) ClearDescription

func (cu *ComponentUpdate) ClearDescription() *ComponentUpdate

ClearDescription clears the value of the "description" field.

func (*ComponentUpdate) ClearLabels

func (cu *ComponentUpdate) ClearLabels() *ComponentUpdate

ClearLabels clears the value of the "labels" field.

func (*ComponentUpdate) ClearLicenses

func (cu *ComponentUpdate) ClearLicenses() *ComponentUpdate

ClearLicenses clears all "licenses" edges to the License entity.

func (*ComponentUpdate) ClearMetadata

func (cu *ComponentUpdate) ClearMetadata() *ComponentUpdate

ClearMetadata clears the value of the "metadata" field.

func (*ComponentUpdate) ClearOwner

func (cu *ComponentUpdate) ClearOwner() *ComponentUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*ComponentUpdate) ClearURL

func (cu *ComponentUpdate) ClearURL() *ComponentUpdate

ClearURL clears the value of the "url" field.

func (*ComponentUpdate) ClearUses

func (cu *ComponentUpdate) ClearUses() *ComponentUpdate

ClearUses clears all "uses" edges to the ReleaseComponent entity.

func (*ComponentUpdate) ClearVulnerabilities

func (cu *ComponentUpdate) ClearVulnerabilities() *ComponentUpdate

ClearVulnerabilities clears all "vulnerabilities" edges to the Vulnerability entity.

func (*ComponentUpdate) Exec

func (cu *ComponentUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ComponentUpdate) ExecX

func (cu *ComponentUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ComponentUpdate) Mutation

func (cu *ComponentUpdate) Mutation() *ComponentMutation

Mutation returns the ComponentMutation object of the builder.

func (*ComponentUpdate) RemoveLicenseIDs

func (cu *ComponentUpdate) RemoveLicenseIDs(ids ...int) *ComponentUpdate

RemoveLicenseIDs removes the "licenses" edge to License entities by IDs.

func (*ComponentUpdate) RemoveLicenses

func (cu *ComponentUpdate) RemoveLicenses(l ...*License) *ComponentUpdate

RemoveLicenses removes "licenses" edges to License entities.

func (*ComponentUpdate) RemoveUseIDs

func (cu *ComponentUpdate) RemoveUseIDs(ids ...int) *ComponentUpdate

RemoveUseIDs removes the "uses" edge to ReleaseComponent entities by IDs.

func (*ComponentUpdate) RemoveUses

func (cu *ComponentUpdate) RemoveUses(r ...*ReleaseComponent) *ComponentUpdate

RemoveUses removes "uses" edges to ReleaseComponent entities.

func (*ComponentUpdate) RemoveVulnerabilities

func (cu *ComponentUpdate) RemoveVulnerabilities(v ...*Vulnerability) *ComponentUpdate

RemoveVulnerabilities removes "vulnerabilities" edges to Vulnerability entities.

func (*ComponentUpdate) RemoveVulnerabilityIDs

func (cu *ComponentUpdate) RemoveVulnerabilityIDs(ids ...int) *ComponentUpdate

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to Vulnerability entities by IDs.

func (*ComponentUpdate) Save

func (cu *ComponentUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ComponentUpdate) SaveX

func (cu *ComponentUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ComponentUpdate) SetDescription

func (cu *ComponentUpdate) SetDescription(s string) *ComponentUpdate

SetDescription sets the "description" field.

func (*ComponentUpdate) SetLabels

func (cu *ComponentUpdate) SetLabels(s schema.Labels) *ComponentUpdate

SetLabels sets the "labels" field.

func (*ComponentUpdate) SetMetadata

func (cu *ComponentUpdate) SetMetadata(s schema.Metadata) *ComponentUpdate

SetMetadata sets the "metadata" field.

func (*ComponentUpdate) SetName

func (cu *ComponentUpdate) SetName(s string) *ComponentUpdate

SetName sets the "name" field.

func (*ComponentUpdate) SetNamespace

func (cu *ComponentUpdate) SetNamespace(s string) *ComponentUpdate

SetNamespace sets the "namespace" field.

func (*ComponentUpdate) SetNillableDescription

func (cu *ComponentUpdate) SetNillableDescription(s *string) *ComponentUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ComponentUpdate) SetNillableNamespace

func (cu *ComponentUpdate) SetNillableNamespace(s *string) *ComponentUpdate

SetNillableNamespace sets the "namespace" field if the given value is not nil.

func (*ComponentUpdate) SetNillableURL

func (cu *ComponentUpdate) SetNillableURL(s *string) *ComponentUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*ComponentUpdate) SetOwner

func (cu *ComponentUpdate) SetOwner(o *Organization) *ComponentUpdate

SetOwner sets the "owner" edge to the Organization entity.

func (*ComponentUpdate) SetOwnerID

func (cu *ComponentUpdate) SetOwnerID(id int) *ComponentUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*ComponentUpdate) SetScheme

func (cu *ComponentUpdate) SetScheme(s string) *ComponentUpdate

SetScheme sets the "scheme" field.

func (*ComponentUpdate) SetURL

func (cu *ComponentUpdate) SetURL(s string) *ComponentUpdate

SetURL sets the "url" field.

func (*ComponentUpdate) SetVersion

func (cu *ComponentUpdate) SetVersion(s string) *ComponentUpdate

SetVersion sets the "version" field.

func (*ComponentUpdate) Where

Where appends a list predicates to the ComponentUpdate builder.

type ComponentUpdateOne

type ComponentUpdateOne struct {
	// contains filtered or unexported fields
}

ComponentUpdateOne is the builder for updating a single Component entity.

func (*ComponentUpdateOne) AddLicenseIDs

func (cuo *ComponentUpdateOne) AddLicenseIDs(ids ...int) *ComponentUpdateOne

AddLicenseIDs adds the "licenses" edge to the License entity by IDs.

func (*ComponentUpdateOne) AddLicenses

func (cuo *ComponentUpdateOne) AddLicenses(l ...*License) *ComponentUpdateOne

AddLicenses adds the "licenses" edges to the License entity.

func (*ComponentUpdateOne) AddUseIDs

func (cuo *ComponentUpdateOne) AddUseIDs(ids ...int) *ComponentUpdateOne

AddUseIDs adds the "uses" edge to the ReleaseComponent entity by IDs.

func (*ComponentUpdateOne) AddUses

AddUses adds the "uses" edges to the ReleaseComponent entity.

func (*ComponentUpdateOne) AddVulnerabilities

func (cuo *ComponentUpdateOne) AddVulnerabilities(v ...*Vulnerability) *ComponentUpdateOne

AddVulnerabilities adds the "vulnerabilities" edges to the Vulnerability entity.

func (*ComponentUpdateOne) AddVulnerabilityIDs

func (cuo *ComponentUpdateOne) AddVulnerabilityIDs(ids ...int) *ComponentUpdateOne

AddVulnerabilityIDs adds the "vulnerabilities" edge to the Vulnerability entity by IDs.

func (*ComponentUpdateOne) ClearDescription

func (cuo *ComponentUpdateOne) ClearDescription() *ComponentUpdateOne

ClearDescription clears the value of the "description" field.

func (*ComponentUpdateOne) ClearLabels

func (cuo *ComponentUpdateOne) ClearLabels() *ComponentUpdateOne

ClearLabels clears the value of the "labels" field.

func (*ComponentUpdateOne) ClearLicenses

func (cuo *ComponentUpdateOne) ClearLicenses() *ComponentUpdateOne

ClearLicenses clears all "licenses" edges to the License entity.

func (*ComponentUpdateOne) ClearMetadata

func (cuo *ComponentUpdateOne) ClearMetadata() *ComponentUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*ComponentUpdateOne) ClearOwner

func (cuo *ComponentUpdateOne) ClearOwner() *ComponentUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*ComponentUpdateOne) ClearURL

func (cuo *ComponentUpdateOne) ClearURL() *ComponentUpdateOne

ClearURL clears the value of the "url" field.

func (*ComponentUpdateOne) ClearUses

func (cuo *ComponentUpdateOne) ClearUses() *ComponentUpdateOne

ClearUses clears all "uses" edges to the ReleaseComponent entity.

func (*ComponentUpdateOne) ClearVulnerabilities

func (cuo *ComponentUpdateOne) ClearVulnerabilities() *ComponentUpdateOne

ClearVulnerabilities clears all "vulnerabilities" edges to the Vulnerability entity.

func (*ComponentUpdateOne) Exec

func (cuo *ComponentUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ComponentUpdateOne) ExecX

func (cuo *ComponentUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ComponentUpdateOne) Mutation

func (cuo *ComponentUpdateOne) Mutation() *ComponentMutation

Mutation returns the ComponentMutation object of the builder.

func (*ComponentUpdateOne) RemoveLicenseIDs

func (cuo *ComponentUpdateOne) RemoveLicenseIDs(ids ...int) *ComponentUpdateOne

RemoveLicenseIDs removes the "licenses" edge to License entities by IDs.

func (*ComponentUpdateOne) RemoveLicenses

func (cuo *ComponentUpdateOne) RemoveLicenses(l ...*License) *ComponentUpdateOne

RemoveLicenses removes "licenses" edges to License entities.

func (*ComponentUpdateOne) RemoveUseIDs

func (cuo *ComponentUpdateOne) RemoveUseIDs(ids ...int) *ComponentUpdateOne

RemoveUseIDs removes the "uses" edge to ReleaseComponent entities by IDs.

func (*ComponentUpdateOne) RemoveUses

func (cuo *ComponentUpdateOne) RemoveUses(r ...*ReleaseComponent) *ComponentUpdateOne

RemoveUses removes "uses" edges to ReleaseComponent entities.

func (*ComponentUpdateOne) RemoveVulnerabilities

func (cuo *ComponentUpdateOne) RemoveVulnerabilities(v ...*Vulnerability) *ComponentUpdateOne

RemoveVulnerabilities removes "vulnerabilities" edges to Vulnerability entities.

func (*ComponentUpdateOne) RemoveVulnerabilityIDs

func (cuo *ComponentUpdateOne) RemoveVulnerabilityIDs(ids ...int) *ComponentUpdateOne

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to Vulnerability entities by IDs.

func (*ComponentUpdateOne) Save

func (cuo *ComponentUpdateOne) Save(ctx context.Context) (*Component, error)

Save executes the query and returns the updated Component entity.

func (*ComponentUpdateOne) SaveX

func (cuo *ComponentUpdateOne) SaveX(ctx context.Context) *Component

SaveX is like Save, but panics if an error occurs.

func (*ComponentUpdateOne) Select

func (cuo *ComponentUpdateOne) Select(field string, fields ...string) *ComponentUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ComponentUpdateOne) SetDescription

func (cuo *ComponentUpdateOne) SetDescription(s string) *ComponentUpdateOne

SetDescription sets the "description" field.

func (*ComponentUpdateOne) SetLabels

SetLabels sets the "labels" field.

func (*ComponentUpdateOne) SetMetadata

SetMetadata sets the "metadata" field.

func (*ComponentUpdateOne) SetModelCreate

func (c *ComponentUpdateOne) SetModelCreate(model *ComponentModelCreate) *ComponentUpdateOne

func (*ComponentUpdateOne) SetModelUpdate

func (c *ComponentUpdateOne) SetModelUpdate(model *ComponentModelUpdate) *ComponentUpdateOne

func (*ComponentUpdateOne) SetName

func (cuo *ComponentUpdateOne) SetName(s string) *ComponentUpdateOne

SetName sets the "name" field.

func (*ComponentUpdateOne) SetNamespace

func (cuo *ComponentUpdateOne) SetNamespace(s string) *ComponentUpdateOne

SetNamespace sets the "namespace" field.

func (*ComponentUpdateOne) SetNillableDescription

func (cuo *ComponentUpdateOne) SetNillableDescription(s *string) *ComponentUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*ComponentUpdateOne) SetNillableNamespace

func (cuo *ComponentUpdateOne) SetNillableNamespace(s *string) *ComponentUpdateOne

SetNillableNamespace sets the "namespace" field if the given value is not nil.

func (*ComponentUpdateOne) SetNillableURL

func (cuo *ComponentUpdateOne) SetNillableURL(s *string) *ComponentUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*ComponentUpdateOne) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*ComponentUpdateOne) SetOwnerID

func (cuo *ComponentUpdateOne) SetOwnerID(id int) *ComponentUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*ComponentUpdateOne) SetScheme

func (cuo *ComponentUpdateOne) SetScheme(s string) *ComponentUpdateOne

SetScheme sets the "scheme" field.

func (*ComponentUpdateOne) SetURL

SetURL sets the "url" field.

func (*ComponentUpdateOne) SetVersion

func (cuo *ComponentUpdateOne) SetVersion(s string) *ComponentUpdateOne

SetVersion sets the "version" field.

type ComponentWhereInput

type ComponentWhereInput struct {
	Not *ComponentWhereInput   `json:"not,omitempty"`
	Or  []*ComponentWhereInput `json:"or,omitempty"`
	And []*ComponentWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "scheme" field predicates.
	Scheme             *string  `json:"scheme,omitempty"`
	SchemeNEQ          *string  `json:"schemeNEQ,omitempty"`
	SchemeIn           []string `json:"schemeIn,omitempty"`
	SchemeNotIn        []string `json:"schemeNotIn,omitempty"`
	SchemeGT           *string  `json:"schemeGT,omitempty"`
	SchemeGTE          *string  `json:"schemeGTE,omitempty"`
	SchemeLT           *string  `json:"schemeLT,omitempty"`
	SchemeLTE          *string  `json:"schemeLTE,omitempty"`
	SchemeContains     *string  `json:"schemeContains,omitempty"`
	SchemeHasPrefix    *string  `json:"schemeHasPrefix,omitempty"`
	SchemeHasSuffix    *string  `json:"schemeHasSuffix,omitempty"`
	SchemeEqualFold    *string  `json:"schemeEqualFold,omitempty"`
	SchemeContainsFold *string  `json:"schemeContainsFold,omitempty"`

	// "namespace" field predicates.
	Namespace             *string  `json:"namespace,omitempty"`
	NamespaceNEQ          *string  `json:"namespaceNEQ,omitempty"`
	NamespaceIn           []string `json:"namespaceIn,omitempty"`
	NamespaceNotIn        []string `json:"namespaceNotIn,omitempty"`
	NamespaceGT           *string  `json:"namespaceGT,omitempty"`
	NamespaceGTE          *string  `json:"namespaceGTE,omitempty"`
	NamespaceLT           *string  `json:"namespaceLT,omitempty"`
	NamespaceLTE          *string  `json:"namespaceLTE,omitempty"`
	NamespaceContains     *string  `json:"namespaceContains,omitempty"`
	NamespaceHasPrefix    *string  `json:"namespaceHasPrefix,omitempty"`
	NamespaceHasSuffix    *string  `json:"namespaceHasSuffix,omitempty"`
	NamespaceEqualFold    *string  `json:"namespaceEqualFold,omitempty"`
	NamespaceContainsFold *string  `json:"namespaceContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "version" field predicates.
	Version             *string  `json:"version,omitempty"`
	VersionNEQ          *string  `json:"versionNEQ,omitempty"`
	VersionIn           []string `json:"versionIn,omitempty"`
	VersionNotIn        []string `json:"versionNotIn,omitempty"`
	VersionGT           *string  `json:"versionGT,omitempty"`
	VersionGTE          *string  `json:"versionGTE,omitempty"`
	VersionLT           *string  `json:"versionLT,omitempty"`
	VersionLTE          *string  `json:"versionLTE,omitempty"`
	VersionContains     *string  `json:"versionContains,omitempty"`
	VersionHasPrefix    *string  `json:"versionHasPrefix,omitempty"`
	VersionHasSuffix    *string  `json:"versionHasSuffix,omitempty"`
	VersionEqualFold    *string  `json:"versionEqualFold,omitempty"`
	VersionContainsFold *string  `json:"versionContainsFold,omitempty"`

	// "description" field predicates.
	Description             *string  `json:"description,omitempty"`
	DescriptionNEQ          *string  `json:"descriptionNEQ,omitempty"`
	DescriptionIn           []string `json:"descriptionIn,omitempty"`
	DescriptionNotIn        []string `json:"descriptionNotIn,omitempty"`
	DescriptionGT           *string  `json:"descriptionGT,omitempty"`
	DescriptionGTE          *string  `json:"descriptionGTE,omitempty"`
	DescriptionLT           *string  `json:"descriptionLT,omitempty"`
	DescriptionLTE          *string  `json:"descriptionLTE,omitempty"`
	DescriptionContains     *string  `json:"descriptionContains,omitempty"`
	DescriptionHasPrefix    *string  `json:"descriptionHasPrefix,omitempty"`
	DescriptionHasSuffix    *string  `json:"descriptionHasSuffix,omitempty"`
	DescriptionIsNil        bool     `json:"descriptionIsNil,omitempty"`
	DescriptionNotNil       bool     `json:"descriptionNotNil,omitempty"`
	DescriptionEqualFold    *string  `json:"descriptionEqualFold,omitempty"`
	DescriptionContainsFold *string  `json:"descriptionContainsFold,omitempty"`

	// "url" field predicates.
	URL             *string  `json:"url,omitempty"`
	URLNEQ          *string  `json:"urlNEQ,omitempty"`
	URLIn           []string `json:"urlIn,omitempty"`
	URLNotIn        []string `json:"urlNotIn,omitempty"`
	URLGT           *string  `json:"urlGT,omitempty"`
	URLGTE          *string  `json:"urlGTE,omitempty"`
	URLLT           *string  `json:"urlLT,omitempty"`
	URLLTE          *string  `json:"urlLTE,omitempty"`
	URLContains     *string  `json:"urlContains,omitempty"`
	URLHasPrefix    *string  `json:"urlHasPrefix,omitempty"`
	URLHasSuffix    *string  `json:"urlHasSuffix,omitempty"`
	URLIsNil        bool     `json:"urlIsNil,omitempty"`
	URLNotNil       bool     `json:"urlNotNil,omitempty"`
	URLEqualFold    *string  `json:"urlEqualFold,omitempty"`
	URLContainsFold *string  `json:"urlContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`

	// "vulnerabilities" edge predicates.
	HasVulnerabilities     *bool                      `json:"hasVulnerabilities,omitempty"`
	HasVulnerabilitiesWith []*VulnerabilityWhereInput `json:"hasVulnerabilitiesWith,omitempty"`

	// "licenses" edge predicates.
	HasLicenses     *bool                `json:"hasLicenses,omitempty"`
	HasLicensesWith []*LicenseWhereInput `json:"hasLicensesWith,omitempty"`

	// "uses" edge predicates.
	HasUses     *bool                         `json:"hasUses,omitempty"`
	HasUsesWith []*ReleaseComponentWhereInput `json:"hasUsesWith,omitempty"`
}

ComponentWhereInput represents a where input for filtering Component queries.

func (*ComponentWhereInput) Filter

Filter applies the ComponentWhereInput filter on the ComponentQuery builder.

func (*ComponentWhereInput) P

P returns a predicate for filtering components. An error is returned if the input is empty or invalid.

type Components

type Components []*Component

Components is a parsable slice of Component.

type ConstraintError

type ConstraintError struct {
	// contains filtered or unexported fields
}

ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.

func (ConstraintError) Error

func (e ConstraintError) Error() string

Error implements the error interface.

func (*ConstraintError) Unwrap

func (e *ConstraintError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Cursor

type Cursor struct {
	ID    int   `msgpack:"i"`
	Value Value `msgpack:"v,omitempty"`
}

Cursor of an edge type.

func (Cursor) MarshalGQL

func (c Cursor) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (*Cursor) UnmarshalGQL

func (c *Cursor) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type Edge

type Edge struct {
	Type string `json:"type,omitempty"` // edge type.
	Name string `json:"name,omitempty"` // edge name.
	IDs  []int  `json:"ids,omitempty"`  // node ids (where this edge point to).
}

Edges between two nodes.

type Event

type Event struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Message holds the value of the "message" field.
	Message string `json:"message,omitempty"`
	// Status holds the value of the "status" field.
	Status event.Status `json:"status,omitempty"`
	// Type holds the value of the "type" field.
	Type event.Type `json:"type,omitempty"`
	// Time holds the value of the "time" field.
	Time time.Time `json:"time,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the EventQuery when eager-loading is set.
	Edges EventEdges `json:"edges"`
	// contains filtered or unexported fields
}

Event is the model entity for the Event schema.

func (*Event) Node

func (e *Event) Node(ctx context.Context) (node *Node, err error)

func (*Event) Project

func (e *Event) Project(ctx context.Context) (*Project, error)

func (*Event) QueryProject

func (e *Event) QueryProject() *ProjectQuery

QueryProject queries the "project" edge of the Event entity.

func (*Event) QueryRelease

func (e *Event) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the Event entity.

func (*Event) QueryRepo

func (e *Event) QueryRepo() *RepoQuery

QueryRepo queries the "repo" edge of the Event entity.

func (*Event) Release

func (e *Event) Release(ctx context.Context) (*Release, error)

func (*Event) Repo

func (e *Event) Repo(ctx context.Context) (*Repo, error)

func (*Event) String

func (e *Event) String() string

String implements the fmt.Stringer.

func (*Event) ToEdge

func (e *Event) ToEdge(order *EventOrder) *EventEdge

ToEdge converts Event into EventEdge.

func (*Event) Unwrap

func (e *Event) Unwrap() *Event

Unwrap unwraps the Event entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Event) Update

func (e *Event) Update() *EventUpdateOne

Update returns a builder for updating this Event. Note that you need to call Event.Unwrap() before calling this method if this Event was returned from a transaction, and the transaction was committed or rolled back.

type EventClient

type EventClient struct {
	// contains filtered or unexported fields
}

EventClient is a client for the Event schema.

func NewEventClient

func NewEventClient(c config) *EventClient

NewEventClient returns a client for the Event from the given config.

func (*EventClient) Create

func (c *EventClient) Create() *EventCreate

Create returns a create builder for Event.

func (*EventClient) CreateBulk

func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk

CreateBulk returns a builder for creating a bulk of Event entities.

func (*EventClient) Delete

func (c *EventClient) Delete() *EventDelete

Delete returns a delete builder for Event.

func (*EventClient) DeleteOne

func (c *EventClient) DeleteOne(e *Event) *EventDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*EventClient) DeleteOneID

func (c *EventClient) DeleteOneID(id int) *EventDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*EventClient) Get

func (c *EventClient) Get(ctx context.Context, id int) (*Event, error)

Get returns a Event entity by its id.

func (*EventClient) GetX

func (c *EventClient) GetX(ctx context.Context, id int) *Event

GetX is like Get, but panics if an error occurs.

func (*EventClient) Hooks

func (c *EventClient) Hooks() []Hook

Hooks returns the client hooks.

func (*EventClient) Query

func (c *EventClient) Query() *EventQuery

Query returns a query builder for Event.

func (*EventClient) QueryProject

func (c *EventClient) QueryProject(e *Event) *ProjectQuery

QueryProject queries the project edge of a Event.

func (*EventClient) QueryRelease

func (c *EventClient) QueryRelease(e *Event) *ReleaseQuery

QueryRelease queries the release edge of a Event.

func (*EventClient) QueryRepo

func (c *EventClient) QueryRepo(e *Event) *RepoQuery

QueryRepo queries the repo edge of a Event.

func (*EventClient) Update

func (c *EventClient) Update() *EventUpdate

Update returns an update builder for Event.

func (*EventClient) UpdateOne

func (c *EventClient) UpdateOne(e *Event) *EventUpdateOne

UpdateOne returns an update builder for the given entity.

func (*EventClient) UpdateOneID

func (c *EventClient) UpdateOneID(id int) *EventUpdateOne

UpdateOneID returns an update builder for the given id.

func (*EventClient) Use

func (c *EventClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `event.Hooks(f(g(h())))`.

type EventConnection

type EventConnection struct {
	Edges      []*EventEdge `json:"edges"`
	PageInfo   PageInfo     `json:"pageInfo"`
	TotalCount int          `json:"totalCount"`
}

EventConnection is the connection containing edges to Event.

type EventCreate

type EventCreate struct {
	// contains filtered or unexported fields
}

EventCreate is the builder for creating a Event entity.

func (*EventCreate) Exec

func (ec *EventCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*EventCreate) ExecX

func (ec *EventCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EventCreate) Mutation

func (ec *EventCreate) Mutation() *EventMutation

Mutation returns the EventMutation object of the builder.

func (*EventCreate) Save

func (ec *EventCreate) Save(ctx context.Context) (*Event, error)

Save creates the Event in the database.

func (*EventCreate) SaveX

func (ec *EventCreate) SaveX(ctx context.Context) *Event

SaveX calls Save and panics if Save returns an error.

func (*EventCreate) SetMessage

func (ec *EventCreate) SetMessage(s string) *EventCreate

SetMessage sets the "message" field.

func (*EventCreate) SetModelCreate

func (e *EventCreate) SetModelCreate(model *EventModelCreate) *EventCreate

func (*EventCreate) SetNillableMessage

func (ec *EventCreate) SetNillableMessage(s *string) *EventCreate

SetNillableMessage sets the "message" field if the given value is not nil.

func (*EventCreate) SetNillableProjectID

func (ec *EventCreate) SetNillableProjectID(id *int) *EventCreate

SetNillableProjectID sets the "project" edge to the Project entity by ID if the given value is not nil.

func (*EventCreate) SetNillableReleaseID

func (ec *EventCreate) SetNillableReleaseID(id *int) *EventCreate

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*EventCreate) SetNillableRepoID

func (ec *EventCreate) SetNillableRepoID(id *int) *EventCreate

SetNillableRepoID sets the "repo" edge to the Repo entity by ID if the given value is not nil.

func (*EventCreate) SetNillableStatus

func (ec *EventCreate) SetNillableStatus(e *event.Status) *EventCreate

SetNillableStatus sets the "status" field if the given value is not nil.

func (*EventCreate) SetNillableTime

func (ec *EventCreate) SetNillableTime(t *time.Time) *EventCreate

SetNillableTime sets the "time" field if the given value is not nil.

func (*EventCreate) SetProject

func (ec *EventCreate) SetProject(p *Project) *EventCreate

SetProject sets the "project" edge to the Project entity.

func (*EventCreate) SetProjectID

func (ec *EventCreate) SetProjectID(id int) *EventCreate

SetProjectID sets the "project" edge to the Project entity by ID.

func (*EventCreate) SetRelease

func (ec *EventCreate) SetRelease(r *Release) *EventCreate

SetRelease sets the "release" edge to the Release entity.

func (*EventCreate) SetReleaseID

func (ec *EventCreate) SetReleaseID(id int) *EventCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*EventCreate) SetRepo

func (ec *EventCreate) SetRepo(r *Repo) *EventCreate

SetRepo sets the "repo" edge to the Repo entity.

func (*EventCreate) SetRepoID

func (ec *EventCreate) SetRepoID(id int) *EventCreate

SetRepoID sets the "repo" edge to the Repo entity by ID.

func (*EventCreate) SetStatus

func (ec *EventCreate) SetStatus(e event.Status) *EventCreate

SetStatus sets the "status" field.

func (*EventCreate) SetTime

func (ec *EventCreate) SetTime(t time.Time) *EventCreate

SetTime sets the "time" field.

func (*EventCreate) SetType

func (ec *EventCreate) SetType(e event.Type) *EventCreate

SetType sets the "type" field.

type EventCreateBulk

type EventCreateBulk struct {
	// contains filtered or unexported fields
}

EventCreateBulk is the builder for creating many Event entities in bulk.

func (*EventCreateBulk) Exec

func (ecb *EventCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*EventCreateBulk) ExecX

func (ecb *EventCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EventCreateBulk) Save

func (ecb *EventCreateBulk) Save(ctx context.Context) ([]*Event, error)

Save creates the Event entities in the database.

func (*EventCreateBulk) SaveX

func (ecb *EventCreateBulk) SaveX(ctx context.Context) []*Event

SaveX is like Save, but panics if an error occurs.

type EventDelete

type EventDelete struct {
	// contains filtered or unexported fields
}

EventDelete is the builder for deleting a Event entity.

func (*EventDelete) Exec

func (ed *EventDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*EventDelete) ExecX

func (ed *EventDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*EventDelete) Where

func (ed *EventDelete) Where(ps ...predicate.Event) *EventDelete

Where appends a list predicates to the EventDelete builder.

type EventDeleteOne

type EventDeleteOne struct {
	// contains filtered or unexported fields
}

EventDeleteOne is the builder for deleting a single Event entity.

func (*EventDeleteOne) Exec

func (edo *EventDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*EventDeleteOne) ExecX

func (edo *EventDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type EventEdge

type EventEdge struct {
	Node   *Event `json:"node"`
	Cursor Cursor `json:"cursor"`
}

EventEdge is the edge representation of Event.

type EventEdges

type EventEdges struct {
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Repo holds the value of the repo edge.
	Repo *Repo `json:"repo,omitempty"`
	// Project holds the value of the project edge.
	Project *Project `json:"project,omitempty"`
	// contains filtered or unexported fields
}

EventEdges holds the relations/edges for other nodes in the graph.

func (EventEdges) ProjectOrErr

func (e EventEdges) ProjectOrErr() (*Project, error)

ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (EventEdges) ReleaseOrErr

func (e EventEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (EventEdges) RepoOrErr

func (e EventEdges) RepoOrErr() (*Repo, error)

RepoOrErr returns the Repo value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type EventGroupBy

type EventGroupBy struct {
	// contains filtered or unexported fields
}

EventGroupBy is the group-by builder for Event entities.

func (*EventGroupBy) Aggregate

func (egb *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*EventGroupBy) Bool

func (egb *EventGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) BoolX

func (egb *EventGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*EventGroupBy) Bools

func (egb *EventGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) BoolsX

func (egb *EventGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*EventGroupBy) Float64

func (egb *EventGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) Float64X

func (egb *EventGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*EventGroupBy) Float64s

func (egb *EventGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) Float64sX

func (egb *EventGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*EventGroupBy) Int

func (egb *EventGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) IntX

func (egb *EventGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*EventGroupBy) Ints

func (egb *EventGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) IntsX

func (egb *EventGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*EventGroupBy) Scan

func (egb *EventGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*EventGroupBy) ScanX

func (egb *EventGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*EventGroupBy) String

func (egb *EventGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) StringX

func (egb *EventGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*EventGroupBy) Strings

func (egb *EventGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*EventGroupBy) StringsX

func (egb *EventGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type EventModelCreate

type EventModelCreate struct {
	Message *string       `json:"message,omitempty"  mapstructure:"message"`
	Status  *event.Status `json:"status,omitempty"  mapstructure:"status"`
	Type    *event.Type   `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Time    *time.Time    `json:"time,omitempty"  mapstructure:"time"`
}

func NewEventModelCreate

func NewEventModelCreate() *EventModelCreate

func (*EventModelCreate) SetMessage

func (e *EventModelCreate) SetMessage(value string) *EventModelCreate

func (*EventModelCreate) SetStatus

func (e *EventModelCreate) SetStatus(value event.Status) *EventModelCreate

func (*EventModelCreate) SetTime

func (e *EventModelCreate) SetTime(value time.Time) *EventModelCreate

func (*EventModelCreate) SetType

func (e *EventModelCreate) SetType(value event.Type) *EventModelCreate

type EventModelRead

type EventModelRead struct {
	Message *string       `json:"message,omitempty"  mapstructure:"message"`
	Status  *event.Status `json:"status,omitempty"  mapstructure:"status"`
	Type    *event.Type   `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Time    *time.Time    `json:"time,omitempty"  mapstructure:"time"`
	ID      *int          `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewEventModelRead

func NewEventModelRead() *EventModelRead

func (*EventModelRead) FromEnt

func (e *EventModelRead) FromEnt(value *Event) *EventModelRead

type EventModelUpdate

type EventModelUpdate struct {
	Message *string       `json:"message,omitempty"  mapstructure:"message"`
	Status  *event.Status `json:"status,omitempty"  mapstructure:"status"`
	Type    *event.Type   `json:"type,omitempty"  mapstructure:"type"`
	Time    *time.Time    `json:"time,omitempty"  mapstructure:"time"`
}

func NewEventModelUpdate

func NewEventModelUpdate() *EventModelUpdate

func (*EventModelUpdate) SetMessage

func (e *EventModelUpdate) SetMessage(value string) *EventModelUpdate

func (*EventModelUpdate) SetStatus

func (e *EventModelUpdate) SetStatus(value event.Status) *EventModelUpdate

func (*EventModelUpdate) SetTime

func (e *EventModelUpdate) SetTime(value time.Time) *EventModelUpdate

func (*EventModelUpdate) SetType

func (e *EventModelUpdate) SetType(value event.Type) *EventModelUpdate

type EventMutation

type EventMutation struct {
	// contains filtered or unexported fields
}

EventMutation represents an operation that mutates the Event nodes in the graph.

func (*EventMutation) AddField

func (m *EventMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*EventMutation) AddedEdges

func (m *EventMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*EventMutation) AddedField

func (m *EventMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*EventMutation) AddedFields

func (m *EventMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*EventMutation) AddedIDs

func (m *EventMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*EventMutation) ClearEdge

func (m *EventMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*EventMutation) ClearField

func (m *EventMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*EventMutation) ClearProject

func (m *EventMutation) ClearProject()

ClearProject clears the "project" edge to the Project entity.

func (*EventMutation) ClearRelease

func (m *EventMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*EventMutation) ClearRepo

func (m *EventMutation) ClearRepo()

ClearRepo clears the "repo" edge to the Repo entity.

func (*EventMutation) ClearedEdges

func (m *EventMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*EventMutation) ClearedFields

func (m *EventMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (EventMutation) Client

func (m EventMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*EventMutation) EdgeCleared

func (m *EventMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*EventMutation) Field

func (m *EventMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*EventMutation) FieldCleared

func (m *EventMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*EventMutation) Fields

func (m *EventMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*EventMutation) GetType

func (m *EventMutation) GetType() (r event.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*EventMutation) ID

func (m *EventMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*EventMutation) Message

func (m *EventMutation) Message() (r string, exists bool)

Message returns the value of the "message" field in the mutation.

func (*EventMutation) OldField

func (m *EventMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*EventMutation) OldMessage

func (m *EventMutation) OldMessage(ctx context.Context) (v string, err error)

OldMessage returns the old "message" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EventMutation) OldStatus

func (m *EventMutation) OldStatus(ctx context.Context) (v event.Status, err error)

OldStatus returns the old "status" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EventMutation) OldTime

func (m *EventMutation) OldTime(ctx context.Context) (v time.Time, err error)

OldTime returns the old "time" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EventMutation) OldType

func (m *EventMutation) OldType(ctx context.Context) (v event.Type, err error)

OldType returns the old "type" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*EventMutation) Op

func (m *EventMutation) Op() Op

Op returns the operation name.

func (*EventMutation) ProjectCleared

func (m *EventMutation) ProjectCleared() bool

ProjectCleared reports if the "project" edge to the Project entity was cleared.

func (*EventMutation) ProjectID

func (m *EventMutation) ProjectID() (id int, exists bool)

ProjectID returns the "project" edge ID in the mutation.

func (*EventMutation) ProjectIDs

func (m *EventMutation) ProjectIDs() (ids []int)

ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.

func (*EventMutation) ReleaseCleared

func (m *EventMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*EventMutation) ReleaseID

func (m *EventMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*EventMutation) ReleaseIDs

func (m *EventMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*EventMutation) RemovedEdges

func (m *EventMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*EventMutation) RemovedIDs

func (m *EventMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*EventMutation) RepoCleared

func (m *EventMutation) RepoCleared() bool

RepoCleared reports if the "repo" edge to the Repo entity was cleared.

func (*EventMutation) RepoID

func (m *EventMutation) RepoID() (id int, exists bool)

RepoID returns the "repo" edge ID in the mutation.

func (*EventMutation) RepoIDs

func (m *EventMutation) RepoIDs() (ids []int)

RepoIDs returns the "repo" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RepoID instead. It exists only for internal usage by the builders.

func (*EventMutation) ResetEdge

func (m *EventMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*EventMutation) ResetField

func (m *EventMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*EventMutation) ResetMessage

func (m *EventMutation) ResetMessage()

ResetMessage resets all changes to the "message" field.

func (*EventMutation) ResetProject

func (m *EventMutation) ResetProject()

ResetProject resets all changes to the "project" edge.

func (*EventMutation) ResetRelease

func (m *EventMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*EventMutation) ResetRepo

func (m *EventMutation) ResetRepo()

ResetRepo resets all changes to the "repo" edge.

func (*EventMutation) ResetStatus

func (m *EventMutation) ResetStatus()

ResetStatus resets all changes to the "status" field.

func (*EventMutation) ResetTime

func (m *EventMutation) ResetTime()

ResetTime resets all changes to the "time" field.

func (*EventMutation) ResetType

func (m *EventMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*EventMutation) SetField

func (m *EventMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*EventMutation) SetMessage

func (m *EventMutation) SetMessage(s string)

SetMessage sets the "message" field.

func (*EventMutation) SetModelCreate

func (e *EventMutation) SetModelCreate(model *EventModelCreate) *EventMutation

func (*EventMutation) SetModelUpdate

func (e *EventMutation) SetModelUpdate(model *EventModelUpdate) *EventMutation

func (*EventMutation) SetProjectID

func (m *EventMutation) SetProjectID(id int)

SetProjectID sets the "project" edge to the Project entity by id.

func (*EventMutation) SetReleaseID

func (m *EventMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*EventMutation) SetRepoID

func (m *EventMutation) SetRepoID(id int)

SetRepoID sets the "repo" edge to the Repo entity by id.

func (*EventMutation) SetStatus

func (m *EventMutation) SetStatus(e event.Status)

SetStatus sets the "status" field.

func (*EventMutation) SetTime

func (m *EventMutation) SetTime(t time.Time)

SetTime sets the "time" field.

func (*EventMutation) SetType

func (m *EventMutation) SetType(e event.Type)

SetType sets the "type" field.

func (*EventMutation) Status

func (m *EventMutation) Status() (r event.Status, exists bool)

Status returns the value of the "status" field in the mutation.

func (*EventMutation) Time

func (m *EventMutation) Time() (r time.Time, exists bool)

Time returns the value of the "time" field in the mutation.

func (EventMutation) Tx

func (m EventMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*EventMutation) Type

func (m *EventMutation) Type() string

Type returns the node type of this mutation (Event).

func (*EventMutation) Where

func (m *EventMutation) Where(ps ...predicate.Event)

Where appends a list predicates to the EventMutation builder.

type EventOrder

type EventOrder struct {
	Direction OrderDirection   `json:"direction"`
	Field     *EventOrderField `json:"field"`
}

EventOrder defines the ordering of Event.

type EventOrderField

type EventOrderField struct {
	// contains filtered or unexported fields
}

EventOrderField defines the ordering field of Event.

func (EventOrderField) MarshalGQL

func (f EventOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (EventOrderField) String

func (f EventOrderField) String() string

String implement fmt.Stringer interface.

func (*EventOrderField) UnmarshalGQL

func (f *EventOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type EventPaginateOption

type EventPaginateOption func(*eventPager) error

EventPaginateOption enables pagination customization.

func WithEventFilter

func WithEventFilter(filter func(*EventQuery) (*EventQuery, error)) EventPaginateOption

WithEventFilter configures pagination filter.

func WithEventOrder

func WithEventOrder(order *EventOrder) EventPaginateOption

WithEventOrder configures pagination ordering.

type EventQuery

type EventQuery struct {
	// contains filtered or unexported fields
}

EventQuery is the builder for querying Event entities.

func (*EventQuery) All

func (eq *EventQuery) All(ctx context.Context) ([]*Event, error)

All executes the query and returns a list of Events.

func (*EventQuery) AllX

func (eq *EventQuery) AllX(ctx context.Context) []*Event

AllX is like All, but panics if an error occurs.

func (*EventQuery) Clone

func (eq *EventQuery) Clone() *EventQuery

Clone returns a duplicate of the EventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*EventQuery) CollectFields

func (e *EventQuery) CollectFields(ctx context.Context, satisfies ...string) *EventQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*EventQuery) Count

func (eq *EventQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*EventQuery) CountX

func (eq *EventQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*EventQuery) Exist

func (eq *EventQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*EventQuery) ExistX

func (eq *EventQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*EventQuery) Filter

func (e *EventQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *EventOrder, where *EventWhereInput,
) ([]*Event, error)

func (*EventQuery) First

func (eq *EventQuery) First(ctx context.Context) (*Event, error)

First returns the first Event entity from the query. Returns a *NotFoundError when no Event was found.

func (*EventQuery) FirstID

func (eq *EventQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Event ID from the query. Returns a *NotFoundError when no Event ID was found.

func (*EventQuery) FirstIDX

func (eq *EventQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*EventQuery) FirstX

func (eq *EventQuery) FirstX(ctx context.Context) *Event

FirstX is like First, but panics if an error occurs.

func (*EventQuery) GroupBy

func (eq *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Message string `json:"message,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Event.Query().
	GroupBy(event.FieldMessage).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*EventQuery) IDs

func (eq *EventQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Event IDs.

func (*EventQuery) IDsX

func (eq *EventQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*EventQuery) Limit

func (eq *EventQuery) Limit(limit int) *EventQuery

Limit adds a limit step to the query.

func (*EventQuery) Offset

func (eq *EventQuery) Offset(offset int) *EventQuery

Offset adds an offset step to the query.

func (*EventQuery) Only

func (eq *EventQuery) Only(ctx context.Context) (*Event, error)

Only returns a single Event entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Event entity is not found. Returns a *NotFoundError when no Event entities are found.

func (*EventQuery) OnlyID

func (eq *EventQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Event ID in the query. Returns a *NotSingularError when exactly one Event ID is not found. Returns a *NotFoundError when no entities are found.

func (*EventQuery) OnlyIDX

func (eq *EventQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*EventQuery) OnlyX

func (eq *EventQuery) OnlyX(ctx context.Context) *Event

OnlyX is like Only, but panics if an error occurs.

func (*EventQuery) Order

func (eq *EventQuery) Order(o ...OrderFunc) *EventQuery

Order adds an order step to the query.

func (*EventQuery) Paginate

func (e *EventQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...EventPaginateOption,
) (*EventConnection, error)

Paginate executes the query and returns a relay based cursor connection to Event.

func (*EventQuery) QueryProject

func (eq *EventQuery) QueryProject() *ProjectQuery

QueryProject chains the current query on the "project" edge.

func (*EventQuery) QueryRelease

func (eq *EventQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*EventQuery) QueryRepo

func (eq *EventQuery) QueryRepo() *RepoQuery

QueryRepo chains the current query on the "repo" edge.

func (*EventQuery) Select

func (eq *EventQuery) Select(fields ...string) *EventSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Message string `json:"message,omitempty"`
}

client.Event.Query().
	Select(event.FieldMessage).
	Scan(ctx, &v)

func (*EventQuery) Unique

func (eq *EventQuery) Unique(unique bool) *EventQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*EventQuery) Where

func (eq *EventQuery) Where(ps ...predicate.Event) *EventQuery

Where adds a new predicate for the EventQuery builder.

func (*EventQuery) WhereInput

func (e *EventQuery) WhereInput(input *EventWhereInput) *EventQuery

func (*EventQuery) WithProject

func (eq *EventQuery) WithProject(opts ...func(*ProjectQuery)) *EventQuery

WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.

func (*EventQuery) WithRelease

func (eq *EventQuery) WithRelease(opts ...func(*ReleaseQuery)) *EventQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*EventQuery) WithRepo

func (eq *EventQuery) WithRepo(opts ...func(*RepoQuery)) *EventQuery

WithRepo tells the query-builder to eager-load the nodes that are connected to the "repo" edge. The optional arguments are used to configure the query builder of the edge.

type EventSelect

type EventSelect struct {
	*EventQuery
	// contains filtered or unexported fields
}

EventSelect is the builder for selecting fields of Event entities.

func (*EventSelect) Bool

func (es *EventSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*EventSelect) BoolX

func (es *EventSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*EventSelect) Bools

func (es *EventSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*EventSelect) BoolsX

func (es *EventSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*EventSelect) Float64

func (es *EventSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*EventSelect) Float64X

func (es *EventSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*EventSelect) Float64s

func (es *EventSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*EventSelect) Float64sX

func (es *EventSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*EventSelect) Int

func (es *EventSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*EventSelect) IntX

func (es *EventSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*EventSelect) Ints

func (es *EventSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*EventSelect) IntsX

func (es *EventSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*EventSelect) Scan

func (es *EventSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*EventSelect) ScanX

func (es *EventSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*EventSelect) String

func (es *EventSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*EventSelect) StringX

func (es *EventSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*EventSelect) Strings

func (es *EventSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*EventSelect) StringsX

func (es *EventSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type EventUpdate

type EventUpdate struct {
	// contains filtered or unexported fields
}

EventUpdate is the builder for updating Event entities.

func (*EventUpdate) ClearProject

func (eu *EventUpdate) ClearProject() *EventUpdate

ClearProject clears the "project" edge to the Project entity.

func (*EventUpdate) ClearRelease

func (eu *EventUpdate) ClearRelease() *EventUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*EventUpdate) ClearRepo

func (eu *EventUpdate) ClearRepo() *EventUpdate

ClearRepo clears the "repo" edge to the Repo entity.

func (*EventUpdate) Exec

func (eu *EventUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*EventUpdate) ExecX

func (eu *EventUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EventUpdate) Mutation

func (eu *EventUpdate) Mutation() *EventMutation

Mutation returns the EventMutation object of the builder.

func (*EventUpdate) Save

func (eu *EventUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*EventUpdate) SaveX

func (eu *EventUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*EventUpdate) SetNillableProjectID

func (eu *EventUpdate) SetNillableProjectID(id *int) *EventUpdate

SetNillableProjectID sets the "project" edge to the Project entity by ID if the given value is not nil.

func (*EventUpdate) SetNillableReleaseID

func (eu *EventUpdate) SetNillableReleaseID(id *int) *EventUpdate

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*EventUpdate) SetNillableRepoID

func (eu *EventUpdate) SetNillableRepoID(id *int) *EventUpdate

SetNillableRepoID sets the "repo" edge to the Repo entity by ID if the given value is not nil.

func (*EventUpdate) SetProject

func (eu *EventUpdate) SetProject(p *Project) *EventUpdate

SetProject sets the "project" edge to the Project entity.

func (*EventUpdate) SetProjectID

func (eu *EventUpdate) SetProjectID(id int) *EventUpdate

SetProjectID sets the "project" edge to the Project entity by ID.

func (*EventUpdate) SetRelease

func (eu *EventUpdate) SetRelease(r *Release) *EventUpdate

SetRelease sets the "release" edge to the Release entity.

func (*EventUpdate) SetReleaseID

func (eu *EventUpdate) SetReleaseID(id int) *EventUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*EventUpdate) SetRepo

func (eu *EventUpdate) SetRepo(r *Repo) *EventUpdate

SetRepo sets the "repo" edge to the Repo entity.

func (*EventUpdate) SetRepoID

func (eu *EventUpdate) SetRepoID(id int) *EventUpdate

SetRepoID sets the "repo" edge to the Repo entity by ID.

func (*EventUpdate) Where

func (eu *EventUpdate) Where(ps ...predicate.Event) *EventUpdate

Where appends a list predicates to the EventUpdate builder.

type EventUpdateOne

type EventUpdateOne struct {
	// contains filtered or unexported fields
}

EventUpdateOne is the builder for updating a single Event entity.

func (*EventUpdateOne) ClearProject

func (euo *EventUpdateOne) ClearProject() *EventUpdateOne

ClearProject clears the "project" edge to the Project entity.

func (*EventUpdateOne) ClearRelease

func (euo *EventUpdateOne) ClearRelease() *EventUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*EventUpdateOne) ClearRepo

func (euo *EventUpdateOne) ClearRepo() *EventUpdateOne

ClearRepo clears the "repo" edge to the Repo entity.

func (*EventUpdateOne) Exec

func (euo *EventUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*EventUpdateOne) ExecX

func (euo *EventUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*EventUpdateOne) Mutation

func (euo *EventUpdateOne) Mutation() *EventMutation

Mutation returns the EventMutation object of the builder.

func (*EventUpdateOne) Save

func (euo *EventUpdateOne) Save(ctx context.Context) (*Event, error)

Save executes the query and returns the updated Event entity.

func (*EventUpdateOne) SaveX

func (euo *EventUpdateOne) SaveX(ctx context.Context) *Event

SaveX is like Save, but panics if an error occurs.

func (*EventUpdateOne) Select

func (euo *EventUpdateOne) Select(field string, fields ...string) *EventUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*EventUpdateOne) SetModelCreate

func (e *EventUpdateOne) SetModelCreate(model *EventModelCreate) *EventUpdateOne

func (*EventUpdateOne) SetModelUpdate

func (e *EventUpdateOne) SetModelUpdate(model *EventModelUpdate) *EventUpdateOne

func (*EventUpdateOne) SetNillableProjectID

func (euo *EventUpdateOne) SetNillableProjectID(id *int) *EventUpdateOne

SetNillableProjectID sets the "project" edge to the Project entity by ID if the given value is not nil.

func (*EventUpdateOne) SetNillableReleaseID

func (euo *EventUpdateOne) SetNillableReleaseID(id *int) *EventUpdateOne

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*EventUpdateOne) SetNillableRepoID

func (euo *EventUpdateOne) SetNillableRepoID(id *int) *EventUpdateOne

SetNillableRepoID sets the "repo" edge to the Repo entity by ID if the given value is not nil.

func (*EventUpdateOne) SetProject

func (euo *EventUpdateOne) SetProject(p *Project) *EventUpdateOne

SetProject sets the "project" edge to the Project entity.

func (*EventUpdateOne) SetProjectID

func (euo *EventUpdateOne) SetProjectID(id int) *EventUpdateOne

SetProjectID sets the "project" edge to the Project entity by ID.

func (*EventUpdateOne) SetRelease

func (euo *EventUpdateOne) SetRelease(r *Release) *EventUpdateOne

SetRelease sets the "release" edge to the Release entity.

func (*EventUpdateOne) SetReleaseID

func (euo *EventUpdateOne) SetReleaseID(id int) *EventUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*EventUpdateOne) SetRepo

func (euo *EventUpdateOne) SetRepo(r *Repo) *EventUpdateOne

SetRepo sets the "repo" edge to the Repo entity.

func (*EventUpdateOne) SetRepoID

func (euo *EventUpdateOne) SetRepoID(id int) *EventUpdateOne

SetRepoID sets the "repo" edge to the Repo entity by ID.

type EventWhereInput

type EventWhereInput struct {
	Not *EventWhereInput   `json:"not,omitempty"`
	Or  []*EventWhereInput `json:"or,omitempty"`
	And []*EventWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "message" field predicates.
	Message             *string  `json:"message,omitempty"`
	MessageNEQ          *string  `json:"messageNEQ,omitempty"`
	MessageIn           []string `json:"messageIn,omitempty"`
	MessageNotIn        []string `json:"messageNotIn,omitempty"`
	MessageGT           *string  `json:"messageGT,omitempty"`
	MessageGTE          *string  `json:"messageGTE,omitempty"`
	MessageLT           *string  `json:"messageLT,omitempty"`
	MessageLTE          *string  `json:"messageLTE,omitempty"`
	MessageContains     *string  `json:"messageContains,omitempty"`
	MessageHasPrefix    *string  `json:"messageHasPrefix,omitempty"`
	MessageHasSuffix    *string  `json:"messageHasSuffix,omitempty"`
	MessageEqualFold    *string  `json:"messageEqualFold,omitempty"`
	MessageContainsFold *string  `json:"messageContainsFold,omitempty"`

	// "status" field predicates.
	Status      *event.Status  `json:"status,omitempty"`
	StatusNEQ   *event.Status  `json:"statusNEQ,omitempty"`
	StatusIn    []event.Status `json:"statusIn,omitempty"`
	StatusNotIn []event.Status `json:"statusNotIn,omitempty"`

	// "type" field predicates.
	Type      *event.Type  `json:"type,omitempty"`
	TypeNEQ   *event.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []event.Type `json:"typeIn,omitempty"`
	TypeNotIn []event.Type `json:"typeNotIn,omitempty"`

	// "time" field predicates.
	Time      *time.Time  `json:"time,omitempty"`
	TimeNEQ   *time.Time  `json:"timeNEQ,omitempty"`
	TimeIn    []time.Time `json:"timeIn,omitempty"`
	TimeNotIn []time.Time `json:"timeNotIn,omitempty"`
	TimeGT    *time.Time  `json:"timeGT,omitempty"`
	TimeGTE   *time.Time  `json:"timeGTE,omitempty"`
	TimeLT    *time.Time  `json:"timeLT,omitempty"`
	TimeLTE   *time.Time  `json:"timeLTE,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "repo" edge predicates.
	HasRepo     *bool             `json:"hasRepo,omitempty"`
	HasRepoWith []*RepoWhereInput `json:"hasRepoWith,omitempty"`

	// "project" edge predicates.
	HasProject     *bool                `json:"hasProject,omitempty"`
	HasProjectWith []*ProjectWhereInput `json:"hasProjectWith,omitempty"`
}

EventWhereInput represents a where input for filtering Event queries.

func (*EventWhereInput) Filter

func (i *EventWhereInput) Filter(q *EventQuery) (*EventQuery, error)

Filter applies the EventWhereInput filter on the EventQuery builder.

func (*EventWhereInput) P

P returns a predicate for filtering events. An error is returned if the input is empty or invalid.

type Events

type Events []*Event

Events is a parsable slice of Event.

type Field

type Field struct {
	Type  string `json:"type,omitempty"`  // field type.
	Name  string `json:"name,omitempty"`  // field name (as in struct).
	Value string `json:"value,omitempty"` // stringified value.
}

Field of a node.

type GitCommit

type GitCommit struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Hash holds the value of the "hash" field.
	Hash string `json:"hash,omitempty"`
	// Branch holds the value of the "branch" field.
	Branch string `json:"branch,omitempty"`
	// Tag holds the value of the "tag" field.
	Tag string `json:"tag,omitempty"`
	// Time holds the value of the "time" field.
	Time time.Time `json:"time,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the GitCommitQuery when eager-loading is set.
	Edges GitCommitEdges `json:"edges"`
	// contains filtered or unexported fields
}

GitCommit is the model entity for the GitCommit schema.

func (*GitCommit) Node

func (gc *GitCommit) Node(ctx context.Context) (node *Node, err error)

func (*GitCommit) QueryRelease

func (gc *GitCommit) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the GitCommit entity.

func (*GitCommit) QueryRepo

func (gc *GitCommit) QueryRepo() *RepoQuery

QueryRepo queries the "repo" edge of the GitCommit entity.

func (*GitCommit) Release

func (gc *GitCommit) Release(ctx context.Context) (*Release, error)

func (*GitCommit) Repo

func (gc *GitCommit) Repo(ctx context.Context) (*Repo, error)

func (*GitCommit) String

func (gc *GitCommit) String() string

String implements the fmt.Stringer.

func (*GitCommit) ToEdge

func (gc *GitCommit) ToEdge(order *GitCommitOrder) *GitCommitEdge

ToEdge converts GitCommit into GitCommitEdge.

func (*GitCommit) Unwrap

func (gc *GitCommit) Unwrap() *GitCommit

Unwrap unwraps the GitCommit entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*GitCommit) Update

func (gc *GitCommit) Update() *GitCommitUpdateOne

Update returns a builder for updating this GitCommit. Note that you need to call GitCommit.Unwrap() before calling this method if this GitCommit was returned from a transaction, and the transaction was committed or rolled back.

type GitCommitClient

type GitCommitClient struct {
	// contains filtered or unexported fields
}

GitCommitClient is a client for the GitCommit schema.

func NewGitCommitClient

func NewGitCommitClient(c config) *GitCommitClient

NewGitCommitClient returns a client for the GitCommit from the given config.

func (*GitCommitClient) Create

func (c *GitCommitClient) Create() *GitCommitCreate

Create returns a create builder for GitCommit.

func (*GitCommitClient) CreateBulk

func (c *GitCommitClient) CreateBulk(builders ...*GitCommitCreate) *GitCommitCreateBulk

CreateBulk returns a builder for creating a bulk of GitCommit entities.

func (*GitCommitClient) Delete

func (c *GitCommitClient) Delete() *GitCommitDelete

Delete returns a delete builder for GitCommit.

func (*GitCommitClient) DeleteOne

func (c *GitCommitClient) DeleteOne(gc *GitCommit) *GitCommitDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*GitCommitClient) DeleteOneID

func (c *GitCommitClient) DeleteOneID(id int) *GitCommitDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*GitCommitClient) Get

func (c *GitCommitClient) Get(ctx context.Context, id int) (*GitCommit, error)

Get returns a GitCommit entity by its id.

func (*GitCommitClient) GetX

func (c *GitCommitClient) GetX(ctx context.Context, id int) *GitCommit

GetX is like Get, but panics if an error occurs.

func (*GitCommitClient) Hooks

func (c *GitCommitClient) Hooks() []Hook

Hooks returns the client hooks.

func (*GitCommitClient) Query

func (c *GitCommitClient) Query() *GitCommitQuery

Query returns a query builder for GitCommit.

func (*GitCommitClient) QueryRelease

func (c *GitCommitClient) QueryRelease(gc *GitCommit) *ReleaseQuery

QueryRelease queries the release edge of a GitCommit.

func (*GitCommitClient) QueryRepo

func (c *GitCommitClient) QueryRepo(gc *GitCommit) *RepoQuery

QueryRepo queries the repo edge of a GitCommit.

func (*GitCommitClient) Update

func (c *GitCommitClient) Update() *GitCommitUpdate

Update returns an update builder for GitCommit.

func (*GitCommitClient) UpdateOne

func (c *GitCommitClient) UpdateOne(gc *GitCommit) *GitCommitUpdateOne

UpdateOne returns an update builder for the given entity.

func (*GitCommitClient) UpdateOneID

func (c *GitCommitClient) UpdateOneID(id int) *GitCommitUpdateOne

UpdateOneID returns an update builder for the given id.

func (*GitCommitClient) Use

func (c *GitCommitClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `gitcommit.Hooks(f(g(h())))`.

type GitCommitConnection

type GitCommitConnection struct {
	Edges      []*GitCommitEdge `json:"edges"`
	PageInfo   PageInfo         `json:"pageInfo"`
	TotalCount int              `json:"totalCount"`
}

GitCommitConnection is the connection containing edges to GitCommit.

type GitCommitCreate

type GitCommitCreate struct {
	// contains filtered or unexported fields
}

GitCommitCreate is the builder for creating a GitCommit entity.

func (*GitCommitCreate) Exec

func (gcc *GitCommitCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*GitCommitCreate) ExecX

func (gcc *GitCommitCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GitCommitCreate) Mutation

func (gcc *GitCommitCreate) Mutation() *GitCommitMutation

Mutation returns the GitCommitMutation object of the builder.

func (*GitCommitCreate) Save

func (gcc *GitCommitCreate) Save(ctx context.Context) (*GitCommit, error)

Save creates the GitCommit in the database.

func (*GitCommitCreate) SaveX

func (gcc *GitCommitCreate) SaveX(ctx context.Context) *GitCommit

SaveX calls Save and panics if Save returns an error.

func (*GitCommitCreate) SetBranch

func (gcc *GitCommitCreate) SetBranch(s string) *GitCommitCreate

SetBranch sets the "branch" field.

func (*GitCommitCreate) SetHash

func (gcc *GitCommitCreate) SetHash(s string) *GitCommitCreate

SetHash sets the "hash" field.

func (*GitCommitCreate) SetModelCreate

func (gc *GitCommitCreate) SetModelCreate(model *GitCommitModelCreate) *GitCommitCreate

func (*GitCommitCreate) SetNillableReleaseID

func (gcc *GitCommitCreate) SetNillableReleaseID(id *int) *GitCommitCreate

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*GitCommitCreate) SetNillableTag

func (gcc *GitCommitCreate) SetNillableTag(s *string) *GitCommitCreate

SetNillableTag sets the "tag" field if the given value is not nil.

func (*GitCommitCreate) SetRelease

func (gcc *GitCommitCreate) SetRelease(r *Release) *GitCommitCreate

SetRelease sets the "release" edge to the Release entity.

func (*GitCommitCreate) SetReleaseID

func (gcc *GitCommitCreate) SetReleaseID(id int) *GitCommitCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*GitCommitCreate) SetRepo

func (gcc *GitCommitCreate) SetRepo(r *Repo) *GitCommitCreate

SetRepo sets the "repo" edge to the Repo entity.

func (*GitCommitCreate) SetRepoID

func (gcc *GitCommitCreate) SetRepoID(id int) *GitCommitCreate

SetRepoID sets the "repo" edge to the Repo entity by ID.

func (*GitCommitCreate) SetTag

func (gcc *GitCommitCreate) SetTag(s string) *GitCommitCreate

SetTag sets the "tag" field.

func (*GitCommitCreate) SetTime

func (gcc *GitCommitCreate) SetTime(t time.Time) *GitCommitCreate

SetTime sets the "time" field.

type GitCommitCreateBulk

type GitCommitCreateBulk struct {
	// contains filtered or unexported fields
}

GitCommitCreateBulk is the builder for creating many GitCommit entities in bulk.

func (*GitCommitCreateBulk) Exec

func (gccb *GitCommitCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*GitCommitCreateBulk) ExecX

func (gccb *GitCommitCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GitCommitCreateBulk) Save

func (gccb *GitCommitCreateBulk) Save(ctx context.Context) ([]*GitCommit, error)

Save creates the GitCommit entities in the database.

func (*GitCommitCreateBulk) SaveX

func (gccb *GitCommitCreateBulk) SaveX(ctx context.Context) []*GitCommit

SaveX is like Save, but panics if an error occurs.

type GitCommitDelete

type GitCommitDelete struct {
	// contains filtered or unexported fields
}

GitCommitDelete is the builder for deleting a GitCommit entity.

func (*GitCommitDelete) Exec

func (gcd *GitCommitDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*GitCommitDelete) ExecX

func (gcd *GitCommitDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*GitCommitDelete) Where

Where appends a list predicates to the GitCommitDelete builder.

type GitCommitDeleteOne

type GitCommitDeleteOne struct {
	// contains filtered or unexported fields
}

GitCommitDeleteOne is the builder for deleting a single GitCommit entity.

func (*GitCommitDeleteOne) Exec

func (gcdo *GitCommitDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*GitCommitDeleteOne) ExecX

func (gcdo *GitCommitDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type GitCommitEdge

type GitCommitEdge struct {
	Node   *GitCommit `json:"node"`
	Cursor Cursor     `json:"cursor"`
}

GitCommitEdge is the edge representation of GitCommit.

type GitCommitEdges

type GitCommitEdges struct {
	// Repo holds the value of the repo edge.
	Repo *Repo `json:"repo,omitempty"`
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// contains filtered or unexported fields
}

GitCommitEdges holds the relations/edges for other nodes in the graph.

func (GitCommitEdges) ReleaseOrErr

func (e GitCommitEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (GitCommitEdges) RepoOrErr

func (e GitCommitEdges) RepoOrErr() (*Repo, error)

RepoOrErr returns the Repo value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type GitCommitGroupBy

type GitCommitGroupBy struct {
	// contains filtered or unexported fields
}

GitCommitGroupBy is the group-by builder for GitCommit entities.

func (*GitCommitGroupBy) Aggregate

func (gcgb *GitCommitGroupBy) Aggregate(fns ...AggregateFunc) *GitCommitGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*GitCommitGroupBy) Bool

func (gcgb *GitCommitGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) BoolX

func (gcgb *GitCommitGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*GitCommitGroupBy) Bools

func (gcgb *GitCommitGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) BoolsX

func (gcgb *GitCommitGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*GitCommitGroupBy) Float64

func (gcgb *GitCommitGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) Float64X

func (gcgb *GitCommitGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*GitCommitGroupBy) Float64s

func (gcgb *GitCommitGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) Float64sX

func (gcgb *GitCommitGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*GitCommitGroupBy) Int

func (gcgb *GitCommitGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) IntX

func (gcgb *GitCommitGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*GitCommitGroupBy) Ints

func (gcgb *GitCommitGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) IntsX

func (gcgb *GitCommitGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*GitCommitGroupBy) Scan

func (gcgb *GitCommitGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*GitCommitGroupBy) ScanX

func (gcgb *GitCommitGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*GitCommitGroupBy) String

func (gcgb *GitCommitGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) StringX

func (gcgb *GitCommitGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*GitCommitGroupBy) Strings

func (gcgb *GitCommitGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*GitCommitGroupBy) StringsX

func (gcgb *GitCommitGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type GitCommitModelCreate

type GitCommitModelCreate struct {
	Hash   *string    `json:"hash,omitempty" validate:"required" mapstructure:"hash"`
	Branch *string    `json:"branch,omitempty" validate:"required" mapstructure:"branch"`
	Tag    *string    `json:"tag,omitempty"  mapstructure:"tag"`
	Time   *time.Time `json:"time,omitempty" validate:"required" mapstructure:"time"`
}

func NewGitCommitModelCreate

func NewGitCommitModelCreate() *GitCommitModelCreate

func (*GitCommitModelCreate) SetBranch

func (gc *GitCommitModelCreate) SetBranch(value string) *GitCommitModelCreate

func (*GitCommitModelCreate) SetHash

func (gc *GitCommitModelCreate) SetHash(value string) *GitCommitModelCreate

func (*GitCommitModelCreate) SetTag

func (*GitCommitModelCreate) SetTime

func (gc *GitCommitModelCreate) SetTime(value time.Time) *GitCommitModelCreate

type GitCommitModelRead

type GitCommitModelRead struct {
	Hash   *string    `json:"hash,omitempty" validate:"required" mapstructure:"hash"`
	Branch *string    `json:"branch,omitempty" validate:"required" mapstructure:"branch"`
	Tag    *string    `json:"tag,omitempty"  mapstructure:"tag"`
	Time   *time.Time `json:"time,omitempty" validate:"required" mapstructure:"time"`
	ID     *int       `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewGitCommitModelRead

func NewGitCommitModelRead() *GitCommitModelRead

func (*GitCommitModelRead) FromEnt

func (gc *GitCommitModelRead) FromEnt(value *GitCommit) *GitCommitModelRead

type GitCommitModelUpdate

type GitCommitModelUpdate struct {
	Hash   *string    `json:"hash,omitempty"  mapstructure:"hash"`
	Branch *string    `json:"branch,omitempty"  mapstructure:"branch"`
	Tag    *string    `json:"tag,omitempty"  mapstructure:"tag"`
	Time   *time.Time `json:"time,omitempty"  mapstructure:"time"`
}

func NewGitCommitModelUpdate

func NewGitCommitModelUpdate() *GitCommitModelUpdate

func (*GitCommitModelUpdate) SetBranch

func (gc *GitCommitModelUpdate) SetBranch(value string) *GitCommitModelUpdate

func (*GitCommitModelUpdate) SetHash

func (gc *GitCommitModelUpdate) SetHash(value string) *GitCommitModelUpdate

func (*GitCommitModelUpdate) SetTag

func (*GitCommitModelUpdate) SetTime

func (gc *GitCommitModelUpdate) SetTime(value time.Time) *GitCommitModelUpdate

type GitCommitMutation

type GitCommitMutation struct {
	// contains filtered or unexported fields
}

GitCommitMutation represents an operation that mutates the GitCommit nodes in the graph.

func (*GitCommitMutation) AddField

func (m *GitCommitMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*GitCommitMutation) AddedEdges

func (m *GitCommitMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*GitCommitMutation) AddedField

func (m *GitCommitMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*GitCommitMutation) AddedFields

func (m *GitCommitMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*GitCommitMutation) AddedIDs

func (m *GitCommitMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*GitCommitMutation) Branch

func (m *GitCommitMutation) Branch() (r string, exists bool)

Branch returns the value of the "branch" field in the mutation.

func (*GitCommitMutation) ClearEdge

func (m *GitCommitMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*GitCommitMutation) ClearField

func (m *GitCommitMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*GitCommitMutation) ClearRelease

func (m *GitCommitMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*GitCommitMutation) ClearRepo

func (m *GitCommitMutation) ClearRepo()

ClearRepo clears the "repo" edge to the Repo entity.

func (*GitCommitMutation) ClearTag

func (m *GitCommitMutation) ClearTag()

ClearTag clears the value of the "tag" field.

func (*GitCommitMutation) ClearedEdges

func (m *GitCommitMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*GitCommitMutation) ClearedFields

func (m *GitCommitMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (GitCommitMutation) Client

func (m GitCommitMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*GitCommitMutation) EdgeCleared

func (m *GitCommitMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*GitCommitMutation) Field

func (m *GitCommitMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*GitCommitMutation) FieldCleared

func (m *GitCommitMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*GitCommitMutation) Fields

func (m *GitCommitMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*GitCommitMutation) Hash

func (m *GitCommitMutation) Hash() (r string, exists bool)

Hash returns the value of the "hash" field in the mutation.

func (*GitCommitMutation) ID

func (m *GitCommitMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*GitCommitMutation) OldBranch

func (m *GitCommitMutation) OldBranch(ctx context.Context) (v string, err error)

OldBranch returns the old "branch" field's value of the GitCommit entity. If the GitCommit object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GitCommitMutation) OldField

func (m *GitCommitMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*GitCommitMutation) OldHash

func (m *GitCommitMutation) OldHash(ctx context.Context) (v string, err error)

OldHash returns the old "hash" field's value of the GitCommit entity. If the GitCommit object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GitCommitMutation) OldTag

func (m *GitCommitMutation) OldTag(ctx context.Context) (v string, err error)

OldTag returns the old "tag" field's value of the GitCommit entity. If the GitCommit object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GitCommitMutation) OldTime

func (m *GitCommitMutation) OldTime(ctx context.Context) (v time.Time, err error)

OldTime returns the old "time" field's value of the GitCommit entity. If the GitCommit object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*GitCommitMutation) Op

func (m *GitCommitMutation) Op() Op

Op returns the operation name.

func (*GitCommitMutation) ReleaseCleared

func (m *GitCommitMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*GitCommitMutation) ReleaseID

func (m *GitCommitMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*GitCommitMutation) ReleaseIDs

func (m *GitCommitMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*GitCommitMutation) RemovedEdges

func (m *GitCommitMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*GitCommitMutation) RemovedIDs

func (m *GitCommitMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*GitCommitMutation) RepoCleared

func (m *GitCommitMutation) RepoCleared() bool

RepoCleared reports if the "repo" edge to the Repo entity was cleared.

func (*GitCommitMutation) RepoID

func (m *GitCommitMutation) RepoID() (id int, exists bool)

RepoID returns the "repo" edge ID in the mutation.

func (*GitCommitMutation) RepoIDs

func (m *GitCommitMutation) RepoIDs() (ids []int)

RepoIDs returns the "repo" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RepoID instead. It exists only for internal usage by the builders.

func (*GitCommitMutation) ResetBranch

func (m *GitCommitMutation) ResetBranch()

ResetBranch resets all changes to the "branch" field.

func (*GitCommitMutation) ResetEdge

func (m *GitCommitMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*GitCommitMutation) ResetField

func (m *GitCommitMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*GitCommitMutation) ResetHash

func (m *GitCommitMutation) ResetHash()

ResetHash resets all changes to the "hash" field.

func (*GitCommitMutation) ResetRelease

func (m *GitCommitMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*GitCommitMutation) ResetRepo

func (m *GitCommitMutation) ResetRepo()

ResetRepo resets all changes to the "repo" edge.

func (*GitCommitMutation) ResetTag

func (m *GitCommitMutation) ResetTag()

ResetTag resets all changes to the "tag" field.

func (*GitCommitMutation) ResetTime

func (m *GitCommitMutation) ResetTime()

ResetTime resets all changes to the "time" field.

func (*GitCommitMutation) SetBranch

func (m *GitCommitMutation) SetBranch(s string)

SetBranch sets the "branch" field.

func (*GitCommitMutation) SetField

func (m *GitCommitMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*GitCommitMutation) SetHash

func (m *GitCommitMutation) SetHash(s string)

SetHash sets the "hash" field.

func (*GitCommitMutation) SetModelCreate

func (gc *GitCommitMutation) SetModelCreate(model *GitCommitModelCreate) *GitCommitMutation

func (*GitCommitMutation) SetModelUpdate

func (gc *GitCommitMutation) SetModelUpdate(model *GitCommitModelUpdate) *GitCommitMutation

func (*GitCommitMutation) SetReleaseID

func (m *GitCommitMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*GitCommitMutation) SetRepoID

func (m *GitCommitMutation) SetRepoID(id int)

SetRepoID sets the "repo" edge to the Repo entity by id.

func (*GitCommitMutation) SetTag

func (m *GitCommitMutation) SetTag(s string)

SetTag sets the "tag" field.

func (*GitCommitMutation) SetTime

func (m *GitCommitMutation) SetTime(t time.Time)

SetTime sets the "time" field.

func (*GitCommitMutation) Tag

func (m *GitCommitMutation) Tag() (r string, exists bool)

Tag returns the value of the "tag" field in the mutation.

func (*GitCommitMutation) TagCleared

func (m *GitCommitMutation) TagCleared() bool

TagCleared returns if the "tag" field was cleared in this mutation.

func (*GitCommitMutation) Time

func (m *GitCommitMutation) Time() (r time.Time, exists bool)

Time returns the value of the "time" field in the mutation.

func (GitCommitMutation) Tx

func (m GitCommitMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*GitCommitMutation) Type

func (m *GitCommitMutation) Type() string

Type returns the node type of this mutation (GitCommit).

func (*GitCommitMutation) Where

func (m *GitCommitMutation) Where(ps ...predicate.GitCommit)

Where appends a list predicates to the GitCommitMutation builder.

type GitCommitOrder

type GitCommitOrder struct {
	Direction OrderDirection       `json:"direction"`
	Field     *GitCommitOrderField `json:"field"`
}

GitCommitOrder defines the ordering of GitCommit.

type GitCommitOrderField

type GitCommitOrderField struct {
	// contains filtered or unexported fields
}

GitCommitOrderField defines the ordering field of GitCommit.

func (GitCommitOrderField) MarshalGQL

func (f GitCommitOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (GitCommitOrderField) String

func (f GitCommitOrderField) String() string

String implement fmt.Stringer interface.

func (*GitCommitOrderField) UnmarshalGQL

func (f *GitCommitOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type GitCommitPaginateOption

type GitCommitPaginateOption func(*gitCommitPager) error

GitCommitPaginateOption enables pagination customization.

func WithGitCommitFilter

func WithGitCommitFilter(filter func(*GitCommitQuery) (*GitCommitQuery, error)) GitCommitPaginateOption

WithGitCommitFilter configures pagination filter.

func WithGitCommitOrder

func WithGitCommitOrder(order *GitCommitOrder) GitCommitPaginateOption

WithGitCommitOrder configures pagination ordering.

type GitCommitQuery

type GitCommitQuery struct {
	// contains filtered or unexported fields
}

GitCommitQuery is the builder for querying GitCommit entities.

func (*GitCommitQuery) All

func (gcq *GitCommitQuery) All(ctx context.Context) ([]*GitCommit, error)

All executes the query and returns a list of GitCommits.

func (*GitCommitQuery) AllX

func (gcq *GitCommitQuery) AllX(ctx context.Context) []*GitCommit

AllX is like All, but panics if an error occurs.

func (*GitCommitQuery) Clone

func (gcq *GitCommitQuery) Clone() *GitCommitQuery

Clone returns a duplicate of the GitCommitQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*GitCommitQuery) CollectFields

func (gc *GitCommitQuery) CollectFields(ctx context.Context, satisfies ...string) *GitCommitQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*GitCommitQuery) Count

func (gcq *GitCommitQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*GitCommitQuery) CountX

func (gcq *GitCommitQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*GitCommitQuery) Exist

func (gcq *GitCommitQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*GitCommitQuery) ExistX

func (gcq *GitCommitQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*GitCommitQuery) Filter

func (gc *GitCommitQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *GitCommitOrder, where *GitCommitWhereInput,
) ([]*GitCommit, error)

func (*GitCommitQuery) First

func (gcq *GitCommitQuery) First(ctx context.Context) (*GitCommit, error)

First returns the first GitCommit entity from the query. Returns a *NotFoundError when no GitCommit was found.

func (*GitCommitQuery) FirstID

func (gcq *GitCommitQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first GitCommit ID from the query. Returns a *NotFoundError when no GitCommit ID was found.

func (*GitCommitQuery) FirstIDX

func (gcq *GitCommitQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*GitCommitQuery) FirstX

func (gcq *GitCommitQuery) FirstX(ctx context.Context) *GitCommit

FirstX is like First, but panics if an error occurs.

func (*GitCommitQuery) GroupBy

func (gcq *GitCommitQuery) GroupBy(field string, fields ...string) *GitCommitGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Hash string `json:"hash,omitempty"`
	Count int `json:"count,omitempty"`
}

client.GitCommit.Query().
	GroupBy(gitcommit.FieldHash).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*GitCommitQuery) IDs

func (gcq *GitCommitQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of GitCommit IDs.

func (*GitCommitQuery) IDsX

func (gcq *GitCommitQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*GitCommitQuery) Limit

func (gcq *GitCommitQuery) Limit(limit int) *GitCommitQuery

Limit adds a limit step to the query.

func (*GitCommitQuery) Offset

func (gcq *GitCommitQuery) Offset(offset int) *GitCommitQuery

Offset adds an offset step to the query.

func (*GitCommitQuery) Only

func (gcq *GitCommitQuery) Only(ctx context.Context) (*GitCommit, error)

Only returns a single GitCommit entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one GitCommit entity is not found. Returns a *NotFoundError when no GitCommit entities are found.

func (*GitCommitQuery) OnlyID

func (gcq *GitCommitQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only GitCommit ID in the query. Returns a *NotSingularError when exactly one GitCommit ID is not found. Returns a *NotFoundError when no entities are found.

func (*GitCommitQuery) OnlyIDX

func (gcq *GitCommitQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*GitCommitQuery) OnlyX

func (gcq *GitCommitQuery) OnlyX(ctx context.Context) *GitCommit

OnlyX is like Only, but panics if an error occurs.

func (*GitCommitQuery) Order

func (gcq *GitCommitQuery) Order(o ...OrderFunc) *GitCommitQuery

Order adds an order step to the query.

func (*GitCommitQuery) Paginate

func (gc *GitCommitQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...GitCommitPaginateOption,
) (*GitCommitConnection, error)

Paginate executes the query and returns a relay based cursor connection to GitCommit.

func (*GitCommitQuery) QueryRelease

func (gcq *GitCommitQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*GitCommitQuery) QueryRepo

func (gcq *GitCommitQuery) QueryRepo() *RepoQuery

QueryRepo chains the current query on the "repo" edge.

func (*GitCommitQuery) Select

func (gcq *GitCommitQuery) Select(fields ...string) *GitCommitSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Hash string `json:"hash,omitempty"`
}

client.GitCommit.Query().
	Select(gitcommit.FieldHash).
	Scan(ctx, &v)

func (*GitCommitQuery) Unique

func (gcq *GitCommitQuery) Unique(unique bool) *GitCommitQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*GitCommitQuery) Where

func (gcq *GitCommitQuery) Where(ps ...predicate.GitCommit) *GitCommitQuery

Where adds a new predicate for the GitCommitQuery builder.

func (*GitCommitQuery) WhereInput

func (gc *GitCommitQuery) WhereInput(input *GitCommitWhereInput) *GitCommitQuery

func (*GitCommitQuery) WithRelease

func (gcq *GitCommitQuery) WithRelease(opts ...func(*ReleaseQuery)) *GitCommitQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*GitCommitQuery) WithRepo

func (gcq *GitCommitQuery) WithRepo(opts ...func(*RepoQuery)) *GitCommitQuery

WithRepo tells the query-builder to eager-load the nodes that are connected to the "repo" edge. The optional arguments are used to configure the query builder of the edge.

type GitCommitSelect

type GitCommitSelect struct {
	*GitCommitQuery
	// contains filtered or unexported fields
}

GitCommitSelect is the builder for selecting fields of GitCommit entities.

func (*GitCommitSelect) Bool

func (gcs *GitCommitSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) BoolX

func (gcs *GitCommitSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*GitCommitSelect) Bools

func (gcs *GitCommitSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) BoolsX

func (gcs *GitCommitSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*GitCommitSelect) Float64

func (gcs *GitCommitSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) Float64X

func (gcs *GitCommitSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*GitCommitSelect) Float64s

func (gcs *GitCommitSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) Float64sX

func (gcs *GitCommitSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*GitCommitSelect) Int

func (gcs *GitCommitSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) IntX

func (gcs *GitCommitSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*GitCommitSelect) Ints

func (gcs *GitCommitSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) IntsX

func (gcs *GitCommitSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*GitCommitSelect) Scan

func (gcs *GitCommitSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*GitCommitSelect) ScanX

func (gcs *GitCommitSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*GitCommitSelect) String

func (gcs *GitCommitSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) StringX

func (gcs *GitCommitSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*GitCommitSelect) Strings

func (gcs *GitCommitSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*GitCommitSelect) StringsX

func (gcs *GitCommitSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type GitCommitUpdate

type GitCommitUpdate struct {
	// contains filtered or unexported fields
}

GitCommitUpdate is the builder for updating GitCommit entities.

func (*GitCommitUpdate) ClearRelease

func (gcu *GitCommitUpdate) ClearRelease() *GitCommitUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*GitCommitUpdate) ClearRepo

func (gcu *GitCommitUpdate) ClearRepo() *GitCommitUpdate

ClearRepo clears the "repo" edge to the Repo entity.

func (*GitCommitUpdate) Exec

func (gcu *GitCommitUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*GitCommitUpdate) ExecX

func (gcu *GitCommitUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GitCommitUpdate) Mutation

func (gcu *GitCommitUpdate) Mutation() *GitCommitMutation

Mutation returns the GitCommitMutation object of the builder.

func (*GitCommitUpdate) Save

func (gcu *GitCommitUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*GitCommitUpdate) SaveX

func (gcu *GitCommitUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*GitCommitUpdate) SetNillableReleaseID

func (gcu *GitCommitUpdate) SetNillableReleaseID(id *int) *GitCommitUpdate

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*GitCommitUpdate) SetRelease

func (gcu *GitCommitUpdate) SetRelease(r *Release) *GitCommitUpdate

SetRelease sets the "release" edge to the Release entity.

func (*GitCommitUpdate) SetReleaseID

func (gcu *GitCommitUpdate) SetReleaseID(id int) *GitCommitUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*GitCommitUpdate) SetRepo

func (gcu *GitCommitUpdate) SetRepo(r *Repo) *GitCommitUpdate

SetRepo sets the "repo" edge to the Repo entity.

func (*GitCommitUpdate) SetRepoID

func (gcu *GitCommitUpdate) SetRepoID(id int) *GitCommitUpdate

SetRepoID sets the "repo" edge to the Repo entity by ID.

func (*GitCommitUpdate) Where

Where appends a list predicates to the GitCommitUpdate builder.

type GitCommitUpdateOne

type GitCommitUpdateOne struct {
	// contains filtered or unexported fields
}

GitCommitUpdateOne is the builder for updating a single GitCommit entity.

func (*GitCommitUpdateOne) ClearRelease

func (gcuo *GitCommitUpdateOne) ClearRelease() *GitCommitUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*GitCommitUpdateOne) ClearRepo

func (gcuo *GitCommitUpdateOne) ClearRepo() *GitCommitUpdateOne

ClearRepo clears the "repo" edge to the Repo entity.

func (*GitCommitUpdateOne) Exec

func (gcuo *GitCommitUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*GitCommitUpdateOne) ExecX

func (gcuo *GitCommitUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*GitCommitUpdateOne) Mutation

func (gcuo *GitCommitUpdateOne) Mutation() *GitCommitMutation

Mutation returns the GitCommitMutation object of the builder.

func (*GitCommitUpdateOne) Save

func (gcuo *GitCommitUpdateOne) Save(ctx context.Context) (*GitCommit, error)

Save executes the query and returns the updated GitCommit entity.

func (*GitCommitUpdateOne) SaveX

func (gcuo *GitCommitUpdateOne) SaveX(ctx context.Context) *GitCommit

SaveX is like Save, but panics if an error occurs.

func (*GitCommitUpdateOne) Select

func (gcuo *GitCommitUpdateOne) Select(field string, fields ...string) *GitCommitUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*GitCommitUpdateOne) SetModelCreate

func (gc *GitCommitUpdateOne) SetModelCreate(model *GitCommitModelCreate) *GitCommitUpdateOne

func (*GitCommitUpdateOne) SetModelUpdate

func (gc *GitCommitUpdateOne) SetModelUpdate(model *GitCommitModelUpdate) *GitCommitUpdateOne

func (*GitCommitUpdateOne) SetNillableReleaseID

func (gcuo *GitCommitUpdateOne) SetNillableReleaseID(id *int) *GitCommitUpdateOne

SetNillableReleaseID sets the "release" edge to the Release entity by ID if the given value is not nil.

func (*GitCommitUpdateOne) SetRelease

func (gcuo *GitCommitUpdateOne) SetRelease(r *Release) *GitCommitUpdateOne

SetRelease sets the "release" edge to the Release entity.

func (*GitCommitUpdateOne) SetReleaseID

func (gcuo *GitCommitUpdateOne) SetReleaseID(id int) *GitCommitUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*GitCommitUpdateOne) SetRepo

func (gcuo *GitCommitUpdateOne) SetRepo(r *Repo) *GitCommitUpdateOne

SetRepo sets the "repo" edge to the Repo entity.

func (*GitCommitUpdateOne) SetRepoID

func (gcuo *GitCommitUpdateOne) SetRepoID(id int) *GitCommitUpdateOne

SetRepoID sets the "repo" edge to the Repo entity by ID.

type GitCommitWhereInput

type GitCommitWhereInput struct {
	Not *GitCommitWhereInput   `json:"not,omitempty"`
	Or  []*GitCommitWhereInput `json:"or,omitempty"`
	And []*GitCommitWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "hash" field predicates.
	Hash             *string  `json:"hash,omitempty"`
	HashNEQ          *string  `json:"hashNEQ,omitempty"`
	HashIn           []string `json:"hashIn,omitempty"`
	HashNotIn        []string `json:"hashNotIn,omitempty"`
	HashGT           *string  `json:"hashGT,omitempty"`
	HashGTE          *string  `json:"hashGTE,omitempty"`
	HashLT           *string  `json:"hashLT,omitempty"`
	HashLTE          *string  `json:"hashLTE,omitempty"`
	HashContains     *string  `json:"hashContains,omitempty"`
	HashHasPrefix    *string  `json:"hashHasPrefix,omitempty"`
	HashHasSuffix    *string  `json:"hashHasSuffix,omitempty"`
	HashEqualFold    *string  `json:"hashEqualFold,omitempty"`
	HashContainsFold *string  `json:"hashContainsFold,omitempty"`

	// "branch" field predicates.
	Branch             *string  `json:"branch,omitempty"`
	BranchNEQ          *string  `json:"branchNEQ,omitempty"`
	BranchIn           []string `json:"branchIn,omitempty"`
	BranchNotIn        []string `json:"branchNotIn,omitempty"`
	BranchGT           *string  `json:"branchGT,omitempty"`
	BranchGTE          *string  `json:"branchGTE,omitempty"`
	BranchLT           *string  `json:"branchLT,omitempty"`
	BranchLTE          *string  `json:"branchLTE,omitempty"`
	BranchContains     *string  `json:"branchContains,omitempty"`
	BranchHasPrefix    *string  `json:"branchHasPrefix,omitempty"`
	BranchHasSuffix    *string  `json:"branchHasSuffix,omitempty"`
	BranchEqualFold    *string  `json:"branchEqualFold,omitempty"`
	BranchContainsFold *string  `json:"branchContainsFold,omitempty"`

	// "tag" field predicates.
	Tag             *string  `json:"tag,omitempty"`
	TagNEQ          *string  `json:"tagNEQ,omitempty"`
	TagIn           []string `json:"tagIn,omitempty"`
	TagNotIn        []string `json:"tagNotIn,omitempty"`
	TagGT           *string  `json:"tagGT,omitempty"`
	TagGTE          *string  `json:"tagGTE,omitempty"`
	TagLT           *string  `json:"tagLT,omitempty"`
	TagLTE          *string  `json:"tagLTE,omitempty"`
	TagContains     *string  `json:"tagContains,omitempty"`
	TagHasPrefix    *string  `json:"tagHasPrefix,omitempty"`
	TagHasSuffix    *string  `json:"tagHasSuffix,omitempty"`
	TagIsNil        bool     `json:"tagIsNil,omitempty"`
	TagNotNil       bool     `json:"tagNotNil,omitempty"`
	TagEqualFold    *string  `json:"tagEqualFold,omitempty"`
	TagContainsFold *string  `json:"tagContainsFold,omitempty"`

	// "time" field predicates.
	Time      *time.Time  `json:"time,omitempty"`
	TimeNEQ   *time.Time  `json:"timeNEQ,omitempty"`
	TimeIn    []time.Time `json:"timeIn,omitempty"`
	TimeNotIn []time.Time `json:"timeNotIn,omitempty"`
	TimeGT    *time.Time  `json:"timeGT,omitempty"`
	TimeGTE   *time.Time  `json:"timeGTE,omitempty"`
	TimeLT    *time.Time  `json:"timeLT,omitempty"`
	TimeLTE   *time.Time  `json:"timeLTE,omitempty"`

	// "repo" edge predicates.
	HasRepo     *bool             `json:"hasRepo,omitempty"`
	HasRepoWith []*RepoWhereInput `json:"hasRepoWith,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`
}

GitCommitWhereInput represents a where input for filtering GitCommit queries.

func (*GitCommitWhereInput) Filter

Filter applies the GitCommitWhereInput filter on the GitCommitQuery builder.

func (*GitCommitWhereInput) P

P returns a predicate for filtering gitcommits. An error is returned if the input is empty or invalid.

type GitCommits

type GitCommits []*GitCommit

GitCommits is a parsable slice of GitCommit.

type Hook

type Hook = ent.Hook

ent aliases to avoid import conflicts in user's code.

type License

type License struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// LicenseID holds the value of the "license_id" field.
	LicenseID string `json:"license_id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the LicenseQuery when eager-loading is set.
	Edges LicenseEdges `json:"edges"`
	// contains filtered or unexported fields
}

License is the model entity for the License schema.

func (*License) Components

func (l *License) Components(ctx context.Context) ([]*Component, error)

func (*License) Instances

func (l *License) Instances(ctx context.Context) ([]*ReleaseLicense, error)

func (*License) Node

func (l *License) Node(ctx context.Context) (node *Node, err error)

func (*License) Owner

func (l *License) Owner(ctx context.Context) (*Organization, error)

func (*License) QueryComponents

func (l *License) QueryComponents() *ComponentQuery

QueryComponents queries the "components" edge of the License entity.

func (*License) QueryInstances

func (l *License) QueryInstances() *ReleaseLicenseQuery

QueryInstances queries the "instances" edge of the License entity.

func (*License) QueryOwner

func (l *License) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the License entity.

func (*License) QuerySpdx

func (l *License) QuerySpdx() *SPDXLicenseQuery

QuerySpdx queries the "spdx" edge of the License entity.

func (*License) Spdx

func (l *License) Spdx(ctx context.Context) (*SPDXLicense, error)

func (*License) String

func (l *License) String() string

String implements the fmt.Stringer.

func (*License) ToEdge

func (l *License) ToEdge(order *LicenseOrder) *LicenseEdge

ToEdge converts License into LicenseEdge.

func (*License) Unwrap

func (l *License) Unwrap() *License

Unwrap unwraps the License entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*License) Update

func (l *License) Update() *LicenseUpdateOne

Update returns a builder for updating this License. Note that you need to call License.Unwrap() before calling this method if this License was returned from a transaction, and the transaction was committed or rolled back.

type LicenseClient

type LicenseClient struct {
	// contains filtered or unexported fields
}

LicenseClient is a client for the License schema.

func NewLicenseClient

func NewLicenseClient(c config) *LicenseClient

NewLicenseClient returns a client for the License from the given config.

func (*LicenseClient) Create

func (c *LicenseClient) Create() *LicenseCreate

Create returns a create builder for License.

func (*LicenseClient) CreateBulk

func (c *LicenseClient) CreateBulk(builders ...*LicenseCreate) *LicenseCreateBulk

CreateBulk returns a builder for creating a bulk of License entities.

func (*LicenseClient) Delete

func (c *LicenseClient) Delete() *LicenseDelete

Delete returns a delete builder for License.

func (*LicenseClient) DeleteOne

func (c *LicenseClient) DeleteOne(l *License) *LicenseDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*LicenseClient) DeleteOneID

func (c *LicenseClient) DeleteOneID(id int) *LicenseDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*LicenseClient) Get

func (c *LicenseClient) Get(ctx context.Context, id int) (*License, error)

Get returns a License entity by its id.

func (*LicenseClient) GetX

func (c *LicenseClient) GetX(ctx context.Context, id int) *License

GetX is like Get, but panics if an error occurs.

func (*LicenseClient) Hooks

func (c *LicenseClient) Hooks() []Hook

Hooks returns the client hooks.

func (*LicenseClient) Query

func (c *LicenseClient) Query() *LicenseQuery

Query returns a query builder for License.

func (*LicenseClient) QueryComponents

func (c *LicenseClient) QueryComponents(l *License) *ComponentQuery

QueryComponents queries the components edge of a License.

func (*LicenseClient) QueryInstances

func (c *LicenseClient) QueryInstances(l *License) *ReleaseLicenseQuery

QueryInstances queries the instances edge of a License.

func (*LicenseClient) QueryOwner

func (c *LicenseClient) QueryOwner(l *License) *OrganizationQuery

QueryOwner queries the owner edge of a License.

func (*LicenseClient) QuerySpdx

func (c *LicenseClient) QuerySpdx(l *License) *SPDXLicenseQuery

QuerySpdx queries the spdx edge of a License.

func (*LicenseClient) Update

func (c *LicenseClient) Update() *LicenseUpdate

Update returns an update builder for License.

func (*LicenseClient) UpdateOne

func (c *LicenseClient) UpdateOne(l *License) *LicenseUpdateOne

UpdateOne returns an update builder for the given entity.

func (*LicenseClient) UpdateOneID

func (c *LicenseClient) UpdateOneID(id int) *LicenseUpdateOne

UpdateOneID returns an update builder for the given id.

func (*LicenseClient) Use

func (c *LicenseClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `license.Hooks(f(g(h())))`.

type LicenseConnection

type LicenseConnection struct {
	Edges      []*LicenseEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

LicenseConnection is the connection containing edges to License.

type LicenseCreate

type LicenseCreate struct {
	// contains filtered or unexported fields
}

LicenseCreate is the builder for creating a License entity.

func (*LicenseCreate) AddComponentIDs

func (lc *LicenseCreate) AddComponentIDs(ids ...int) *LicenseCreate

AddComponentIDs adds the "components" edge to the Component entity by IDs.

func (*LicenseCreate) AddComponents

func (lc *LicenseCreate) AddComponents(c ...*Component) *LicenseCreate

AddComponents adds the "components" edges to the Component entity.

func (*LicenseCreate) AddInstanceIDs

func (lc *LicenseCreate) AddInstanceIDs(ids ...int) *LicenseCreate

AddInstanceIDs adds the "instances" edge to the ReleaseLicense entity by IDs.

func (*LicenseCreate) AddInstances

func (lc *LicenseCreate) AddInstances(r ...*ReleaseLicense) *LicenseCreate

AddInstances adds the "instances" edges to the ReleaseLicense entity.

func (*LicenseCreate) Exec

func (lc *LicenseCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*LicenseCreate) ExecX

func (lc *LicenseCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LicenseCreate) Mutation

func (lc *LicenseCreate) Mutation() *LicenseMutation

Mutation returns the LicenseMutation object of the builder.

func (*LicenseCreate) Save

func (lc *LicenseCreate) Save(ctx context.Context) (*License, error)

Save creates the License in the database.

func (*LicenseCreate) SaveX

func (lc *LicenseCreate) SaveX(ctx context.Context) *License

SaveX calls Save and panics if Save returns an error.

func (*LicenseCreate) SetLicenseID

func (lc *LicenseCreate) SetLicenseID(s string) *LicenseCreate

SetLicenseID sets the "license_id" field.

func (*LicenseCreate) SetModelCreate

func (l *LicenseCreate) SetModelCreate(model *LicenseModelCreate) *LicenseCreate

func (*LicenseCreate) SetName

func (lc *LicenseCreate) SetName(s string) *LicenseCreate

SetName sets the "name" field.

func (*LicenseCreate) SetNillableName

func (lc *LicenseCreate) SetNillableName(s *string) *LicenseCreate

SetNillableName sets the "name" field if the given value is not nil.

func (*LicenseCreate) SetNillableSpdxID

func (lc *LicenseCreate) SetNillableSpdxID(id *int) *LicenseCreate

SetNillableSpdxID sets the "spdx" edge to the SPDXLicense entity by ID if the given value is not nil.

func (*LicenseCreate) SetOwner

func (lc *LicenseCreate) SetOwner(o *Organization) *LicenseCreate

SetOwner sets the "owner" edge to the Organization entity.

func (*LicenseCreate) SetOwnerID

func (lc *LicenseCreate) SetOwnerID(id int) *LicenseCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*LicenseCreate) SetSpdx

func (lc *LicenseCreate) SetSpdx(s *SPDXLicense) *LicenseCreate

SetSpdx sets the "spdx" edge to the SPDXLicense entity.

func (*LicenseCreate) SetSpdxID

func (lc *LicenseCreate) SetSpdxID(id int) *LicenseCreate

SetSpdxID sets the "spdx" edge to the SPDXLicense entity by ID.

type LicenseCreateBulk

type LicenseCreateBulk struct {
	// contains filtered or unexported fields
}

LicenseCreateBulk is the builder for creating many License entities in bulk.

func (*LicenseCreateBulk) Exec

func (lcb *LicenseCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*LicenseCreateBulk) ExecX

func (lcb *LicenseCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LicenseCreateBulk) Save

func (lcb *LicenseCreateBulk) Save(ctx context.Context) ([]*License, error)

Save creates the License entities in the database.

func (*LicenseCreateBulk) SaveX

func (lcb *LicenseCreateBulk) SaveX(ctx context.Context) []*License

SaveX is like Save, but panics if an error occurs.

type LicenseDelete

type LicenseDelete struct {
	// contains filtered or unexported fields
}

LicenseDelete is the builder for deleting a License entity.

func (*LicenseDelete) Exec

func (ld *LicenseDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*LicenseDelete) ExecX

func (ld *LicenseDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*LicenseDelete) Where

func (ld *LicenseDelete) Where(ps ...predicate.License) *LicenseDelete

Where appends a list predicates to the LicenseDelete builder.

type LicenseDeleteOne

type LicenseDeleteOne struct {
	// contains filtered or unexported fields
}

LicenseDeleteOne is the builder for deleting a single License entity.

func (*LicenseDeleteOne) Exec

func (ldo *LicenseDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*LicenseDeleteOne) ExecX

func (ldo *LicenseDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type LicenseEdge

type LicenseEdge struct {
	Node   *License `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

LicenseEdge is the edge representation of License.

type LicenseEdges

type LicenseEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// Spdx holds the value of the spdx edge.
	Spdx *SPDXLicense `json:"spdx,omitempty"`
	// Components holds the value of the components edge.
	Components []*Component `json:"components,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*ReleaseLicense `json:"instances,omitempty"`
	// contains filtered or unexported fields
}

LicenseEdges holds the relations/edges for other nodes in the graph.

func (LicenseEdges) ComponentsOrErr

func (e LicenseEdges) ComponentsOrErr() ([]*Component, error)

ComponentsOrErr returns the Components value or an error if the edge was not loaded in eager-loading.

func (LicenseEdges) InstancesOrErr

func (e LicenseEdges) InstancesOrErr() ([]*ReleaseLicense, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (LicenseEdges) OwnerOrErr

func (e LicenseEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (LicenseEdges) SpdxOrErr

func (e LicenseEdges) SpdxOrErr() (*SPDXLicense, error)

SpdxOrErr returns the Spdx value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type LicenseGroupBy

type LicenseGroupBy struct {
	// contains filtered or unexported fields
}

LicenseGroupBy is the group-by builder for License entities.

func (*LicenseGroupBy) Aggregate

func (lgb *LicenseGroupBy) Aggregate(fns ...AggregateFunc) *LicenseGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*LicenseGroupBy) Bool

func (lgb *LicenseGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) BoolX

func (lgb *LicenseGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LicenseGroupBy) Bools

func (lgb *LicenseGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) BoolsX

func (lgb *LicenseGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LicenseGroupBy) Float64

func (lgb *LicenseGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) Float64X

func (lgb *LicenseGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LicenseGroupBy) Float64s

func (lgb *LicenseGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) Float64sX

func (lgb *LicenseGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LicenseGroupBy) Int

func (lgb *LicenseGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) IntX

func (lgb *LicenseGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LicenseGroupBy) Ints

func (lgb *LicenseGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) IntsX

func (lgb *LicenseGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LicenseGroupBy) Scan

func (lgb *LicenseGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*LicenseGroupBy) ScanX

func (lgb *LicenseGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*LicenseGroupBy) String

func (lgb *LicenseGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) StringX

func (lgb *LicenseGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LicenseGroupBy) Strings

func (lgb *LicenseGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*LicenseGroupBy) StringsX

func (lgb *LicenseGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LicenseModelCreate

type LicenseModelCreate struct {
	LicenseID *string `json:"license_id,omitempty" validate:"required" mapstructure:"license_id"`
	Name      *string `json:"name,omitempty"  mapstructure:"name"`
}

func NewLicenseModelCreate

func NewLicenseModelCreate() *LicenseModelCreate

func (*LicenseModelCreate) SetLicenseID

func (l *LicenseModelCreate) SetLicenseID(value string) *LicenseModelCreate

func (*LicenseModelCreate) SetName

func (l *LicenseModelCreate) SetName(value string) *LicenseModelCreate

type LicenseModelRead

type LicenseModelRead struct {
	LicenseID *string `json:"license_id,omitempty" validate:"required" mapstructure:"license_id"`
	Name      *string `json:"name,omitempty"  mapstructure:"name"`
	ID        *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewLicenseModelRead

func NewLicenseModelRead() *LicenseModelRead

func (*LicenseModelRead) FromEnt

func (l *LicenseModelRead) FromEnt(value *License) *LicenseModelRead

type LicenseModelUpdate

type LicenseModelUpdate struct {
	LicenseID *string `json:"license_id,omitempty"  mapstructure:"license_id"`
	Name      *string `json:"name,omitempty"  mapstructure:"name"`
}

func NewLicenseModelUpdate

func NewLicenseModelUpdate() *LicenseModelUpdate

func (*LicenseModelUpdate) SetLicenseID

func (l *LicenseModelUpdate) SetLicenseID(value string) *LicenseModelUpdate

func (*LicenseModelUpdate) SetName

func (l *LicenseModelUpdate) SetName(value string) *LicenseModelUpdate

type LicenseMutation

type LicenseMutation struct {
	// contains filtered or unexported fields
}

LicenseMutation represents an operation that mutates the License nodes in the graph.

func (*LicenseMutation) AddComponentIDs

func (m *LicenseMutation) AddComponentIDs(ids ...int)

AddComponentIDs adds the "components" edge to the Component entity by ids.

func (*LicenseMutation) AddField

func (m *LicenseMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LicenseMutation) AddInstanceIDs

func (m *LicenseMutation) AddInstanceIDs(ids ...int)

AddInstanceIDs adds the "instances" edge to the ReleaseLicense entity by ids.

func (*LicenseMutation) AddedEdges

func (m *LicenseMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*LicenseMutation) AddedField

func (m *LicenseMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LicenseMutation) AddedFields

func (m *LicenseMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*LicenseMutation) AddedIDs

func (m *LicenseMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*LicenseMutation) ClearComponents

func (m *LicenseMutation) ClearComponents()

ClearComponents clears the "components" edge to the Component entity.

func (*LicenseMutation) ClearEdge

func (m *LicenseMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*LicenseMutation) ClearField

func (m *LicenseMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*LicenseMutation) ClearInstances

func (m *LicenseMutation) ClearInstances()

ClearInstances clears the "instances" edge to the ReleaseLicense entity.

func (*LicenseMutation) ClearName

func (m *LicenseMutation) ClearName()

ClearName clears the value of the "name" field.

func (*LicenseMutation) ClearOwner

func (m *LicenseMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*LicenseMutation) ClearSpdx

func (m *LicenseMutation) ClearSpdx()

ClearSpdx clears the "spdx" edge to the SPDXLicense entity.

func (*LicenseMutation) ClearedEdges

func (m *LicenseMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*LicenseMutation) ClearedFields

func (m *LicenseMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (LicenseMutation) Client

func (m LicenseMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*LicenseMutation) ComponentsCleared

func (m *LicenseMutation) ComponentsCleared() bool

ComponentsCleared reports if the "components" edge to the Component entity was cleared.

func (*LicenseMutation) ComponentsIDs

func (m *LicenseMutation) ComponentsIDs() (ids []int)

ComponentsIDs returns the "components" edge IDs in the mutation.

func (*LicenseMutation) EdgeCleared

func (m *LicenseMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*LicenseMutation) Field

func (m *LicenseMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*LicenseMutation) FieldCleared

func (m *LicenseMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*LicenseMutation) Fields

func (m *LicenseMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*LicenseMutation) ID

func (m *LicenseMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*LicenseMutation) InstancesCleared

func (m *LicenseMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the ReleaseLicense entity was cleared.

func (*LicenseMutation) InstancesIDs

func (m *LicenseMutation) InstancesIDs() (ids []int)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*LicenseMutation) LicenseID

func (m *LicenseMutation) LicenseID() (r string, exists bool)

LicenseID returns the value of the "license_id" field in the mutation.

func (*LicenseMutation) Name

func (m *LicenseMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*LicenseMutation) NameCleared

func (m *LicenseMutation) NameCleared() bool

NameCleared returns if the "name" field was cleared in this mutation.

func (*LicenseMutation) OldField

func (m *LicenseMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*LicenseMutation) OldLicenseID

func (m *LicenseMutation) OldLicenseID(ctx context.Context) (v string, err error)

OldLicenseID returns the old "license_id" field's value of the License entity. If the License object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LicenseMutation) OldName

func (m *LicenseMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the License entity. If the License object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*LicenseMutation) Op

func (m *LicenseMutation) Op() Op

Op returns the operation name.

func (*LicenseMutation) OwnerCleared

func (m *LicenseMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*LicenseMutation) OwnerID

func (m *LicenseMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*LicenseMutation) OwnerIDs

func (m *LicenseMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*LicenseMutation) RemoveComponentIDs

func (m *LicenseMutation) RemoveComponentIDs(ids ...int)

RemoveComponentIDs removes the "components" edge to the Component entity by IDs.

func (*LicenseMutation) RemoveInstanceIDs

func (m *LicenseMutation) RemoveInstanceIDs(ids ...int)

RemoveInstanceIDs removes the "instances" edge to the ReleaseLicense entity by IDs.

func (*LicenseMutation) RemovedComponentsIDs

func (m *LicenseMutation) RemovedComponentsIDs() (ids []int)

RemovedComponents returns the removed IDs of the "components" edge to the Component entity.

func (*LicenseMutation) RemovedEdges

func (m *LicenseMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*LicenseMutation) RemovedIDs

func (m *LicenseMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*LicenseMutation) RemovedInstancesIDs

func (m *LicenseMutation) RemovedInstancesIDs() (ids []int)

RemovedInstances returns the removed IDs of the "instances" edge to the ReleaseLicense entity.

func (*LicenseMutation) ResetComponents

func (m *LicenseMutation) ResetComponents()

ResetComponents resets all changes to the "components" edge.

func (*LicenseMutation) ResetEdge

func (m *LicenseMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*LicenseMutation) ResetField

func (m *LicenseMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*LicenseMutation) ResetInstances

func (m *LicenseMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*LicenseMutation) ResetLicenseID

func (m *LicenseMutation) ResetLicenseID()

ResetLicenseID resets all changes to the "license_id" field.

func (*LicenseMutation) ResetName

func (m *LicenseMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*LicenseMutation) ResetOwner

func (m *LicenseMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*LicenseMutation) ResetSpdx

func (m *LicenseMutation) ResetSpdx()

ResetSpdx resets all changes to the "spdx" edge.

func (*LicenseMutation) SetField

func (m *LicenseMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*LicenseMutation) SetLicenseID

func (m *LicenseMutation) SetLicenseID(s string)

SetLicenseID sets the "license_id" field.

func (*LicenseMutation) SetModelCreate

func (l *LicenseMutation) SetModelCreate(model *LicenseModelCreate) *LicenseMutation

func (*LicenseMutation) SetModelUpdate

func (l *LicenseMutation) SetModelUpdate(model *LicenseModelUpdate) *LicenseMutation

func (*LicenseMutation) SetName

func (m *LicenseMutation) SetName(s string)

SetName sets the "name" field.

func (*LicenseMutation) SetOwnerID

func (m *LicenseMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*LicenseMutation) SetSpdxID

func (m *LicenseMutation) SetSpdxID(id int)

SetSpdxID sets the "spdx" edge to the SPDXLicense entity by id.

func (*LicenseMutation) SpdxCleared

func (m *LicenseMutation) SpdxCleared() bool

SpdxCleared reports if the "spdx" edge to the SPDXLicense entity was cleared.

func (*LicenseMutation) SpdxID

func (m *LicenseMutation) SpdxID() (id int, exists bool)

SpdxID returns the "spdx" edge ID in the mutation.

func (*LicenseMutation) SpdxIDs

func (m *LicenseMutation) SpdxIDs() (ids []int)

SpdxIDs returns the "spdx" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SpdxID instead. It exists only for internal usage by the builders.

func (LicenseMutation) Tx

func (m LicenseMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*LicenseMutation) Type

func (m *LicenseMutation) Type() string

Type returns the node type of this mutation (License).

func (*LicenseMutation) Where

func (m *LicenseMutation) Where(ps ...predicate.License)

Where appends a list predicates to the LicenseMutation builder.

type LicenseOrder

type LicenseOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *LicenseOrderField `json:"field"`
}

LicenseOrder defines the ordering of License.

type LicenseOrderField

type LicenseOrderField struct {
	// contains filtered or unexported fields
}

LicenseOrderField defines the ordering field of License.

func (LicenseOrderField) MarshalGQL

func (f LicenseOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (LicenseOrderField) String

func (f LicenseOrderField) String() string

String implement fmt.Stringer interface.

func (*LicenseOrderField) UnmarshalGQL

func (f *LicenseOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type LicensePaginateOption

type LicensePaginateOption func(*licensePager) error

LicensePaginateOption enables pagination customization.

func WithLicenseFilter

func WithLicenseFilter(filter func(*LicenseQuery) (*LicenseQuery, error)) LicensePaginateOption

WithLicenseFilter configures pagination filter.

func WithLicenseOrder

func WithLicenseOrder(order *LicenseOrder) LicensePaginateOption

WithLicenseOrder configures pagination ordering.

type LicenseQuery

type LicenseQuery struct {
	// contains filtered or unexported fields
}

LicenseQuery is the builder for querying License entities.

func (*LicenseQuery) All

func (lq *LicenseQuery) All(ctx context.Context) ([]*License, error)

All executes the query and returns a list of Licenses.

func (*LicenseQuery) AllX

func (lq *LicenseQuery) AllX(ctx context.Context) []*License

AllX is like All, but panics if an error occurs.

func (*LicenseQuery) Clone

func (lq *LicenseQuery) Clone() *LicenseQuery

Clone returns a duplicate of the LicenseQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*LicenseQuery) CollectFields

func (l *LicenseQuery) CollectFields(ctx context.Context, satisfies ...string) *LicenseQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*LicenseQuery) Count

func (lq *LicenseQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*LicenseQuery) CountX

func (lq *LicenseQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*LicenseQuery) Exist

func (lq *LicenseQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*LicenseQuery) ExistX

func (lq *LicenseQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*LicenseQuery) Filter

func (l *LicenseQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *LicenseOrder, where *LicenseWhereInput,
) ([]*License, error)

func (*LicenseQuery) First

func (lq *LicenseQuery) First(ctx context.Context) (*License, error)

First returns the first License entity from the query. Returns a *NotFoundError when no License was found.

func (*LicenseQuery) FirstID

func (lq *LicenseQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first License ID from the query. Returns a *NotFoundError when no License ID was found.

func (*LicenseQuery) FirstIDX

func (lq *LicenseQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*LicenseQuery) FirstX

func (lq *LicenseQuery) FirstX(ctx context.Context) *License

FirstX is like First, but panics if an error occurs.

func (*LicenseQuery) GroupBy

func (lq *LicenseQuery) GroupBy(field string, fields ...string) *LicenseGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	LicenseID string `json:"license_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.License.Query().
	GroupBy(license.FieldLicenseID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*LicenseQuery) IDs

func (lq *LicenseQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of License IDs.

func (*LicenseQuery) IDsX

func (lq *LicenseQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*LicenseQuery) Limit

func (lq *LicenseQuery) Limit(limit int) *LicenseQuery

Limit adds a limit step to the query.

func (*LicenseQuery) Offset

func (lq *LicenseQuery) Offset(offset int) *LicenseQuery

Offset adds an offset step to the query.

func (*LicenseQuery) Only

func (lq *LicenseQuery) Only(ctx context.Context) (*License, error)

Only returns a single License entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one License entity is not found. Returns a *NotFoundError when no License entities are found.

func (*LicenseQuery) OnlyID

func (lq *LicenseQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only License ID in the query. Returns a *NotSingularError when exactly one License ID is not found. Returns a *NotFoundError when no entities are found.

func (*LicenseQuery) OnlyIDX

func (lq *LicenseQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*LicenseQuery) OnlyX

func (lq *LicenseQuery) OnlyX(ctx context.Context) *License

OnlyX is like Only, but panics if an error occurs.

func (*LicenseQuery) Order

func (lq *LicenseQuery) Order(o ...OrderFunc) *LicenseQuery

Order adds an order step to the query.

func (*LicenseQuery) Paginate

func (l *LicenseQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...LicensePaginateOption,
) (*LicenseConnection, error)

Paginate executes the query and returns a relay based cursor connection to License.

func (*LicenseQuery) QueryComponents

func (lq *LicenseQuery) QueryComponents() *ComponentQuery

QueryComponents chains the current query on the "components" edge.

func (*LicenseQuery) QueryInstances

func (lq *LicenseQuery) QueryInstances() *ReleaseLicenseQuery

QueryInstances chains the current query on the "instances" edge.

func (*LicenseQuery) QueryOwner

func (lq *LicenseQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*LicenseQuery) QuerySpdx

func (lq *LicenseQuery) QuerySpdx() *SPDXLicenseQuery

QuerySpdx chains the current query on the "spdx" edge.

func (*LicenseQuery) Select

func (lq *LicenseQuery) Select(fields ...string) *LicenseSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	LicenseID string `json:"license_id,omitempty"`
}

client.License.Query().
	Select(license.FieldLicenseID).
	Scan(ctx, &v)

func (*LicenseQuery) Unique

func (lq *LicenseQuery) Unique(unique bool) *LicenseQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*LicenseQuery) Where

func (lq *LicenseQuery) Where(ps ...predicate.License) *LicenseQuery

Where adds a new predicate for the LicenseQuery builder.

func (*LicenseQuery) WhereInput

func (l *LicenseQuery) WhereInput(input *LicenseWhereInput) *LicenseQuery

func (*LicenseQuery) WithComponents

func (lq *LicenseQuery) WithComponents(opts ...func(*ComponentQuery)) *LicenseQuery

WithComponents tells the query-builder to eager-load the nodes that are connected to the "components" edge. The optional arguments are used to configure the query builder of the edge.

func (*LicenseQuery) WithInstances

func (lq *LicenseQuery) WithInstances(opts ...func(*ReleaseLicenseQuery)) *LicenseQuery

WithInstances tells the query-builder to eager-load the nodes that are connected to the "instances" edge. The optional arguments are used to configure the query builder of the edge.

func (*LicenseQuery) WithOwner

func (lq *LicenseQuery) WithOwner(opts ...func(*OrganizationQuery)) *LicenseQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*LicenseQuery) WithSpdx

func (lq *LicenseQuery) WithSpdx(opts ...func(*SPDXLicenseQuery)) *LicenseQuery

WithSpdx tells the query-builder to eager-load the nodes that are connected to the "spdx" edge. The optional arguments are used to configure the query builder of the edge.

type LicenseSelect

type LicenseSelect struct {
	*LicenseQuery
	// contains filtered or unexported fields
}

LicenseSelect is the builder for selecting fields of License entities.

func (*LicenseSelect) Bool

func (ls *LicenseSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) BoolX

func (ls *LicenseSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*LicenseSelect) Bools

func (ls *LicenseSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) BoolsX

func (ls *LicenseSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*LicenseSelect) Float64

func (ls *LicenseSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) Float64X

func (ls *LicenseSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*LicenseSelect) Float64s

func (ls *LicenseSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) Float64sX

func (ls *LicenseSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*LicenseSelect) Int

func (ls *LicenseSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) IntX

func (ls *LicenseSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*LicenseSelect) Ints

func (ls *LicenseSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) IntsX

func (ls *LicenseSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*LicenseSelect) Scan

func (ls *LicenseSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*LicenseSelect) ScanX

func (ls *LicenseSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*LicenseSelect) String

func (ls *LicenseSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) StringX

func (ls *LicenseSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*LicenseSelect) Strings

func (ls *LicenseSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*LicenseSelect) StringsX

func (ls *LicenseSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type LicenseUpdate

type LicenseUpdate struct {
	// contains filtered or unexported fields
}

LicenseUpdate is the builder for updating License entities.

func (*LicenseUpdate) AddComponentIDs

func (lu *LicenseUpdate) AddComponentIDs(ids ...int) *LicenseUpdate

AddComponentIDs adds the "components" edge to the Component entity by IDs.

func (*LicenseUpdate) AddComponents

func (lu *LicenseUpdate) AddComponents(c ...*Component) *LicenseUpdate

AddComponents adds the "components" edges to the Component entity.

func (*LicenseUpdate) AddInstanceIDs

func (lu *LicenseUpdate) AddInstanceIDs(ids ...int) *LicenseUpdate

AddInstanceIDs adds the "instances" edge to the ReleaseLicense entity by IDs.

func (*LicenseUpdate) AddInstances

func (lu *LicenseUpdate) AddInstances(r ...*ReleaseLicense) *LicenseUpdate

AddInstances adds the "instances" edges to the ReleaseLicense entity.

func (*LicenseUpdate) ClearComponents

func (lu *LicenseUpdate) ClearComponents() *LicenseUpdate

ClearComponents clears all "components" edges to the Component entity.

func (*LicenseUpdate) ClearInstances

func (lu *LicenseUpdate) ClearInstances() *LicenseUpdate

ClearInstances clears all "instances" edges to the ReleaseLicense entity.

func (*LicenseUpdate) ClearName

func (lu *LicenseUpdate) ClearName() *LicenseUpdate

ClearName clears the value of the "name" field.

func (*LicenseUpdate) ClearOwner

func (lu *LicenseUpdate) ClearOwner() *LicenseUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*LicenseUpdate) ClearSpdx

func (lu *LicenseUpdate) ClearSpdx() *LicenseUpdate

ClearSpdx clears the "spdx" edge to the SPDXLicense entity.

func (*LicenseUpdate) Exec

func (lu *LicenseUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*LicenseUpdate) ExecX

func (lu *LicenseUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LicenseUpdate) Mutation

func (lu *LicenseUpdate) Mutation() *LicenseMutation

Mutation returns the LicenseMutation object of the builder.

func (*LicenseUpdate) RemoveComponentIDs

func (lu *LicenseUpdate) RemoveComponentIDs(ids ...int) *LicenseUpdate

RemoveComponentIDs removes the "components" edge to Component entities by IDs.

func (*LicenseUpdate) RemoveComponents

func (lu *LicenseUpdate) RemoveComponents(c ...*Component) *LicenseUpdate

RemoveComponents removes "components" edges to Component entities.

func (*LicenseUpdate) RemoveInstanceIDs

func (lu *LicenseUpdate) RemoveInstanceIDs(ids ...int) *LicenseUpdate

RemoveInstanceIDs removes the "instances" edge to ReleaseLicense entities by IDs.

func (*LicenseUpdate) RemoveInstances

func (lu *LicenseUpdate) RemoveInstances(r ...*ReleaseLicense) *LicenseUpdate

RemoveInstances removes "instances" edges to ReleaseLicense entities.

func (*LicenseUpdate) Save

func (lu *LicenseUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*LicenseUpdate) SaveX

func (lu *LicenseUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*LicenseUpdate) SetLicenseID

func (lu *LicenseUpdate) SetLicenseID(s string) *LicenseUpdate

SetLicenseID sets the "license_id" field.

func (*LicenseUpdate) SetName

func (lu *LicenseUpdate) SetName(s string) *LicenseUpdate

SetName sets the "name" field.

func (*LicenseUpdate) SetNillableName

func (lu *LicenseUpdate) SetNillableName(s *string) *LicenseUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*LicenseUpdate) SetNillableSpdxID

func (lu *LicenseUpdate) SetNillableSpdxID(id *int) *LicenseUpdate

SetNillableSpdxID sets the "spdx" edge to the SPDXLicense entity by ID if the given value is not nil.

func (*LicenseUpdate) SetOwner

func (lu *LicenseUpdate) SetOwner(o *Organization) *LicenseUpdate

SetOwner sets the "owner" edge to the Organization entity.

func (*LicenseUpdate) SetOwnerID

func (lu *LicenseUpdate) SetOwnerID(id int) *LicenseUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*LicenseUpdate) SetSpdx

func (lu *LicenseUpdate) SetSpdx(s *SPDXLicense) *LicenseUpdate

SetSpdx sets the "spdx" edge to the SPDXLicense entity.

func (*LicenseUpdate) SetSpdxID

func (lu *LicenseUpdate) SetSpdxID(id int) *LicenseUpdate

SetSpdxID sets the "spdx" edge to the SPDXLicense entity by ID.

func (*LicenseUpdate) Where

func (lu *LicenseUpdate) Where(ps ...predicate.License) *LicenseUpdate

Where appends a list predicates to the LicenseUpdate builder.

type LicenseUpdateOne

type LicenseUpdateOne struct {
	// contains filtered or unexported fields
}

LicenseUpdateOne is the builder for updating a single License entity.

func (*LicenseUpdateOne) AddComponentIDs

func (luo *LicenseUpdateOne) AddComponentIDs(ids ...int) *LicenseUpdateOne

AddComponentIDs adds the "components" edge to the Component entity by IDs.

func (*LicenseUpdateOne) AddComponents

func (luo *LicenseUpdateOne) AddComponents(c ...*Component) *LicenseUpdateOne

AddComponents adds the "components" edges to the Component entity.

func (*LicenseUpdateOne) AddInstanceIDs

func (luo *LicenseUpdateOne) AddInstanceIDs(ids ...int) *LicenseUpdateOne

AddInstanceIDs adds the "instances" edge to the ReleaseLicense entity by IDs.

func (*LicenseUpdateOne) AddInstances

func (luo *LicenseUpdateOne) AddInstances(r ...*ReleaseLicense) *LicenseUpdateOne

AddInstances adds the "instances" edges to the ReleaseLicense entity.

func (*LicenseUpdateOne) ClearComponents

func (luo *LicenseUpdateOne) ClearComponents() *LicenseUpdateOne

ClearComponents clears all "components" edges to the Component entity.

func (*LicenseUpdateOne) ClearInstances

func (luo *LicenseUpdateOne) ClearInstances() *LicenseUpdateOne

ClearInstances clears all "instances" edges to the ReleaseLicense entity.

func (*LicenseUpdateOne) ClearName

func (luo *LicenseUpdateOne) ClearName() *LicenseUpdateOne

ClearName clears the value of the "name" field.

func (*LicenseUpdateOne) ClearOwner

func (luo *LicenseUpdateOne) ClearOwner() *LicenseUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*LicenseUpdateOne) ClearSpdx

func (luo *LicenseUpdateOne) ClearSpdx() *LicenseUpdateOne

ClearSpdx clears the "spdx" edge to the SPDXLicense entity.

func (*LicenseUpdateOne) Exec

func (luo *LicenseUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*LicenseUpdateOne) ExecX

func (luo *LicenseUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*LicenseUpdateOne) Mutation

func (luo *LicenseUpdateOne) Mutation() *LicenseMutation

Mutation returns the LicenseMutation object of the builder.

func (*LicenseUpdateOne) RemoveComponentIDs

func (luo *LicenseUpdateOne) RemoveComponentIDs(ids ...int) *LicenseUpdateOne

RemoveComponentIDs removes the "components" edge to Component entities by IDs.

func (*LicenseUpdateOne) RemoveComponents

func (luo *LicenseUpdateOne) RemoveComponents(c ...*Component) *LicenseUpdateOne

RemoveComponents removes "components" edges to Component entities.

func (*LicenseUpdateOne) RemoveInstanceIDs

func (luo *LicenseUpdateOne) RemoveInstanceIDs(ids ...int) *LicenseUpdateOne

RemoveInstanceIDs removes the "instances" edge to ReleaseLicense entities by IDs.

func (*LicenseUpdateOne) RemoveInstances

func (luo *LicenseUpdateOne) RemoveInstances(r ...*ReleaseLicense) *LicenseUpdateOne

RemoveInstances removes "instances" edges to ReleaseLicense entities.

func (*LicenseUpdateOne) Save

func (luo *LicenseUpdateOne) Save(ctx context.Context) (*License, error)

Save executes the query and returns the updated License entity.

func (*LicenseUpdateOne) SaveX

func (luo *LicenseUpdateOne) SaveX(ctx context.Context) *License

SaveX is like Save, but panics if an error occurs.

func (*LicenseUpdateOne) Select

func (luo *LicenseUpdateOne) Select(field string, fields ...string) *LicenseUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*LicenseUpdateOne) SetLicenseID

func (luo *LicenseUpdateOne) SetLicenseID(s string) *LicenseUpdateOne

SetLicenseID sets the "license_id" field.

func (*LicenseUpdateOne) SetModelCreate

func (l *LicenseUpdateOne) SetModelCreate(model *LicenseModelCreate) *LicenseUpdateOne

func (*LicenseUpdateOne) SetModelUpdate

func (l *LicenseUpdateOne) SetModelUpdate(model *LicenseModelUpdate) *LicenseUpdateOne

func (*LicenseUpdateOne) SetName

func (luo *LicenseUpdateOne) SetName(s string) *LicenseUpdateOne

SetName sets the "name" field.

func (*LicenseUpdateOne) SetNillableName

func (luo *LicenseUpdateOne) SetNillableName(s *string) *LicenseUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*LicenseUpdateOne) SetNillableSpdxID

func (luo *LicenseUpdateOne) SetNillableSpdxID(id *int) *LicenseUpdateOne

SetNillableSpdxID sets the "spdx" edge to the SPDXLicense entity by ID if the given value is not nil.

func (*LicenseUpdateOne) SetOwner

func (luo *LicenseUpdateOne) SetOwner(o *Organization) *LicenseUpdateOne

SetOwner sets the "owner" edge to the Organization entity.

func (*LicenseUpdateOne) SetOwnerID

func (luo *LicenseUpdateOne) SetOwnerID(id int) *LicenseUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*LicenseUpdateOne) SetSpdx

func (luo *LicenseUpdateOne) SetSpdx(s *SPDXLicense) *LicenseUpdateOne

SetSpdx sets the "spdx" edge to the SPDXLicense entity.

func (*LicenseUpdateOne) SetSpdxID

func (luo *LicenseUpdateOne) SetSpdxID(id int) *LicenseUpdateOne

SetSpdxID sets the "spdx" edge to the SPDXLicense entity by ID.

type LicenseWhereInput

type LicenseWhereInput struct {
	Not *LicenseWhereInput   `json:"not,omitempty"`
	Or  []*LicenseWhereInput `json:"or,omitempty"`
	And []*LicenseWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "license_id" field predicates.
	LicenseID             *string  `json:"licenseID,omitempty"`
	LicenseIDNEQ          *string  `json:"licenseIDNEQ,omitempty"`
	LicenseIDIn           []string `json:"licenseIDIn,omitempty"`
	LicenseIDNotIn        []string `json:"licenseIDNotIn,omitempty"`
	LicenseIDGT           *string  `json:"licenseIDGT,omitempty"`
	LicenseIDGTE          *string  `json:"licenseIDGTE,omitempty"`
	LicenseIDLT           *string  `json:"licenseIDLT,omitempty"`
	LicenseIDLTE          *string  `json:"licenseIDLTE,omitempty"`
	LicenseIDContains     *string  `json:"licenseIDContains,omitempty"`
	LicenseIDHasPrefix    *string  `json:"licenseIDHasPrefix,omitempty"`
	LicenseIDHasSuffix    *string  `json:"licenseIDHasSuffix,omitempty"`
	LicenseIDEqualFold    *string  `json:"licenseIDEqualFold,omitempty"`
	LicenseIDContainsFold *string  `json:"licenseIDContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameIsNil        bool     `json:"nameIsNil,omitempty"`
	NameNotNil       bool     `json:"nameNotNil,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`

	// "spdx" edge predicates.
	HasSpdx     *bool                    `json:"hasSpdx,omitempty"`
	HasSpdxWith []*SPDXLicenseWhereInput `json:"hasSpdxWith,omitempty"`

	// "components" edge predicates.
	HasComponents     *bool                  `json:"hasComponents,omitempty"`
	HasComponentsWith []*ComponentWhereInput `json:"hasComponentsWith,omitempty"`

	// "instances" edge predicates.
	HasInstances     *bool                       `json:"hasInstances,omitempty"`
	HasInstancesWith []*ReleaseLicenseWhereInput `json:"hasInstancesWith,omitempty"`
}

LicenseWhereInput represents a where input for filtering License queries.

func (*LicenseWhereInput) Filter

Filter applies the LicenseWhereInput filter on the LicenseQuery builder.

func (*LicenseWhereInput) P

P returns a predicate for filtering licenses. An error is returned if the input is empty or invalid.

type Licenses

type Licenses []*License

Licenses is a parsable slice of License.

type MutateFunc

type MutateFunc = ent.MutateFunc

ent aliases to avoid import conflicts in user's code.

type Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

ent aliases to avoid import conflicts in user's code.

type Node

type Node struct {
	ID     int      `json:"id,omitempty"`     // node id.
	Type   string   `json:"type,omitempty"`   // node type.
	Fields []*Field `json:"fields,omitempty"` // node fields.
	Edges  []*Edge  `json:"edges,omitempty"`  // node edges.
}

Node in the graph.

type NodeOption

type NodeOption func(*nodeOptions)

NodeOption allows configuring the Noder execution using functional options.

func WithFixedNodeType

func WithFixedNodeType(t string) NodeOption

WithFixedNodeType sets the Type of the node to a fixed value.

func WithNodeType

func WithNodeType(f func(context.Context, int) (string, error)) NodeOption

WithNodeType sets the node Type resolver function (i.e. the table to query). If was not provided, the table will be derived from the universal-id configuration as described in: https://entgo.io/docs/migrate/#universal-ids.

type Noder

type Noder interface {
	Node(context.Context) (*Node, error)
}

Noder wraps the basic Node method.

type NotFoundError

type NotFoundError struct {
	// contains filtered or unexported fields
}

NotFoundError returns when trying to fetch a specific entity and it was not found in the database.

func (*NotFoundError) Error

func (e *NotFoundError) Error() string

Error implements the error interface.

type NotLoadedError

type NotLoadedError struct {
	// contains filtered or unexported fields
}

NotLoadedError returns when trying to get a node that was not loaded by the query.

func (*NotLoadedError) Error

func (e *NotLoadedError) Error() string

Error implements the error interface.

type NotSingularError

type NotSingularError struct {
	// contains filtered or unexported fields
}

NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.

func (*NotSingularError) Error

func (e *NotSingularError) Error() string

Error implements the error interface.

type Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...interface{})) Option

Log sets the logging function for debug mode.

type OrderDirection

type OrderDirection string

OrderDirection defines the directions in which to order a list of items.

const (
	// OrderDirectionAsc specifies an ascending order.
	OrderDirectionAsc OrderDirection = "ASC"
	// OrderDirectionDesc specifies a descending order.
	OrderDirectionDesc OrderDirection = "DESC"
)

func (OrderDirection) MarshalGQL

func (o OrderDirection) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (OrderDirection) String

func (o OrderDirection) String() string

String implements fmt.Stringer interface.

func (*OrderDirection) UnmarshalGQL

func (o *OrderDirection) UnmarshalGQL(val interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

func (OrderDirection) Validate

func (o OrderDirection) Validate() error

Validate the order direction value.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector.

func Asc

func Asc(fields ...string) OrderFunc

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) OrderFunc

Desc applies the given fields in DESC order.

type Organization

type Organization struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the OrganizationQuery when eager-loading is set.
	Edges OrganizationEdges `json:"edges"`
	// contains filtered or unexported fields
}

Organization is the model entity for the Organization schema.

func (*Organization) Node

func (o *Organization) Node(ctx context.Context) (node *Node, err error)

func (*Organization) Projects

func (o *Organization) Projects(ctx context.Context) ([]*Project, error)

func (*Organization) QueryProjects

func (o *Organization) QueryProjects() *ProjectQuery

QueryProjects queries the "projects" edge of the Organization entity.

func (*Organization) QueryRepos

func (o *Organization) QueryRepos() *RepoQuery

QueryRepos queries the "repos" edge of the Organization entity.

func (*Organization) Repos

func (o *Organization) Repos(ctx context.Context) ([]*Repo, error)

func (*Organization) String

func (o *Organization) String() string

String implements the fmt.Stringer.

func (*Organization) ToEdge

func (o *Organization) ToEdge(order *OrganizationOrder) *OrganizationEdge

ToEdge converts Organization into OrganizationEdge.

func (*Organization) Unwrap

func (o *Organization) Unwrap() *Organization

Unwrap unwraps the Organization entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Organization) Update

func (o *Organization) Update() *OrganizationUpdateOne

Update returns a builder for updating this Organization. Note that you need to call Organization.Unwrap() before calling this method if this Organization was returned from a transaction, and the transaction was committed or rolled back.

type OrganizationClient

type OrganizationClient struct {
	// contains filtered or unexported fields
}

OrganizationClient is a client for the Organization schema.

func NewOrganizationClient

func NewOrganizationClient(c config) *OrganizationClient

NewOrganizationClient returns a client for the Organization from the given config.

func (*OrganizationClient) Create

Create returns a create builder for Organization.

func (*OrganizationClient) CreateBulk

func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk

CreateBulk returns a builder for creating a bulk of Organization entities.

func (*OrganizationClient) Delete

Delete returns a delete builder for Organization.

func (*OrganizationClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*OrganizationClient) DeleteOneID

func (c *OrganizationClient) DeleteOneID(id int) *OrganizationDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*OrganizationClient) Get

Get returns a Organization entity by its id.

func (*OrganizationClient) GetX

GetX is like Get, but panics if an error occurs.

func (*OrganizationClient) Hooks

func (c *OrganizationClient) Hooks() []Hook

Hooks returns the client hooks.

func (*OrganizationClient) Query

Query returns a query builder for Organization.

func (*OrganizationClient) QueryProjects

func (c *OrganizationClient) QueryProjects(o *Organization) *ProjectQuery

QueryProjects queries the projects edge of a Organization.

func (*OrganizationClient) QueryRepos

func (c *OrganizationClient) QueryRepos(o *Organization) *RepoQuery

QueryRepos queries the repos edge of a Organization.

func (*OrganizationClient) Update

Update returns an update builder for Organization.

func (*OrganizationClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*OrganizationClient) UpdateOneID

func (c *OrganizationClient) UpdateOneID(id int) *OrganizationUpdateOne

UpdateOneID returns an update builder for the given id.

func (*OrganizationClient) Use

func (c *OrganizationClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`.

type OrganizationConnection

type OrganizationConnection struct {
	Edges      []*OrganizationEdge `json:"edges"`
	PageInfo   PageInfo            `json:"pageInfo"`
	TotalCount int                 `json:"totalCount"`
}

OrganizationConnection is the connection containing edges to Organization.

type OrganizationCreate

type OrganizationCreate struct {
	// contains filtered or unexported fields
}

OrganizationCreate is the builder for creating a Organization entity.

func (*OrganizationCreate) AddProjectIDs

func (oc *OrganizationCreate) AddProjectIDs(ids ...int) *OrganizationCreate

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*OrganizationCreate) AddProjects

func (oc *OrganizationCreate) AddProjects(p ...*Project) *OrganizationCreate

AddProjects adds the "projects" edges to the Project entity.

func (*OrganizationCreate) AddRepoIDs

func (oc *OrganizationCreate) AddRepoIDs(ids ...int) *OrganizationCreate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*OrganizationCreate) AddRepos

func (oc *OrganizationCreate) AddRepos(r ...*Repo) *OrganizationCreate

AddRepos adds the "repos" edges to the Repo entity.

func (*OrganizationCreate) Exec

func (oc *OrganizationCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*OrganizationCreate) ExecX

func (oc *OrganizationCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationCreate) Mutation

func (oc *OrganizationCreate) Mutation() *OrganizationMutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationCreate) Save

Save creates the Organization in the database.

func (*OrganizationCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*OrganizationCreate) SetModelCreate

func (*OrganizationCreate) SetName

SetName sets the "name" field.

type OrganizationCreateBulk

type OrganizationCreateBulk struct {
	// contains filtered or unexported fields
}

OrganizationCreateBulk is the builder for creating many Organization entities in bulk.

func (*OrganizationCreateBulk) Exec

Exec executes the query.

func (*OrganizationCreateBulk) ExecX

func (ocb *OrganizationCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationCreateBulk) Save

Save creates the Organization entities in the database.

func (*OrganizationCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type OrganizationDelete

type OrganizationDelete struct {
	// contains filtered or unexported fields
}

OrganizationDelete is the builder for deleting a Organization entity.

func (*OrganizationDelete) Exec

func (od *OrganizationDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*OrganizationDelete) ExecX

func (od *OrganizationDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationDelete) Where

Where appends a list predicates to the OrganizationDelete builder.

type OrganizationDeleteOne

type OrganizationDeleteOne struct {
	// contains filtered or unexported fields
}

OrganizationDeleteOne is the builder for deleting a single Organization entity.

func (*OrganizationDeleteOne) Exec

func (odo *OrganizationDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*OrganizationDeleteOne) ExecX

func (odo *OrganizationDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type OrganizationEdge

type OrganizationEdge struct {
	Node   *Organization `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

OrganizationEdge is the edge representation of Organization.

type OrganizationEdges

type OrganizationEdges struct {
	// Projects holds the value of the projects edge.
	Projects []*Project `json:"projects,omitempty"`
	// Repos holds the value of the repos edge.
	Repos []*Repo `json:"repos,omitempty"`
	// contains filtered or unexported fields
}

OrganizationEdges holds the relations/edges for other nodes in the graph.

func (OrganizationEdges) ProjectsOrErr

func (e OrganizationEdges) ProjectsOrErr() ([]*Project, error)

ProjectsOrErr returns the Projects value or an error if the edge was not loaded in eager-loading.

func (OrganizationEdges) ReposOrErr

func (e OrganizationEdges) ReposOrErr() ([]*Repo, error)

ReposOrErr returns the Repos value or an error if the edge was not loaded in eager-loading.

type OrganizationGroupBy

type OrganizationGroupBy struct {
	// contains filtered or unexported fields
}

OrganizationGroupBy is the group-by builder for Organization entities.

func (*OrganizationGroupBy) Aggregate

func (ogb *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*OrganizationGroupBy) Bool

func (ogb *OrganizationGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) BoolX

func (ogb *OrganizationGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationGroupBy) Bools

func (ogb *OrganizationGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) BoolsX

func (ogb *OrganizationGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationGroupBy) Float64

func (ogb *OrganizationGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) Float64X

func (ogb *OrganizationGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationGroupBy) Float64s

func (ogb *OrganizationGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) Float64sX

func (ogb *OrganizationGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationGroupBy) Int

func (ogb *OrganizationGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) IntX

func (ogb *OrganizationGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationGroupBy) Ints

func (ogb *OrganizationGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) IntsX

func (ogb *OrganizationGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationGroupBy) Scan

func (ogb *OrganizationGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*OrganizationGroupBy) ScanX

func (ogb *OrganizationGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationGroupBy) String

func (ogb *OrganizationGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) StringX

func (ogb *OrganizationGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationGroupBy) Strings

func (ogb *OrganizationGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*OrganizationGroupBy) StringsX

func (ogb *OrganizationGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationModelCreate

type OrganizationModelCreate struct {
	Name *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
}

func NewOrganizationModelCreate

func NewOrganizationModelCreate() *OrganizationModelCreate

func (*OrganizationModelCreate) SetName

type OrganizationModelRead

type OrganizationModelRead struct {
	Name *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	ID   *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewOrganizationModelRead

func NewOrganizationModelRead() *OrganizationModelRead

func (*OrganizationModelRead) FromEnt

type OrganizationModelUpdate

type OrganizationModelUpdate struct {
	Name *string `json:"name,omitempty"  mapstructure:"name"`
}

func NewOrganizationModelUpdate

func NewOrganizationModelUpdate() *OrganizationModelUpdate

func (*OrganizationModelUpdate) SetName

type OrganizationMutation

type OrganizationMutation struct {
	// contains filtered or unexported fields
}

OrganizationMutation represents an operation that mutates the Organization nodes in the graph.

func (*OrganizationMutation) AddField

func (m *OrganizationMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OrganizationMutation) AddProjectIDs

func (m *OrganizationMutation) AddProjectIDs(ids ...int)

AddProjectIDs adds the "projects" edge to the Project entity by ids.

func (*OrganizationMutation) AddRepoIDs

func (m *OrganizationMutation) AddRepoIDs(ids ...int)

AddRepoIDs adds the "repos" edge to the Repo entity by ids.

func (*OrganizationMutation) AddedEdges

func (m *OrganizationMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*OrganizationMutation) AddedField

func (m *OrganizationMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OrganizationMutation) AddedFields

func (m *OrganizationMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*OrganizationMutation) AddedIDs

func (m *OrganizationMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*OrganizationMutation) ClearEdge

func (m *OrganizationMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*OrganizationMutation) ClearField

func (m *OrganizationMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*OrganizationMutation) ClearProjects

func (m *OrganizationMutation) ClearProjects()

ClearProjects clears the "projects" edge to the Project entity.

func (*OrganizationMutation) ClearRepos

func (m *OrganizationMutation) ClearRepos()

ClearRepos clears the "repos" edge to the Repo entity.

func (*OrganizationMutation) ClearedEdges

func (m *OrganizationMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*OrganizationMutation) ClearedFields

func (m *OrganizationMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (OrganizationMutation) Client

func (m OrganizationMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*OrganizationMutation) EdgeCleared

func (m *OrganizationMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*OrganizationMutation) Field

func (m *OrganizationMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*OrganizationMutation) FieldCleared

func (m *OrganizationMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*OrganizationMutation) Fields

func (m *OrganizationMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*OrganizationMutation) ID

func (m *OrganizationMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*OrganizationMutation) Name

func (m *OrganizationMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*OrganizationMutation) OldField

func (m *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*OrganizationMutation) OldName

func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*OrganizationMutation) Op

func (m *OrganizationMutation) Op() Op

Op returns the operation name.

func (*OrganizationMutation) ProjectsCleared

func (m *OrganizationMutation) ProjectsCleared() bool

ProjectsCleared reports if the "projects" edge to the Project entity was cleared.

func (*OrganizationMutation) ProjectsIDs

func (m *OrganizationMutation) ProjectsIDs() (ids []int)

ProjectsIDs returns the "projects" edge IDs in the mutation.

func (*OrganizationMutation) RemoveProjectIDs

func (m *OrganizationMutation) RemoveProjectIDs(ids ...int)

RemoveProjectIDs removes the "projects" edge to the Project entity by IDs.

func (*OrganizationMutation) RemoveRepoIDs

func (m *OrganizationMutation) RemoveRepoIDs(ids ...int)

RemoveRepoIDs removes the "repos" edge to the Repo entity by IDs.

func (*OrganizationMutation) RemovedEdges

func (m *OrganizationMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*OrganizationMutation) RemovedIDs

func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*OrganizationMutation) RemovedProjectsIDs

func (m *OrganizationMutation) RemovedProjectsIDs() (ids []int)

RemovedProjects returns the removed IDs of the "projects" edge to the Project entity.

func (*OrganizationMutation) RemovedReposIDs

func (m *OrganizationMutation) RemovedReposIDs() (ids []int)

RemovedRepos returns the removed IDs of the "repos" edge to the Repo entity.

func (*OrganizationMutation) ReposCleared

func (m *OrganizationMutation) ReposCleared() bool

ReposCleared reports if the "repos" edge to the Repo entity was cleared.

func (*OrganizationMutation) ReposIDs

func (m *OrganizationMutation) ReposIDs() (ids []int)

ReposIDs returns the "repos" edge IDs in the mutation.

func (*OrganizationMutation) ResetEdge

func (m *OrganizationMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*OrganizationMutation) ResetField

func (m *OrganizationMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*OrganizationMutation) ResetName

func (m *OrganizationMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*OrganizationMutation) ResetProjects

func (m *OrganizationMutation) ResetProjects()

ResetProjects resets all changes to the "projects" edge.

func (*OrganizationMutation) ResetRepos

func (m *OrganizationMutation) ResetRepos()

ResetRepos resets all changes to the "repos" edge.

func (*OrganizationMutation) SetField

func (m *OrganizationMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*OrganizationMutation) SetModelCreate

func (*OrganizationMutation) SetModelUpdate

func (*OrganizationMutation) SetName

func (m *OrganizationMutation) SetName(s string)

SetName sets the "name" field.

func (OrganizationMutation) Tx

func (m OrganizationMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*OrganizationMutation) Type

func (m *OrganizationMutation) Type() string

Type returns the node type of this mutation (Organization).

func (*OrganizationMutation) Where

Where appends a list predicates to the OrganizationMutation builder.

type OrganizationOrder

type OrganizationOrder struct {
	Direction OrderDirection          `json:"direction"`
	Field     *OrganizationOrderField `json:"field"`
}

OrganizationOrder defines the ordering of Organization.

type OrganizationOrderField

type OrganizationOrderField struct {
	// contains filtered or unexported fields
}

OrganizationOrderField defines the ordering field of Organization.

type OrganizationPaginateOption

type OrganizationPaginateOption func(*organizationPager) error

OrganizationPaginateOption enables pagination customization.

func WithOrganizationFilter

func WithOrganizationFilter(filter func(*OrganizationQuery) (*OrganizationQuery, error)) OrganizationPaginateOption

WithOrganizationFilter configures pagination filter.

func WithOrganizationOrder

func WithOrganizationOrder(order *OrganizationOrder) OrganizationPaginateOption

WithOrganizationOrder configures pagination ordering.

type OrganizationQuery

type OrganizationQuery struct {
	// contains filtered or unexported fields
}

OrganizationQuery is the builder for querying Organization entities.

func (*OrganizationQuery) All

func (oq *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)

All executes the query and returns a list of Organizations.

func (*OrganizationQuery) AllX

func (oq *OrganizationQuery) AllX(ctx context.Context) []*Organization

AllX is like All, but panics if an error occurs.

func (*OrganizationQuery) Clone

func (oq *OrganizationQuery) Clone() *OrganizationQuery

Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*OrganizationQuery) CollectFields

func (o *OrganizationQuery) CollectFields(ctx context.Context, satisfies ...string) *OrganizationQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*OrganizationQuery) Count

func (oq *OrganizationQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*OrganizationQuery) CountX

func (oq *OrganizationQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*OrganizationQuery) Exist

func (oq *OrganizationQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*OrganizationQuery) ExistX

func (oq *OrganizationQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*OrganizationQuery) Filter

func (o *OrganizationQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *OrganizationOrder, where *OrganizationWhereInput,
) ([]*Organization, error)

func (*OrganizationQuery) First

func (oq *OrganizationQuery) First(ctx context.Context) (*Organization, error)

First returns the first Organization entity from the query. Returns a *NotFoundError when no Organization was found.

func (*OrganizationQuery) FirstID

func (oq *OrganizationQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Organization ID from the query. Returns a *NotFoundError when no Organization ID was found.

func (*OrganizationQuery) FirstIDX

func (oq *OrganizationQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*OrganizationQuery) FirstX

func (oq *OrganizationQuery) FirstX(ctx context.Context) *Organization

FirstX is like First, but panics if an error occurs.

func (*OrganizationQuery) GroupBy

func (oq *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Organization.Query().
	GroupBy(organization.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*OrganizationQuery) IDs

func (oq *OrganizationQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Organization IDs.

func (*OrganizationQuery) IDsX

func (oq *OrganizationQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*OrganizationQuery) Limit

func (oq *OrganizationQuery) Limit(limit int) *OrganizationQuery

Limit adds a limit step to the query.

func (*OrganizationQuery) Offset

func (oq *OrganizationQuery) Offset(offset int) *OrganizationQuery

Offset adds an offset step to the query.

func (*OrganizationQuery) Only

Only returns a single Organization entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Organization entity is not found. Returns a *NotFoundError when no Organization entities are found.

func (*OrganizationQuery) OnlyID

func (oq *OrganizationQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Organization ID in the query. Returns a *NotSingularError when exactly one Organization ID is not found. Returns a *NotFoundError when no entities are found.

func (*OrganizationQuery) OnlyIDX

func (oq *OrganizationQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*OrganizationQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*OrganizationQuery) Order

Order adds an order step to the query.

func (*OrganizationQuery) Paginate

func (o *OrganizationQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...OrganizationPaginateOption,
) (*OrganizationConnection, error)

Paginate executes the query and returns a relay based cursor connection to Organization.

func (*OrganizationQuery) QueryProjects

func (oq *OrganizationQuery) QueryProjects() *ProjectQuery

QueryProjects chains the current query on the "projects" edge.

func (*OrganizationQuery) QueryRepos

func (oq *OrganizationQuery) QueryRepos() *RepoQuery

QueryRepos chains the current query on the "repos" edge.

func (*OrganizationQuery) Select

func (oq *OrganizationQuery) Select(fields ...string) *OrganizationSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Organization.Query().
	Select(organization.FieldName).
	Scan(ctx, &v)

func (*OrganizationQuery) Unique

func (oq *OrganizationQuery) Unique(unique bool) *OrganizationQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*OrganizationQuery) Where

Where adds a new predicate for the OrganizationQuery builder.

func (*OrganizationQuery) WhereInput

func (*OrganizationQuery) WithProjects

func (oq *OrganizationQuery) WithProjects(opts ...func(*ProjectQuery)) *OrganizationQuery

WithProjects tells the query-builder to eager-load the nodes that are connected to the "projects" edge. The optional arguments are used to configure the query builder of the edge.

func (*OrganizationQuery) WithRepos

func (oq *OrganizationQuery) WithRepos(opts ...func(*RepoQuery)) *OrganizationQuery

WithRepos tells the query-builder to eager-load the nodes that are connected to the "repos" edge. The optional arguments are used to configure the query builder of the edge.

type OrganizationSelect

type OrganizationSelect struct {
	*OrganizationQuery
	// contains filtered or unexported fields
}

OrganizationSelect is the builder for selecting fields of Organization entities.

func (*OrganizationSelect) Bool

func (os *OrganizationSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) BoolX

func (os *OrganizationSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*OrganizationSelect) Bools

func (os *OrganizationSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) BoolsX

func (os *OrganizationSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*OrganizationSelect) Float64

func (os *OrganizationSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) Float64X

func (os *OrganizationSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*OrganizationSelect) Float64s

func (os *OrganizationSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) Float64sX

func (os *OrganizationSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*OrganizationSelect) Int

func (os *OrganizationSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) IntX

func (os *OrganizationSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*OrganizationSelect) Ints

func (os *OrganizationSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) IntsX

func (os *OrganizationSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*OrganizationSelect) Scan

func (os *OrganizationSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*OrganizationSelect) ScanX

func (os *OrganizationSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*OrganizationSelect) String

func (os *OrganizationSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) StringX

func (os *OrganizationSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*OrganizationSelect) Strings

func (os *OrganizationSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*OrganizationSelect) StringsX

func (os *OrganizationSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type OrganizationUpdate

type OrganizationUpdate struct {
	// contains filtered or unexported fields
}

OrganizationUpdate is the builder for updating Organization entities.

func (*OrganizationUpdate) AddProjectIDs

func (ou *OrganizationUpdate) AddProjectIDs(ids ...int) *OrganizationUpdate

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*OrganizationUpdate) AddProjects

func (ou *OrganizationUpdate) AddProjects(p ...*Project) *OrganizationUpdate

AddProjects adds the "projects" edges to the Project entity.

func (*OrganizationUpdate) AddRepoIDs

func (ou *OrganizationUpdate) AddRepoIDs(ids ...int) *OrganizationUpdate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*OrganizationUpdate) AddRepos

func (ou *OrganizationUpdate) AddRepos(r ...*Repo) *OrganizationUpdate

AddRepos adds the "repos" edges to the Repo entity.

func (*OrganizationUpdate) ClearProjects

func (ou *OrganizationUpdate) ClearProjects() *OrganizationUpdate

ClearProjects clears all "projects" edges to the Project entity.

func (*OrganizationUpdate) ClearRepos

func (ou *OrganizationUpdate) ClearRepos() *OrganizationUpdate

ClearRepos clears all "repos" edges to the Repo entity.

func (*OrganizationUpdate) Exec

func (ou *OrganizationUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*OrganizationUpdate) ExecX

func (ou *OrganizationUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationUpdate) Mutation

func (ou *OrganizationUpdate) Mutation() *OrganizationMutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationUpdate) RemoveProjectIDs

func (ou *OrganizationUpdate) RemoveProjectIDs(ids ...int) *OrganizationUpdate

RemoveProjectIDs removes the "projects" edge to Project entities by IDs.

func (*OrganizationUpdate) RemoveProjects

func (ou *OrganizationUpdate) RemoveProjects(p ...*Project) *OrganizationUpdate

RemoveProjects removes "projects" edges to Project entities.

func (*OrganizationUpdate) RemoveRepoIDs

func (ou *OrganizationUpdate) RemoveRepoIDs(ids ...int) *OrganizationUpdate

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*OrganizationUpdate) RemoveRepos

func (ou *OrganizationUpdate) RemoveRepos(r ...*Repo) *OrganizationUpdate

RemoveRepos removes "repos" edges to Repo entities.

func (*OrganizationUpdate) Save

func (ou *OrganizationUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*OrganizationUpdate) SaveX

func (ou *OrganizationUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*OrganizationUpdate) SetName

SetName sets the "name" field.

func (*OrganizationUpdate) Where

Where appends a list predicates to the OrganizationUpdate builder.

type OrganizationUpdateOne

type OrganizationUpdateOne struct {
	// contains filtered or unexported fields
}

OrganizationUpdateOne is the builder for updating a single Organization entity.

func (*OrganizationUpdateOne) AddProjectIDs

func (ouo *OrganizationUpdateOne) AddProjectIDs(ids ...int) *OrganizationUpdateOne

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*OrganizationUpdateOne) AddProjects

func (ouo *OrganizationUpdateOne) AddProjects(p ...*Project) *OrganizationUpdateOne

AddProjects adds the "projects" edges to the Project entity.

func (*OrganizationUpdateOne) AddRepoIDs

func (ouo *OrganizationUpdateOne) AddRepoIDs(ids ...int) *OrganizationUpdateOne

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*OrganizationUpdateOne) AddRepos

func (ouo *OrganizationUpdateOne) AddRepos(r ...*Repo) *OrganizationUpdateOne

AddRepos adds the "repos" edges to the Repo entity.

func (*OrganizationUpdateOne) ClearProjects

func (ouo *OrganizationUpdateOne) ClearProjects() *OrganizationUpdateOne

ClearProjects clears all "projects" edges to the Project entity.

func (*OrganizationUpdateOne) ClearRepos

func (ouo *OrganizationUpdateOne) ClearRepos() *OrganizationUpdateOne

ClearRepos clears all "repos" edges to the Repo entity.

func (*OrganizationUpdateOne) Exec

func (ouo *OrganizationUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*OrganizationUpdateOne) ExecX

func (ouo *OrganizationUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*OrganizationUpdateOne) Mutation

Mutation returns the OrganizationMutation object of the builder.

func (*OrganizationUpdateOne) RemoveProjectIDs

func (ouo *OrganizationUpdateOne) RemoveProjectIDs(ids ...int) *OrganizationUpdateOne

RemoveProjectIDs removes the "projects" edge to Project entities by IDs.

func (*OrganizationUpdateOne) RemoveProjects

func (ouo *OrganizationUpdateOne) RemoveProjects(p ...*Project) *OrganizationUpdateOne

RemoveProjects removes "projects" edges to Project entities.

func (*OrganizationUpdateOne) RemoveRepoIDs

func (ouo *OrganizationUpdateOne) RemoveRepoIDs(ids ...int) *OrganizationUpdateOne

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*OrganizationUpdateOne) RemoveRepos

func (ouo *OrganizationUpdateOne) RemoveRepos(r ...*Repo) *OrganizationUpdateOne

RemoveRepos removes "repos" edges to Repo entities.

func (*OrganizationUpdateOne) Save

Save executes the query and returns the updated Organization entity.

func (*OrganizationUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*OrganizationUpdateOne) Select

func (ouo *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*OrganizationUpdateOne) SetModelCreate

func (*OrganizationUpdateOne) SetModelUpdate

func (*OrganizationUpdateOne) SetName

SetName sets the "name" field.

type OrganizationWhereInput

type OrganizationWhereInput struct {
	Not *OrganizationWhereInput   `json:"not,omitempty"`
	Or  []*OrganizationWhereInput `json:"or,omitempty"`
	And []*OrganizationWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "projects" edge predicates.
	HasProjects     *bool                `json:"hasProjects,omitempty"`
	HasProjectsWith []*ProjectWhereInput `json:"hasProjectsWith,omitempty"`

	// "repos" edge predicates.
	HasRepos     *bool             `json:"hasRepos,omitempty"`
	HasReposWith []*RepoWhereInput `json:"hasReposWith,omitempty"`
}

OrganizationWhereInput represents a where input for filtering Organization queries.

func (*OrganizationWhereInput) Filter

Filter applies the OrganizationWhereInput filter on the OrganizationQuery builder.

func (*OrganizationWhereInput) P

P returns a predicate for filtering organizations. An error is returned if the input is empty or invalid.

type Organizations

type Organizations []*Organization

Organizations is a parsable slice of Organization.

type PageInfo

type PageInfo struct {
	HasNextPage     bool    `json:"hasNextPage"`
	HasPreviousPage bool    `json:"hasPreviousPage"`
	StartCursor     *Cursor `json:"startCursor"`
	EndCursor       *Cursor `json:"endCursor"`
}

PageInfo of a connection type.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Project

type Project struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ProjectQuery when eager-loading is set.
	Edges ProjectEdges `json:"edges"`
	// contains filtered or unexported fields
}

Project is the model entity for the Project schema.

func (*Project) Node

func (pr *Project) Node(ctx context.Context) (node *Node, err error)

func (*Project) Owner

func (pr *Project) Owner(ctx context.Context) (*Organization, error)

func (*Project) Policies

func (pr *Project) Policies(ctx context.Context) ([]*ReleasePolicy, error)

func (*Project) QueryOwner

func (pr *Project) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Project entity.

func (*Project) QueryPolicies

func (pr *Project) QueryPolicies() *ReleasePolicyQuery

QueryPolicies queries the "policies" edge of the Project entity.

func (*Project) QueryRepos

func (pr *Project) QueryRepos() *RepoQuery

QueryRepos queries the "repos" edge of the Project entity.

func (*Project) QueryVulnerabilityReviews

func (pr *Project) QueryVulnerabilityReviews() *VulnerabilityReviewQuery

QueryVulnerabilityReviews queries the "vulnerability_reviews" edge of the Project entity.

func (*Project) Repos

func (pr *Project) Repos(ctx context.Context) ([]*Repo, error)

func (*Project) String

func (pr *Project) String() string

String implements the fmt.Stringer.

func (*Project) ToEdge

func (pr *Project) ToEdge(order *ProjectOrder) *ProjectEdge

ToEdge converts Project into ProjectEdge.

func (*Project) Unwrap

func (pr *Project) Unwrap() *Project

Unwrap unwraps the Project entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Project) Update

func (pr *Project) Update() *ProjectUpdateOne

Update returns a builder for updating this Project. Note that you need to call Project.Unwrap() before calling this method if this Project was returned from a transaction, and the transaction was committed or rolled back.

func (*Project) VulnerabilityReviews

func (pr *Project) VulnerabilityReviews(ctx context.Context) ([]*VulnerabilityReview, error)

type ProjectClient

type ProjectClient struct {
	// contains filtered or unexported fields
}

ProjectClient is a client for the Project schema.

func NewProjectClient

func NewProjectClient(c config) *ProjectClient

NewProjectClient returns a client for the Project from the given config.

func (*ProjectClient) Create

func (c *ProjectClient) Create() *ProjectCreate

Create returns a create builder for Project.

func (*ProjectClient) CreateBulk

func (c *ProjectClient) CreateBulk(builders ...*ProjectCreate) *ProjectCreateBulk

CreateBulk returns a builder for creating a bulk of Project entities.

func (*ProjectClient) Delete

func (c *ProjectClient) Delete() *ProjectDelete

Delete returns a delete builder for Project.

func (*ProjectClient) DeleteOne

func (c *ProjectClient) DeleteOne(pr *Project) *ProjectDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ProjectClient) DeleteOneID

func (c *ProjectClient) DeleteOneID(id int) *ProjectDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ProjectClient) Get

func (c *ProjectClient) Get(ctx context.Context, id int) (*Project, error)

Get returns a Project entity by its id.

func (*ProjectClient) GetX

func (c *ProjectClient) GetX(ctx context.Context, id int) *Project

GetX is like Get, but panics if an error occurs.

func (*ProjectClient) Hooks

func (c *ProjectClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ProjectClient) Query

func (c *ProjectClient) Query() *ProjectQuery

Query returns a query builder for Project.

func (*ProjectClient) QueryOwner

func (c *ProjectClient) QueryOwner(pr *Project) *OrganizationQuery

QueryOwner queries the owner edge of a Project.

func (*ProjectClient) QueryPolicies

func (c *ProjectClient) QueryPolicies(pr *Project) *ReleasePolicyQuery

QueryPolicies queries the policies edge of a Project.

func (*ProjectClient) QueryRepos

func (c *ProjectClient) QueryRepos(pr *Project) *RepoQuery

QueryRepos queries the repos edge of a Project.

func (*ProjectClient) QueryVulnerabilityReviews

func (c *ProjectClient) QueryVulnerabilityReviews(pr *Project) *VulnerabilityReviewQuery

QueryVulnerabilityReviews queries the vulnerability_reviews edge of a Project.

func (*ProjectClient) Update

func (c *ProjectClient) Update() *ProjectUpdate

Update returns an update builder for Project.

func (*ProjectClient) UpdateOne

func (c *ProjectClient) UpdateOne(pr *Project) *ProjectUpdateOne

UpdateOne returns an update builder for the given entity.

func (*ProjectClient) UpdateOneID

func (c *ProjectClient) UpdateOneID(id int) *ProjectUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ProjectClient) Use

func (c *ProjectClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `project.Hooks(f(g(h())))`.

type ProjectConnection

type ProjectConnection struct {
	Edges      []*ProjectEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

ProjectConnection is the connection containing edges to Project.

type ProjectCreate

type ProjectCreate struct {
	// contains filtered or unexported fields
}

ProjectCreate is the builder for creating a Project entity.

func (*ProjectCreate) AddPolicies

func (pc *ProjectCreate) AddPolicies(r ...*ReleasePolicy) *ProjectCreate

AddPolicies adds the "policies" edges to the ReleasePolicy entity.

func (*ProjectCreate) AddPolicyIDs

func (pc *ProjectCreate) AddPolicyIDs(ids ...int) *ProjectCreate

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by IDs.

func (*ProjectCreate) AddRepoIDs

func (pc *ProjectCreate) AddRepoIDs(ids ...int) *ProjectCreate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*ProjectCreate) AddRepos

func (pc *ProjectCreate) AddRepos(r ...*Repo) *ProjectCreate

AddRepos adds the "repos" edges to the Repo entity.

func (*ProjectCreate) AddVulnerabilityReviewIDs

func (pc *ProjectCreate) AddVulnerabilityReviewIDs(ids ...int) *ProjectCreate

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ProjectCreate) AddVulnerabilityReviews

func (pc *ProjectCreate) AddVulnerabilityReviews(v ...*VulnerabilityReview) *ProjectCreate

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ProjectCreate) Exec

func (pc *ProjectCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProjectCreate) ExecX

func (pc *ProjectCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProjectCreate) Mutation

func (pc *ProjectCreate) Mutation() *ProjectMutation

Mutation returns the ProjectMutation object of the builder.

func (*ProjectCreate) Save

func (pc *ProjectCreate) Save(ctx context.Context) (*Project, error)

Save creates the Project in the database.

func (*ProjectCreate) SaveX

func (pc *ProjectCreate) SaveX(ctx context.Context) *Project

SaveX calls Save and panics if Save returns an error.

func (*ProjectCreate) SetModelCreate

func (pr *ProjectCreate) SetModelCreate(model *ProjectModelCreate) *ProjectCreate

func (*ProjectCreate) SetName

func (pc *ProjectCreate) SetName(s string) *ProjectCreate

SetName sets the "name" field.

func (*ProjectCreate) SetOwner

func (pc *ProjectCreate) SetOwner(o *Organization) *ProjectCreate

SetOwner sets the "owner" edge to the Organization entity.

func (*ProjectCreate) SetOwnerID

func (pc *ProjectCreate) SetOwnerID(id int) *ProjectCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

type ProjectCreateBulk

type ProjectCreateBulk struct {
	// contains filtered or unexported fields
}

ProjectCreateBulk is the builder for creating many Project entities in bulk.

func (*ProjectCreateBulk) Exec

func (pcb *ProjectCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ProjectCreateBulk) ExecX

func (pcb *ProjectCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProjectCreateBulk) Save

func (pcb *ProjectCreateBulk) Save(ctx context.Context) ([]*Project, error)

Save creates the Project entities in the database.

func (*ProjectCreateBulk) SaveX

func (pcb *ProjectCreateBulk) SaveX(ctx context.Context) []*Project

SaveX is like Save, but panics if an error occurs.

type ProjectDelete

type ProjectDelete struct {
	// contains filtered or unexported fields
}

ProjectDelete is the builder for deleting a Project entity.

func (*ProjectDelete) Exec

func (pd *ProjectDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ProjectDelete) ExecX

func (pd *ProjectDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ProjectDelete) Where

func (pd *ProjectDelete) Where(ps ...predicate.Project) *ProjectDelete

Where appends a list predicates to the ProjectDelete builder.

type ProjectDeleteOne

type ProjectDeleteOne struct {
	// contains filtered or unexported fields
}

ProjectDeleteOne is the builder for deleting a single Project entity.

func (*ProjectDeleteOne) Exec

func (pdo *ProjectDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ProjectDeleteOne) ExecX

func (pdo *ProjectDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ProjectEdge

type ProjectEdge struct {
	Node   *Project `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

ProjectEdge is the edge representation of Project.

type ProjectEdges

type ProjectEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// Repos holds the value of the repos edge.
	Repos []*Repo `json:"repos,omitempty"`
	// VulnerabilityReviews holds the value of the vulnerability_reviews edge.
	VulnerabilityReviews []*VulnerabilityReview `json:"vulnerability_reviews,omitempty"`
	// Policies holds the value of the policies edge.
	Policies []*ReleasePolicy `json:"policies,omitempty"`
	// contains filtered or unexported fields
}

ProjectEdges holds the relations/edges for other nodes in the graph.

func (ProjectEdges) OwnerOrErr

func (e ProjectEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ProjectEdges) PoliciesOrErr

func (e ProjectEdges) PoliciesOrErr() ([]*ReleasePolicy, error)

PoliciesOrErr returns the Policies value or an error if the edge was not loaded in eager-loading.

func (ProjectEdges) ReposOrErr

func (e ProjectEdges) ReposOrErr() ([]*Repo, error)

ReposOrErr returns the Repos value or an error if the edge was not loaded in eager-loading.

func (ProjectEdges) VulnerabilityReviewsOrErr

func (e ProjectEdges) VulnerabilityReviewsOrErr() ([]*VulnerabilityReview, error)

VulnerabilityReviewsOrErr returns the VulnerabilityReviews value or an error if the edge was not loaded in eager-loading.

type ProjectGroupBy

type ProjectGroupBy struct {
	// contains filtered or unexported fields
}

ProjectGroupBy is the group-by builder for Project entities.

func (*ProjectGroupBy) Aggregate

func (pgb *ProjectGroupBy) Aggregate(fns ...AggregateFunc) *ProjectGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ProjectGroupBy) Bool

func (pgb *ProjectGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) BoolX

func (pgb *ProjectGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProjectGroupBy) Bools

func (pgb *ProjectGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) BoolsX

func (pgb *ProjectGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProjectGroupBy) Float64

func (pgb *ProjectGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) Float64X

func (pgb *ProjectGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProjectGroupBy) Float64s

func (pgb *ProjectGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) Float64sX

func (pgb *ProjectGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProjectGroupBy) Int

func (pgb *ProjectGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) IntX

func (pgb *ProjectGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProjectGroupBy) Ints

func (pgb *ProjectGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) IntsX

func (pgb *ProjectGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProjectGroupBy) Scan

func (pgb *ProjectGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ProjectGroupBy) ScanX

func (pgb *ProjectGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ProjectGroupBy) String

func (pgb *ProjectGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) StringX

func (pgb *ProjectGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProjectGroupBy) Strings

func (pgb *ProjectGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ProjectGroupBy) StringsX

func (pgb *ProjectGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProjectModelCreate

type ProjectModelCreate struct {
	Name *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
}

func NewProjectModelCreate

func NewProjectModelCreate() *ProjectModelCreate

func (*ProjectModelCreate) SetName

func (pr *ProjectModelCreate) SetName(value string) *ProjectModelCreate

type ProjectModelRead

type ProjectModelRead struct {
	Name *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	ID   *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewProjectModelRead

func NewProjectModelRead() *ProjectModelRead

func (*ProjectModelRead) FromEnt

func (pr *ProjectModelRead) FromEnt(value *Project) *ProjectModelRead

type ProjectModelUpdate

type ProjectModelUpdate struct {
	Name *string `json:"name,omitempty"  mapstructure:"name"`
}

func NewProjectModelUpdate

func NewProjectModelUpdate() *ProjectModelUpdate

func (*ProjectModelUpdate) SetName

func (pr *ProjectModelUpdate) SetName(value string) *ProjectModelUpdate

type ProjectMutation

type ProjectMutation struct {
	// contains filtered or unexported fields
}

ProjectMutation represents an operation that mutates the Project nodes in the graph.

func (*ProjectMutation) AddField

func (m *ProjectMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProjectMutation) AddPolicyIDs

func (m *ProjectMutation) AddPolicyIDs(ids ...int)

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by ids.

func (*ProjectMutation) AddRepoIDs

func (m *ProjectMutation) AddRepoIDs(ids ...int)

AddRepoIDs adds the "repos" edge to the Repo entity by ids.

func (*ProjectMutation) AddVulnerabilityReviewIDs

func (m *ProjectMutation) AddVulnerabilityReviewIDs(ids ...int)

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by ids.

func (*ProjectMutation) AddedEdges

func (m *ProjectMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ProjectMutation) AddedField

func (m *ProjectMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProjectMutation) AddedFields

func (m *ProjectMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ProjectMutation) AddedIDs

func (m *ProjectMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ProjectMutation) ClearEdge

func (m *ProjectMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ProjectMutation) ClearField

func (m *ProjectMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProjectMutation) ClearOwner

func (m *ProjectMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*ProjectMutation) ClearPolicies

func (m *ProjectMutation) ClearPolicies()

ClearPolicies clears the "policies" edge to the ReleasePolicy entity.

func (*ProjectMutation) ClearRepos

func (m *ProjectMutation) ClearRepos()

ClearRepos clears the "repos" edge to the Repo entity.

func (*ProjectMutation) ClearVulnerabilityReviews

func (m *ProjectMutation) ClearVulnerabilityReviews()

ClearVulnerabilityReviews clears the "vulnerability_reviews" edge to the VulnerabilityReview entity.

func (*ProjectMutation) ClearedEdges

func (m *ProjectMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ProjectMutation) ClearedFields

func (m *ProjectMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ProjectMutation) Client

func (m ProjectMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ProjectMutation) EdgeCleared

func (m *ProjectMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ProjectMutation) Field

func (m *ProjectMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ProjectMutation) FieldCleared

func (m *ProjectMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ProjectMutation) Fields

func (m *ProjectMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ProjectMutation) ID

func (m *ProjectMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ProjectMutation) Name

func (m *ProjectMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ProjectMutation) OldField

func (m *ProjectMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ProjectMutation) OldName

func (m *ProjectMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ProjectMutation) Op

func (m *ProjectMutation) Op() Op

Op returns the operation name.

func (*ProjectMutation) OwnerCleared

func (m *ProjectMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*ProjectMutation) OwnerID

func (m *ProjectMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*ProjectMutation) OwnerIDs

func (m *ProjectMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*ProjectMutation) PoliciesCleared

func (m *ProjectMutation) PoliciesCleared() bool

PoliciesCleared reports if the "policies" edge to the ReleasePolicy entity was cleared.

func (*ProjectMutation) PoliciesIDs

func (m *ProjectMutation) PoliciesIDs() (ids []int)

PoliciesIDs returns the "policies" edge IDs in the mutation.

func (*ProjectMutation) RemovePolicyIDs

func (m *ProjectMutation) RemovePolicyIDs(ids ...int)

RemovePolicyIDs removes the "policies" edge to the ReleasePolicy entity by IDs.

func (*ProjectMutation) RemoveRepoIDs

func (m *ProjectMutation) RemoveRepoIDs(ids ...int)

RemoveRepoIDs removes the "repos" edge to the Repo entity by IDs.

func (*ProjectMutation) RemoveVulnerabilityReviewIDs

func (m *ProjectMutation) RemoveVulnerabilityReviewIDs(ids ...int)

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ProjectMutation) RemovedEdges

func (m *ProjectMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ProjectMutation) RemovedIDs

func (m *ProjectMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ProjectMutation) RemovedPoliciesIDs

func (m *ProjectMutation) RemovedPoliciesIDs() (ids []int)

RemovedPolicies returns the removed IDs of the "policies" edge to the ReleasePolicy entity.

func (*ProjectMutation) RemovedReposIDs

func (m *ProjectMutation) RemovedReposIDs() (ids []int)

RemovedRepos returns the removed IDs of the "repos" edge to the Repo entity.

func (*ProjectMutation) RemovedVulnerabilityReviewsIDs

func (m *ProjectMutation) RemovedVulnerabilityReviewsIDs() (ids []int)

RemovedVulnerabilityReviews returns the removed IDs of the "vulnerability_reviews" edge to the VulnerabilityReview entity.

func (*ProjectMutation) ReposCleared

func (m *ProjectMutation) ReposCleared() bool

ReposCleared reports if the "repos" edge to the Repo entity was cleared.

func (*ProjectMutation) ReposIDs

func (m *ProjectMutation) ReposIDs() (ids []int)

ReposIDs returns the "repos" edge IDs in the mutation.

func (*ProjectMutation) ResetEdge

func (m *ProjectMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ProjectMutation) ResetField

func (m *ProjectMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ProjectMutation) ResetName

func (m *ProjectMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ProjectMutation) ResetOwner

func (m *ProjectMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*ProjectMutation) ResetPolicies

func (m *ProjectMutation) ResetPolicies()

ResetPolicies resets all changes to the "policies" edge.

func (*ProjectMutation) ResetRepos

func (m *ProjectMutation) ResetRepos()

ResetRepos resets all changes to the "repos" edge.

func (*ProjectMutation) ResetVulnerabilityReviews

func (m *ProjectMutation) ResetVulnerabilityReviews()

ResetVulnerabilityReviews resets all changes to the "vulnerability_reviews" edge.

func (*ProjectMutation) SetField

func (m *ProjectMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ProjectMutation) SetModelCreate

func (pr *ProjectMutation) SetModelCreate(model *ProjectModelCreate) *ProjectMutation

func (*ProjectMutation) SetModelUpdate

func (pr *ProjectMutation) SetModelUpdate(model *ProjectModelUpdate) *ProjectMutation

func (*ProjectMutation) SetName

func (m *ProjectMutation) SetName(s string)

SetName sets the "name" field.

func (*ProjectMutation) SetOwnerID

func (m *ProjectMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (ProjectMutation) Tx

func (m ProjectMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ProjectMutation) Type

func (m *ProjectMutation) Type() string

Type returns the node type of this mutation (Project).

func (*ProjectMutation) VulnerabilityReviewsCleared

func (m *ProjectMutation) VulnerabilityReviewsCleared() bool

VulnerabilityReviewsCleared reports if the "vulnerability_reviews" edge to the VulnerabilityReview entity was cleared.

func (*ProjectMutation) VulnerabilityReviewsIDs

func (m *ProjectMutation) VulnerabilityReviewsIDs() (ids []int)

VulnerabilityReviewsIDs returns the "vulnerability_reviews" edge IDs in the mutation.

func (*ProjectMutation) Where

func (m *ProjectMutation) Where(ps ...predicate.Project)

Where appends a list predicates to the ProjectMutation builder.

type ProjectOrder

type ProjectOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *ProjectOrderField `json:"field"`
}

ProjectOrder defines the ordering of Project.

type ProjectOrderField

type ProjectOrderField struct {
	// contains filtered or unexported fields
}

ProjectOrderField defines the ordering field of Project.

func (ProjectOrderField) MarshalGQL

func (f ProjectOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ProjectOrderField) String

func (f ProjectOrderField) String() string

String implement fmt.Stringer interface.

func (*ProjectOrderField) UnmarshalGQL

func (f *ProjectOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ProjectPaginateOption

type ProjectPaginateOption func(*projectPager) error

ProjectPaginateOption enables pagination customization.

func WithProjectFilter

func WithProjectFilter(filter func(*ProjectQuery) (*ProjectQuery, error)) ProjectPaginateOption

WithProjectFilter configures pagination filter.

func WithProjectOrder

func WithProjectOrder(order *ProjectOrder) ProjectPaginateOption

WithProjectOrder configures pagination ordering.

type ProjectQuery

type ProjectQuery struct {
	// contains filtered or unexported fields
}

ProjectQuery is the builder for querying Project entities.

func (*ProjectQuery) All

func (pq *ProjectQuery) All(ctx context.Context) ([]*Project, error)

All executes the query and returns a list of Projects.

func (*ProjectQuery) AllX

func (pq *ProjectQuery) AllX(ctx context.Context) []*Project

AllX is like All, but panics if an error occurs.

func (*ProjectQuery) Clone

func (pq *ProjectQuery) Clone() *ProjectQuery

Clone returns a duplicate of the ProjectQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ProjectQuery) CollectFields

func (pr *ProjectQuery) CollectFields(ctx context.Context, satisfies ...string) *ProjectQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ProjectQuery) Count

func (pq *ProjectQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ProjectQuery) CountX

func (pq *ProjectQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ProjectQuery) Exist

func (pq *ProjectQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ProjectQuery) ExistX

func (pq *ProjectQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ProjectQuery) Filter

func (pr *ProjectQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ProjectOrder, where *ProjectWhereInput,
) ([]*Project, error)

func (*ProjectQuery) First

func (pq *ProjectQuery) First(ctx context.Context) (*Project, error)

First returns the first Project entity from the query. Returns a *NotFoundError when no Project was found.

func (*ProjectQuery) FirstID

func (pq *ProjectQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Project ID from the query. Returns a *NotFoundError when no Project ID was found.

func (*ProjectQuery) FirstIDX

func (pq *ProjectQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ProjectQuery) FirstX

func (pq *ProjectQuery) FirstX(ctx context.Context) *Project

FirstX is like First, but panics if an error occurs.

func (*ProjectQuery) GroupBy

func (pq *ProjectQuery) GroupBy(field string, fields ...string) *ProjectGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Project.Query().
	GroupBy(project.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ProjectQuery) IDs

func (pq *ProjectQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Project IDs.

func (*ProjectQuery) IDsX

func (pq *ProjectQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ProjectQuery) Limit

func (pq *ProjectQuery) Limit(limit int) *ProjectQuery

Limit adds a limit step to the query.

func (*ProjectQuery) Offset

func (pq *ProjectQuery) Offset(offset int) *ProjectQuery

Offset adds an offset step to the query.

func (*ProjectQuery) Only

func (pq *ProjectQuery) Only(ctx context.Context) (*Project, error)

Only returns a single Project entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Project entity is not found. Returns a *NotFoundError when no Project entities are found.

func (*ProjectQuery) OnlyID

func (pq *ProjectQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Project ID in the query. Returns a *NotSingularError when exactly one Project ID is not found. Returns a *NotFoundError when no entities are found.

func (*ProjectQuery) OnlyIDX

func (pq *ProjectQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ProjectQuery) OnlyX

func (pq *ProjectQuery) OnlyX(ctx context.Context) *Project

OnlyX is like Only, but panics if an error occurs.

func (*ProjectQuery) Order

func (pq *ProjectQuery) Order(o ...OrderFunc) *ProjectQuery

Order adds an order step to the query.

func (*ProjectQuery) Paginate

func (pr *ProjectQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ProjectPaginateOption,
) (*ProjectConnection, error)

Paginate executes the query and returns a relay based cursor connection to Project.

func (*ProjectQuery) QueryOwner

func (pq *ProjectQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*ProjectQuery) QueryPolicies

func (pq *ProjectQuery) QueryPolicies() *ReleasePolicyQuery

QueryPolicies chains the current query on the "policies" edge.

func (*ProjectQuery) QueryRepos

func (pq *ProjectQuery) QueryRepos() *RepoQuery

QueryRepos chains the current query on the "repos" edge.

func (*ProjectQuery) QueryVulnerabilityReviews

func (pq *ProjectQuery) QueryVulnerabilityReviews() *VulnerabilityReviewQuery

QueryVulnerabilityReviews chains the current query on the "vulnerability_reviews" edge.

func (*ProjectQuery) Select

func (pq *ProjectQuery) Select(fields ...string) *ProjectSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Project.Query().
	Select(project.FieldName).
	Scan(ctx, &v)

func (*ProjectQuery) Unique

func (pq *ProjectQuery) Unique(unique bool) *ProjectQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ProjectQuery) Where

func (pq *ProjectQuery) Where(ps ...predicate.Project) *ProjectQuery

Where adds a new predicate for the ProjectQuery builder.

func (*ProjectQuery) WhereInput

func (pr *ProjectQuery) WhereInput(input *ProjectWhereInput) *ProjectQuery

func (*ProjectQuery) WithOwner

func (pq *ProjectQuery) WithOwner(opts ...func(*OrganizationQuery)) *ProjectQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProjectQuery) WithPolicies

func (pq *ProjectQuery) WithPolicies(opts ...func(*ReleasePolicyQuery)) *ProjectQuery

WithPolicies tells the query-builder to eager-load the nodes that are connected to the "policies" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProjectQuery) WithRepos

func (pq *ProjectQuery) WithRepos(opts ...func(*RepoQuery)) *ProjectQuery

WithRepos tells the query-builder to eager-load the nodes that are connected to the "repos" edge. The optional arguments are used to configure the query builder of the edge.

func (*ProjectQuery) WithVulnerabilityReviews

func (pq *ProjectQuery) WithVulnerabilityReviews(opts ...func(*VulnerabilityReviewQuery)) *ProjectQuery

WithVulnerabilityReviews tells the query-builder to eager-load the nodes that are connected to the "vulnerability_reviews" edge. The optional arguments are used to configure the query builder of the edge.

type ProjectSelect

type ProjectSelect struct {
	*ProjectQuery
	// contains filtered or unexported fields
}

ProjectSelect is the builder for selecting fields of Project entities.

func (*ProjectSelect) Bool

func (ps *ProjectSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) BoolX

func (ps *ProjectSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ProjectSelect) Bools

func (ps *ProjectSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) BoolsX

func (ps *ProjectSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ProjectSelect) Float64

func (ps *ProjectSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) Float64X

func (ps *ProjectSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ProjectSelect) Float64s

func (ps *ProjectSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) Float64sX

func (ps *ProjectSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ProjectSelect) Int

func (ps *ProjectSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) IntX

func (ps *ProjectSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ProjectSelect) Ints

func (ps *ProjectSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) IntsX

func (ps *ProjectSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ProjectSelect) Scan

func (ps *ProjectSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ProjectSelect) ScanX

func (ps *ProjectSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ProjectSelect) String

func (ps *ProjectSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) StringX

func (ps *ProjectSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ProjectSelect) Strings

func (ps *ProjectSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ProjectSelect) StringsX

func (ps *ProjectSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ProjectUpdate

type ProjectUpdate struct {
	// contains filtered or unexported fields
}

ProjectUpdate is the builder for updating Project entities.

func (*ProjectUpdate) AddPolicies

func (pu *ProjectUpdate) AddPolicies(r ...*ReleasePolicy) *ProjectUpdate

AddPolicies adds the "policies" edges to the ReleasePolicy entity.

func (*ProjectUpdate) AddPolicyIDs

func (pu *ProjectUpdate) AddPolicyIDs(ids ...int) *ProjectUpdate

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by IDs.

func (*ProjectUpdate) AddRepoIDs

func (pu *ProjectUpdate) AddRepoIDs(ids ...int) *ProjectUpdate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*ProjectUpdate) AddRepos

func (pu *ProjectUpdate) AddRepos(r ...*Repo) *ProjectUpdate

AddRepos adds the "repos" edges to the Repo entity.

func (*ProjectUpdate) AddVulnerabilityReviewIDs

func (pu *ProjectUpdate) AddVulnerabilityReviewIDs(ids ...int) *ProjectUpdate

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ProjectUpdate) AddVulnerabilityReviews

func (pu *ProjectUpdate) AddVulnerabilityReviews(v ...*VulnerabilityReview) *ProjectUpdate

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ProjectUpdate) ClearOwner

func (pu *ProjectUpdate) ClearOwner() *ProjectUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*ProjectUpdate) ClearPolicies

func (pu *ProjectUpdate) ClearPolicies() *ProjectUpdate

ClearPolicies clears all "policies" edges to the ReleasePolicy entity.

func (*ProjectUpdate) ClearRepos

func (pu *ProjectUpdate) ClearRepos() *ProjectUpdate

ClearRepos clears all "repos" edges to the Repo entity.

func (*ProjectUpdate) ClearVulnerabilityReviews

func (pu *ProjectUpdate) ClearVulnerabilityReviews() *ProjectUpdate

ClearVulnerabilityReviews clears all "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ProjectUpdate) Exec

func (pu *ProjectUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ProjectUpdate) ExecX

func (pu *ProjectUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProjectUpdate) Mutation

func (pu *ProjectUpdate) Mutation() *ProjectMutation

Mutation returns the ProjectMutation object of the builder.

func (*ProjectUpdate) RemovePolicies

func (pu *ProjectUpdate) RemovePolicies(r ...*ReleasePolicy) *ProjectUpdate

RemovePolicies removes "policies" edges to ReleasePolicy entities.

func (*ProjectUpdate) RemovePolicyIDs

func (pu *ProjectUpdate) RemovePolicyIDs(ids ...int) *ProjectUpdate

RemovePolicyIDs removes the "policies" edge to ReleasePolicy entities by IDs.

func (*ProjectUpdate) RemoveRepoIDs

func (pu *ProjectUpdate) RemoveRepoIDs(ids ...int) *ProjectUpdate

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*ProjectUpdate) RemoveRepos

func (pu *ProjectUpdate) RemoveRepos(r ...*Repo) *ProjectUpdate

RemoveRepos removes "repos" edges to Repo entities.

func (*ProjectUpdate) RemoveVulnerabilityReviewIDs

func (pu *ProjectUpdate) RemoveVulnerabilityReviewIDs(ids ...int) *ProjectUpdate

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to VulnerabilityReview entities by IDs.

func (*ProjectUpdate) RemoveVulnerabilityReviews

func (pu *ProjectUpdate) RemoveVulnerabilityReviews(v ...*VulnerabilityReview) *ProjectUpdate

RemoveVulnerabilityReviews removes "vulnerability_reviews" edges to VulnerabilityReview entities.

func (*ProjectUpdate) Save

func (pu *ProjectUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ProjectUpdate) SaveX

func (pu *ProjectUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ProjectUpdate) SetName

func (pu *ProjectUpdate) SetName(s string) *ProjectUpdate

SetName sets the "name" field.

func (*ProjectUpdate) SetOwner

func (pu *ProjectUpdate) SetOwner(o *Organization) *ProjectUpdate

SetOwner sets the "owner" edge to the Organization entity.

func (*ProjectUpdate) SetOwnerID

func (pu *ProjectUpdate) SetOwnerID(id int) *ProjectUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*ProjectUpdate) Where

func (pu *ProjectUpdate) Where(ps ...predicate.Project) *ProjectUpdate

Where appends a list predicates to the ProjectUpdate builder.

type ProjectUpdateOne

type ProjectUpdateOne struct {
	// contains filtered or unexported fields
}

ProjectUpdateOne is the builder for updating a single Project entity.

func (*ProjectUpdateOne) AddPolicies

func (puo *ProjectUpdateOne) AddPolicies(r ...*ReleasePolicy) *ProjectUpdateOne

AddPolicies adds the "policies" edges to the ReleasePolicy entity.

func (*ProjectUpdateOne) AddPolicyIDs

func (puo *ProjectUpdateOne) AddPolicyIDs(ids ...int) *ProjectUpdateOne

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by IDs.

func (*ProjectUpdateOne) AddRepoIDs

func (puo *ProjectUpdateOne) AddRepoIDs(ids ...int) *ProjectUpdateOne

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*ProjectUpdateOne) AddRepos

func (puo *ProjectUpdateOne) AddRepos(r ...*Repo) *ProjectUpdateOne

AddRepos adds the "repos" edges to the Repo entity.

func (*ProjectUpdateOne) AddVulnerabilityReviewIDs

func (puo *ProjectUpdateOne) AddVulnerabilityReviewIDs(ids ...int) *ProjectUpdateOne

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ProjectUpdateOne) AddVulnerabilityReviews

func (puo *ProjectUpdateOne) AddVulnerabilityReviews(v ...*VulnerabilityReview) *ProjectUpdateOne

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ProjectUpdateOne) ClearOwner

func (puo *ProjectUpdateOne) ClearOwner() *ProjectUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*ProjectUpdateOne) ClearPolicies

func (puo *ProjectUpdateOne) ClearPolicies() *ProjectUpdateOne

ClearPolicies clears all "policies" edges to the ReleasePolicy entity.

func (*ProjectUpdateOne) ClearRepos

func (puo *ProjectUpdateOne) ClearRepos() *ProjectUpdateOne

ClearRepos clears all "repos" edges to the Repo entity.

func (*ProjectUpdateOne) ClearVulnerabilityReviews

func (puo *ProjectUpdateOne) ClearVulnerabilityReviews() *ProjectUpdateOne

ClearVulnerabilityReviews clears all "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ProjectUpdateOne) Exec

func (puo *ProjectUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ProjectUpdateOne) ExecX

func (puo *ProjectUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ProjectUpdateOne) Mutation

func (puo *ProjectUpdateOne) Mutation() *ProjectMutation

Mutation returns the ProjectMutation object of the builder.

func (*ProjectUpdateOne) RemovePolicies

func (puo *ProjectUpdateOne) RemovePolicies(r ...*ReleasePolicy) *ProjectUpdateOne

RemovePolicies removes "policies" edges to ReleasePolicy entities.

func (*ProjectUpdateOne) RemovePolicyIDs

func (puo *ProjectUpdateOne) RemovePolicyIDs(ids ...int) *ProjectUpdateOne

RemovePolicyIDs removes the "policies" edge to ReleasePolicy entities by IDs.

func (*ProjectUpdateOne) RemoveRepoIDs

func (puo *ProjectUpdateOne) RemoveRepoIDs(ids ...int) *ProjectUpdateOne

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*ProjectUpdateOne) RemoveRepos

func (puo *ProjectUpdateOne) RemoveRepos(r ...*Repo) *ProjectUpdateOne

RemoveRepos removes "repos" edges to Repo entities.

func (*ProjectUpdateOne) RemoveVulnerabilityReviewIDs

func (puo *ProjectUpdateOne) RemoveVulnerabilityReviewIDs(ids ...int) *ProjectUpdateOne

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to VulnerabilityReview entities by IDs.

func (*ProjectUpdateOne) RemoveVulnerabilityReviews

func (puo *ProjectUpdateOne) RemoveVulnerabilityReviews(v ...*VulnerabilityReview) *ProjectUpdateOne

RemoveVulnerabilityReviews removes "vulnerability_reviews" edges to VulnerabilityReview entities.

func (*ProjectUpdateOne) Save

func (puo *ProjectUpdateOne) Save(ctx context.Context) (*Project, error)

Save executes the query and returns the updated Project entity.

func (*ProjectUpdateOne) SaveX

func (puo *ProjectUpdateOne) SaveX(ctx context.Context) *Project

SaveX is like Save, but panics if an error occurs.

func (*ProjectUpdateOne) Select

func (puo *ProjectUpdateOne) Select(field string, fields ...string) *ProjectUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ProjectUpdateOne) SetModelCreate

func (pr *ProjectUpdateOne) SetModelCreate(model *ProjectModelCreate) *ProjectUpdateOne

func (*ProjectUpdateOne) SetModelUpdate

func (pr *ProjectUpdateOne) SetModelUpdate(model *ProjectModelUpdate) *ProjectUpdateOne

func (*ProjectUpdateOne) SetName

func (puo *ProjectUpdateOne) SetName(s string) *ProjectUpdateOne

SetName sets the "name" field.

func (*ProjectUpdateOne) SetOwner

func (puo *ProjectUpdateOne) SetOwner(o *Organization) *ProjectUpdateOne

SetOwner sets the "owner" edge to the Organization entity.

func (*ProjectUpdateOne) SetOwnerID

func (puo *ProjectUpdateOne) SetOwnerID(id int) *ProjectUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

type ProjectWhereInput

type ProjectWhereInput struct {
	Not *ProjectWhereInput   `json:"not,omitempty"`
	Or  []*ProjectWhereInput `json:"or,omitempty"`
	And []*ProjectWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`

	// "repos" edge predicates.
	HasRepos     *bool             `json:"hasRepos,omitempty"`
	HasReposWith []*RepoWhereInput `json:"hasReposWith,omitempty"`

	// "vulnerability_reviews" edge predicates.
	HasVulnerabilityReviews     *bool                            `json:"hasVulnerabilityReviews,omitempty"`
	HasVulnerabilityReviewsWith []*VulnerabilityReviewWhereInput `json:"hasVulnerabilityReviewsWith,omitempty"`

	// "policies" edge predicates.
	HasPolicies     *bool                      `json:"hasPolicies,omitempty"`
	HasPoliciesWith []*ReleasePolicyWhereInput `json:"hasPoliciesWith,omitempty"`
}

ProjectWhereInput represents a where input for filtering Project queries.

func (*ProjectWhereInput) Filter

Filter applies the ProjectWhereInput filter on the ProjectQuery builder.

func (*ProjectWhereInput) P

P returns a predicate for filtering projects. An error is returned if the input is empty or invalid.

type Projects

type Projects []*Project

Projects is a parsable slice of Project.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type Release

type Release struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Version holds the value of the "version" field.
	Version string `json:"version,omitempty"`
	// Labels holds the value of the "labels" field.
	Labels schema.Labels `json:"labels,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleaseQuery when eager-loading is set.
	Edges ReleaseEdges `json:"edges"`
	// contains filtered or unexported fields
}

Release is the model entity for the Release schema.

func (*Release) Artifacts

func (r *Release) Artifacts(ctx context.Context) ([]*Artifact, error)

func (*Release) CodeScans

func (r *Release) CodeScans(ctx context.Context) ([]*CodeScan, error)

func (*Release) Commit

func (r *Release) Commit(ctx context.Context) (*GitCommit, error)

func (*Release) Components

func (r *Release) Components(ctx context.Context) ([]*ReleaseComponent, error)

func (*Release) Dependencies

func (r *Release) Dependencies(ctx context.Context) ([]*Release, error)

func (*Release) HeadOf

func (r *Release) HeadOf(ctx context.Context) (*Repo, error)

func (*Release) Licenses

func (r *Release) Licenses(ctx context.Context) ([]*ReleaseLicense, error)

func (*Release) Log

func (r *Release) Log(ctx context.Context) ([]*ReleaseEntry, error)

func (*Release) Node

func (r *Release) Node(ctx context.Context) (node *Node, err error)

func (*Release) QueryArtifacts

func (r *Release) QueryArtifacts() *ArtifactQuery

QueryArtifacts queries the "artifacts" edge of the Release entity.

func (*Release) QueryCodeScans

func (r *Release) QueryCodeScans() *CodeScanQuery

QueryCodeScans queries the "code_scans" edge of the Release entity.

func (*Release) QueryCommit

func (r *Release) QueryCommit() *GitCommitQuery

QueryCommit queries the "commit" edge of the Release entity.

func (*Release) QueryComponents

func (r *Release) QueryComponents() *ReleaseComponentQuery

QueryComponents queries the "components" edge of the Release entity.

func (*Release) QueryDependencies

func (r *Release) QueryDependencies() *ReleaseQuery

QueryDependencies queries the "dependencies" edge of the Release entity.

func (*Release) QueryHeadOf

func (r *Release) QueryHeadOf() *RepoQuery

QueryHeadOf queries the "head_of" edge of the Release entity.

func (*Release) QueryLicenses

func (r *Release) QueryLicenses() *ReleaseLicenseQuery

QueryLicenses queries the "licenses" edge of the Release entity.

func (*Release) QueryLog

func (r *Release) QueryLog() *ReleaseEntryQuery

QueryLog queries the "log" edge of the Release entity.

func (*Release) QuerySubreleases

func (r *Release) QuerySubreleases() *ReleaseQuery

QuerySubreleases queries the "subreleases" edge of the Release entity.

func (*Release) QueryTestRuns

func (r *Release) QueryTestRuns() *TestRunQuery

QueryTestRuns queries the "test_runs" edge of the Release entity.

func (*Release) QueryViolations

func (r *Release) QueryViolations() *ReleasePolicyViolationQuery

QueryViolations queries the "violations" edge of the Release entity.

func (*Release) QueryVulnerabilities

func (r *Release) QueryVulnerabilities() *ReleaseVulnerabilityQuery

QueryVulnerabilities queries the "vulnerabilities" edge of the Release entity.

func (*Release) QueryVulnerabilityReviews

func (r *Release) QueryVulnerabilityReviews() *VulnerabilityReviewQuery

QueryVulnerabilityReviews queries the "vulnerability_reviews" edge of the Release entity.

func (*Release) String

func (r *Release) String() string

String implements the fmt.Stringer.

func (*Release) Subreleases

func (r *Release) Subreleases(ctx context.Context) ([]*Release, error)

func (*Release) TestRuns

func (r *Release) TestRuns(ctx context.Context) ([]*TestRun, error)

func (*Release) ToEdge

func (r *Release) ToEdge(order *ReleaseOrder) *ReleaseEdge

ToEdge converts Release into ReleaseEdge.

func (*Release) Unwrap

func (r *Release) Unwrap() *Release

Unwrap unwraps the Release entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Release) Update

func (r *Release) Update() *ReleaseUpdateOne

Update returns a builder for updating this Release. Note that you need to call Release.Unwrap() before calling this method if this Release was returned from a transaction, and the transaction was committed or rolled back.

func (*Release) Violations

func (r *Release) Violations(ctx context.Context) ([]*ReleasePolicyViolation, error)

func (*Release) Vulnerabilities

func (r *Release) Vulnerabilities(ctx context.Context) ([]*ReleaseVulnerability, error)

func (*Release) VulnerabilityReviews

func (r *Release) VulnerabilityReviews(ctx context.Context) ([]*VulnerabilityReview, error)

type ReleaseClient

type ReleaseClient struct {
	// contains filtered or unexported fields
}

ReleaseClient is a client for the Release schema.

func NewReleaseClient

func NewReleaseClient(c config) *ReleaseClient

NewReleaseClient returns a client for the Release from the given config.

func (*ReleaseClient) Create

func (c *ReleaseClient) Create() *ReleaseCreate

Create returns a create builder for Release.

func (*ReleaseClient) CreateBulk

func (c *ReleaseClient) CreateBulk(builders ...*ReleaseCreate) *ReleaseCreateBulk

CreateBulk returns a builder for creating a bulk of Release entities.

func (*ReleaseClient) Delete

func (c *ReleaseClient) Delete() *ReleaseDelete

Delete returns a delete builder for Release.

func (*ReleaseClient) DeleteOne

func (c *ReleaseClient) DeleteOne(r *Release) *ReleaseDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleaseClient) DeleteOneID

func (c *ReleaseClient) DeleteOneID(id int) *ReleaseDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ReleaseClient) Get

func (c *ReleaseClient) Get(ctx context.Context, id int) (*Release, error)

Get returns a Release entity by its id.

func (*ReleaseClient) GetX

func (c *ReleaseClient) GetX(ctx context.Context, id int) *Release

GetX is like Get, but panics if an error occurs.

func (*ReleaseClient) Hooks

func (c *ReleaseClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleaseClient) Query

func (c *ReleaseClient) Query() *ReleaseQuery

Query returns a query builder for Release.

func (*ReleaseClient) QueryArtifacts

func (c *ReleaseClient) QueryArtifacts(r *Release) *ArtifactQuery

QueryArtifacts queries the artifacts edge of a Release.

func (*ReleaseClient) QueryCodeScans

func (c *ReleaseClient) QueryCodeScans(r *Release) *CodeScanQuery

QueryCodeScans queries the code_scans edge of a Release.

func (*ReleaseClient) QueryCommit

func (c *ReleaseClient) QueryCommit(r *Release) *GitCommitQuery

QueryCommit queries the commit edge of a Release.

func (*ReleaseClient) QueryComponents

func (c *ReleaseClient) QueryComponents(r *Release) *ReleaseComponentQuery

QueryComponents queries the components edge of a Release.

func (*ReleaseClient) QueryDependencies

func (c *ReleaseClient) QueryDependencies(r *Release) *ReleaseQuery

QueryDependencies queries the dependencies edge of a Release.

func (*ReleaseClient) QueryHeadOf

func (c *ReleaseClient) QueryHeadOf(r *Release) *RepoQuery

QueryHeadOf queries the head_of edge of a Release.

func (*ReleaseClient) QueryLicenses

func (c *ReleaseClient) QueryLicenses(r *Release) *ReleaseLicenseQuery

QueryLicenses queries the licenses edge of a Release.

func (*ReleaseClient) QueryLog

func (c *ReleaseClient) QueryLog(r *Release) *ReleaseEntryQuery

QueryLog queries the log edge of a Release.

func (*ReleaseClient) QuerySubreleases

func (c *ReleaseClient) QuerySubreleases(r *Release) *ReleaseQuery

QuerySubreleases queries the subreleases edge of a Release.

func (*ReleaseClient) QueryTestRuns

func (c *ReleaseClient) QueryTestRuns(r *Release) *TestRunQuery

QueryTestRuns queries the test_runs edge of a Release.

func (*ReleaseClient) QueryViolations

func (c *ReleaseClient) QueryViolations(r *Release) *ReleasePolicyViolationQuery

QueryViolations queries the violations edge of a Release.

func (*ReleaseClient) QueryVulnerabilities

func (c *ReleaseClient) QueryVulnerabilities(r *Release) *ReleaseVulnerabilityQuery

QueryVulnerabilities queries the vulnerabilities edge of a Release.

func (*ReleaseClient) QueryVulnerabilityReviews

func (c *ReleaseClient) QueryVulnerabilityReviews(r *Release) *VulnerabilityReviewQuery

QueryVulnerabilityReviews queries the vulnerability_reviews edge of a Release.

func (*ReleaseClient) Update

func (c *ReleaseClient) Update() *ReleaseUpdate

Update returns an update builder for Release.

func (*ReleaseClient) UpdateOne

func (c *ReleaseClient) UpdateOne(r *Release) *ReleaseUpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleaseClient) UpdateOneID

func (c *ReleaseClient) UpdateOneID(id int) *ReleaseUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReleaseClient) Use

func (c *ReleaseClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `release.Hooks(f(g(h())))`.

type ReleaseComponent

type ReleaseComponent struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Type holds the value of the "type" field.
	//
	// The type indicates how the component is used in the project,
	// e.g. whether it is embedded into the build (static link) or just
	// distributed (dynamic link) or just a development dependency
	Type releasecomponent.Type `json:"type,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleaseComponentQuery when eager-loading is set.
	Edges ReleaseComponentEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReleaseComponent is the model entity for the ReleaseComponent schema.

func (*ReleaseComponent) Component

func (rc *ReleaseComponent) Component(ctx context.Context) (*Component, error)

func (*ReleaseComponent) Licenses

func (rc *ReleaseComponent) Licenses(ctx context.Context) ([]*ReleaseLicense, error)

func (*ReleaseComponent) Node

func (rc *ReleaseComponent) Node(ctx context.Context) (node *Node, err error)

func (*ReleaseComponent) QueryComponent

func (rc *ReleaseComponent) QueryComponent() *ComponentQuery

QueryComponent queries the "component" edge of the ReleaseComponent entity.

func (*ReleaseComponent) QueryLicenses

func (rc *ReleaseComponent) QueryLicenses() *ReleaseLicenseQuery

QueryLicenses queries the "licenses" edge of the ReleaseComponent entity.

func (*ReleaseComponent) QueryRelease

func (rc *ReleaseComponent) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the ReleaseComponent entity.

func (*ReleaseComponent) QueryScans

func (rc *ReleaseComponent) QueryScans() *CodeScanQuery

QueryScans queries the "scans" edge of the ReleaseComponent entity.

func (*ReleaseComponent) QueryVulnerabilities

func (rc *ReleaseComponent) QueryVulnerabilities() *ReleaseVulnerabilityQuery

QueryVulnerabilities queries the "vulnerabilities" edge of the ReleaseComponent entity.

func (*ReleaseComponent) Release

func (rc *ReleaseComponent) Release(ctx context.Context) (*Release, error)

func (*ReleaseComponent) Scans

func (rc *ReleaseComponent) Scans(ctx context.Context) ([]*CodeScan, error)

func (*ReleaseComponent) String

func (rc *ReleaseComponent) String() string

String implements the fmt.Stringer.

func (*ReleaseComponent) ToEdge

ToEdge converts ReleaseComponent into ReleaseComponentEdge.

func (*ReleaseComponent) Unwrap

func (rc *ReleaseComponent) Unwrap() *ReleaseComponent

Unwrap unwraps the ReleaseComponent entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReleaseComponent) Update

Update returns a builder for updating this ReleaseComponent. Note that you need to call ReleaseComponent.Unwrap() before calling this method if this ReleaseComponent was returned from a transaction, and the transaction was committed or rolled back.

func (*ReleaseComponent) Vulnerabilities

func (rc *ReleaseComponent) Vulnerabilities(ctx context.Context) ([]*ReleaseVulnerability, error)

type ReleaseComponentClient

type ReleaseComponentClient struct {
	// contains filtered or unexported fields
}

ReleaseComponentClient is a client for the ReleaseComponent schema.

func NewReleaseComponentClient

func NewReleaseComponentClient(c config) *ReleaseComponentClient

NewReleaseComponentClient returns a client for the ReleaseComponent from the given config.

func (*ReleaseComponentClient) Create

Create returns a create builder for ReleaseComponent.

func (*ReleaseComponentClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ReleaseComponent entities.

func (*ReleaseComponentClient) Delete

Delete returns a delete builder for ReleaseComponent.

func (*ReleaseComponentClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleaseComponentClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*ReleaseComponentClient) Get

Get returns a ReleaseComponent entity by its id.

func (*ReleaseComponentClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReleaseComponentClient) Hooks

func (c *ReleaseComponentClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleaseComponentClient) Query

Query returns a query builder for ReleaseComponent.

func (*ReleaseComponentClient) QueryComponent

func (c *ReleaseComponentClient) QueryComponent(rc *ReleaseComponent) *ComponentQuery

QueryComponent queries the component edge of a ReleaseComponent.

func (*ReleaseComponentClient) QueryLicenses

QueryLicenses queries the licenses edge of a ReleaseComponent.

func (*ReleaseComponentClient) QueryRelease

QueryRelease queries the release edge of a ReleaseComponent.

func (*ReleaseComponentClient) QueryScans

QueryScans queries the scans edge of a ReleaseComponent.

func (*ReleaseComponentClient) QueryVulnerabilities

QueryVulnerabilities queries the vulnerabilities edge of a ReleaseComponent.

func (*ReleaseComponentClient) Update

Update returns an update builder for ReleaseComponent.

func (*ReleaseComponentClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleaseComponentClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ReleaseComponentClient) Use

func (c *ReleaseComponentClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `releasecomponent.Hooks(f(g(h())))`.

type ReleaseComponentConnection

type ReleaseComponentConnection struct {
	Edges      []*ReleaseComponentEdge `json:"edges"`
	PageInfo   PageInfo                `json:"pageInfo"`
	TotalCount int                     `json:"totalCount"`
}

ReleaseComponentConnection is the connection containing edges to ReleaseComponent.

type ReleaseComponentCreate

type ReleaseComponentCreate struct {
	// contains filtered or unexported fields
}

ReleaseComponentCreate is the builder for creating a ReleaseComponent entity.

func (*ReleaseComponentCreate) AddLicenseIDs

func (rcc *ReleaseComponentCreate) AddLicenseIDs(ids ...int) *ReleaseComponentCreate

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseComponentCreate) AddLicenses

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*ReleaseComponentCreate) AddScanIDs

func (rcc *ReleaseComponentCreate) AddScanIDs(ids ...int) *ReleaseComponentCreate

AddScanIDs adds the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseComponentCreate) AddScans

AddScans adds the "scans" edges to the CodeScan entity.

func (*ReleaseComponentCreate) AddVulnerabilities

func (rcc *ReleaseComponentCreate) AddVulnerabilities(r ...*ReleaseVulnerability) *ReleaseComponentCreate

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseComponentCreate) AddVulnerabilityIDs

func (rcc *ReleaseComponentCreate) AddVulnerabilityIDs(ids ...int) *ReleaseComponentCreate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseComponentCreate) Exec

Exec executes the query.

func (*ReleaseComponentCreate) ExecX

func (rcc *ReleaseComponentCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseComponentCreate) Mutation

Mutation returns the ReleaseComponentMutation object of the builder.

func (*ReleaseComponentCreate) Save

Save creates the ReleaseComponent in the database.

func (*ReleaseComponentCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReleaseComponentCreate) SetComponent

SetComponent sets the "component" edge to the Component entity.

func (*ReleaseComponentCreate) SetComponentID

func (rcc *ReleaseComponentCreate) SetComponentID(id int) *ReleaseComponentCreate

SetComponentID sets the "component" edge to the Component entity by ID.

func (*ReleaseComponentCreate) SetNillableType

SetNillableType sets the "type" field if the given value is not nil.

func (*ReleaseComponentCreate) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseComponentCreate) SetReleaseID

func (rcc *ReleaseComponentCreate) SetReleaseID(id int) *ReleaseComponentCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseComponentCreate) SetType

SetType sets the "type" field.

type ReleaseComponentCreateBulk

type ReleaseComponentCreateBulk struct {
	// contains filtered or unexported fields
}

ReleaseComponentCreateBulk is the builder for creating many ReleaseComponent entities in bulk.

func (*ReleaseComponentCreateBulk) Exec

Exec executes the query.

func (*ReleaseComponentCreateBulk) ExecX

func (rccb *ReleaseComponentCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseComponentCreateBulk) Save

Save creates the ReleaseComponent entities in the database.

func (*ReleaseComponentCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ReleaseComponentDelete

type ReleaseComponentDelete struct {
	// contains filtered or unexported fields
}

ReleaseComponentDelete is the builder for deleting a ReleaseComponent entity.

func (*ReleaseComponentDelete) Exec

func (rcd *ReleaseComponentDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleaseComponentDelete) ExecX

func (rcd *ReleaseComponentDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseComponentDelete) Where

Where appends a list predicates to the ReleaseComponentDelete builder.

type ReleaseComponentDeleteOne

type ReleaseComponentDeleteOne struct {
	// contains filtered or unexported fields
}

ReleaseComponentDeleteOne is the builder for deleting a single ReleaseComponent entity.

func (*ReleaseComponentDeleteOne) Exec

Exec executes the deletion query.

func (*ReleaseComponentDeleteOne) ExecX

func (rcdo *ReleaseComponentDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ReleaseComponentEdge

type ReleaseComponentEdge struct {
	Node   *ReleaseComponent `json:"node"`
	Cursor Cursor            `json:"cursor"`
}

ReleaseComponentEdge is the edge representation of ReleaseComponent.

type ReleaseComponentEdges

type ReleaseComponentEdges struct {
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Scans holds the value of the scans edge.
	Scans []*CodeScan `json:"scans,omitempty"`
	// Component holds the value of the component edge.
	Component *Component `json:"component,omitempty"`
	// Vulnerabilities holds the value of the vulnerabilities edge.
	Vulnerabilities []*ReleaseVulnerability `json:"vulnerabilities,omitempty"`
	// Licenses holds the value of the licenses edge.
	Licenses []*ReleaseLicense `json:"licenses,omitempty"`
	// contains filtered or unexported fields
}

ReleaseComponentEdges holds the relations/edges for other nodes in the graph.

func (ReleaseComponentEdges) ComponentOrErr

func (e ReleaseComponentEdges) ComponentOrErr() (*Component, error)

ComponentOrErr returns the Component value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseComponentEdges) LicensesOrErr

func (e ReleaseComponentEdges) LicensesOrErr() ([]*ReleaseLicense, error)

LicensesOrErr returns the Licenses value or an error if the edge was not loaded in eager-loading.

func (ReleaseComponentEdges) ReleaseOrErr

func (e ReleaseComponentEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseComponentEdges) ScansOrErr

func (e ReleaseComponentEdges) ScansOrErr() ([]*CodeScan, error)

ScansOrErr returns the Scans value or an error if the edge was not loaded in eager-loading.

func (ReleaseComponentEdges) VulnerabilitiesOrErr

func (e ReleaseComponentEdges) VulnerabilitiesOrErr() ([]*ReleaseVulnerability, error)

VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge was not loaded in eager-loading.

type ReleaseComponentGroupBy

type ReleaseComponentGroupBy struct {
	// contains filtered or unexported fields
}

ReleaseComponentGroupBy is the group-by builder for ReleaseComponent entities.

func (*ReleaseComponentGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleaseComponentGroupBy) Bool

func (rcgb *ReleaseComponentGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) BoolX

func (rcgb *ReleaseComponentGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Bools

func (rcgb *ReleaseComponentGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) BoolsX

func (rcgb *ReleaseComponentGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Float64

func (rcgb *ReleaseComponentGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) Float64X

func (rcgb *ReleaseComponentGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Float64s

func (rcgb *ReleaseComponentGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) Float64sX

func (rcgb *ReleaseComponentGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Int

func (rcgb *ReleaseComponentGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) IntX

func (rcgb *ReleaseComponentGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Ints

func (rcgb *ReleaseComponentGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) IntsX

func (rcgb *ReleaseComponentGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Scan

func (rcgb *ReleaseComponentGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleaseComponentGroupBy) ScanX

func (rcgb *ReleaseComponentGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseComponentGroupBy) String

func (rcgb *ReleaseComponentGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) StringX

func (rcgb *ReleaseComponentGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseComponentGroupBy) Strings

func (rcgb *ReleaseComponentGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseComponentGroupBy) StringsX

func (rcgb *ReleaseComponentGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseComponentMutation

type ReleaseComponentMutation struct {
	// contains filtered or unexported fields
}

ReleaseComponentMutation represents an operation that mutates the ReleaseComponent nodes in the graph.

func (*ReleaseComponentMutation) AddField

func (m *ReleaseComponentMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseComponentMutation) AddLicenseIDs

func (m *ReleaseComponentMutation) AddLicenseIDs(ids ...int)

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by ids.

func (*ReleaseComponentMutation) AddScanIDs

func (m *ReleaseComponentMutation) AddScanIDs(ids ...int)

AddScanIDs adds the "scans" edge to the CodeScan entity by ids.

func (*ReleaseComponentMutation) AddVulnerabilityIDs

func (m *ReleaseComponentMutation) AddVulnerabilityIDs(ids ...int)

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by ids.

func (*ReleaseComponentMutation) AddedEdges

func (m *ReleaseComponentMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleaseComponentMutation) AddedField

func (m *ReleaseComponentMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseComponentMutation) AddedFields

func (m *ReleaseComponentMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleaseComponentMutation) AddedIDs

func (m *ReleaseComponentMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleaseComponentMutation) ClearComponent

func (m *ReleaseComponentMutation) ClearComponent()

ClearComponent clears the "component" edge to the Component entity.

func (*ReleaseComponentMutation) ClearEdge

func (m *ReleaseComponentMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleaseComponentMutation) ClearField

func (m *ReleaseComponentMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseComponentMutation) ClearLicenses

func (m *ReleaseComponentMutation) ClearLicenses()

ClearLicenses clears the "licenses" edge to the ReleaseLicense entity.

func (*ReleaseComponentMutation) ClearRelease

func (m *ReleaseComponentMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseComponentMutation) ClearScans

func (m *ReleaseComponentMutation) ClearScans()

ClearScans clears the "scans" edge to the CodeScan entity.

func (*ReleaseComponentMutation) ClearVulnerabilities

func (m *ReleaseComponentMutation) ClearVulnerabilities()

ClearVulnerabilities clears the "vulnerabilities" edge to the ReleaseVulnerability entity.

func (*ReleaseComponentMutation) ClearedEdges

func (m *ReleaseComponentMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleaseComponentMutation) ClearedFields

func (m *ReleaseComponentMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleaseComponentMutation) Client

func (m ReleaseComponentMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleaseComponentMutation) ComponentCleared

func (m *ReleaseComponentMutation) ComponentCleared() bool

ComponentCleared reports if the "component" edge to the Component entity was cleared.

func (*ReleaseComponentMutation) ComponentID

func (m *ReleaseComponentMutation) ComponentID() (id int, exists bool)

ComponentID returns the "component" edge ID in the mutation.

func (*ReleaseComponentMutation) ComponentIDs

func (m *ReleaseComponentMutation) ComponentIDs() (ids []int)

ComponentIDs returns the "component" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ComponentID instead. It exists only for internal usage by the builders.

func (*ReleaseComponentMutation) EdgeCleared

func (m *ReleaseComponentMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleaseComponentMutation) Field

func (m *ReleaseComponentMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseComponentMutation) FieldCleared

func (m *ReleaseComponentMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleaseComponentMutation) Fields

func (m *ReleaseComponentMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleaseComponentMutation) GetType

func (m *ReleaseComponentMutation) GetType() (r releasecomponent.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*ReleaseComponentMutation) ID

func (m *ReleaseComponentMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleaseComponentMutation) LicensesCleared

func (m *ReleaseComponentMutation) LicensesCleared() bool

LicensesCleared reports if the "licenses" edge to the ReleaseLicense entity was cleared.

func (*ReleaseComponentMutation) LicensesIDs

func (m *ReleaseComponentMutation) LicensesIDs() (ids []int)

LicensesIDs returns the "licenses" edge IDs in the mutation.

func (*ReleaseComponentMutation) OldField

func (m *ReleaseComponentMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleaseComponentMutation) OldType

OldType returns the old "type" field's value of the ReleaseComponent entity. If the ReleaseComponent object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleaseComponentMutation) Op

func (m *ReleaseComponentMutation) Op() Op

Op returns the operation name.

func (*ReleaseComponentMutation) ReleaseCleared

func (m *ReleaseComponentMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*ReleaseComponentMutation) ReleaseID

func (m *ReleaseComponentMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*ReleaseComponentMutation) ReleaseIDs

func (m *ReleaseComponentMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*ReleaseComponentMutation) RemoveLicenseIDs

func (m *ReleaseComponentMutation) RemoveLicenseIDs(ids ...int)

RemoveLicenseIDs removes the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseComponentMutation) RemoveScanIDs

func (m *ReleaseComponentMutation) RemoveScanIDs(ids ...int)

RemoveScanIDs removes the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseComponentMutation) RemoveVulnerabilityIDs

func (m *ReleaseComponentMutation) RemoveVulnerabilityIDs(ids ...int)

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseComponentMutation) RemovedEdges

func (m *ReleaseComponentMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleaseComponentMutation) RemovedIDs

func (m *ReleaseComponentMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleaseComponentMutation) RemovedLicensesIDs

func (m *ReleaseComponentMutation) RemovedLicensesIDs() (ids []int)

RemovedLicenses returns the removed IDs of the "licenses" edge to the ReleaseLicense entity.

func (*ReleaseComponentMutation) RemovedScansIDs

func (m *ReleaseComponentMutation) RemovedScansIDs() (ids []int)

RemovedScans returns the removed IDs of the "scans" edge to the CodeScan entity.

func (*ReleaseComponentMutation) RemovedVulnerabilitiesIDs

func (m *ReleaseComponentMutation) RemovedVulnerabilitiesIDs() (ids []int)

RemovedVulnerabilities returns the removed IDs of the "vulnerabilities" edge to the ReleaseVulnerability entity.

func (*ReleaseComponentMutation) ResetComponent

func (m *ReleaseComponentMutation) ResetComponent()

ResetComponent resets all changes to the "component" edge.

func (*ReleaseComponentMutation) ResetEdge

func (m *ReleaseComponentMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleaseComponentMutation) ResetField

func (m *ReleaseComponentMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseComponentMutation) ResetLicenses

func (m *ReleaseComponentMutation) ResetLicenses()

ResetLicenses resets all changes to the "licenses" edge.

func (*ReleaseComponentMutation) ResetRelease

func (m *ReleaseComponentMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*ReleaseComponentMutation) ResetScans

func (m *ReleaseComponentMutation) ResetScans()

ResetScans resets all changes to the "scans" edge.

func (*ReleaseComponentMutation) ResetType

func (m *ReleaseComponentMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*ReleaseComponentMutation) ResetVulnerabilities

func (m *ReleaseComponentMutation) ResetVulnerabilities()

ResetVulnerabilities resets all changes to the "vulnerabilities" edge.

func (*ReleaseComponentMutation) ScansCleared

func (m *ReleaseComponentMutation) ScansCleared() bool

ScansCleared reports if the "scans" edge to the CodeScan entity was cleared.

func (*ReleaseComponentMutation) ScansIDs

func (m *ReleaseComponentMutation) ScansIDs() (ids []int)

ScansIDs returns the "scans" edge IDs in the mutation.

func (*ReleaseComponentMutation) SetComponentID

func (m *ReleaseComponentMutation) SetComponentID(id int)

SetComponentID sets the "component" edge to the Component entity by id.

func (*ReleaseComponentMutation) SetField

func (m *ReleaseComponentMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseComponentMutation) SetReleaseID

func (m *ReleaseComponentMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*ReleaseComponentMutation) SetType

SetType sets the "type" field.

func (ReleaseComponentMutation) Tx

func (m ReleaseComponentMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleaseComponentMutation) Type

func (m *ReleaseComponentMutation) Type() string

Type returns the node type of this mutation (ReleaseComponent).

func (*ReleaseComponentMutation) VulnerabilitiesCleared

func (m *ReleaseComponentMutation) VulnerabilitiesCleared() bool

VulnerabilitiesCleared reports if the "vulnerabilities" edge to the ReleaseVulnerability entity was cleared.

func (*ReleaseComponentMutation) VulnerabilitiesIDs

func (m *ReleaseComponentMutation) VulnerabilitiesIDs() (ids []int)

VulnerabilitiesIDs returns the "vulnerabilities" edge IDs in the mutation.

func (*ReleaseComponentMutation) Where

Where appends a list predicates to the ReleaseComponentMutation builder.

type ReleaseComponentOrder

type ReleaseComponentOrder struct {
	Direction OrderDirection              `json:"direction"`
	Field     *ReleaseComponentOrderField `json:"field"`
}

ReleaseComponentOrder defines the ordering of ReleaseComponent.

type ReleaseComponentOrderField

type ReleaseComponentOrderField struct {
	// contains filtered or unexported fields
}

ReleaseComponentOrderField defines the ordering field of ReleaseComponent.

type ReleaseComponentPaginateOption

type ReleaseComponentPaginateOption func(*releaseComponentPager) error

ReleaseComponentPaginateOption enables pagination customization.

func WithReleaseComponentFilter

func WithReleaseComponentFilter(filter func(*ReleaseComponentQuery) (*ReleaseComponentQuery, error)) ReleaseComponentPaginateOption

WithReleaseComponentFilter configures pagination filter.

func WithReleaseComponentOrder

func WithReleaseComponentOrder(order *ReleaseComponentOrder) ReleaseComponentPaginateOption

WithReleaseComponentOrder configures pagination ordering.

type ReleaseComponentQuery

type ReleaseComponentQuery struct {
	// contains filtered or unexported fields
}

ReleaseComponentQuery is the builder for querying ReleaseComponent entities.

func (*ReleaseComponentQuery) All

All executes the query and returns a list of ReleaseComponents.

func (*ReleaseComponentQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ReleaseComponentQuery) Clone

Clone returns a duplicate of the ReleaseComponentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleaseComponentQuery) CollectFields

func (rc *ReleaseComponentQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleaseComponentQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleaseComponentQuery) Count

func (rcq *ReleaseComponentQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleaseComponentQuery) CountX

func (rcq *ReleaseComponentQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleaseComponentQuery) Exist

func (rcq *ReleaseComponentQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReleaseComponentQuery) ExistX

func (rcq *ReleaseComponentQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleaseComponentQuery) Filter

func (rc *ReleaseComponentQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ReleaseComponentOrder, where *ReleaseComponentWhereInput,
) ([]*ReleaseComponent, error)

func (*ReleaseComponentQuery) First

First returns the first ReleaseComponent entity from the query. Returns a *NotFoundError when no ReleaseComponent was found.

func (*ReleaseComponentQuery) FirstID

func (rcq *ReleaseComponentQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReleaseComponent ID from the query. Returns a *NotFoundError when no ReleaseComponent ID was found.

func (*ReleaseComponentQuery) FirstIDX

func (rcq *ReleaseComponentQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleaseComponentQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ReleaseComponentQuery) GroupBy

func (rcq *ReleaseComponentQuery) GroupBy(field string, fields ...string) *ReleaseComponentGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Type releasecomponent.Type `json:"type,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReleaseComponent.Query().
	GroupBy(releasecomponent.FieldType).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReleaseComponentQuery) IDs

func (rcq *ReleaseComponentQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of ReleaseComponent IDs.

func (*ReleaseComponentQuery) IDsX

func (rcq *ReleaseComponentQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleaseComponentQuery) Limit

func (rcq *ReleaseComponentQuery) Limit(limit int) *ReleaseComponentQuery

Limit adds a limit step to the query.

func (*ReleaseComponentQuery) Offset

func (rcq *ReleaseComponentQuery) Offset(offset int) *ReleaseComponentQuery

Offset adds an offset step to the query.

func (*ReleaseComponentQuery) Only

Only returns a single ReleaseComponent entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one ReleaseComponent entity is not found. Returns a *NotFoundError when no ReleaseComponent entities are found.

func (*ReleaseComponentQuery) OnlyID

func (rcq *ReleaseComponentQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReleaseComponent ID in the query. Returns a *NotSingularError when exactly one ReleaseComponent ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleaseComponentQuery) OnlyIDX

func (rcq *ReleaseComponentQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleaseComponentQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ReleaseComponentQuery) Order

Order adds an order step to the query.

func (*ReleaseComponentQuery) Paginate

func (rc *ReleaseComponentQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ReleaseComponentPaginateOption,
) (*ReleaseComponentConnection, error)

Paginate executes the query and returns a relay based cursor connection to ReleaseComponent.

func (*ReleaseComponentQuery) QueryComponent

func (rcq *ReleaseComponentQuery) QueryComponent() *ComponentQuery

QueryComponent chains the current query on the "component" edge.

func (*ReleaseComponentQuery) QueryLicenses

func (rcq *ReleaseComponentQuery) QueryLicenses() *ReleaseLicenseQuery

QueryLicenses chains the current query on the "licenses" edge.

func (*ReleaseComponentQuery) QueryRelease

func (rcq *ReleaseComponentQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*ReleaseComponentQuery) QueryScans

func (rcq *ReleaseComponentQuery) QueryScans() *CodeScanQuery

QueryScans chains the current query on the "scans" edge.

func (*ReleaseComponentQuery) QueryVulnerabilities

func (rcq *ReleaseComponentQuery) QueryVulnerabilities() *ReleaseVulnerabilityQuery

QueryVulnerabilities chains the current query on the "vulnerabilities" edge.

func (*ReleaseComponentQuery) Select

func (rcq *ReleaseComponentQuery) Select(fields ...string) *ReleaseComponentSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Type releasecomponent.Type `json:"type,omitempty"`
}

client.ReleaseComponent.Query().
	Select(releasecomponent.FieldType).
	Scan(ctx, &v)

func (*ReleaseComponentQuery) Unique

func (rcq *ReleaseComponentQuery) Unique(unique bool) *ReleaseComponentQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleaseComponentQuery) Where

Where adds a new predicate for the ReleaseComponentQuery builder.

func (*ReleaseComponentQuery) WhereInput

func (*ReleaseComponentQuery) WithComponent

func (rcq *ReleaseComponentQuery) WithComponent(opts ...func(*ComponentQuery)) *ReleaseComponentQuery

WithComponent tells the query-builder to eager-load the nodes that are connected to the "component" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseComponentQuery) WithLicenses

func (rcq *ReleaseComponentQuery) WithLicenses(opts ...func(*ReleaseLicenseQuery)) *ReleaseComponentQuery

WithLicenses tells the query-builder to eager-load the nodes that are connected to the "licenses" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseComponentQuery) WithRelease

func (rcq *ReleaseComponentQuery) WithRelease(opts ...func(*ReleaseQuery)) *ReleaseComponentQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseComponentQuery) WithScans

func (rcq *ReleaseComponentQuery) WithScans(opts ...func(*CodeScanQuery)) *ReleaseComponentQuery

WithScans tells the query-builder to eager-load the nodes that are connected to the "scans" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseComponentQuery) WithVulnerabilities

func (rcq *ReleaseComponentQuery) WithVulnerabilities(opts ...func(*ReleaseVulnerabilityQuery)) *ReleaseComponentQuery

WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge.

type ReleaseComponentSelect

type ReleaseComponentSelect struct {
	*ReleaseComponentQuery
	// contains filtered or unexported fields
}

ReleaseComponentSelect is the builder for selecting fields of ReleaseComponent entities.

func (*ReleaseComponentSelect) Bool

func (rcs *ReleaseComponentSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) BoolX

func (rcs *ReleaseComponentSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseComponentSelect) Bools

func (rcs *ReleaseComponentSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) BoolsX

func (rcs *ReleaseComponentSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseComponentSelect) Float64

func (rcs *ReleaseComponentSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) Float64X

func (rcs *ReleaseComponentSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseComponentSelect) Float64s

func (rcs *ReleaseComponentSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) Float64sX

func (rcs *ReleaseComponentSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseComponentSelect) Int

func (rcs *ReleaseComponentSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) IntX

func (rcs *ReleaseComponentSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseComponentSelect) Ints

func (rcs *ReleaseComponentSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) IntsX

func (rcs *ReleaseComponentSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseComponentSelect) Scan

func (rcs *ReleaseComponentSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleaseComponentSelect) ScanX

func (rcs *ReleaseComponentSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseComponentSelect) String

func (rcs *ReleaseComponentSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) StringX

func (rcs *ReleaseComponentSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseComponentSelect) Strings

func (rcs *ReleaseComponentSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleaseComponentSelect) StringsX

func (rcs *ReleaseComponentSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseComponentUpdate

type ReleaseComponentUpdate struct {
	// contains filtered or unexported fields
}

ReleaseComponentUpdate is the builder for updating ReleaseComponent entities.

func (*ReleaseComponentUpdate) AddLicenseIDs

func (rcu *ReleaseComponentUpdate) AddLicenseIDs(ids ...int) *ReleaseComponentUpdate

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseComponentUpdate) AddLicenses

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*ReleaseComponentUpdate) AddScanIDs

func (rcu *ReleaseComponentUpdate) AddScanIDs(ids ...int) *ReleaseComponentUpdate

AddScanIDs adds the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseComponentUpdate) AddScans

AddScans adds the "scans" edges to the CodeScan entity.

func (*ReleaseComponentUpdate) AddVulnerabilities

func (rcu *ReleaseComponentUpdate) AddVulnerabilities(r ...*ReleaseVulnerability) *ReleaseComponentUpdate

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseComponentUpdate) AddVulnerabilityIDs

func (rcu *ReleaseComponentUpdate) AddVulnerabilityIDs(ids ...int) *ReleaseComponentUpdate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseComponentUpdate) ClearComponent

func (rcu *ReleaseComponentUpdate) ClearComponent() *ReleaseComponentUpdate

ClearComponent clears the "component" edge to the Component entity.

func (*ReleaseComponentUpdate) ClearLicenses

func (rcu *ReleaseComponentUpdate) ClearLicenses() *ReleaseComponentUpdate

ClearLicenses clears all "licenses" edges to the ReleaseLicense entity.

func (*ReleaseComponentUpdate) ClearRelease

func (rcu *ReleaseComponentUpdate) ClearRelease() *ReleaseComponentUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseComponentUpdate) ClearScans

ClearScans clears all "scans" edges to the CodeScan entity.

func (*ReleaseComponentUpdate) ClearVulnerabilities

func (rcu *ReleaseComponentUpdate) ClearVulnerabilities() *ReleaseComponentUpdate

ClearVulnerabilities clears all "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseComponentUpdate) Exec

Exec executes the query.

func (*ReleaseComponentUpdate) ExecX

func (rcu *ReleaseComponentUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseComponentUpdate) Mutation

Mutation returns the ReleaseComponentMutation object of the builder.

func (*ReleaseComponentUpdate) RemoveLicenseIDs

func (rcu *ReleaseComponentUpdate) RemoveLicenseIDs(ids ...int) *ReleaseComponentUpdate

RemoveLicenseIDs removes the "licenses" edge to ReleaseLicense entities by IDs.

func (*ReleaseComponentUpdate) RemoveLicenses

func (rcu *ReleaseComponentUpdate) RemoveLicenses(r ...*ReleaseLicense) *ReleaseComponentUpdate

RemoveLicenses removes "licenses" edges to ReleaseLicense entities.

func (*ReleaseComponentUpdate) RemoveScanIDs

func (rcu *ReleaseComponentUpdate) RemoveScanIDs(ids ...int) *ReleaseComponentUpdate

RemoveScanIDs removes the "scans" edge to CodeScan entities by IDs.

func (*ReleaseComponentUpdate) RemoveScans

func (rcu *ReleaseComponentUpdate) RemoveScans(c ...*CodeScan) *ReleaseComponentUpdate

RemoveScans removes "scans" edges to CodeScan entities.

func (*ReleaseComponentUpdate) RemoveVulnerabilities

func (rcu *ReleaseComponentUpdate) RemoveVulnerabilities(r ...*ReleaseVulnerability) *ReleaseComponentUpdate

RemoveVulnerabilities removes "vulnerabilities" edges to ReleaseVulnerability entities.

func (*ReleaseComponentUpdate) RemoveVulnerabilityIDs

func (rcu *ReleaseComponentUpdate) RemoveVulnerabilityIDs(ids ...int) *ReleaseComponentUpdate

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReleaseVulnerability entities by IDs.

func (*ReleaseComponentUpdate) Save

func (rcu *ReleaseComponentUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleaseComponentUpdate) SaveX

func (rcu *ReleaseComponentUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReleaseComponentUpdate) SetComponent

SetComponent sets the "component" edge to the Component entity.

func (*ReleaseComponentUpdate) SetComponentID

func (rcu *ReleaseComponentUpdate) SetComponentID(id int) *ReleaseComponentUpdate

SetComponentID sets the "component" edge to the Component entity by ID.

func (*ReleaseComponentUpdate) SetNillableType

SetNillableType sets the "type" field if the given value is not nil.

func (*ReleaseComponentUpdate) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseComponentUpdate) SetReleaseID

func (rcu *ReleaseComponentUpdate) SetReleaseID(id int) *ReleaseComponentUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseComponentUpdate) SetType

SetType sets the "type" field.

func (*ReleaseComponentUpdate) Where

Where appends a list predicates to the ReleaseComponentUpdate builder.

type ReleaseComponentUpdateOne

type ReleaseComponentUpdateOne struct {
	// contains filtered or unexported fields
}

ReleaseComponentUpdateOne is the builder for updating a single ReleaseComponent entity.

func (*ReleaseComponentUpdateOne) AddLicenseIDs

func (rcuo *ReleaseComponentUpdateOne) AddLicenseIDs(ids ...int) *ReleaseComponentUpdateOne

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseComponentUpdateOne) AddLicenses

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*ReleaseComponentUpdateOne) AddScanIDs

func (rcuo *ReleaseComponentUpdateOne) AddScanIDs(ids ...int) *ReleaseComponentUpdateOne

AddScanIDs adds the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseComponentUpdateOne) AddScans

AddScans adds the "scans" edges to the CodeScan entity.

func (*ReleaseComponentUpdateOne) AddVulnerabilities

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseComponentUpdateOne) AddVulnerabilityIDs

func (rcuo *ReleaseComponentUpdateOne) AddVulnerabilityIDs(ids ...int) *ReleaseComponentUpdateOne

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseComponentUpdateOne) ClearComponent

func (rcuo *ReleaseComponentUpdateOne) ClearComponent() *ReleaseComponentUpdateOne

ClearComponent clears the "component" edge to the Component entity.

func (*ReleaseComponentUpdateOne) ClearLicenses

ClearLicenses clears all "licenses" edges to the ReleaseLicense entity.

func (*ReleaseComponentUpdateOne) ClearRelease

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseComponentUpdateOne) ClearScans

ClearScans clears all "scans" edges to the CodeScan entity.

func (*ReleaseComponentUpdateOne) ClearVulnerabilities

func (rcuo *ReleaseComponentUpdateOne) ClearVulnerabilities() *ReleaseComponentUpdateOne

ClearVulnerabilities clears all "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseComponentUpdateOne) Exec

Exec executes the query on the entity.

func (*ReleaseComponentUpdateOne) ExecX

func (rcuo *ReleaseComponentUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseComponentUpdateOne) Mutation

Mutation returns the ReleaseComponentMutation object of the builder.

func (*ReleaseComponentUpdateOne) RemoveLicenseIDs

func (rcuo *ReleaseComponentUpdateOne) RemoveLicenseIDs(ids ...int) *ReleaseComponentUpdateOne

RemoveLicenseIDs removes the "licenses" edge to ReleaseLicense entities by IDs.

func (*ReleaseComponentUpdateOne) RemoveLicenses

RemoveLicenses removes "licenses" edges to ReleaseLicense entities.

func (*ReleaseComponentUpdateOne) RemoveScanIDs

func (rcuo *ReleaseComponentUpdateOne) RemoveScanIDs(ids ...int) *ReleaseComponentUpdateOne

RemoveScanIDs removes the "scans" edge to CodeScan entities by IDs.

func (*ReleaseComponentUpdateOne) RemoveScans

RemoveScans removes "scans" edges to CodeScan entities.

func (*ReleaseComponentUpdateOne) RemoveVulnerabilities

func (rcuo *ReleaseComponentUpdateOne) RemoveVulnerabilities(r ...*ReleaseVulnerability) *ReleaseComponentUpdateOne

RemoveVulnerabilities removes "vulnerabilities" edges to ReleaseVulnerability entities.

func (*ReleaseComponentUpdateOne) RemoveVulnerabilityIDs

func (rcuo *ReleaseComponentUpdateOne) RemoveVulnerabilityIDs(ids ...int) *ReleaseComponentUpdateOne

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReleaseVulnerability entities by IDs.

func (*ReleaseComponentUpdateOne) Save

Save executes the query and returns the updated ReleaseComponent entity.

func (*ReleaseComponentUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleaseComponentUpdateOne) Select

func (rcuo *ReleaseComponentUpdateOne) Select(field string, fields ...string) *ReleaseComponentUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleaseComponentUpdateOne) SetComponent

SetComponent sets the "component" edge to the Component entity.

func (*ReleaseComponentUpdateOne) SetComponentID

func (rcuo *ReleaseComponentUpdateOne) SetComponentID(id int) *ReleaseComponentUpdateOne

SetComponentID sets the "component" edge to the Component entity by ID.

func (*ReleaseComponentUpdateOne) SetNillableType

SetNillableType sets the "type" field if the given value is not nil.

func (*ReleaseComponentUpdateOne) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseComponentUpdateOne) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseComponentUpdateOne) SetType

SetType sets the "type" field.

type ReleaseComponentWhereInput

type ReleaseComponentWhereInput struct {
	Not *ReleaseComponentWhereInput   `json:"not,omitempty"`
	Or  []*ReleaseComponentWhereInput `json:"or,omitempty"`
	And []*ReleaseComponentWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "type" field predicates.
	Type      *releasecomponent.Type  `json:"type,omitempty"`
	TypeNEQ   *releasecomponent.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []releasecomponent.Type `json:"typeIn,omitempty"`
	TypeNotIn []releasecomponent.Type `json:"typeNotIn,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "scans" edge predicates.
	HasScans     *bool                 `json:"hasScans,omitempty"`
	HasScansWith []*CodeScanWhereInput `json:"hasScansWith,omitempty"`

	// "component" edge predicates.
	HasComponent     *bool                  `json:"hasComponent,omitempty"`
	HasComponentWith []*ComponentWhereInput `json:"hasComponentWith,omitempty"`

	// "vulnerabilities" edge predicates.
	HasVulnerabilities     *bool                             `json:"hasVulnerabilities,omitempty"`
	HasVulnerabilitiesWith []*ReleaseVulnerabilityWhereInput `json:"hasVulnerabilitiesWith,omitempty"`

	// "licenses" edge predicates.
	HasLicenses     *bool                       `json:"hasLicenses,omitempty"`
	HasLicensesWith []*ReleaseLicenseWhereInput `json:"hasLicensesWith,omitempty"`
}

ReleaseComponentWhereInput represents a where input for filtering ReleaseComponent queries.

func (*ReleaseComponentWhereInput) Filter

Filter applies the ReleaseComponentWhereInput filter on the ReleaseComponentQuery builder.

func (*ReleaseComponentWhereInput) P

P returns a predicate for filtering releasecomponents. An error is returned if the input is empty or invalid.

type ReleaseComponents

type ReleaseComponents []*ReleaseComponent

ReleaseComponents is a parsable slice of ReleaseComponent.

type ReleaseConnection

type ReleaseConnection struct {
	Edges      []*ReleaseEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

ReleaseConnection is the connection containing edges to Release.

type ReleaseCreate

type ReleaseCreate struct {
	// contains filtered or unexported fields
}

ReleaseCreate is the builder for creating a Release entity.

func (*ReleaseCreate) AddArtifactIDs

func (rc *ReleaseCreate) AddArtifactIDs(ids ...int) *ReleaseCreate

AddArtifactIDs adds the "artifacts" edge to the Artifact entity by IDs.

func (*ReleaseCreate) AddArtifacts

func (rc *ReleaseCreate) AddArtifacts(a ...*Artifact) *ReleaseCreate

AddArtifacts adds the "artifacts" edges to the Artifact entity.

func (*ReleaseCreate) AddCodeScanIDs

func (rc *ReleaseCreate) AddCodeScanIDs(ids ...int) *ReleaseCreate

AddCodeScanIDs adds the "code_scans" edge to the CodeScan entity by IDs.

func (*ReleaseCreate) AddCodeScans

func (rc *ReleaseCreate) AddCodeScans(c ...*CodeScan) *ReleaseCreate

AddCodeScans adds the "code_scans" edges to the CodeScan entity.

func (*ReleaseCreate) AddComponentIDs

func (rc *ReleaseCreate) AddComponentIDs(ids ...int) *ReleaseCreate

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by IDs.

func (*ReleaseCreate) AddComponents

func (rc *ReleaseCreate) AddComponents(r ...*ReleaseComponent) *ReleaseCreate

AddComponents adds the "components" edges to the ReleaseComponent entity.

func (*ReleaseCreate) AddDependencies

func (rc *ReleaseCreate) AddDependencies(r ...*Release) *ReleaseCreate

AddDependencies adds the "dependencies" edges to the Release entity.

func (*ReleaseCreate) AddDependencyIDs

func (rc *ReleaseCreate) AddDependencyIDs(ids ...int) *ReleaseCreate

AddDependencyIDs adds the "dependencies" edge to the Release entity by IDs.

func (*ReleaseCreate) AddLicenseIDs

func (rc *ReleaseCreate) AddLicenseIDs(ids ...int) *ReleaseCreate

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseCreate) AddLicenses

func (rc *ReleaseCreate) AddLicenses(r ...*ReleaseLicense) *ReleaseCreate

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*ReleaseCreate) AddLog

func (rc *ReleaseCreate) AddLog(r ...*ReleaseEntry) *ReleaseCreate

AddLog adds the "log" edges to the ReleaseEntry entity.

func (*ReleaseCreate) AddLogIDs

func (rc *ReleaseCreate) AddLogIDs(ids ...int) *ReleaseCreate

AddLogIDs adds the "log" edge to the ReleaseEntry entity by IDs.

func (*ReleaseCreate) AddSubreleaseIDs

func (rc *ReleaseCreate) AddSubreleaseIDs(ids ...int) *ReleaseCreate

AddSubreleaseIDs adds the "subreleases" edge to the Release entity by IDs.

func (*ReleaseCreate) AddSubreleases

func (rc *ReleaseCreate) AddSubreleases(r ...*Release) *ReleaseCreate

AddSubreleases adds the "subreleases" edges to the Release entity.

func (*ReleaseCreate) AddTestRunIDs

func (rc *ReleaseCreate) AddTestRunIDs(ids ...int) *ReleaseCreate

AddTestRunIDs adds the "test_runs" edge to the TestRun entity by IDs.

func (*ReleaseCreate) AddTestRuns

func (rc *ReleaseCreate) AddTestRuns(t ...*TestRun) *ReleaseCreate

AddTestRuns adds the "test_runs" edges to the TestRun entity.

func (*ReleaseCreate) AddViolationIDs

func (rc *ReleaseCreate) AddViolationIDs(ids ...int) *ReleaseCreate

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleaseCreate) AddViolations

func (rc *ReleaseCreate) AddViolations(r ...*ReleasePolicyViolation) *ReleaseCreate

AddViolations adds the "violations" edges to the ReleasePolicyViolation entity.

func (*ReleaseCreate) AddVulnerabilities

func (rc *ReleaseCreate) AddVulnerabilities(r ...*ReleaseVulnerability) *ReleaseCreate

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseCreate) AddVulnerabilityIDs

func (rc *ReleaseCreate) AddVulnerabilityIDs(ids ...int) *ReleaseCreate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseCreate) AddVulnerabilityReviewIDs

func (rc *ReleaseCreate) AddVulnerabilityReviewIDs(ids ...int) *ReleaseCreate

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseCreate) AddVulnerabilityReviews

func (rc *ReleaseCreate) AddVulnerabilityReviews(v ...*VulnerabilityReview) *ReleaseCreate

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ReleaseCreate) Exec

func (rc *ReleaseCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseCreate) ExecX

func (rc *ReleaseCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseCreate) Mutation

func (rc *ReleaseCreate) Mutation() *ReleaseMutation

Mutation returns the ReleaseMutation object of the builder.

func (*ReleaseCreate) Save

func (rc *ReleaseCreate) Save(ctx context.Context) (*Release, error)

Save creates the Release in the database.

func (*ReleaseCreate) SaveX

func (rc *ReleaseCreate) SaveX(ctx context.Context) *Release

SaveX calls Save and panics if Save returns an error.

func (*ReleaseCreate) SetCommit

func (rc *ReleaseCreate) SetCommit(g *GitCommit) *ReleaseCreate

SetCommit sets the "commit" edge to the GitCommit entity.

func (*ReleaseCreate) SetCommitID

func (rc *ReleaseCreate) SetCommitID(id int) *ReleaseCreate

SetCommitID sets the "commit" edge to the GitCommit entity by ID.

func (*ReleaseCreate) SetHeadOf

func (rc *ReleaseCreate) SetHeadOf(r *Repo) *ReleaseCreate

SetHeadOf sets the "head_of" edge to the Repo entity.

func (*ReleaseCreate) SetHeadOfID

func (rc *ReleaseCreate) SetHeadOfID(id int) *ReleaseCreate

SetHeadOfID sets the "head_of" edge to the Repo entity by ID.

func (*ReleaseCreate) SetLabels

func (rc *ReleaseCreate) SetLabels(s schema.Labels) *ReleaseCreate

SetLabels sets the "labels" field.

func (*ReleaseCreate) SetModelCreate

func (r *ReleaseCreate) SetModelCreate(model *ReleaseModelCreate) *ReleaseCreate

func (*ReleaseCreate) SetName

func (rc *ReleaseCreate) SetName(s string) *ReleaseCreate

SetName sets the "name" field.

func (*ReleaseCreate) SetNillableHeadOfID

func (rc *ReleaseCreate) SetNillableHeadOfID(id *int) *ReleaseCreate

SetNillableHeadOfID sets the "head_of" edge to the Repo entity by ID if the given value is not nil.

func (*ReleaseCreate) SetVersion

func (rc *ReleaseCreate) SetVersion(s string) *ReleaseCreate

SetVersion sets the "version" field.

type ReleaseCreateBulk

type ReleaseCreateBulk struct {
	// contains filtered or unexported fields
}

ReleaseCreateBulk is the builder for creating many Release entities in bulk.

func (*ReleaseCreateBulk) Exec

func (rcb *ReleaseCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseCreateBulk) ExecX

func (rcb *ReleaseCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseCreateBulk) Save

func (rcb *ReleaseCreateBulk) Save(ctx context.Context) ([]*Release, error)

Save creates the Release entities in the database.

func (*ReleaseCreateBulk) SaveX

func (rcb *ReleaseCreateBulk) SaveX(ctx context.Context) []*Release

SaveX is like Save, but panics if an error occurs.

type ReleaseDelete

type ReleaseDelete struct {
	// contains filtered or unexported fields
}

ReleaseDelete is the builder for deleting a Release entity.

func (*ReleaseDelete) Exec

func (rd *ReleaseDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleaseDelete) ExecX

func (rd *ReleaseDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseDelete) Where

func (rd *ReleaseDelete) Where(ps ...predicate.Release) *ReleaseDelete

Where appends a list predicates to the ReleaseDelete builder.

type ReleaseDeleteOne

type ReleaseDeleteOne struct {
	// contains filtered or unexported fields
}

ReleaseDeleteOne is the builder for deleting a single Release entity.

func (*ReleaseDeleteOne) Exec

func (rdo *ReleaseDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReleaseDeleteOne) ExecX

func (rdo *ReleaseDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ReleaseEdge

type ReleaseEdge struct {
	Node   *Release `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

ReleaseEdge is the edge representation of Release.

type ReleaseEdges

type ReleaseEdges struct {
	// Subreleases holds the value of the subreleases edge.
	Subreleases []*Release `json:"subreleases,omitempty"`
	// Dependencies holds the value of the dependencies edge.
	Dependencies []*Release `json:"dependencies,omitempty"`
	// Commit holds the value of the commit edge.
	Commit *GitCommit `json:"commit,omitempty"`
	// HeadOf holds the value of the head_of edge.
	HeadOf *Repo `json:"head_of,omitempty"`
	// Log holds the value of the log edge.
	Log []*ReleaseEntry `json:"log,omitempty"`
	// Violations holds the value of the violations edge.
	Violations []*ReleasePolicyViolation `json:"violations,omitempty"`
	// Artifacts holds the value of the artifacts edge.
	Artifacts []*Artifact `json:"artifacts,omitempty"`
	// Components holds the value of the components edge.
	Components []*ReleaseComponent `json:"components,omitempty"`
	// Vulnerabilities holds the value of the vulnerabilities edge.
	Vulnerabilities []*ReleaseVulnerability `json:"vulnerabilities,omitempty"`
	// Licenses holds the value of the licenses edge.
	Licenses []*ReleaseLicense `json:"licenses,omitempty"`
	// CodeScans holds the value of the code_scans edge.
	CodeScans []*CodeScan `json:"code_scans,omitempty"`
	// TestRuns holds the value of the test_runs edge.
	TestRuns []*TestRun `json:"test_runs,omitempty"`
	// VulnerabilityReviews holds the value of the vulnerability_reviews edge.
	VulnerabilityReviews []*VulnerabilityReview `json:"vulnerability_reviews,omitempty"`
	// contains filtered or unexported fields
}

ReleaseEdges holds the relations/edges for other nodes in the graph.

func (ReleaseEdges) ArtifactsOrErr

func (e ReleaseEdges) ArtifactsOrErr() ([]*Artifact, error)

ArtifactsOrErr returns the Artifacts value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) CodeScansOrErr

func (e ReleaseEdges) CodeScansOrErr() ([]*CodeScan, error)

CodeScansOrErr returns the CodeScans value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) CommitOrErr

func (e ReleaseEdges) CommitOrErr() (*GitCommit, error)

CommitOrErr returns the Commit value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseEdges) ComponentsOrErr

func (e ReleaseEdges) ComponentsOrErr() ([]*ReleaseComponent, error)

ComponentsOrErr returns the Components value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) DependenciesOrErr

func (e ReleaseEdges) DependenciesOrErr() ([]*Release, error)

DependenciesOrErr returns the Dependencies value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) HeadOfOrErr

func (e ReleaseEdges) HeadOfOrErr() (*Repo, error)

HeadOfOrErr returns the HeadOf value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseEdges) LicensesOrErr

func (e ReleaseEdges) LicensesOrErr() ([]*ReleaseLicense, error)

LicensesOrErr returns the Licenses value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) LogOrErr

func (e ReleaseEdges) LogOrErr() ([]*ReleaseEntry, error)

LogOrErr returns the Log value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) SubreleasesOrErr

func (e ReleaseEdges) SubreleasesOrErr() ([]*Release, error)

SubreleasesOrErr returns the Subreleases value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) TestRunsOrErr

func (e ReleaseEdges) TestRunsOrErr() ([]*TestRun, error)

TestRunsOrErr returns the TestRuns value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) ViolationsOrErr

func (e ReleaseEdges) ViolationsOrErr() ([]*ReleasePolicyViolation, error)

ViolationsOrErr returns the Violations value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) VulnerabilitiesOrErr

func (e ReleaseEdges) VulnerabilitiesOrErr() ([]*ReleaseVulnerability, error)

VulnerabilitiesOrErr returns the Vulnerabilities value or an error if the edge was not loaded in eager-loading.

func (ReleaseEdges) VulnerabilityReviewsOrErr

func (e ReleaseEdges) VulnerabilityReviewsOrErr() ([]*VulnerabilityReview, error)

VulnerabilityReviewsOrErr returns the VulnerabilityReviews value or an error if the edge was not loaded in eager-loading.

type ReleaseEntries

type ReleaseEntries []*ReleaseEntry

ReleaseEntries is a parsable slice of ReleaseEntry.

type ReleaseEntry

type ReleaseEntry struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Type holds the value of the "type" field.
	Type releaseentry.Type `json:"type,omitempty"`
	// Time holds the value of the "time" field.
	Time time.Time `json:"time,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleaseEntryQuery when eager-loading is set.
	Edges ReleaseEntryEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReleaseEntry is the model entity for the ReleaseEntry schema.

func (*ReleaseEntry) Artifact

func (re *ReleaseEntry) Artifact(ctx context.Context) (*Artifact, error)

func (*ReleaseEntry) CodeScan

func (re *ReleaseEntry) CodeScan(ctx context.Context) (*CodeScan, error)

func (*ReleaseEntry) Node

func (re *ReleaseEntry) Node(ctx context.Context) (node *Node, err error)

func (*ReleaseEntry) QueryArtifact

func (re *ReleaseEntry) QueryArtifact() *ArtifactQuery

QueryArtifact queries the "artifact" edge of the ReleaseEntry entity.

func (*ReleaseEntry) QueryCodeScan

func (re *ReleaseEntry) QueryCodeScan() *CodeScanQuery

QueryCodeScan queries the "code_scan" edge of the ReleaseEntry entity.

func (*ReleaseEntry) QueryRelease

func (re *ReleaseEntry) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the ReleaseEntry entity.

func (*ReleaseEntry) QueryTestRun

func (re *ReleaseEntry) QueryTestRun() *TestRunQuery

QueryTestRun queries the "test_run" edge of the ReleaseEntry entity.

func (*ReleaseEntry) Release

func (re *ReleaseEntry) Release(ctx context.Context) (*Release, error)

func (*ReleaseEntry) String

func (re *ReleaseEntry) String() string

String implements the fmt.Stringer.

func (*ReleaseEntry) TestRun

func (re *ReleaseEntry) TestRun(ctx context.Context) (*TestRun, error)

func (*ReleaseEntry) ToEdge

func (re *ReleaseEntry) ToEdge(order *ReleaseEntryOrder) *ReleaseEntryEdge

ToEdge converts ReleaseEntry into ReleaseEntryEdge.

func (*ReleaseEntry) Unwrap

func (re *ReleaseEntry) Unwrap() *ReleaseEntry

Unwrap unwraps the ReleaseEntry entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReleaseEntry) Update

func (re *ReleaseEntry) Update() *ReleaseEntryUpdateOne

Update returns a builder for updating this ReleaseEntry. Note that you need to call ReleaseEntry.Unwrap() before calling this method if this ReleaseEntry was returned from a transaction, and the transaction was committed or rolled back.

type ReleaseEntryClient

type ReleaseEntryClient struct {
	// contains filtered or unexported fields
}

ReleaseEntryClient is a client for the ReleaseEntry schema.

func NewReleaseEntryClient

func NewReleaseEntryClient(c config) *ReleaseEntryClient

NewReleaseEntryClient returns a client for the ReleaseEntry from the given config.

func (*ReleaseEntryClient) Create

Create returns a create builder for ReleaseEntry.

func (*ReleaseEntryClient) CreateBulk

func (c *ReleaseEntryClient) CreateBulk(builders ...*ReleaseEntryCreate) *ReleaseEntryCreateBulk

CreateBulk returns a builder for creating a bulk of ReleaseEntry entities.

func (*ReleaseEntryClient) Delete

Delete returns a delete builder for ReleaseEntry.

func (*ReleaseEntryClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleaseEntryClient) DeleteOneID

func (c *ReleaseEntryClient) DeleteOneID(id int) *ReleaseEntryDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ReleaseEntryClient) Get

Get returns a ReleaseEntry entity by its id.

func (*ReleaseEntryClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReleaseEntryClient) Hooks

func (c *ReleaseEntryClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleaseEntryClient) Query

Query returns a query builder for ReleaseEntry.

func (*ReleaseEntryClient) QueryArtifact

func (c *ReleaseEntryClient) QueryArtifact(re *ReleaseEntry) *ArtifactQuery

QueryArtifact queries the artifact edge of a ReleaseEntry.

func (*ReleaseEntryClient) QueryCodeScan

func (c *ReleaseEntryClient) QueryCodeScan(re *ReleaseEntry) *CodeScanQuery

QueryCodeScan queries the code_scan edge of a ReleaseEntry.

func (*ReleaseEntryClient) QueryRelease

func (c *ReleaseEntryClient) QueryRelease(re *ReleaseEntry) *ReleaseQuery

QueryRelease queries the release edge of a ReleaseEntry.

func (*ReleaseEntryClient) QueryTestRun

func (c *ReleaseEntryClient) QueryTestRun(re *ReleaseEntry) *TestRunQuery

QueryTestRun queries the test_run edge of a ReleaseEntry.

func (*ReleaseEntryClient) Update

Update returns an update builder for ReleaseEntry.

func (*ReleaseEntryClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleaseEntryClient) UpdateOneID

func (c *ReleaseEntryClient) UpdateOneID(id int) *ReleaseEntryUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReleaseEntryClient) Use

func (c *ReleaseEntryClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `releaseentry.Hooks(f(g(h())))`.

type ReleaseEntryConnection

type ReleaseEntryConnection struct {
	Edges      []*ReleaseEntryEdge `json:"edges"`
	PageInfo   PageInfo            `json:"pageInfo"`
	TotalCount int                 `json:"totalCount"`
}

ReleaseEntryConnection is the connection containing edges to ReleaseEntry.

type ReleaseEntryCreate

type ReleaseEntryCreate struct {
	// contains filtered or unexported fields
}

ReleaseEntryCreate is the builder for creating a ReleaseEntry entity.

func (*ReleaseEntryCreate) Exec

func (rec *ReleaseEntryCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseEntryCreate) ExecX

func (rec *ReleaseEntryCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseEntryCreate) Mutation

func (rec *ReleaseEntryCreate) Mutation() *ReleaseEntryMutation

Mutation returns the ReleaseEntryMutation object of the builder.

func (*ReleaseEntryCreate) Save

Save creates the ReleaseEntry in the database.

func (*ReleaseEntryCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReleaseEntryCreate) SetArtifact

func (rec *ReleaseEntryCreate) SetArtifact(a *Artifact) *ReleaseEntryCreate

SetArtifact sets the "artifact" edge to the Artifact entity.

func (*ReleaseEntryCreate) SetArtifactID

func (rec *ReleaseEntryCreate) SetArtifactID(id int) *ReleaseEntryCreate

SetArtifactID sets the "artifact" edge to the Artifact entity by ID.

func (*ReleaseEntryCreate) SetCodeScan

func (rec *ReleaseEntryCreate) SetCodeScan(c *CodeScan) *ReleaseEntryCreate

SetCodeScan sets the "code_scan" edge to the CodeScan entity.

func (*ReleaseEntryCreate) SetCodeScanID

func (rec *ReleaseEntryCreate) SetCodeScanID(id int) *ReleaseEntryCreate

SetCodeScanID sets the "code_scan" edge to the CodeScan entity by ID.

func (*ReleaseEntryCreate) SetModelCreate

func (*ReleaseEntryCreate) SetNillableArtifactID

func (rec *ReleaseEntryCreate) SetNillableArtifactID(id *int) *ReleaseEntryCreate

SetNillableArtifactID sets the "artifact" edge to the Artifact entity by ID if the given value is not nil.

func (*ReleaseEntryCreate) SetNillableCodeScanID

func (rec *ReleaseEntryCreate) SetNillableCodeScanID(id *int) *ReleaseEntryCreate

SetNillableCodeScanID sets the "code_scan" edge to the CodeScan entity by ID if the given value is not nil.

func (*ReleaseEntryCreate) SetNillableTestRunID

func (rec *ReleaseEntryCreate) SetNillableTestRunID(id *int) *ReleaseEntryCreate

SetNillableTestRunID sets the "test_run" edge to the TestRun entity by ID if the given value is not nil.

func (*ReleaseEntryCreate) SetNillableTime

func (rec *ReleaseEntryCreate) SetNillableTime(t *time.Time) *ReleaseEntryCreate

SetNillableTime sets the "time" field if the given value is not nil.

func (*ReleaseEntryCreate) SetRelease

func (rec *ReleaseEntryCreate) SetRelease(r *Release) *ReleaseEntryCreate

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseEntryCreate) SetReleaseID

func (rec *ReleaseEntryCreate) SetReleaseID(id int) *ReleaseEntryCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseEntryCreate) SetTestRun

func (rec *ReleaseEntryCreate) SetTestRun(t *TestRun) *ReleaseEntryCreate

SetTestRun sets the "test_run" edge to the TestRun entity.

func (*ReleaseEntryCreate) SetTestRunID

func (rec *ReleaseEntryCreate) SetTestRunID(id int) *ReleaseEntryCreate

SetTestRunID sets the "test_run" edge to the TestRun entity by ID.

func (*ReleaseEntryCreate) SetTime

SetTime sets the "time" field.

func (*ReleaseEntryCreate) SetType

SetType sets the "type" field.

type ReleaseEntryCreateBulk

type ReleaseEntryCreateBulk struct {
	// contains filtered or unexported fields
}

ReleaseEntryCreateBulk is the builder for creating many ReleaseEntry entities in bulk.

func (*ReleaseEntryCreateBulk) Exec

func (recb *ReleaseEntryCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseEntryCreateBulk) ExecX

func (recb *ReleaseEntryCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseEntryCreateBulk) Save

Save creates the ReleaseEntry entities in the database.

func (*ReleaseEntryCreateBulk) SaveX

func (recb *ReleaseEntryCreateBulk) SaveX(ctx context.Context) []*ReleaseEntry

SaveX is like Save, but panics if an error occurs.

type ReleaseEntryDelete

type ReleaseEntryDelete struct {
	// contains filtered or unexported fields
}

ReleaseEntryDelete is the builder for deleting a ReleaseEntry entity.

func (*ReleaseEntryDelete) Exec

func (red *ReleaseEntryDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleaseEntryDelete) ExecX

func (red *ReleaseEntryDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseEntryDelete) Where

Where appends a list predicates to the ReleaseEntryDelete builder.

type ReleaseEntryDeleteOne

type ReleaseEntryDeleteOne struct {
	// contains filtered or unexported fields
}

ReleaseEntryDeleteOne is the builder for deleting a single ReleaseEntry entity.

func (*ReleaseEntryDeleteOne) Exec

func (redo *ReleaseEntryDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReleaseEntryDeleteOne) ExecX

func (redo *ReleaseEntryDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ReleaseEntryEdge

type ReleaseEntryEdge struct {
	Node   *ReleaseEntry `json:"node"`
	Cursor Cursor        `json:"cursor"`
}

ReleaseEntryEdge is the edge representation of ReleaseEntry.

type ReleaseEntryEdges

type ReleaseEntryEdges struct {
	// Artifact holds the value of the artifact edge.
	Artifact *Artifact `json:"artifact,omitempty"`
	// CodeScan holds the value of the code_scan edge.
	CodeScan *CodeScan `json:"code_scan,omitempty"`
	// TestRun holds the value of the test_run edge.
	TestRun *TestRun `json:"test_run,omitempty"`
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// contains filtered or unexported fields
}

ReleaseEntryEdges holds the relations/edges for other nodes in the graph.

func (ReleaseEntryEdges) ArtifactOrErr

func (e ReleaseEntryEdges) ArtifactOrErr() (*Artifact, error)

ArtifactOrErr returns the Artifact value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseEntryEdges) CodeScanOrErr

func (e ReleaseEntryEdges) CodeScanOrErr() (*CodeScan, error)

CodeScanOrErr returns the CodeScan value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseEntryEdges) ReleaseOrErr

func (e ReleaseEntryEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseEntryEdges) TestRunOrErr

func (e ReleaseEntryEdges) TestRunOrErr() (*TestRun, error)

TestRunOrErr returns the TestRun value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReleaseEntryGroupBy

type ReleaseEntryGroupBy struct {
	// contains filtered or unexported fields
}

ReleaseEntryGroupBy is the group-by builder for ReleaseEntry entities.

func (*ReleaseEntryGroupBy) Aggregate

func (regb *ReleaseEntryGroupBy) Aggregate(fns ...AggregateFunc) *ReleaseEntryGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleaseEntryGroupBy) Bool

func (regb *ReleaseEntryGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) BoolX

func (regb *ReleaseEntryGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Bools

func (regb *ReleaseEntryGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) BoolsX

func (regb *ReleaseEntryGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Float64

func (regb *ReleaseEntryGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) Float64X

func (regb *ReleaseEntryGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Float64s

func (regb *ReleaseEntryGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) Float64sX

func (regb *ReleaseEntryGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Int

func (regb *ReleaseEntryGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) IntX

func (regb *ReleaseEntryGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Ints

func (regb *ReleaseEntryGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) IntsX

func (regb *ReleaseEntryGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Scan

func (regb *ReleaseEntryGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleaseEntryGroupBy) ScanX

func (regb *ReleaseEntryGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseEntryGroupBy) String

func (regb *ReleaseEntryGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) StringX

func (regb *ReleaseEntryGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseEntryGroupBy) Strings

func (regb *ReleaseEntryGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseEntryGroupBy) StringsX

func (regb *ReleaseEntryGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseEntryModelCreate

type ReleaseEntryModelCreate struct {
	Type *releaseentry.Type `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Time *time.Time         `json:"time,omitempty"  mapstructure:"time"`
}

func NewReleaseEntryModelCreate

func NewReleaseEntryModelCreate() *ReleaseEntryModelCreate

func (*ReleaseEntryModelCreate) SetTime

func (*ReleaseEntryModelCreate) SetType

type ReleaseEntryModelRead

type ReleaseEntryModelRead struct {
	Type *releaseentry.Type `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Time *time.Time         `json:"time,omitempty"  mapstructure:"time"`
	ID   *int               `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewReleaseEntryModelRead

func NewReleaseEntryModelRead() *ReleaseEntryModelRead

func (*ReleaseEntryModelRead) FromEnt

type ReleaseEntryModelUpdate

type ReleaseEntryModelUpdate struct {
	Type *releaseentry.Type `json:"type,omitempty"  mapstructure:"type"`
	Time *time.Time         `json:"time,omitempty"  mapstructure:"time"`
}

func NewReleaseEntryModelUpdate

func NewReleaseEntryModelUpdate() *ReleaseEntryModelUpdate

func (*ReleaseEntryModelUpdate) SetTime

func (*ReleaseEntryModelUpdate) SetType

type ReleaseEntryMutation

type ReleaseEntryMutation struct {
	// contains filtered or unexported fields
}

ReleaseEntryMutation represents an operation that mutates the ReleaseEntry nodes in the graph.

func (*ReleaseEntryMutation) AddField

func (m *ReleaseEntryMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseEntryMutation) AddedEdges

func (m *ReleaseEntryMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleaseEntryMutation) AddedField

func (m *ReleaseEntryMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseEntryMutation) AddedFields

func (m *ReleaseEntryMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleaseEntryMutation) AddedIDs

func (m *ReleaseEntryMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleaseEntryMutation) ArtifactCleared

func (m *ReleaseEntryMutation) ArtifactCleared() bool

ArtifactCleared reports if the "artifact" edge to the Artifact entity was cleared.

func (*ReleaseEntryMutation) ArtifactID

func (m *ReleaseEntryMutation) ArtifactID() (id int, exists bool)

ArtifactID returns the "artifact" edge ID in the mutation.

func (*ReleaseEntryMutation) ArtifactIDs

func (m *ReleaseEntryMutation) ArtifactIDs() (ids []int)

ArtifactIDs returns the "artifact" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ArtifactID instead. It exists only for internal usage by the builders.

func (*ReleaseEntryMutation) ClearArtifact

func (m *ReleaseEntryMutation) ClearArtifact()

ClearArtifact clears the "artifact" edge to the Artifact entity.

func (*ReleaseEntryMutation) ClearCodeScan

func (m *ReleaseEntryMutation) ClearCodeScan()

ClearCodeScan clears the "code_scan" edge to the CodeScan entity.

func (*ReleaseEntryMutation) ClearEdge

func (m *ReleaseEntryMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleaseEntryMutation) ClearField

func (m *ReleaseEntryMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseEntryMutation) ClearRelease

func (m *ReleaseEntryMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseEntryMutation) ClearTestRun

func (m *ReleaseEntryMutation) ClearTestRun()

ClearTestRun clears the "test_run" edge to the TestRun entity.

func (*ReleaseEntryMutation) ClearedEdges

func (m *ReleaseEntryMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleaseEntryMutation) ClearedFields

func (m *ReleaseEntryMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleaseEntryMutation) Client

func (m ReleaseEntryMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleaseEntryMutation) CodeScanCleared

func (m *ReleaseEntryMutation) CodeScanCleared() bool

CodeScanCleared reports if the "code_scan" edge to the CodeScan entity was cleared.

func (*ReleaseEntryMutation) CodeScanID

func (m *ReleaseEntryMutation) CodeScanID() (id int, exists bool)

CodeScanID returns the "code_scan" edge ID in the mutation.

func (*ReleaseEntryMutation) CodeScanIDs

func (m *ReleaseEntryMutation) CodeScanIDs() (ids []int)

CodeScanIDs returns the "code_scan" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CodeScanID instead. It exists only for internal usage by the builders.

func (*ReleaseEntryMutation) EdgeCleared

func (m *ReleaseEntryMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleaseEntryMutation) Field

func (m *ReleaseEntryMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseEntryMutation) FieldCleared

func (m *ReleaseEntryMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleaseEntryMutation) Fields

func (m *ReleaseEntryMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleaseEntryMutation) GetType

func (m *ReleaseEntryMutation) GetType() (r releaseentry.Type, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*ReleaseEntryMutation) ID

func (m *ReleaseEntryMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleaseEntryMutation) OldField

func (m *ReleaseEntryMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleaseEntryMutation) OldTime

func (m *ReleaseEntryMutation) OldTime(ctx context.Context) (v time.Time, err error)

OldTime returns the old "time" field's value of the ReleaseEntry entity. If the ReleaseEntry object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleaseEntryMutation) OldType

func (m *ReleaseEntryMutation) OldType(ctx context.Context) (v releaseentry.Type, err error)

OldType returns the old "type" field's value of the ReleaseEntry entity. If the ReleaseEntry object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleaseEntryMutation) Op

func (m *ReleaseEntryMutation) Op() Op

Op returns the operation name.

func (*ReleaseEntryMutation) ReleaseCleared

func (m *ReleaseEntryMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*ReleaseEntryMutation) ReleaseID

func (m *ReleaseEntryMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*ReleaseEntryMutation) ReleaseIDs

func (m *ReleaseEntryMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*ReleaseEntryMutation) RemovedEdges

func (m *ReleaseEntryMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleaseEntryMutation) RemovedIDs

func (m *ReleaseEntryMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleaseEntryMutation) ResetArtifact

func (m *ReleaseEntryMutation) ResetArtifact()

ResetArtifact resets all changes to the "artifact" edge.

func (*ReleaseEntryMutation) ResetCodeScan

func (m *ReleaseEntryMutation) ResetCodeScan()

ResetCodeScan resets all changes to the "code_scan" edge.

func (*ReleaseEntryMutation) ResetEdge

func (m *ReleaseEntryMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleaseEntryMutation) ResetField

func (m *ReleaseEntryMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseEntryMutation) ResetRelease

func (m *ReleaseEntryMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*ReleaseEntryMutation) ResetTestRun

func (m *ReleaseEntryMutation) ResetTestRun()

ResetTestRun resets all changes to the "test_run" edge.

func (*ReleaseEntryMutation) ResetTime

func (m *ReleaseEntryMutation) ResetTime()

ResetTime resets all changes to the "time" field.

func (*ReleaseEntryMutation) ResetType

func (m *ReleaseEntryMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*ReleaseEntryMutation) SetArtifactID

func (m *ReleaseEntryMutation) SetArtifactID(id int)

SetArtifactID sets the "artifact" edge to the Artifact entity by id.

func (*ReleaseEntryMutation) SetCodeScanID

func (m *ReleaseEntryMutation) SetCodeScanID(id int)

SetCodeScanID sets the "code_scan" edge to the CodeScan entity by id.

func (*ReleaseEntryMutation) SetField

func (m *ReleaseEntryMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseEntryMutation) SetModelCreate

func (*ReleaseEntryMutation) SetModelUpdate

func (*ReleaseEntryMutation) SetReleaseID

func (m *ReleaseEntryMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*ReleaseEntryMutation) SetTestRunID

func (m *ReleaseEntryMutation) SetTestRunID(id int)

SetTestRunID sets the "test_run" edge to the TestRun entity by id.

func (*ReleaseEntryMutation) SetTime

func (m *ReleaseEntryMutation) SetTime(t time.Time)

SetTime sets the "time" field.

func (*ReleaseEntryMutation) SetType

func (m *ReleaseEntryMutation) SetType(r releaseentry.Type)

SetType sets the "type" field.

func (*ReleaseEntryMutation) TestRunCleared

func (m *ReleaseEntryMutation) TestRunCleared() bool

TestRunCleared reports if the "test_run" edge to the TestRun entity was cleared.

func (*ReleaseEntryMutation) TestRunID

func (m *ReleaseEntryMutation) TestRunID() (id int, exists bool)

TestRunID returns the "test_run" edge ID in the mutation.

func (*ReleaseEntryMutation) TestRunIDs

func (m *ReleaseEntryMutation) TestRunIDs() (ids []int)

TestRunIDs returns the "test_run" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use TestRunID instead. It exists only for internal usage by the builders.

func (*ReleaseEntryMutation) Time

func (m *ReleaseEntryMutation) Time() (r time.Time, exists bool)

Time returns the value of the "time" field in the mutation.

func (ReleaseEntryMutation) Tx

func (m ReleaseEntryMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleaseEntryMutation) Type

func (m *ReleaseEntryMutation) Type() string

Type returns the node type of this mutation (ReleaseEntry).

func (*ReleaseEntryMutation) Where

Where appends a list predicates to the ReleaseEntryMutation builder.

type ReleaseEntryOrder

type ReleaseEntryOrder struct {
	Direction OrderDirection          `json:"direction"`
	Field     *ReleaseEntryOrderField `json:"field"`
}

ReleaseEntryOrder defines the ordering of ReleaseEntry.

type ReleaseEntryOrderField

type ReleaseEntryOrderField struct {
	// contains filtered or unexported fields
}

ReleaseEntryOrderField defines the ordering field of ReleaseEntry.

func (ReleaseEntryOrderField) MarshalGQL

func (f ReleaseEntryOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ReleaseEntryOrderField) String

func (f ReleaseEntryOrderField) String() string

String implement fmt.Stringer interface.

func (*ReleaseEntryOrderField) UnmarshalGQL

func (f *ReleaseEntryOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ReleaseEntryPaginateOption

type ReleaseEntryPaginateOption func(*releaseEntryPager) error

ReleaseEntryPaginateOption enables pagination customization.

func WithReleaseEntryFilter

func WithReleaseEntryFilter(filter func(*ReleaseEntryQuery) (*ReleaseEntryQuery, error)) ReleaseEntryPaginateOption

WithReleaseEntryFilter configures pagination filter.

func WithReleaseEntryOrder

func WithReleaseEntryOrder(order *ReleaseEntryOrder) ReleaseEntryPaginateOption

WithReleaseEntryOrder configures pagination ordering.

type ReleaseEntryQuery

type ReleaseEntryQuery struct {
	// contains filtered or unexported fields
}

ReleaseEntryQuery is the builder for querying ReleaseEntry entities.

func (*ReleaseEntryQuery) All

func (req *ReleaseEntryQuery) All(ctx context.Context) ([]*ReleaseEntry, error)

All executes the query and returns a list of ReleaseEntries.

func (*ReleaseEntryQuery) AllX

func (req *ReleaseEntryQuery) AllX(ctx context.Context) []*ReleaseEntry

AllX is like All, but panics if an error occurs.

func (*ReleaseEntryQuery) Clone

func (req *ReleaseEntryQuery) Clone() *ReleaseEntryQuery

Clone returns a duplicate of the ReleaseEntryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleaseEntryQuery) CollectFields

func (re *ReleaseEntryQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleaseEntryQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleaseEntryQuery) Count

func (req *ReleaseEntryQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleaseEntryQuery) CountX

func (req *ReleaseEntryQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleaseEntryQuery) Exist

func (req *ReleaseEntryQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReleaseEntryQuery) ExistX

func (req *ReleaseEntryQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleaseEntryQuery) Filter

func (re *ReleaseEntryQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ReleaseEntryOrder, where *ReleaseEntryWhereInput,
) ([]*ReleaseEntry, error)

func (*ReleaseEntryQuery) First

func (req *ReleaseEntryQuery) First(ctx context.Context) (*ReleaseEntry, error)

First returns the first ReleaseEntry entity from the query. Returns a *NotFoundError when no ReleaseEntry was found.

func (*ReleaseEntryQuery) FirstID

func (req *ReleaseEntryQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReleaseEntry ID from the query. Returns a *NotFoundError when no ReleaseEntry ID was found.

func (*ReleaseEntryQuery) FirstIDX

func (req *ReleaseEntryQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleaseEntryQuery) FirstX

func (req *ReleaseEntryQuery) FirstX(ctx context.Context) *ReleaseEntry

FirstX is like First, but panics if an error occurs.

func (*ReleaseEntryQuery) GroupBy

func (req *ReleaseEntryQuery) GroupBy(field string, fields ...string) *ReleaseEntryGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Type releaseentry.Type `json:"type,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReleaseEntry.Query().
	GroupBy(releaseentry.FieldType).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReleaseEntryQuery) IDs

func (req *ReleaseEntryQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of ReleaseEntry IDs.

func (*ReleaseEntryQuery) IDsX

func (req *ReleaseEntryQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleaseEntryQuery) Limit

func (req *ReleaseEntryQuery) Limit(limit int) *ReleaseEntryQuery

Limit adds a limit step to the query.

func (*ReleaseEntryQuery) Offset

func (req *ReleaseEntryQuery) Offset(offset int) *ReleaseEntryQuery

Offset adds an offset step to the query.

func (*ReleaseEntryQuery) Only

func (req *ReleaseEntryQuery) Only(ctx context.Context) (*ReleaseEntry, error)

Only returns a single ReleaseEntry entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one ReleaseEntry entity is not found. Returns a *NotFoundError when no ReleaseEntry entities are found.

func (*ReleaseEntryQuery) OnlyID

func (req *ReleaseEntryQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReleaseEntry ID in the query. Returns a *NotSingularError when exactly one ReleaseEntry ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleaseEntryQuery) OnlyIDX

func (req *ReleaseEntryQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleaseEntryQuery) OnlyX

func (req *ReleaseEntryQuery) OnlyX(ctx context.Context) *ReleaseEntry

OnlyX is like Only, but panics if an error occurs.

func (*ReleaseEntryQuery) Order

func (req *ReleaseEntryQuery) Order(o ...OrderFunc) *ReleaseEntryQuery

Order adds an order step to the query.

func (*ReleaseEntryQuery) Paginate

func (re *ReleaseEntryQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ReleaseEntryPaginateOption,
) (*ReleaseEntryConnection, error)

Paginate executes the query and returns a relay based cursor connection to ReleaseEntry.

func (*ReleaseEntryQuery) QueryArtifact

func (req *ReleaseEntryQuery) QueryArtifact() *ArtifactQuery

QueryArtifact chains the current query on the "artifact" edge.

func (*ReleaseEntryQuery) QueryCodeScan

func (req *ReleaseEntryQuery) QueryCodeScan() *CodeScanQuery

QueryCodeScan chains the current query on the "code_scan" edge.

func (*ReleaseEntryQuery) QueryRelease

func (req *ReleaseEntryQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*ReleaseEntryQuery) QueryTestRun

func (req *ReleaseEntryQuery) QueryTestRun() *TestRunQuery

QueryTestRun chains the current query on the "test_run" edge.

func (*ReleaseEntryQuery) Select

func (req *ReleaseEntryQuery) Select(fields ...string) *ReleaseEntrySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Type releaseentry.Type `json:"type,omitempty"`
}

client.ReleaseEntry.Query().
	Select(releaseentry.FieldType).
	Scan(ctx, &v)

func (*ReleaseEntryQuery) Unique

func (req *ReleaseEntryQuery) Unique(unique bool) *ReleaseEntryQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleaseEntryQuery) Where

Where adds a new predicate for the ReleaseEntryQuery builder.

func (*ReleaseEntryQuery) WhereInput

func (*ReleaseEntryQuery) WithArtifact

func (req *ReleaseEntryQuery) WithArtifact(opts ...func(*ArtifactQuery)) *ReleaseEntryQuery

WithArtifact tells the query-builder to eager-load the nodes that are connected to the "artifact" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseEntryQuery) WithCodeScan

func (req *ReleaseEntryQuery) WithCodeScan(opts ...func(*CodeScanQuery)) *ReleaseEntryQuery

WithCodeScan tells the query-builder to eager-load the nodes that are connected to the "code_scan" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseEntryQuery) WithRelease

func (req *ReleaseEntryQuery) WithRelease(opts ...func(*ReleaseQuery)) *ReleaseEntryQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseEntryQuery) WithTestRun

func (req *ReleaseEntryQuery) WithTestRun(opts ...func(*TestRunQuery)) *ReleaseEntryQuery

WithTestRun tells the query-builder to eager-load the nodes that are connected to the "test_run" edge. The optional arguments are used to configure the query builder of the edge.

type ReleaseEntrySelect

type ReleaseEntrySelect struct {
	*ReleaseEntryQuery
	// contains filtered or unexported fields
}

ReleaseEntrySelect is the builder for selecting fields of ReleaseEntry entities.

func (*ReleaseEntrySelect) Bool

func (res *ReleaseEntrySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) BoolX

func (res *ReleaseEntrySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseEntrySelect) Bools

func (res *ReleaseEntrySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) BoolsX

func (res *ReleaseEntrySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseEntrySelect) Float64

func (res *ReleaseEntrySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) Float64X

func (res *ReleaseEntrySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseEntrySelect) Float64s

func (res *ReleaseEntrySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) Float64sX

func (res *ReleaseEntrySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseEntrySelect) Int

func (res *ReleaseEntrySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) IntX

func (res *ReleaseEntrySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseEntrySelect) Ints

func (res *ReleaseEntrySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) IntsX

func (res *ReleaseEntrySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseEntrySelect) Scan

func (res *ReleaseEntrySelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleaseEntrySelect) ScanX

func (res *ReleaseEntrySelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseEntrySelect) String

func (res *ReleaseEntrySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) StringX

func (res *ReleaseEntrySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseEntrySelect) Strings

func (res *ReleaseEntrySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleaseEntrySelect) StringsX

func (res *ReleaseEntrySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseEntryUpdate

type ReleaseEntryUpdate struct {
	// contains filtered or unexported fields
}

ReleaseEntryUpdate is the builder for updating ReleaseEntry entities.

func (*ReleaseEntryUpdate) ClearArtifact

func (reu *ReleaseEntryUpdate) ClearArtifact() *ReleaseEntryUpdate

ClearArtifact clears the "artifact" edge to the Artifact entity.

func (*ReleaseEntryUpdate) ClearCodeScan

func (reu *ReleaseEntryUpdate) ClearCodeScan() *ReleaseEntryUpdate

ClearCodeScan clears the "code_scan" edge to the CodeScan entity.

func (*ReleaseEntryUpdate) ClearRelease

func (reu *ReleaseEntryUpdate) ClearRelease() *ReleaseEntryUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseEntryUpdate) ClearTestRun

func (reu *ReleaseEntryUpdate) ClearTestRun() *ReleaseEntryUpdate

ClearTestRun clears the "test_run" edge to the TestRun entity.

func (*ReleaseEntryUpdate) Exec

func (reu *ReleaseEntryUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseEntryUpdate) ExecX

func (reu *ReleaseEntryUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseEntryUpdate) Mutation

func (reu *ReleaseEntryUpdate) Mutation() *ReleaseEntryMutation

Mutation returns the ReleaseEntryMutation object of the builder.

func (*ReleaseEntryUpdate) Save

func (reu *ReleaseEntryUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleaseEntryUpdate) SaveX

func (reu *ReleaseEntryUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReleaseEntryUpdate) SetArtifact

func (reu *ReleaseEntryUpdate) SetArtifact(a *Artifact) *ReleaseEntryUpdate

SetArtifact sets the "artifact" edge to the Artifact entity.

func (*ReleaseEntryUpdate) SetArtifactID

func (reu *ReleaseEntryUpdate) SetArtifactID(id int) *ReleaseEntryUpdate

SetArtifactID sets the "artifact" edge to the Artifact entity by ID.

func (*ReleaseEntryUpdate) SetCodeScan

func (reu *ReleaseEntryUpdate) SetCodeScan(c *CodeScan) *ReleaseEntryUpdate

SetCodeScan sets the "code_scan" edge to the CodeScan entity.

func (*ReleaseEntryUpdate) SetCodeScanID

func (reu *ReleaseEntryUpdate) SetCodeScanID(id int) *ReleaseEntryUpdate

SetCodeScanID sets the "code_scan" edge to the CodeScan entity by ID.

func (*ReleaseEntryUpdate) SetNillableArtifactID

func (reu *ReleaseEntryUpdate) SetNillableArtifactID(id *int) *ReleaseEntryUpdate

SetNillableArtifactID sets the "artifact" edge to the Artifact entity by ID if the given value is not nil.

func (*ReleaseEntryUpdate) SetNillableCodeScanID

func (reu *ReleaseEntryUpdate) SetNillableCodeScanID(id *int) *ReleaseEntryUpdate

SetNillableCodeScanID sets the "code_scan" edge to the CodeScan entity by ID if the given value is not nil.

func (*ReleaseEntryUpdate) SetNillableTestRunID

func (reu *ReleaseEntryUpdate) SetNillableTestRunID(id *int) *ReleaseEntryUpdate

SetNillableTestRunID sets the "test_run" edge to the TestRun entity by ID if the given value is not nil.

func (*ReleaseEntryUpdate) SetRelease

func (reu *ReleaseEntryUpdate) SetRelease(r *Release) *ReleaseEntryUpdate

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseEntryUpdate) SetReleaseID

func (reu *ReleaseEntryUpdate) SetReleaseID(id int) *ReleaseEntryUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseEntryUpdate) SetTestRun

func (reu *ReleaseEntryUpdate) SetTestRun(t *TestRun) *ReleaseEntryUpdate

SetTestRun sets the "test_run" edge to the TestRun entity.

func (*ReleaseEntryUpdate) SetTestRunID

func (reu *ReleaseEntryUpdate) SetTestRunID(id int) *ReleaseEntryUpdate

SetTestRunID sets the "test_run" edge to the TestRun entity by ID.

func (*ReleaseEntryUpdate) Where

Where appends a list predicates to the ReleaseEntryUpdate builder.

type ReleaseEntryUpdateOne

type ReleaseEntryUpdateOne struct {
	// contains filtered or unexported fields
}

ReleaseEntryUpdateOne is the builder for updating a single ReleaseEntry entity.

func (*ReleaseEntryUpdateOne) ClearArtifact

func (reuo *ReleaseEntryUpdateOne) ClearArtifact() *ReleaseEntryUpdateOne

ClearArtifact clears the "artifact" edge to the Artifact entity.

func (*ReleaseEntryUpdateOne) ClearCodeScan

func (reuo *ReleaseEntryUpdateOne) ClearCodeScan() *ReleaseEntryUpdateOne

ClearCodeScan clears the "code_scan" edge to the CodeScan entity.

func (*ReleaseEntryUpdateOne) ClearRelease

func (reuo *ReleaseEntryUpdateOne) ClearRelease() *ReleaseEntryUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseEntryUpdateOne) ClearTestRun

func (reuo *ReleaseEntryUpdateOne) ClearTestRun() *ReleaseEntryUpdateOne

ClearTestRun clears the "test_run" edge to the TestRun entity.

func (*ReleaseEntryUpdateOne) Exec

func (reuo *ReleaseEntryUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReleaseEntryUpdateOne) ExecX

func (reuo *ReleaseEntryUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseEntryUpdateOne) Mutation

func (reuo *ReleaseEntryUpdateOne) Mutation() *ReleaseEntryMutation

Mutation returns the ReleaseEntryMutation object of the builder.

func (*ReleaseEntryUpdateOne) Save

Save executes the query and returns the updated ReleaseEntry entity.

func (*ReleaseEntryUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleaseEntryUpdateOne) Select

func (reuo *ReleaseEntryUpdateOne) Select(field string, fields ...string) *ReleaseEntryUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleaseEntryUpdateOne) SetArtifact

func (reuo *ReleaseEntryUpdateOne) SetArtifact(a *Artifact) *ReleaseEntryUpdateOne

SetArtifact sets the "artifact" edge to the Artifact entity.

func (*ReleaseEntryUpdateOne) SetArtifactID

func (reuo *ReleaseEntryUpdateOne) SetArtifactID(id int) *ReleaseEntryUpdateOne

SetArtifactID sets the "artifact" edge to the Artifact entity by ID.

func (*ReleaseEntryUpdateOne) SetCodeScan

func (reuo *ReleaseEntryUpdateOne) SetCodeScan(c *CodeScan) *ReleaseEntryUpdateOne

SetCodeScan sets the "code_scan" edge to the CodeScan entity.

func (*ReleaseEntryUpdateOne) SetCodeScanID

func (reuo *ReleaseEntryUpdateOne) SetCodeScanID(id int) *ReleaseEntryUpdateOne

SetCodeScanID sets the "code_scan" edge to the CodeScan entity by ID.

func (*ReleaseEntryUpdateOne) SetModelCreate

func (*ReleaseEntryUpdateOne) SetModelUpdate

func (*ReleaseEntryUpdateOne) SetNillableArtifactID

func (reuo *ReleaseEntryUpdateOne) SetNillableArtifactID(id *int) *ReleaseEntryUpdateOne

SetNillableArtifactID sets the "artifact" edge to the Artifact entity by ID if the given value is not nil.

func (*ReleaseEntryUpdateOne) SetNillableCodeScanID

func (reuo *ReleaseEntryUpdateOne) SetNillableCodeScanID(id *int) *ReleaseEntryUpdateOne

SetNillableCodeScanID sets the "code_scan" edge to the CodeScan entity by ID if the given value is not nil.

func (*ReleaseEntryUpdateOne) SetNillableTestRunID

func (reuo *ReleaseEntryUpdateOne) SetNillableTestRunID(id *int) *ReleaseEntryUpdateOne

SetNillableTestRunID sets the "test_run" edge to the TestRun entity by ID if the given value is not nil.

func (*ReleaseEntryUpdateOne) SetRelease

func (reuo *ReleaseEntryUpdateOne) SetRelease(r *Release) *ReleaseEntryUpdateOne

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseEntryUpdateOne) SetReleaseID

func (reuo *ReleaseEntryUpdateOne) SetReleaseID(id int) *ReleaseEntryUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseEntryUpdateOne) SetTestRun

func (reuo *ReleaseEntryUpdateOne) SetTestRun(t *TestRun) *ReleaseEntryUpdateOne

SetTestRun sets the "test_run" edge to the TestRun entity.

func (*ReleaseEntryUpdateOne) SetTestRunID

func (reuo *ReleaseEntryUpdateOne) SetTestRunID(id int) *ReleaseEntryUpdateOne

SetTestRunID sets the "test_run" edge to the TestRun entity by ID.

type ReleaseEntryWhereInput

type ReleaseEntryWhereInput struct {
	Not *ReleaseEntryWhereInput   `json:"not,omitempty"`
	Or  []*ReleaseEntryWhereInput `json:"or,omitempty"`
	And []*ReleaseEntryWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "type" field predicates.
	Type      *releaseentry.Type  `json:"type,omitempty"`
	TypeNEQ   *releaseentry.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []releaseentry.Type `json:"typeIn,omitempty"`
	TypeNotIn []releaseentry.Type `json:"typeNotIn,omitempty"`

	// "time" field predicates.
	Time      *time.Time  `json:"time,omitempty"`
	TimeNEQ   *time.Time  `json:"timeNEQ,omitempty"`
	TimeIn    []time.Time `json:"timeIn,omitempty"`
	TimeNotIn []time.Time `json:"timeNotIn,omitempty"`
	TimeGT    *time.Time  `json:"timeGT,omitempty"`
	TimeGTE   *time.Time  `json:"timeGTE,omitempty"`
	TimeLT    *time.Time  `json:"timeLT,omitempty"`
	TimeLTE   *time.Time  `json:"timeLTE,omitempty"`

	// "artifact" edge predicates.
	HasArtifact     *bool                 `json:"hasArtifact,omitempty"`
	HasArtifactWith []*ArtifactWhereInput `json:"hasArtifactWith,omitempty"`

	// "code_scan" edge predicates.
	HasCodeScan     *bool                 `json:"hasCodeScan,omitempty"`
	HasCodeScanWith []*CodeScanWhereInput `json:"hasCodeScanWith,omitempty"`

	// "test_run" edge predicates.
	HasTestRun     *bool                `json:"hasTestRun,omitempty"`
	HasTestRunWith []*TestRunWhereInput `json:"hasTestRunWith,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`
}

ReleaseEntryWhereInput represents a where input for filtering ReleaseEntry queries.

func (*ReleaseEntryWhereInput) Filter

Filter applies the ReleaseEntryWhereInput filter on the ReleaseEntryQuery builder.

func (*ReleaseEntryWhereInput) P

P returns a predicate for filtering releaseentries. An error is returned if the input is empty or invalid.

type ReleaseGroupBy

type ReleaseGroupBy struct {
	// contains filtered or unexported fields
}

ReleaseGroupBy is the group-by builder for Release entities.

func (*ReleaseGroupBy) Aggregate

func (rgb *ReleaseGroupBy) Aggregate(fns ...AggregateFunc) *ReleaseGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleaseGroupBy) Bool

func (rgb *ReleaseGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) BoolX

func (rgb *ReleaseGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseGroupBy) Bools

func (rgb *ReleaseGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) BoolsX

func (rgb *ReleaseGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseGroupBy) Float64

func (rgb *ReleaseGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) Float64X

func (rgb *ReleaseGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseGroupBy) Float64s

func (rgb *ReleaseGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) Float64sX

func (rgb *ReleaseGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseGroupBy) Int

func (rgb *ReleaseGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) IntX

func (rgb *ReleaseGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseGroupBy) Ints

func (rgb *ReleaseGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) IntsX

func (rgb *ReleaseGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseGroupBy) Scan

func (rgb *ReleaseGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleaseGroupBy) ScanX

func (rgb *ReleaseGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseGroupBy) String

func (rgb *ReleaseGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) StringX

func (rgb *ReleaseGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseGroupBy) Strings

func (rgb *ReleaseGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseGroupBy) StringsX

func (rgb *ReleaseGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseLicense

type ReleaseLicense struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleaseLicenseQuery when eager-loading is set.
	Edges ReleaseLicenseEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReleaseLicense is the model entity for the ReleaseLicense schema.

func (*ReleaseLicense) Component

func (rl *ReleaseLicense) Component(ctx context.Context) (*ReleaseComponent, error)

func (*ReleaseLicense) License

func (rl *ReleaseLicense) License(ctx context.Context) (*License, error)

func (*ReleaseLicense) Node

func (rl *ReleaseLicense) Node(ctx context.Context) (node *Node, err error)

func (*ReleaseLicense) QueryComponent

func (rl *ReleaseLicense) QueryComponent() *ReleaseComponentQuery

QueryComponent queries the "component" edge of the ReleaseLicense entity.

func (*ReleaseLicense) QueryLicense

func (rl *ReleaseLicense) QueryLicense() *LicenseQuery

QueryLicense queries the "license" edge of the ReleaseLicense entity.

func (*ReleaseLicense) QueryRelease

func (rl *ReleaseLicense) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the ReleaseLicense entity.

func (*ReleaseLicense) QueryScans

func (rl *ReleaseLicense) QueryScans() *CodeScanQuery

QueryScans queries the "scans" edge of the ReleaseLicense entity.

func (*ReleaseLicense) Release

func (rl *ReleaseLicense) Release(ctx context.Context) (*Release, error)

func (*ReleaseLicense) Scans

func (rl *ReleaseLicense) Scans(ctx context.Context) ([]*CodeScan, error)

func (*ReleaseLicense) String

func (rl *ReleaseLicense) String() string

String implements the fmt.Stringer.

func (*ReleaseLicense) ToEdge

ToEdge converts ReleaseLicense into ReleaseLicenseEdge.

func (*ReleaseLicense) Unwrap

func (rl *ReleaseLicense) Unwrap() *ReleaseLicense

Unwrap unwraps the ReleaseLicense entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReleaseLicense) Update

Update returns a builder for updating this ReleaseLicense. Note that you need to call ReleaseLicense.Unwrap() before calling this method if this ReleaseLicense was returned from a transaction, and the transaction was committed or rolled back.

type ReleaseLicenseClient

type ReleaseLicenseClient struct {
	// contains filtered or unexported fields
}

ReleaseLicenseClient is a client for the ReleaseLicense schema.

func NewReleaseLicenseClient

func NewReleaseLicenseClient(c config) *ReleaseLicenseClient

NewReleaseLicenseClient returns a client for the ReleaseLicense from the given config.

func (*ReleaseLicenseClient) Create

Create returns a create builder for ReleaseLicense.

func (*ReleaseLicenseClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ReleaseLicense entities.

func (*ReleaseLicenseClient) Delete

Delete returns a delete builder for ReleaseLicense.

func (*ReleaseLicenseClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleaseLicenseClient) DeleteOneID

func (c *ReleaseLicenseClient) DeleteOneID(id int) *ReleaseLicenseDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ReleaseLicenseClient) Get

Get returns a ReleaseLicense entity by its id.

func (*ReleaseLicenseClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReleaseLicenseClient) Hooks

func (c *ReleaseLicenseClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleaseLicenseClient) Query

Query returns a query builder for ReleaseLicense.

func (*ReleaseLicenseClient) QueryComponent

QueryComponent queries the component edge of a ReleaseLicense.

func (*ReleaseLicenseClient) QueryLicense

func (c *ReleaseLicenseClient) QueryLicense(rl *ReleaseLicense) *LicenseQuery

QueryLicense queries the license edge of a ReleaseLicense.

func (*ReleaseLicenseClient) QueryRelease

func (c *ReleaseLicenseClient) QueryRelease(rl *ReleaseLicense) *ReleaseQuery

QueryRelease queries the release edge of a ReleaseLicense.

func (*ReleaseLicenseClient) QueryScans

QueryScans queries the scans edge of a ReleaseLicense.

func (*ReleaseLicenseClient) Update

Update returns an update builder for ReleaseLicense.

func (*ReleaseLicenseClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleaseLicenseClient) UpdateOneID

func (c *ReleaseLicenseClient) UpdateOneID(id int) *ReleaseLicenseUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReleaseLicenseClient) Use

func (c *ReleaseLicenseClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `releaselicense.Hooks(f(g(h())))`.

type ReleaseLicenseConnection

type ReleaseLicenseConnection struct {
	Edges      []*ReleaseLicenseEdge `json:"edges"`
	PageInfo   PageInfo              `json:"pageInfo"`
	TotalCount int                   `json:"totalCount"`
}

ReleaseLicenseConnection is the connection containing edges to ReleaseLicense.

type ReleaseLicenseCreate

type ReleaseLicenseCreate struct {
	// contains filtered or unexported fields
}

ReleaseLicenseCreate is the builder for creating a ReleaseLicense entity.

func (*ReleaseLicenseCreate) AddScanIDs

func (rlc *ReleaseLicenseCreate) AddScanIDs(ids ...int) *ReleaseLicenseCreate

AddScanIDs adds the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseLicenseCreate) AddScans

func (rlc *ReleaseLicenseCreate) AddScans(c ...*CodeScan) *ReleaseLicenseCreate

AddScans adds the "scans" edges to the CodeScan entity.

func (*ReleaseLicenseCreate) Exec

func (rlc *ReleaseLicenseCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseLicenseCreate) ExecX

func (rlc *ReleaseLicenseCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseLicenseCreate) Mutation

Mutation returns the ReleaseLicenseMutation object of the builder.

func (*ReleaseLicenseCreate) Save

Save creates the ReleaseLicense in the database.

func (*ReleaseLicenseCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReleaseLicenseCreate) SetComponent

SetComponent sets the "component" edge to the ReleaseComponent entity.

func (*ReleaseLicenseCreate) SetComponentID

func (rlc *ReleaseLicenseCreate) SetComponentID(id int) *ReleaseLicenseCreate

SetComponentID sets the "component" edge to the ReleaseComponent entity by ID.

func (*ReleaseLicenseCreate) SetLicense

func (rlc *ReleaseLicenseCreate) SetLicense(l *License) *ReleaseLicenseCreate

SetLicense sets the "license" edge to the License entity.

func (*ReleaseLicenseCreate) SetLicenseID

func (rlc *ReleaseLicenseCreate) SetLicenseID(id int) *ReleaseLicenseCreate

SetLicenseID sets the "license" edge to the License entity by ID.

func (*ReleaseLicenseCreate) SetNillableComponentID

func (rlc *ReleaseLicenseCreate) SetNillableComponentID(id *int) *ReleaseLicenseCreate

SetNillableComponentID sets the "component" edge to the ReleaseComponent entity by ID if the given value is not nil.

func (*ReleaseLicenseCreate) SetRelease

func (rlc *ReleaseLicenseCreate) SetRelease(r *Release) *ReleaseLicenseCreate

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseLicenseCreate) SetReleaseID

func (rlc *ReleaseLicenseCreate) SetReleaseID(id int) *ReleaseLicenseCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

type ReleaseLicenseCreateBulk

type ReleaseLicenseCreateBulk struct {
	// contains filtered or unexported fields
}

ReleaseLicenseCreateBulk is the builder for creating many ReleaseLicense entities in bulk.

func (*ReleaseLicenseCreateBulk) Exec

Exec executes the query.

func (*ReleaseLicenseCreateBulk) ExecX

func (rlcb *ReleaseLicenseCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseLicenseCreateBulk) Save

Save creates the ReleaseLicense entities in the database.

func (*ReleaseLicenseCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ReleaseLicenseDelete

type ReleaseLicenseDelete struct {
	// contains filtered or unexported fields
}

ReleaseLicenseDelete is the builder for deleting a ReleaseLicense entity.

func (*ReleaseLicenseDelete) Exec

func (rld *ReleaseLicenseDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleaseLicenseDelete) ExecX

func (rld *ReleaseLicenseDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseLicenseDelete) Where

Where appends a list predicates to the ReleaseLicenseDelete builder.

type ReleaseLicenseDeleteOne

type ReleaseLicenseDeleteOne struct {
	// contains filtered or unexported fields
}

ReleaseLicenseDeleteOne is the builder for deleting a single ReleaseLicense entity.

func (*ReleaseLicenseDeleteOne) Exec

func (rldo *ReleaseLicenseDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReleaseLicenseDeleteOne) ExecX

func (rldo *ReleaseLicenseDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ReleaseLicenseEdge

type ReleaseLicenseEdge struct {
	Node   *ReleaseLicense `json:"node"`
	Cursor Cursor          `json:"cursor"`
}

ReleaseLicenseEdge is the edge representation of ReleaseLicense.

type ReleaseLicenseEdges

type ReleaseLicenseEdges struct {
	// License holds the value of the license edge.
	License *License `json:"license,omitempty"`
	// Component holds the value of the component edge.
	Component *ReleaseComponent `json:"component,omitempty"`
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Scans holds the value of the scans edge.
	Scans []*CodeScan `json:"scans,omitempty"`
	// contains filtered or unexported fields
}

ReleaseLicenseEdges holds the relations/edges for other nodes in the graph.

func (ReleaseLicenseEdges) ComponentOrErr

func (e ReleaseLicenseEdges) ComponentOrErr() (*ReleaseComponent, error)

ComponentOrErr returns the Component value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseLicenseEdges) LicenseOrErr

func (e ReleaseLicenseEdges) LicenseOrErr() (*License, error)

LicenseOrErr returns the License value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseLicenseEdges) ReleaseOrErr

func (e ReleaseLicenseEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseLicenseEdges) ScansOrErr

func (e ReleaseLicenseEdges) ScansOrErr() ([]*CodeScan, error)

ScansOrErr returns the Scans value or an error if the edge was not loaded in eager-loading.

type ReleaseLicenseGroupBy

type ReleaseLicenseGroupBy struct {
	// contains filtered or unexported fields
}

ReleaseLicenseGroupBy is the group-by builder for ReleaseLicense entities.

func (*ReleaseLicenseGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleaseLicenseGroupBy) Bool

func (rlgb *ReleaseLicenseGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) BoolX

func (rlgb *ReleaseLicenseGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Bools

func (rlgb *ReleaseLicenseGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) BoolsX

func (rlgb *ReleaseLicenseGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Float64

func (rlgb *ReleaseLicenseGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) Float64X

func (rlgb *ReleaseLicenseGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Float64s

func (rlgb *ReleaseLicenseGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) Float64sX

func (rlgb *ReleaseLicenseGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Int

func (rlgb *ReleaseLicenseGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) IntX

func (rlgb *ReleaseLicenseGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Ints

func (rlgb *ReleaseLicenseGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) IntsX

func (rlgb *ReleaseLicenseGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Scan

func (rlgb *ReleaseLicenseGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleaseLicenseGroupBy) ScanX

func (rlgb *ReleaseLicenseGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) String

func (rlgb *ReleaseLicenseGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) StringX

func (rlgb *ReleaseLicenseGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseLicenseGroupBy) Strings

func (rlgb *ReleaseLicenseGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseLicenseGroupBy) StringsX

func (rlgb *ReleaseLicenseGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseLicenseMutation

type ReleaseLicenseMutation struct {
	// contains filtered or unexported fields
}

ReleaseLicenseMutation represents an operation that mutates the ReleaseLicense nodes in the graph.

func (*ReleaseLicenseMutation) AddField

func (m *ReleaseLicenseMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseLicenseMutation) AddScanIDs

func (m *ReleaseLicenseMutation) AddScanIDs(ids ...int)

AddScanIDs adds the "scans" edge to the CodeScan entity by ids.

func (*ReleaseLicenseMutation) AddedEdges

func (m *ReleaseLicenseMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleaseLicenseMutation) AddedField

func (m *ReleaseLicenseMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseLicenseMutation) AddedFields

func (m *ReleaseLicenseMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleaseLicenseMutation) AddedIDs

func (m *ReleaseLicenseMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleaseLicenseMutation) ClearComponent

func (m *ReleaseLicenseMutation) ClearComponent()

ClearComponent clears the "component" edge to the ReleaseComponent entity.

func (*ReleaseLicenseMutation) ClearEdge

func (m *ReleaseLicenseMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleaseLicenseMutation) ClearField

func (m *ReleaseLicenseMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseLicenseMutation) ClearLicense

func (m *ReleaseLicenseMutation) ClearLicense()

ClearLicense clears the "license" edge to the License entity.

func (*ReleaseLicenseMutation) ClearRelease

func (m *ReleaseLicenseMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseLicenseMutation) ClearScans

func (m *ReleaseLicenseMutation) ClearScans()

ClearScans clears the "scans" edge to the CodeScan entity.

func (*ReleaseLicenseMutation) ClearedEdges

func (m *ReleaseLicenseMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleaseLicenseMutation) ClearedFields

func (m *ReleaseLicenseMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleaseLicenseMutation) Client

func (m ReleaseLicenseMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleaseLicenseMutation) ComponentCleared

func (m *ReleaseLicenseMutation) ComponentCleared() bool

ComponentCleared reports if the "component" edge to the ReleaseComponent entity was cleared.

func (*ReleaseLicenseMutation) ComponentID

func (m *ReleaseLicenseMutation) ComponentID() (id int, exists bool)

ComponentID returns the "component" edge ID in the mutation.

func (*ReleaseLicenseMutation) ComponentIDs

func (m *ReleaseLicenseMutation) ComponentIDs() (ids []int)

ComponentIDs returns the "component" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ComponentID instead. It exists only for internal usage by the builders.

func (*ReleaseLicenseMutation) EdgeCleared

func (m *ReleaseLicenseMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleaseLicenseMutation) Field

func (m *ReleaseLicenseMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseLicenseMutation) FieldCleared

func (m *ReleaseLicenseMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleaseLicenseMutation) Fields

func (m *ReleaseLicenseMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleaseLicenseMutation) ID

func (m *ReleaseLicenseMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleaseLicenseMutation) LicenseCleared

func (m *ReleaseLicenseMutation) LicenseCleared() bool

LicenseCleared reports if the "license" edge to the License entity was cleared.

func (*ReleaseLicenseMutation) LicenseID

func (m *ReleaseLicenseMutation) LicenseID() (id int, exists bool)

LicenseID returns the "license" edge ID in the mutation.

func (*ReleaseLicenseMutation) LicenseIDs

func (m *ReleaseLicenseMutation) LicenseIDs() (ids []int)

LicenseIDs returns the "license" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use LicenseID instead. It exists only for internal usage by the builders.

func (*ReleaseLicenseMutation) OldField

func (m *ReleaseLicenseMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleaseLicenseMutation) Op

func (m *ReleaseLicenseMutation) Op() Op

Op returns the operation name.

func (*ReleaseLicenseMutation) ReleaseCleared

func (m *ReleaseLicenseMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*ReleaseLicenseMutation) ReleaseID

func (m *ReleaseLicenseMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*ReleaseLicenseMutation) ReleaseIDs

func (m *ReleaseLicenseMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*ReleaseLicenseMutation) RemoveScanIDs

func (m *ReleaseLicenseMutation) RemoveScanIDs(ids ...int)

RemoveScanIDs removes the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseLicenseMutation) RemovedEdges

func (m *ReleaseLicenseMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleaseLicenseMutation) RemovedIDs

func (m *ReleaseLicenseMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleaseLicenseMutation) RemovedScansIDs

func (m *ReleaseLicenseMutation) RemovedScansIDs() (ids []int)

RemovedScans returns the removed IDs of the "scans" edge to the CodeScan entity.

func (*ReleaseLicenseMutation) ResetComponent

func (m *ReleaseLicenseMutation) ResetComponent()

ResetComponent resets all changes to the "component" edge.

func (*ReleaseLicenseMutation) ResetEdge

func (m *ReleaseLicenseMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleaseLicenseMutation) ResetField

func (m *ReleaseLicenseMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseLicenseMutation) ResetLicense

func (m *ReleaseLicenseMutation) ResetLicense()

ResetLicense resets all changes to the "license" edge.

func (*ReleaseLicenseMutation) ResetRelease

func (m *ReleaseLicenseMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*ReleaseLicenseMutation) ResetScans

func (m *ReleaseLicenseMutation) ResetScans()

ResetScans resets all changes to the "scans" edge.

func (*ReleaseLicenseMutation) ScansCleared

func (m *ReleaseLicenseMutation) ScansCleared() bool

ScansCleared reports if the "scans" edge to the CodeScan entity was cleared.

func (*ReleaseLicenseMutation) ScansIDs

func (m *ReleaseLicenseMutation) ScansIDs() (ids []int)

ScansIDs returns the "scans" edge IDs in the mutation.

func (*ReleaseLicenseMutation) SetComponentID

func (m *ReleaseLicenseMutation) SetComponentID(id int)

SetComponentID sets the "component" edge to the ReleaseComponent entity by id.

func (*ReleaseLicenseMutation) SetField

func (m *ReleaseLicenseMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseLicenseMutation) SetLicenseID

func (m *ReleaseLicenseMutation) SetLicenseID(id int)

SetLicenseID sets the "license" edge to the License entity by id.

func (*ReleaseLicenseMutation) SetReleaseID

func (m *ReleaseLicenseMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (ReleaseLicenseMutation) Tx

func (m ReleaseLicenseMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleaseLicenseMutation) Type

func (m *ReleaseLicenseMutation) Type() string

Type returns the node type of this mutation (ReleaseLicense).

func (*ReleaseLicenseMutation) Where

Where appends a list predicates to the ReleaseLicenseMutation builder.

type ReleaseLicenseOrder

type ReleaseLicenseOrder struct {
	Direction OrderDirection            `json:"direction"`
	Field     *ReleaseLicenseOrderField `json:"field"`
}

ReleaseLicenseOrder defines the ordering of ReleaseLicense.

type ReleaseLicenseOrderField

type ReleaseLicenseOrderField struct {
	// contains filtered or unexported fields
}

ReleaseLicenseOrderField defines the ordering field of ReleaseLicense.

type ReleaseLicensePaginateOption

type ReleaseLicensePaginateOption func(*releaseLicensePager) error

ReleaseLicensePaginateOption enables pagination customization.

func WithReleaseLicenseFilter

func WithReleaseLicenseFilter(filter func(*ReleaseLicenseQuery) (*ReleaseLicenseQuery, error)) ReleaseLicensePaginateOption

WithReleaseLicenseFilter configures pagination filter.

func WithReleaseLicenseOrder

func WithReleaseLicenseOrder(order *ReleaseLicenseOrder) ReleaseLicensePaginateOption

WithReleaseLicenseOrder configures pagination ordering.

type ReleaseLicenseQuery

type ReleaseLicenseQuery struct {
	// contains filtered or unexported fields
}

ReleaseLicenseQuery is the builder for querying ReleaseLicense entities.

func (*ReleaseLicenseQuery) All

All executes the query and returns a list of ReleaseLicenses.

func (*ReleaseLicenseQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ReleaseLicenseQuery) Clone

Clone returns a duplicate of the ReleaseLicenseQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleaseLicenseQuery) CollectFields

func (rl *ReleaseLicenseQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleaseLicenseQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleaseLicenseQuery) Count

func (rlq *ReleaseLicenseQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleaseLicenseQuery) CountX

func (rlq *ReleaseLicenseQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleaseLicenseQuery) Exist

func (rlq *ReleaseLicenseQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReleaseLicenseQuery) ExistX

func (rlq *ReleaseLicenseQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleaseLicenseQuery) Filter

func (rl *ReleaseLicenseQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ReleaseLicenseOrder, where *ReleaseLicenseWhereInput,
) ([]*ReleaseLicense, error)

func (*ReleaseLicenseQuery) First

First returns the first ReleaseLicense entity from the query. Returns a *NotFoundError when no ReleaseLicense was found.

func (*ReleaseLicenseQuery) FirstID

func (rlq *ReleaseLicenseQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReleaseLicense ID from the query. Returns a *NotFoundError when no ReleaseLicense ID was found.

func (*ReleaseLicenseQuery) FirstIDX

func (rlq *ReleaseLicenseQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleaseLicenseQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ReleaseLicenseQuery) GroupBy

func (rlq *ReleaseLicenseQuery) GroupBy(field string, fields ...string) *ReleaseLicenseGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

func (*ReleaseLicenseQuery) IDs

func (rlq *ReleaseLicenseQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of ReleaseLicense IDs.

func (*ReleaseLicenseQuery) IDsX

func (rlq *ReleaseLicenseQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleaseLicenseQuery) Limit

func (rlq *ReleaseLicenseQuery) Limit(limit int) *ReleaseLicenseQuery

Limit adds a limit step to the query.

func (*ReleaseLicenseQuery) Offset

func (rlq *ReleaseLicenseQuery) Offset(offset int) *ReleaseLicenseQuery

Offset adds an offset step to the query.

func (*ReleaseLicenseQuery) Only

Only returns a single ReleaseLicense entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one ReleaseLicense entity is not found. Returns a *NotFoundError when no ReleaseLicense entities are found.

func (*ReleaseLicenseQuery) OnlyID

func (rlq *ReleaseLicenseQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReleaseLicense ID in the query. Returns a *NotSingularError when exactly one ReleaseLicense ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleaseLicenseQuery) OnlyIDX

func (rlq *ReleaseLicenseQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleaseLicenseQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ReleaseLicenseQuery) Order

Order adds an order step to the query.

func (*ReleaseLicenseQuery) Paginate

func (rl *ReleaseLicenseQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ReleaseLicensePaginateOption,
) (*ReleaseLicenseConnection, error)

Paginate executes the query and returns a relay based cursor connection to ReleaseLicense.

func (*ReleaseLicenseQuery) QueryComponent

func (rlq *ReleaseLicenseQuery) QueryComponent() *ReleaseComponentQuery

QueryComponent chains the current query on the "component" edge.

func (*ReleaseLicenseQuery) QueryLicense

func (rlq *ReleaseLicenseQuery) QueryLicense() *LicenseQuery

QueryLicense chains the current query on the "license" edge.

func (*ReleaseLicenseQuery) QueryRelease

func (rlq *ReleaseLicenseQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*ReleaseLicenseQuery) QueryScans

func (rlq *ReleaseLicenseQuery) QueryScans() *CodeScanQuery

QueryScans chains the current query on the "scans" edge.

func (*ReleaseLicenseQuery) Select

func (rlq *ReleaseLicenseQuery) Select(fields ...string) *ReleaseLicenseSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

func (*ReleaseLicenseQuery) Unique

func (rlq *ReleaseLicenseQuery) Unique(unique bool) *ReleaseLicenseQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleaseLicenseQuery) Where

Where adds a new predicate for the ReleaseLicenseQuery builder.

func (*ReleaseLicenseQuery) WhereInput

func (*ReleaseLicenseQuery) WithComponent

func (rlq *ReleaseLicenseQuery) WithComponent(opts ...func(*ReleaseComponentQuery)) *ReleaseLicenseQuery

WithComponent tells the query-builder to eager-load the nodes that are connected to the "component" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseLicenseQuery) WithLicense

func (rlq *ReleaseLicenseQuery) WithLicense(opts ...func(*LicenseQuery)) *ReleaseLicenseQuery

WithLicense tells the query-builder to eager-load the nodes that are connected to the "license" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseLicenseQuery) WithRelease

func (rlq *ReleaseLicenseQuery) WithRelease(opts ...func(*ReleaseQuery)) *ReleaseLicenseQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseLicenseQuery) WithScans

func (rlq *ReleaseLicenseQuery) WithScans(opts ...func(*CodeScanQuery)) *ReleaseLicenseQuery

WithScans tells the query-builder to eager-load the nodes that are connected to the "scans" edge. The optional arguments are used to configure the query builder of the edge.

type ReleaseLicenseSelect

type ReleaseLicenseSelect struct {
	*ReleaseLicenseQuery
	// contains filtered or unexported fields
}

ReleaseLicenseSelect is the builder for selecting fields of ReleaseLicense entities.

func (*ReleaseLicenseSelect) Bool

func (rls *ReleaseLicenseSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) BoolX

func (rls *ReleaseLicenseSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseLicenseSelect) Bools

func (rls *ReleaseLicenseSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) BoolsX

func (rls *ReleaseLicenseSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseLicenseSelect) Float64

func (rls *ReleaseLicenseSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) Float64X

func (rls *ReleaseLicenseSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseLicenseSelect) Float64s

func (rls *ReleaseLicenseSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) Float64sX

func (rls *ReleaseLicenseSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseLicenseSelect) Int

func (rls *ReleaseLicenseSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) IntX

func (rls *ReleaseLicenseSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseLicenseSelect) Ints

func (rls *ReleaseLicenseSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) IntsX

func (rls *ReleaseLicenseSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseLicenseSelect) Scan

func (rls *ReleaseLicenseSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleaseLicenseSelect) ScanX

func (rls *ReleaseLicenseSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseLicenseSelect) String

func (rls *ReleaseLicenseSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) StringX

func (rls *ReleaseLicenseSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseLicenseSelect) Strings

func (rls *ReleaseLicenseSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleaseLicenseSelect) StringsX

func (rls *ReleaseLicenseSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseLicenseUpdate

type ReleaseLicenseUpdate struct {
	// contains filtered or unexported fields
}

ReleaseLicenseUpdate is the builder for updating ReleaseLicense entities.

func (*ReleaseLicenseUpdate) AddScanIDs

func (rlu *ReleaseLicenseUpdate) AddScanIDs(ids ...int) *ReleaseLicenseUpdate

AddScanIDs adds the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseLicenseUpdate) AddScans

func (rlu *ReleaseLicenseUpdate) AddScans(c ...*CodeScan) *ReleaseLicenseUpdate

AddScans adds the "scans" edges to the CodeScan entity.

func (*ReleaseLicenseUpdate) ClearComponent

func (rlu *ReleaseLicenseUpdate) ClearComponent() *ReleaseLicenseUpdate

ClearComponent clears the "component" edge to the ReleaseComponent entity.

func (*ReleaseLicenseUpdate) ClearLicense

func (rlu *ReleaseLicenseUpdate) ClearLicense() *ReleaseLicenseUpdate

ClearLicense clears the "license" edge to the License entity.

func (*ReleaseLicenseUpdate) ClearRelease

func (rlu *ReleaseLicenseUpdate) ClearRelease() *ReleaseLicenseUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseLicenseUpdate) ClearScans

func (rlu *ReleaseLicenseUpdate) ClearScans() *ReleaseLicenseUpdate

ClearScans clears all "scans" edges to the CodeScan entity.

func (*ReleaseLicenseUpdate) Exec

func (rlu *ReleaseLicenseUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseLicenseUpdate) ExecX

func (rlu *ReleaseLicenseUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseLicenseUpdate) Mutation

Mutation returns the ReleaseLicenseMutation object of the builder.

func (*ReleaseLicenseUpdate) RemoveScanIDs

func (rlu *ReleaseLicenseUpdate) RemoveScanIDs(ids ...int) *ReleaseLicenseUpdate

RemoveScanIDs removes the "scans" edge to CodeScan entities by IDs.

func (*ReleaseLicenseUpdate) RemoveScans

func (rlu *ReleaseLicenseUpdate) RemoveScans(c ...*CodeScan) *ReleaseLicenseUpdate

RemoveScans removes "scans" edges to CodeScan entities.

func (*ReleaseLicenseUpdate) Save

func (rlu *ReleaseLicenseUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleaseLicenseUpdate) SaveX

func (rlu *ReleaseLicenseUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReleaseLicenseUpdate) SetComponent

SetComponent sets the "component" edge to the ReleaseComponent entity.

func (*ReleaseLicenseUpdate) SetComponentID

func (rlu *ReleaseLicenseUpdate) SetComponentID(id int) *ReleaseLicenseUpdate

SetComponentID sets the "component" edge to the ReleaseComponent entity by ID.

func (*ReleaseLicenseUpdate) SetLicense

func (rlu *ReleaseLicenseUpdate) SetLicense(l *License) *ReleaseLicenseUpdate

SetLicense sets the "license" edge to the License entity.

func (*ReleaseLicenseUpdate) SetLicenseID

func (rlu *ReleaseLicenseUpdate) SetLicenseID(id int) *ReleaseLicenseUpdate

SetLicenseID sets the "license" edge to the License entity by ID.

func (*ReleaseLicenseUpdate) SetNillableComponentID

func (rlu *ReleaseLicenseUpdate) SetNillableComponentID(id *int) *ReleaseLicenseUpdate

SetNillableComponentID sets the "component" edge to the ReleaseComponent entity by ID if the given value is not nil.

func (*ReleaseLicenseUpdate) SetRelease

func (rlu *ReleaseLicenseUpdate) SetRelease(r *Release) *ReleaseLicenseUpdate

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseLicenseUpdate) SetReleaseID

func (rlu *ReleaseLicenseUpdate) SetReleaseID(id int) *ReleaseLicenseUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseLicenseUpdate) Where

Where appends a list predicates to the ReleaseLicenseUpdate builder.

type ReleaseLicenseUpdateOne

type ReleaseLicenseUpdateOne struct {
	// contains filtered or unexported fields
}

ReleaseLicenseUpdateOne is the builder for updating a single ReleaseLicense entity.

func (*ReleaseLicenseUpdateOne) AddScanIDs

func (rluo *ReleaseLicenseUpdateOne) AddScanIDs(ids ...int) *ReleaseLicenseUpdateOne

AddScanIDs adds the "scans" edge to the CodeScan entity by IDs.

func (*ReleaseLicenseUpdateOne) AddScans

AddScans adds the "scans" edges to the CodeScan entity.

func (*ReleaseLicenseUpdateOne) ClearComponent

func (rluo *ReleaseLicenseUpdateOne) ClearComponent() *ReleaseLicenseUpdateOne

ClearComponent clears the "component" edge to the ReleaseComponent entity.

func (*ReleaseLicenseUpdateOne) ClearLicense

func (rluo *ReleaseLicenseUpdateOne) ClearLicense() *ReleaseLicenseUpdateOne

ClearLicense clears the "license" edge to the License entity.

func (*ReleaseLicenseUpdateOne) ClearRelease

func (rluo *ReleaseLicenseUpdateOne) ClearRelease() *ReleaseLicenseUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseLicenseUpdateOne) ClearScans

ClearScans clears all "scans" edges to the CodeScan entity.

func (*ReleaseLicenseUpdateOne) Exec

func (rluo *ReleaseLicenseUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReleaseLicenseUpdateOne) ExecX

func (rluo *ReleaseLicenseUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseLicenseUpdateOne) Mutation

Mutation returns the ReleaseLicenseMutation object of the builder.

func (*ReleaseLicenseUpdateOne) RemoveScanIDs

func (rluo *ReleaseLicenseUpdateOne) RemoveScanIDs(ids ...int) *ReleaseLicenseUpdateOne

RemoveScanIDs removes the "scans" edge to CodeScan entities by IDs.

func (*ReleaseLicenseUpdateOne) RemoveScans

func (rluo *ReleaseLicenseUpdateOne) RemoveScans(c ...*CodeScan) *ReleaseLicenseUpdateOne

RemoveScans removes "scans" edges to CodeScan entities.

func (*ReleaseLicenseUpdateOne) Save

Save executes the query and returns the updated ReleaseLicense entity.

func (*ReleaseLicenseUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleaseLicenseUpdateOne) Select

func (rluo *ReleaseLicenseUpdateOne) Select(field string, fields ...string) *ReleaseLicenseUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleaseLicenseUpdateOne) SetComponent

SetComponent sets the "component" edge to the ReleaseComponent entity.

func (*ReleaseLicenseUpdateOne) SetComponentID

func (rluo *ReleaseLicenseUpdateOne) SetComponentID(id int) *ReleaseLicenseUpdateOne

SetComponentID sets the "component" edge to the ReleaseComponent entity by ID.

func (*ReleaseLicenseUpdateOne) SetLicense

SetLicense sets the "license" edge to the License entity.

func (*ReleaseLicenseUpdateOne) SetLicenseID

func (rluo *ReleaseLicenseUpdateOne) SetLicenseID(id int) *ReleaseLicenseUpdateOne

SetLicenseID sets the "license" edge to the License entity by ID.

func (*ReleaseLicenseUpdateOne) SetNillableComponentID

func (rluo *ReleaseLicenseUpdateOne) SetNillableComponentID(id *int) *ReleaseLicenseUpdateOne

SetNillableComponentID sets the "component" edge to the ReleaseComponent entity by ID if the given value is not nil.

func (*ReleaseLicenseUpdateOne) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseLicenseUpdateOne) SetReleaseID

func (rluo *ReleaseLicenseUpdateOne) SetReleaseID(id int) *ReleaseLicenseUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

type ReleaseLicenseWhereInput

type ReleaseLicenseWhereInput struct {
	Not *ReleaseLicenseWhereInput   `json:"not,omitempty"`
	Or  []*ReleaseLicenseWhereInput `json:"or,omitempty"`
	And []*ReleaseLicenseWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "license" edge predicates.
	HasLicense     *bool                `json:"hasLicense,omitempty"`
	HasLicenseWith []*LicenseWhereInput `json:"hasLicenseWith,omitempty"`

	// "component" edge predicates.
	HasComponent     *bool                         `json:"hasComponent,omitempty"`
	HasComponentWith []*ReleaseComponentWhereInput `json:"hasComponentWith,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "scans" edge predicates.
	HasScans     *bool                 `json:"hasScans,omitempty"`
	HasScansWith []*CodeScanWhereInput `json:"hasScansWith,omitempty"`
}

ReleaseLicenseWhereInput represents a where input for filtering ReleaseLicense queries.

func (*ReleaseLicenseWhereInput) Filter

Filter applies the ReleaseLicenseWhereInput filter on the ReleaseLicenseQuery builder.

func (*ReleaseLicenseWhereInput) P

P returns a predicate for filtering releaselicenses. An error is returned if the input is empty or invalid.

type ReleaseLicenses

type ReleaseLicenses []*ReleaseLicense

ReleaseLicenses is a parsable slice of ReleaseLicense.

type ReleaseModelCreate

type ReleaseModelCreate struct {
	Name    *string        `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Version *string        `json:"version,omitempty" validate:"required" mapstructure:"version"`
	Labels  *schema.Labels `json:"labels,omitempty"  mapstructure:"labels"`
}

func NewReleaseModelCreate

func NewReleaseModelCreate() *ReleaseModelCreate

func (*ReleaseModelCreate) SetLabels

func (r *ReleaseModelCreate) SetLabels(value schema.Labels) *ReleaseModelCreate

func (*ReleaseModelCreate) SetName

func (r *ReleaseModelCreate) SetName(value string) *ReleaseModelCreate

func (*ReleaseModelCreate) SetVersion

func (r *ReleaseModelCreate) SetVersion(value string) *ReleaseModelCreate

type ReleaseModelRead

type ReleaseModelRead struct {
	Name    *string        `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Version *string        `json:"version,omitempty" validate:"required" mapstructure:"version"`
	Labels  *schema.Labels `json:"labels,omitempty"  mapstructure:"labels"`
	ID      *int           `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewReleaseModelRead

func NewReleaseModelRead() *ReleaseModelRead

func (*ReleaseModelRead) FromEnt

func (r *ReleaseModelRead) FromEnt(value *Release) *ReleaseModelRead

type ReleaseModelUpdate

type ReleaseModelUpdate struct {
	Name    *string        `json:"name,omitempty"  mapstructure:"name"`
	Version *string        `json:"version,omitempty"  mapstructure:"version"`
	Labels  *schema.Labels `json:"labels,omitempty"  mapstructure:"labels"`
}

func NewReleaseModelUpdate

func NewReleaseModelUpdate() *ReleaseModelUpdate

func (*ReleaseModelUpdate) SetLabels

func (r *ReleaseModelUpdate) SetLabels(value schema.Labels) *ReleaseModelUpdate

func (*ReleaseModelUpdate) SetName

func (r *ReleaseModelUpdate) SetName(value string) *ReleaseModelUpdate

func (*ReleaseModelUpdate) SetVersion

func (r *ReleaseModelUpdate) SetVersion(value string) *ReleaseModelUpdate

type ReleaseMutation

type ReleaseMutation struct {
	// contains filtered or unexported fields
}

ReleaseMutation represents an operation that mutates the Release nodes in the graph.

func (*ReleaseMutation) AddArtifactIDs

func (m *ReleaseMutation) AddArtifactIDs(ids ...int)

AddArtifactIDs adds the "artifacts" edge to the Artifact entity by ids.

func (*ReleaseMutation) AddCodeScanIDs

func (m *ReleaseMutation) AddCodeScanIDs(ids ...int)

AddCodeScanIDs adds the "code_scans" edge to the CodeScan entity by ids.

func (*ReleaseMutation) AddComponentIDs

func (m *ReleaseMutation) AddComponentIDs(ids ...int)

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by ids.

func (*ReleaseMutation) AddDependencyIDs

func (m *ReleaseMutation) AddDependencyIDs(ids ...int)

AddDependencyIDs adds the "dependencies" edge to the Release entity by ids.

func (*ReleaseMutation) AddField

func (m *ReleaseMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseMutation) AddLicenseIDs

func (m *ReleaseMutation) AddLicenseIDs(ids ...int)

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by ids.

func (*ReleaseMutation) AddLogIDs

func (m *ReleaseMutation) AddLogIDs(ids ...int)

AddLogIDs adds the "log" edge to the ReleaseEntry entity by ids.

func (*ReleaseMutation) AddSubreleaseIDs

func (m *ReleaseMutation) AddSubreleaseIDs(ids ...int)

AddSubreleaseIDs adds the "subreleases" edge to the Release entity by ids.

func (*ReleaseMutation) AddTestRunIDs

func (m *ReleaseMutation) AddTestRunIDs(ids ...int)

AddTestRunIDs adds the "test_runs" edge to the TestRun entity by ids.

func (*ReleaseMutation) AddViolationIDs

func (m *ReleaseMutation) AddViolationIDs(ids ...int)

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by ids.

func (*ReleaseMutation) AddVulnerabilityIDs

func (m *ReleaseMutation) AddVulnerabilityIDs(ids ...int)

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by ids.

func (*ReleaseMutation) AddVulnerabilityReviewIDs

func (m *ReleaseMutation) AddVulnerabilityReviewIDs(ids ...int)

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by ids.

func (*ReleaseMutation) AddedEdges

func (m *ReleaseMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleaseMutation) AddedField

func (m *ReleaseMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseMutation) AddedFields

func (m *ReleaseMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleaseMutation) AddedIDs

func (m *ReleaseMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleaseMutation) ArtifactsCleared

func (m *ReleaseMutation) ArtifactsCleared() bool

ArtifactsCleared reports if the "artifacts" edge to the Artifact entity was cleared.

func (*ReleaseMutation) ArtifactsIDs

func (m *ReleaseMutation) ArtifactsIDs() (ids []int)

ArtifactsIDs returns the "artifacts" edge IDs in the mutation.

func (*ReleaseMutation) ClearArtifacts

func (m *ReleaseMutation) ClearArtifacts()

ClearArtifacts clears the "artifacts" edge to the Artifact entity.

func (*ReleaseMutation) ClearCodeScans

func (m *ReleaseMutation) ClearCodeScans()

ClearCodeScans clears the "code_scans" edge to the CodeScan entity.

func (*ReleaseMutation) ClearCommit

func (m *ReleaseMutation) ClearCommit()

ClearCommit clears the "commit" edge to the GitCommit entity.

func (*ReleaseMutation) ClearComponents

func (m *ReleaseMutation) ClearComponents()

ClearComponents clears the "components" edge to the ReleaseComponent entity.

func (*ReleaseMutation) ClearDependencies

func (m *ReleaseMutation) ClearDependencies()

ClearDependencies clears the "dependencies" edge to the Release entity.

func (*ReleaseMutation) ClearEdge

func (m *ReleaseMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleaseMutation) ClearField

func (m *ReleaseMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseMutation) ClearHeadOf

func (m *ReleaseMutation) ClearHeadOf()

ClearHeadOf clears the "head_of" edge to the Repo entity.

func (*ReleaseMutation) ClearLabels

func (m *ReleaseMutation) ClearLabels()

ClearLabels clears the value of the "labels" field.

func (*ReleaseMutation) ClearLicenses

func (m *ReleaseMutation) ClearLicenses()

ClearLicenses clears the "licenses" edge to the ReleaseLicense entity.

func (*ReleaseMutation) ClearLog

func (m *ReleaseMutation) ClearLog()

ClearLog clears the "log" edge to the ReleaseEntry entity.

func (*ReleaseMutation) ClearSubreleases

func (m *ReleaseMutation) ClearSubreleases()

ClearSubreleases clears the "subreleases" edge to the Release entity.

func (*ReleaseMutation) ClearTestRuns

func (m *ReleaseMutation) ClearTestRuns()

ClearTestRuns clears the "test_runs" edge to the TestRun entity.

func (*ReleaseMutation) ClearViolations

func (m *ReleaseMutation) ClearViolations()

ClearViolations clears the "violations" edge to the ReleasePolicyViolation entity.

func (*ReleaseMutation) ClearVulnerabilities

func (m *ReleaseMutation) ClearVulnerabilities()

ClearVulnerabilities clears the "vulnerabilities" edge to the ReleaseVulnerability entity.

func (*ReleaseMutation) ClearVulnerabilityReviews

func (m *ReleaseMutation) ClearVulnerabilityReviews()

ClearVulnerabilityReviews clears the "vulnerability_reviews" edge to the VulnerabilityReview entity.

func (*ReleaseMutation) ClearedEdges

func (m *ReleaseMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleaseMutation) ClearedFields

func (m *ReleaseMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleaseMutation) Client

func (m ReleaseMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleaseMutation) CodeScansCleared

func (m *ReleaseMutation) CodeScansCleared() bool

CodeScansCleared reports if the "code_scans" edge to the CodeScan entity was cleared.

func (*ReleaseMutation) CodeScansIDs

func (m *ReleaseMutation) CodeScansIDs() (ids []int)

CodeScansIDs returns the "code_scans" edge IDs in the mutation.

func (*ReleaseMutation) CommitCleared

func (m *ReleaseMutation) CommitCleared() bool

CommitCleared reports if the "commit" edge to the GitCommit entity was cleared.

func (*ReleaseMutation) CommitID

func (m *ReleaseMutation) CommitID() (id int, exists bool)

CommitID returns the "commit" edge ID in the mutation.

func (*ReleaseMutation) CommitIDs

func (m *ReleaseMutation) CommitIDs() (ids []int)

CommitIDs returns the "commit" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CommitID instead. It exists only for internal usage by the builders.

func (*ReleaseMutation) ComponentsCleared

func (m *ReleaseMutation) ComponentsCleared() bool

ComponentsCleared reports if the "components" edge to the ReleaseComponent entity was cleared.

func (*ReleaseMutation) ComponentsIDs

func (m *ReleaseMutation) ComponentsIDs() (ids []int)

ComponentsIDs returns the "components" edge IDs in the mutation.

func (*ReleaseMutation) DependenciesCleared

func (m *ReleaseMutation) DependenciesCleared() bool

DependenciesCleared reports if the "dependencies" edge to the Release entity was cleared.

func (*ReleaseMutation) DependenciesIDs

func (m *ReleaseMutation) DependenciesIDs() (ids []int)

DependenciesIDs returns the "dependencies" edge IDs in the mutation.

func (*ReleaseMutation) EdgeCleared

func (m *ReleaseMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleaseMutation) Field

func (m *ReleaseMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseMutation) FieldCleared

func (m *ReleaseMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleaseMutation) Fields

func (m *ReleaseMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleaseMutation) HeadOfCleared

func (m *ReleaseMutation) HeadOfCleared() bool

HeadOfCleared reports if the "head_of" edge to the Repo entity was cleared.

func (*ReleaseMutation) HeadOfID

func (m *ReleaseMutation) HeadOfID() (id int, exists bool)

HeadOfID returns the "head_of" edge ID in the mutation.

func (*ReleaseMutation) HeadOfIDs

func (m *ReleaseMutation) HeadOfIDs() (ids []int)

HeadOfIDs returns the "head_of" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use HeadOfID instead. It exists only for internal usage by the builders.

func (*ReleaseMutation) ID

func (m *ReleaseMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleaseMutation) Labels

func (m *ReleaseMutation) Labels() (r schema.Labels, exists bool)

Labels returns the value of the "labels" field in the mutation.

func (*ReleaseMutation) LabelsCleared

func (m *ReleaseMutation) LabelsCleared() bool

LabelsCleared returns if the "labels" field was cleared in this mutation.

func (*ReleaseMutation) LicensesCleared

func (m *ReleaseMutation) LicensesCleared() bool

LicensesCleared reports if the "licenses" edge to the ReleaseLicense entity was cleared.

func (*ReleaseMutation) LicensesIDs

func (m *ReleaseMutation) LicensesIDs() (ids []int)

LicensesIDs returns the "licenses" edge IDs in the mutation.

func (*ReleaseMutation) LogCleared

func (m *ReleaseMutation) LogCleared() bool

LogCleared reports if the "log" edge to the ReleaseEntry entity was cleared.

func (*ReleaseMutation) LogIDs

func (m *ReleaseMutation) LogIDs() (ids []int)

LogIDs returns the "log" edge IDs in the mutation.

func (*ReleaseMutation) Name

func (m *ReleaseMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ReleaseMutation) OldField

func (m *ReleaseMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleaseMutation) OldLabels

func (m *ReleaseMutation) OldLabels(ctx context.Context) (v schema.Labels, err error)

OldLabels returns the old "labels" field's value of the Release entity. If the Release object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleaseMutation) OldName

func (m *ReleaseMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Release entity. If the Release object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleaseMutation) OldVersion

func (m *ReleaseMutation) OldVersion(ctx context.Context) (v string, err error)

OldVersion returns the old "version" field's value of the Release entity. If the Release object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleaseMutation) Op

func (m *ReleaseMutation) Op() Op

Op returns the operation name.

func (*ReleaseMutation) RemoveArtifactIDs

func (m *ReleaseMutation) RemoveArtifactIDs(ids ...int)

RemoveArtifactIDs removes the "artifacts" edge to the Artifact entity by IDs.

func (*ReleaseMutation) RemoveCodeScanIDs

func (m *ReleaseMutation) RemoveCodeScanIDs(ids ...int)

RemoveCodeScanIDs removes the "code_scans" edge to the CodeScan entity by IDs.

func (*ReleaseMutation) RemoveComponentIDs

func (m *ReleaseMutation) RemoveComponentIDs(ids ...int)

RemoveComponentIDs removes the "components" edge to the ReleaseComponent entity by IDs.

func (*ReleaseMutation) RemoveDependencyIDs

func (m *ReleaseMutation) RemoveDependencyIDs(ids ...int)

RemoveDependencyIDs removes the "dependencies" edge to the Release entity by IDs.

func (*ReleaseMutation) RemoveLicenseIDs

func (m *ReleaseMutation) RemoveLicenseIDs(ids ...int)

RemoveLicenseIDs removes the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseMutation) RemoveLogIDs

func (m *ReleaseMutation) RemoveLogIDs(ids ...int)

RemoveLogIDs removes the "log" edge to the ReleaseEntry entity by IDs.

func (*ReleaseMutation) RemoveSubreleaseIDs

func (m *ReleaseMutation) RemoveSubreleaseIDs(ids ...int)

RemoveSubreleaseIDs removes the "subreleases" edge to the Release entity by IDs.

func (*ReleaseMutation) RemoveTestRunIDs

func (m *ReleaseMutation) RemoveTestRunIDs(ids ...int)

RemoveTestRunIDs removes the "test_runs" edge to the TestRun entity by IDs.

func (*ReleaseMutation) RemoveViolationIDs

func (m *ReleaseMutation) RemoveViolationIDs(ids ...int)

RemoveViolationIDs removes the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleaseMutation) RemoveVulnerabilityIDs

func (m *ReleaseMutation) RemoveVulnerabilityIDs(ids ...int)

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseMutation) RemoveVulnerabilityReviewIDs

func (m *ReleaseMutation) RemoveVulnerabilityReviewIDs(ids ...int)

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseMutation) RemovedArtifactsIDs

func (m *ReleaseMutation) RemovedArtifactsIDs() (ids []int)

RemovedArtifacts returns the removed IDs of the "artifacts" edge to the Artifact entity.

func (*ReleaseMutation) RemovedCodeScansIDs

func (m *ReleaseMutation) RemovedCodeScansIDs() (ids []int)

RemovedCodeScans returns the removed IDs of the "code_scans" edge to the CodeScan entity.

func (*ReleaseMutation) RemovedComponentsIDs

func (m *ReleaseMutation) RemovedComponentsIDs() (ids []int)

RemovedComponents returns the removed IDs of the "components" edge to the ReleaseComponent entity.

func (*ReleaseMutation) RemovedDependenciesIDs

func (m *ReleaseMutation) RemovedDependenciesIDs() (ids []int)

RemovedDependencies returns the removed IDs of the "dependencies" edge to the Release entity.

func (*ReleaseMutation) RemovedEdges

func (m *ReleaseMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleaseMutation) RemovedIDs

func (m *ReleaseMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleaseMutation) RemovedLicensesIDs

func (m *ReleaseMutation) RemovedLicensesIDs() (ids []int)

RemovedLicenses returns the removed IDs of the "licenses" edge to the ReleaseLicense entity.

func (*ReleaseMutation) RemovedLogIDs

func (m *ReleaseMutation) RemovedLogIDs() (ids []int)

RemovedLog returns the removed IDs of the "log" edge to the ReleaseEntry entity.

func (*ReleaseMutation) RemovedSubreleasesIDs

func (m *ReleaseMutation) RemovedSubreleasesIDs() (ids []int)

RemovedSubreleases returns the removed IDs of the "subreleases" edge to the Release entity.

func (*ReleaseMutation) RemovedTestRunsIDs

func (m *ReleaseMutation) RemovedTestRunsIDs() (ids []int)

RemovedTestRuns returns the removed IDs of the "test_runs" edge to the TestRun entity.

func (*ReleaseMutation) RemovedViolationsIDs

func (m *ReleaseMutation) RemovedViolationsIDs() (ids []int)

RemovedViolations returns the removed IDs of the "violations" edge to the ReleasePolicyViolation entity.

func (*ReleaseMutation) RemovedVulnerabilitiesIDs

func (m *ReleaseMutation) RemovedVulnerabilitiesIDs() (ids []int)

RemovedVulnerabilities returns the removed IDs of the "vulnerabilities" edge to the ReleaseVulnerability entity.

func (*ReleaseMutation) RemovedVulnerabilityReviewsIDs

func (m *ReleaseMutation) RemovedVulnerabilityReviewsIDs() (ids []int)

RemovedVulnerabilityReviews returns the removed IDs of the "vulnerability_reviews" edge to the VulnerabilityReview entity.

func (*ReleaseMutation) ResetArtifacts

func (m *ReleaseMutation) ResetArtifacts()

ResetArtifacts resets all changes to the "artifacts" edge.

func (*ReleaseMutation) ResetCodeScans

func (m *ReleaseMutation) ResetCodeScans()

ResetCodeScans resets all changes to the "code_scans" edge.

func (*ReleaseMutation) ResetCommit

func (m *ReleaseMutation) ResetCommit()

ResetCommit resets all changes to the "commit" edge.

func (*ReleaseMutation) ResetComponents

func (m *ReleaseMutation) ResetComponents()

ResetComponents resets all changes to the "components" edge.

func (*ReleaseMutation) ResetDependencies

func (m *ReleaseMutation) ResetDependencies()

ResetDependencies resets all changes to the "dependencies" edge.

func (*ReleaseMutation) ResetEdge

func (m *ReleaseMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleaseMutation) ResetField

func (m *ReleaseMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseMutation) ResetHeadOf

func (m *ReleaseMutation) ResetHeadOf()

ResetHeadOf resets all changes to the "head_of" edge.

func (*ReleaseMutation) ResetLabels

func (m *ReleaseMutation) ResetLabels()

ResetLabels resets all changes to the "labels" field.

func (*ReleaseMutation) ResetLicenses

func (m *ReleaseMutation) ResetLicenses()

ResetLicenses resets all changes to the "licenses" edge.

func (*ReleaseMutation) ResetLog

func (m *ReleaseMutation) ResetLog()

ResetLog resets all changes to the "log" edge.

func (*ReleaseMutation) ResetName

func (m *ReleaseMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ReleaseMutation) ResetSubreleases

func (m *ReleaseMutation) ResetSubreleases()

ResetSubreleases resets all changes to the "subreleases" edge.

func (*ReleaseMutation) ResetTestRuns

func (m *ReleaseMutation) ResetTestRuns()

ResetTestRuns resets all changes to the "test_runs" edge.

func (*ReleaseMutation) ResetVersion

func (m *ReleaseMutation) ResetVersion()

ResetVersion resets all changes to the "version" field.

func (*ReleaseMutation) ResetViolations

func (m *ReleaseMutation) ResetViolations()

ResetViolations resets all changes to the "violations" edge.

func (*ReleaseMutation) ResetVulnerabilities

func (m *ReleaseMutation) ResetVulnerabilities()

ResetVulnerabilities resets all changes to the "vulnerabilities" edge.

func (*ReleaseMutation) ResetVulnerabilityReviews

func (m *ReleaseMutation) ResetVulnerabilityReviews()

ResetVulnerabilityReviews resets all changes to the "vulnerability_reviews" edge.

func (*ReleaseMutation) SetCommitID

func (m *ReleaseMutation) SetCommitID(id int)

SetCommitID sets the "commit" edge to the GitCommit entity by id.

func (*ReleaseMutation) SetField

func (m *ReleaseMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseMutation) SetHeadOfID

func (m *ReleaseMutation) SetHeadOfID(id int)

SetHeadOfID sets the "head_of" edge to the Repo entity by id.

func (*ReleaseMutation) SetLabels

func (m *ReleaseMutation) SetLabels(s schema.Labels)

SetLabels sets the "labels" field.

func (*ReleaseMutation) SetModelCreate

func (r *ReleaseMutation) SetModelCreate(model *ReleaseModelCreate) *ReleaseMutation

func (*ReleaseMutation) SetModelUpdate

func (r *ReleaseMutation) SetModelUpdate(model *ReleaseModelUpdate) *ReleaseMutation

func (*ReleaseMutation) SetName

func (m *ReleaseMutation) SetName(s string)

SetName sets the "name" field.

func (*ReleaseMutation) SetVersion

func (m *ReleaseMutation) SetVersion(s string)

SetVersion sets the "version" field.

func (*ReleaseMutation) SubreleasesCleared

func (m *ReleaseMutation) SubreleasesCleared() bool

SubreleasesCleared reports if the "subreleases" edge to the Release entity was cleared.

func (*ReleaseMutation) SubreleasesIDs

func (m *ReleaseMutation) SubreleasesIDs() (ids []int)

SubreleasesIDs returns the "subreleases" edge IDs in the mutation.

func (*ReleaseMutation) TestRunsCleared

func (m *ReleaseMutation) TestRunsCleared() bool

TestRunsCleared reports if the "test_runs" edge to the TestRun entity was cleared.

func (*ReleaseMutation) TestRunsIDs

func (m *ReleaseMutation) TestRunsIDs() (ids []int)

TestRunsIDs returns the "test_runs" edge IDs in the mutation.

func (ReleaseMutation) Tx

func (m ReleaseMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleaseMutation) Type

func (m *ReleaseMutation) Type() string

Type returns the node type of this mutation (Release).

func (*ReleaseMutation) Version

func (m *ReleaseMutation) Version() (r string, exists bool)

Version returns the value of the "version" field in the mutation.

func (*ReleaseMutation) ViolationsCleared

func (m *ReleaseMutation) ViolationsCleared() bool

ViolationsCleared reports if the "violations" edge to the ReleasePolicyViolation entity was cleared.

func (*ReleaseMutation) ViolationsIDs

func (m *ReleaseMutation) ViolationsIDs() (ids []int)

ViolationsIDs returns the "violations" edge IDs in the mutation.

func (*ReleaseMutation) VulnerabilitiesCleared

func (m *ReleaseMutation) VulnerabilitiesCleared() bool

VulnerabilitiesCleared reports if the "vulnerabilities" edge to the ReleaseVulnerability entity was cleared.

func (*ReleaseMutation) VulnerabilitiesIDs

func (m *ReleaseMutation) VulnerabilitiesIDs() (ids []int)

VulnerabilitiesIDs returns the "vulnerabilities" edge IDs in the mutation.

func (*ReleaseMutation) VulnerabilityReviewsCleared

func (m *ReleaseMutation) VulnerabilityReviewsCleared() bool

VulnerabilityReviewsCleared reports if the "vulnerability_reviews" edge to the VulnerabilityReview entity was cleared.

func (*ReleaseMutation) VulnerabilityReviewsIDs

func (m *ReleaseMutation) VulnerabilityReviewsIDs() (ids []int)

VulnerabilityReviewsIDs returns the "vulnerability_reviews" edge IDs in the mutation.

func (*ReleaseMutation) Where

func (m *ReleaseMutation) Where(ps ...predicate.Release)

Where appends a list predicates to the ReleaseMutation builder.

type ReleaseOrder

type ReleaseOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *ReleaseOrderField `json:"field"`
}

ReleaseOrder defines the ordering of Release.

type ReleaseOrderField

type ReleaseOrderField struct {
	// contains filtered or unexported fields
}

ReleaseOrderField defines the ordering field of Release.

func (ReleaseOrderField) MarshalGQL

func (f ReleaseOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ReleaseOrderField) String

func (f ReleaseOrderField) String() string

String implement fmt.Stringer interface.

func (*ReleaseOrderField) UnmarshalGQL

func (f *ReleaseOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ReleasePaginateOption

type ReleasePaginateOption func(*releasePager) error

ReleasePaginateOption enables pagination customization.

func WithReleaseFilter

func WithReleaseFilter(filter func(*ReleaseQuery) (*ReleaseQuery, error)) ReleasePaginateOption

WithReleaseFilter configures pagination filter.

func WithReleaseOrder

func WithReleaseOrder(order *ReleaseOrder) ReleasePaginateOption

WithReleaseOrder configures pagination ordering.

type ReleasePolicies

type ReleasePolicies []*ReleasePolicy

ReleasePolicies is a parsable slice of ReleasePolicy.

type ReleasePolicy

type ReleasePolicy struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Module holds the value of the "module" field.
	// module stores the rego module defining the violation rules
	Module string `json:"module,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleasePolicyQuery when eager-loading is set.
	Edges ReleasePolicyEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReleasePolicy is the model entity for the ReleasePolicy schema.

func (*ReleasePolicy) Node

func (rp *ReleasePolicy) Node(ctx context.Context) (node *Node, err error)

func (*ReleasePolicy) Owner

func (rp *ReleasePolicy) Owner(ctx context.Context) (*Organization, error)

func (*ReleasePolicy) Projects

func (rp *ReleasePolicy) Projects(ctx context.Context) ([]*Project, error)

func (*ReleasePolicy) QueryOwner

func (rp *ReleasePolicy) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the ReleasePolicy entity.

func (*ReleasePolicy) QueryProjects

func (rp *ReleasePolicy) QueryProjects() *ProjectQuery

QueryProjects queries the "projects" edge of the ReleasePolicy entity.

func (*ReleasePolicy) QueryRepos

func (rp *ReleasePolicy) QueryRepos() *RepoQuery

QueryRepos queries the "repos" edge of the ReleasePolicy entity.

func (*ReleasePolicy) QueryViolations

func (rp *ReleasePolicy) QueryViolations() *ReleasePolicyViolationQuery

QueryViolations queries the "violations" edge of the ReleasePolicy entity.

func (*ReleasePolicy) Repos

func (rp *ReleasePolicy) Repos(ctx context.Context) ([]*Repo, error)

func (*ReleasePolicy) String

func (rp *ReleasePolicy) String() string

String implements the fmt.Stringer.

func (*ReleasePolicy) ToEdge

ToEdge converts ReleasePolicy into ReleasePolicyEdge.

func (*ReleasePolicy) Unwrap

func (rp *ReleasePolicy) Unwrap() *ReleasePolicy

Unwrap unwraps the ReleasePolicy entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReleasePolicy) Update

func (rp *ReleasePolicy) Update() *ReleasePolicyUpdateOne

Update returns a builder for updating this ReleasePolicy. Note that you need to call ReleasePolicy.Unwrap() before calling this method if this ReleasePolicy was returned from a transaction, and the transaction was committed or rolled back.

func (*ReleasePolicy) Violations

func (rp *ReleasePolicy) Violations(ctx context.Context) ([]*ReleasePolicyViolation, error)

type ReleasePolicyClient

type ReleasePolicyClient struct {
	// contains filtered or unexported fields
}

ReleasePolicyClient is a client for the ReleasePolicy schema.

func NewReleasePolicyClient

func NewReleasePolicyClient(c config) *ReleasePolicyClient

NewReleasePolicyClient returns a client for the ReleasePolicy from the given config.

func (*ReleasePolicyClient) Create

Create returns a create builder for ReleasePolicy.

func (*ReleasePolicyClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ReleasePolicy entities.

func (*ReleasePolicyClient) Delete

Delete returns a delete builder for ReleasePolicy.

func (*ReleasePolicyClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleasePolicyClient) DeleteOneID

func (c *ReleasePolicyClient) DeleteOneID(id int) *ReleasePolicyDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*ReleasePolicyClient) Get

Get returns a ReleasePolicy entity by its id.

func (*ReleasePolicyClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReleasePolicyClient) Hooks

func (c *ReleasePolicyClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleasePolicyClient) Query

Query returns a query builder for ReleasePolicy.

func (*ReleasePolicyClient) QueryOwner

QueryOwner queries the owner edge of a ReleasePolicy.

func (*ReleasePolicyClient) QueryProjects

func (c *ReleasePolicyClient) QueryProjects(rp *ReleasePolicy) *ProjectQuery

QueryProjects queries the projects edge of a ReleasePolicy.

func (*ReleasePolicyClient) QueryRepos

func (c *ReleasePolicyClient) QueryRepos(rp *ReleasePolicy) *RepoQuery

QueryRepos queries the repos edge of a ReleasePolicy.

func (*ReleasePolicyClient) QueryViolations

QueryViolations queries the violations edge of a ReleasePolicy.

func (*ReleasePolicyClient) Update

Update returns an update builder for ReleasePolicy.

func (*ReleasePolicyClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleasePolicyClient) UpdateOneID

func (c *ReleasePolicyClient) UpdateOneID(id int) *ReleasePolicyUpdateOne

UpdateOneID returns an update builder for the given id.

func (*ReleasePolicyClient) Use

func (c *ReleasePolicyClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `releasepolicy.Hooks(f(g(h())))`.

type ReleasePolicyConnection

type ReleasePolicyConnection struct {
	Edges      []*ReleasePolicyEdge `json:"edges"`
	PageInfo   PageInfo             `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

ReleasePolicyConnection is the connection containing edges to ReleasePolicy.

type ReleasePolicyCreate

type ReleasePolicyCreate struct {
	// contains filtered or unexported fields
}

ReleasePolicyCreate is the builder for creating a ReleasePolicy entity.

func (*ReleasePolicyCreate) AddProjectIDs

func (rpc *ReleasePolicyCreate) AddProjectIDs(ids ...int) *ReleasePolicyCreate

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*ReleasePolicyCreate) AddProjects

func (rpc *ReleasePolicyCreate) AddProjects(p ...*Project) *ReleasePolicyCreate

AddProjects adds the "projects" edges to the Project entity.

func (*ReleasePolicyCreate) AddRepoIDs

func (rpc *ReleasePolicyCreate) AddRepoIDs(ids ...int) *ReleasePolicyCreate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*ReleasePolicyCreate) AddRepos

func (rpc *ReleasePolicyCreate) AddRepos(r ...*Repo) *ReleasePolicyCreate

AddRepos adds the "repos" edges to the Repo entity.

func (*ReleasePolicyCreate) AddViolationIDs

func (rpc *ReleasePolicyCreate) AddViolationIDs(ids ...int) *ReleasePolicyCreate

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleasePolicyCreate) AddViolations

AddViolations adds the "violations" edges to the ReleasePolicyViolation entity.

func (*ReleasePolicyCreate) Exec

func (rpc *ReleasePolicyCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleasePolicyCreate) ExecX

func (rpc *ReleasePolicyCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyCreate) Mutation

func (rpc *ReleasePolicyCreate) Mutation() *ReleasePolicyMutation

Mutation returns the ReleasePolicyMutation object of the builder.

func (*ReleasePolicyCreate) Save

Save creates the ReleasePolicy in the database.

func (*ReleasePolicyCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReleasePolicyCreate) SetModelCreate

func (*ReleasePolicyCreate) SetModule

func (rpc *ReleasePolicyCreate) SetModule(s string) *ReleasePolicyCreate

SetModule sets the "module" field.

func (*ReleasePolicyCreate) SetName

SetName sets the "name" field.

func (*ReleasePolicyCreate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*ReleasePolicyCreate) SetOwnerID

func (rpc *ReleasePolicyCreate) SetOwnerID(id int) *ReleasePolicyCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

type ReleasePolicyCreateBulk

type ReleasePolicyCreateBulk struct {
	// contains filtered or unexported fields
}

ReleasePolicyCreateBulk is the builder for creating many ReleasePolicy entities in bulk.

func (*ReleasePolicyCreateBulk) Exec

func (rpcb *ReleasePolicyCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleasePolicyCreateBulk) ExecX

func (rpcb *ReleasePolicyCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyCreateBulk) Save

Save creates the ReleasePolicy entities in the database.

func (*ReleasePolicyCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ReleasePolicyDelete

type ReleasePolicyDelete struct {
	// contains filtered or unexported fields
}

ReleasePolicyDelete is the builder for deleting a ReleasePolicy entity.

func (*ReleasePolicyDelete) Exec

func (rpd *ReleasePolicyDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleasePolicyDelete) ExecX

func (rpd *ReleasePolicyDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyDelete) Where

Where appends a list predicates to the ReleasePolicyDelete builder.

type ReleasePolicyDeleteOne

type ReleasePolicyDeleteOne struct {
	// contains filtered or unexported fields
}

ReleasePolicyDeleteOne is the builder for deleting a single ReleasePolicy entity.

func (*ReleasePolicyDeleteOne) Exec

func (rpdo *ReleasePolicyDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*ReleasePolicyDeleteOne) ExecX

func (rpdo *ReleasePolicyDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type ReleasePolicyEdge

type ReleasePolicyEdge struct {
	Node   *ReleasePolicy `json:"node"`
	Cursor Cursor         `json:"cursor"`
}

ReleasePolicyEdge is the edge representation of ReleasePolicy.

type ReleasePolicyEdges

type ReleasePolicyEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// Projects holds the value of the projects edge.
	Projects []*Project `json:"projects,omitempty"`
	// Repos holds the value of the repos edge.
	Repos []*Repo `json:"repos,omitempty"`
	// Violations holds the value of the violations edge.
	Violations []*ReleasePolicyViolation `json:"violations,omitempty"`
	// contains filtered or unexported fields
}

ReleasePolicyEdges holds the relations/edges for other nodes in the graph.

func (ReleasePolicyEdges) OwnerOrErr

func (e ReleasePolicyEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleasePolicyEdges) ProjectsOrErr

func (e ReleasePolicyEdges) ProjectsOrErr() ([]*Project, error)

ProjectsOrErr returns the Projects value or an error if the edge was not loaded in eager-loading.

func (ReleasePolicyEdges) ReposOrErr

func (e ReleasePolicyEdges) ReposOrErr() ([]*Repo, error)

ReposOrErr returns the Repos value or an error if the edge was not loaded in eager-loading.

func (ReleasePolicyEdges) ViolationsOrErr

func (e ReleasePolicyEdges) ViolationsOrErr() ([]*ReleasePolicyViolation, error)

ViolationsOrErr returns the Violations value or an error if the edge was not loaded in eager-loading.

type ReleasePolicyGroupBy

type ReleasePolicyGroupBy struct {
	// contains filtered or unexported fields
}

ReleasePolicyGroupBy is the group-by builder for ReleasePolicy entities.

func (*ReleasePolicyGroupBy) Aggregate

func (rpgb *ReleasePolicyGroupBy) Aggregate(fns ...AggregateFunc) *ReleasePolicyGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleasePolicyGroupBy) Bool

func (rpgb *ReleasePolicyGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) BoolX

func (rpgb *ReleasePolicyGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Bools

func (rpgb *ReleasePolicyGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) BoolsX

func (rpgb *ReleasePolicyGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Float64

func (rpgb *ReleasePolicyGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) Float64X

func (rpgb *ReleasePolicyGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Float64s

func (rpgb *ReleasePolicyGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) Float64sX

func (rpgb *ReleasePolicyGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Int

func (rpgb *ReleasePolicyGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) IntX

func (rpgb *ReleasePolicyGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Ints

func (rpgb *ReleasePolicyGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) IntsX

func (rpgb *ReleasePolicyGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Scan

func (rpgb *ReleasePolicyGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleasePolicyGroupBy) ScanX

func (rpgb *ReleasePolicyGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleasePolicyGroupBy) String

func (rpgb *ReleasePolicyGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) StringX

func (rpgb *ReleasePolicyGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleasePolicyGroupBy) Strings

func (rpgb *ReleasePolicyGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyGroupBy) StringsX

func (rpgb *ReleasePolicyGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleasePolicyModelCreate

type ReleasePolicyModelCreate struct {
	Name   *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Module *string `json:"module,omitempty" validate:"required" mapstructure:"module"`
}

func NewReleasePolicyModelCreate

func NewReleasePolicyModelCreate() *ReleasePolicyModelCreate

func (*ReleasePolicyModelCreate) SetModule

func (*ReleasePolicyModelCreate) SetName

type ReleasePolicyModelRead

type ReleasePolicyModelRead struct {
	Name   *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Module *string `json:"module,omitempty" validate:"required" mapstructure:"module"`
	ID     *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewReleasePolicyModelRead

func NewReleasePolicyModelRead() *ReleasePolicyModelRead

func (*ReleasePolicyModelRead) FromEnt

type ReleasePolicyModelUpdate

type ReleasePolicyModelUpdate struct {
	Name   *string `json:"name,omitempty"  mapstructure:"name"`
	Module *string `json:"module,omitempty"  mapstructure:"module"`
}

func NewReleasePolicyModelUpdate

func NewReleasePolicyModelUpdate() *ReleasePolicyModelUpdate

func (*ReleasePolicyModelUpdate) SetModule

func (*ReleasePolicyModelUpdate) SetName

type ReleasePolicyMutation

type ReleasePolicyMutation struct {
	// contains filtered or unexported fields
}

ReleasePolicyMutation represents an operation that mutates the ReleasePolicy nodes in the graph.

func (*ReleasePolicyMutation) AddField

func (m *ReleasePolicyMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleasePolicyMutation) AddProjectIDs

func (m *ReleasePolicyMutation) AddProjectIDs(ids ...int)

AddProjectIDs adds the "projects" edge to the Project entity by ids.

func (*ReleasePolicyMutation) AddRepoIDs

func (m *ReleasePolicyMutation) AddRepoIDs(ids ...int)

AddRepoIDs adds the "repos" edge to the Repo entity by ids.

func (*ReleasePolicyMutation) AddViolationIDs

func (m *ReleasePolicyMutation) AddViolationIDs(ids ...int)

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by ids.

func (*ReleasePolicyMutation) AddedEdges

func (m *ReleasePolicyMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleasePolicyMutation) AddedField

func (m *ReleasePolicyMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleasePolicyMutation) AddedFields

func (m *ReleasePolicyMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleasePolicyMutation) AddedIDs

func (m *ReleasePolicyMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleasePolicyMutation) ClearEdge

func (m *ReleasePolicyMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleasePolicyMutation) ClearField

func (m *ReleasePolicyMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleasePolicyMutation) ClearOwner

func (m *ReleasePolicyMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*ReleasePolicyMutation) ClearProjects

func (m *ReleasePolicyMutation) ClearProjects()

ClearProjects clears the "projects" edge to the Project entity.

func (*ReleasePolicyMutation) ClearRepos

func (m *ReleasePolicyMutation) ClearRepos()

ClearRepos clears the "repos" edge to the Repo entity.

func (*ReleasePolicyMutation) ClearViolations

func (m *ReleasePolicyMutation) ClearViolations()

ClearViolations clears the "violations" edge to the ReleasePolicyViolation entity.

func (*ReleasePolicyMutation) ClearedEdges

func (m *ReleasePolicyMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleasePolicyMutation) ClearedFields

func (m *ReleasePolicyMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleasePolicyMutation) Client

func (m ReleasePolicyMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleasePolicyMutation) EdgeCleared

func (m *ReleasePolicyMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleasePolicyMutation) Field

func (m *ReleasePolicyMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleasePolicyMutation) FieldCleared

func (m *ReleasePolicyMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleasePolicyMutation) Fields

func (m *ReleasePolicyMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleasePolicyMutation) ID

func (m *ReleasePolicyMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleasePolicyMutation) Module

func (m *ReleasePolicyMutation) Module() (r string, exists bool)

Module returns the value of the "module" field in the mutation.

func (*ReleasePolicyMutation) Name

func (m *ReleasePolicyMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*ReleasePolicyMutation) OldField

func (m *ReleasePolicyMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleasePolicyMutation) OldModule

func (m *ReleasePolicyMutation) OldModule(ctx context.Context) (v string, err error)

OldModule returns the old "module" field's value of the ReleasePolicy entity. If the ReleasePolicy object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleasePolicyMutation) OldName

func (m *ReleasePolicyMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the ReleasePolicy entity. If the ReleasePolicy object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleasePolicyMutation) Op

func (m *ReleasePolicyMutation) Op() Op

Op returns the operation name.

func (*ReleasePolicyMutation) OwnerCleared

func (m *ReleasePolicyMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*ReleasePolicyMutation) OwnerID

func (m *ReleasePolicyMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*ReleasePolicyMutation) OwnerIDs

func (m *ReleasePolicyMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*ReleasePolicyMutation) ProjectsCleared

func (m *ReleasePolicyMutation) ProjectsCleared() bool

ProjectsCleared reports if the "projects" edge to the Project entity was cleared.

func (*ReleasePolicyMutation) ProjectsIDs

func (m *ReleasePolicyMutation) ProjectsIDs() (ids []int)

ProjectsIDs returns the "projects" edge IDs in the mutation.

func (*ReleasePolicyMutation) RemoveProjectIDs

func (m *ReleasePolicyMutation) RemoveProjectIDs(ids ...int)

RemoveProjectIDs removes the "projects" edge to the Project entity by IDs.

func (*ReleasePolicyMutation) RemoveRepoIDs

func (m *ReleasePolicyMutation) RemoveRepoIDs(ids ...int)

RemoveRepoIDs removes the "repos" edge to the Repo entity by IDs.

func (*ReleasePolicyMutation) RemoveViolationIDs

func (m *ReleasePolicyMutation) RemoveViolationIDs(ids ...int)

RemoveViolationIDs removes the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleasePolicyMutation) RemovedEdges

func (m *ReleasePolicyMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleasePolicyMutation) RemovedIDs

func (m *ReleasePolicyMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleasePolicyMutation) RemovedProjectsIDs

func (m *ReleasePolicyMutation) RemovedProjectsIDs() (ids []int)

RemovedProjects returns the removed IDs of the "projects" edge to the Project entity.

func (*ReleasePolicyMutation) RemovedReposIDs

func (m *ReleasePolicyMutation) RemovedReposIDs() (ids []int)

RemovedRepos returns the removed IDs of the "repos" edge to the Repo entity.

func (*ReleasePolicyMutation) RemovedViolationsIDs

func (m *ReleasePolicyMutation) RemovedViolationsIDs() (ids []int)

RemovedViolations returns the removed IDs of the "violations" edge to the ReleasePolicyViolation entity.

func (*ReleasePolicyMutation) ReposCleared

func (m *ReleasePolicyMutation) ReposCleared() bool

ReposCleared reports if the "repos" edge to the Repo entity was cleared.

func (*ReleasePolicyMutation) ReposIDs

func (m *ReleasePolicyMutation) ReposIDs() (ids []int)

ReposIDs returns the "repos" edge IDs in the mutation.

func (*ReleasePolicyMutation) ResetEdge

func (m *ReleasePolicyMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleasePolicyMutation) ResetField

func (m *ReleasePolicyMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleasePolicyMutation) ResetModule

func (m *ReleasePolicyMutation) ResetModule()

ResetModule resets all changes to the "module" field.

func (*ReleasePolicyMutation) ResetName

func (m *ReleasePolicyMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*ReleasePolicyMutation) ResetOwner

func (m *ReleasePolicyMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*ReleasePolicyMutation) ResetProjects

func (m *ReleasePolicyMutation) ResetProjects()

ResetProjects resets all changes to the "projects" edge.

func (*ReleasePolicyMutation) ResetRepos

func (m *ReleasePolicyMutation) ResetRepos()

ResetRepos resets all changes to the "repos" edge.

func (*ReleasePolicyMutation) ResetViolations

func (m *ReleasePolicyMutation) ResetViolations()

ResetViolations resets all changes to the "violations" edge.

func (*ReleasePolicyMutation) SetField

func (m *ReleasePolicyMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleasePolicyMutation) SetModelCreate

func (*ReleasePolicyMutation) SetModelUpdate

func (*ReleasePolicyMutation) SetModule

func (m *ReleasePolicyMutation) SetModule(s string)

SetModule sets the "module" field.

func (*ReleasePolicyMutation) SetName

func (m *ReleasePolicyMutation) SetName(s string)

SetName sets the "name" field.

func (*ReleasePolicyMutation) SetOwnerID

func (m *ReleasePolicyMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (ReleasePolicyMutation) Tx

func (m ReleasePolicyMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleasePolicyMutation) Type

func (m *ReleasePolicyMutation) Type() string

Type returns the node type of this mutation (ReleasePolicy).

func (*ReleasePolicyMutation) ViolationsCleared

func (m *ReleasePolicyMutation) ViolationsCleared() bool

ViolationsCleared reports if the "violations" edge to the ReleasePolicyViolation entity was cleared.

func (*ReleasePolicyMutation) ViolationsIDs

func (m *ReleasePolicyMutation) ViolationsIDs() (ids []int)

ViolationsIDs returns the "violations" edge IDs in the mutation.

func (*ReleasePolicyMutation) Where

Where appends a list predicates to the ReleasePolicyMutation builder.

type ReleasePolicyOrder

type ReleasePolicyOrder struct {
	Direction OrderDirection           `json:"direction"`
	Field     *ReleasePolicyOrderField `json:"field"`
}

ReleasePolicyOrder defines the ordering of ReleasePolicy.

type ReleasePolicyOrderField

type ReleasePolicyOrderField struct {
	// contains filtered or unexported fields
}

ReleasePolicyOrderField defines the ordering field of ReleasePolicy.

func (ReleasePolicyOrderField) MarshalGQL

func (f ReleasePolicyOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (ReleasePolicyOrderField) String

func (f ReleasePolicyOrderField) String() string

String implement fmt.Stringer interface.

func (*ReleasePolicyOrderField) UnmarshalGQL

func (f *ReleasePolicyOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type ReleasePolicyPaginateOption

type ReleasePolicyPaginateOption func(*releasePolicyPager) error

ReleasePolicyPaginateOption enables pagination customization.

func WithReleasePolicyFilter

func WithReleasePolicyFilter(filter func(*ReleasePolicyQuery) (*ReleasePolicyQuery, error)) ReleasePolicyPaginateOption

WithReleasePolicyFilter configures pagination filter.

func WithReleasePolicyOrder

func WithReleasePolicyOrder(order *ReleasePolicyOrder) ReleasePolicyPaginateOption

WithReleasePolicyOrder configures pagination ordering.

type ReleasePolicyQuery

type ReleasePolicyQuery struct {
	// contains filtered or unexported fields
}

ReleasePolicyQuery is the builder for querying ReleasePolicy entities.

func (*ReleasePolicyQuery) All

All executes the query and returns a list of ReleasePolicies.

func (*ReleasePolicyQuery) AllX

func (rpq *ReleasePolicyQuery) AllX(ctx context.Context) []*ReleasePolicy

AllX is like All, but panics if an error occurs.

func (*ReleasePolicyQuery) Clone

func (rpq *ReleasePolicyQuery) Clone() *ReleasePolicyQuery

Clone returns a duplicate of the ReleasePolicyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleasePolicyQuery) CollectFields

func (rp *ReleasePolicyQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleasePolicyQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleasePolicyQuery) Count

func (rpq *ReleasePolicyQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleasePolicyQuery) CountX

func (rpq *ReleasePolicyQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleasePolicyQuery) Exist

func (rpq *ReleasePolicyQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReleasePolicyQuery) ExistX

func (rpq *ReleasePolicyQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleasePolicyQuery) Filter

func (rp *ReleasePolicyQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ReleasePolicyOrder, where *ReleasePolicyWhereInput,
) ([]*ReleasePolicy, error)

func (*ReleasePolicyQuery) First

First returns the first ReleasePolicy entity from the query. Returns a *NotFoundError when no ReleasePolicy was found.

func (*ReleasePolicyQuery) FirstID

func (rpq *ReleasePolicyQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReleasePolicy ID from the query. Returns a *NotFoundError when no ReleasePolicy ID was found.

func (*ReleasePolicyQuery) FirstIDX

func (rpq *ReleasePolicyQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleasePolicyQuery) FirstX

func (rpq *ReleasePolicyQuery) FirstX(ctx context.Context) *ReleasePolicy

FirstX is like First, but panics if an error occurs.

func (*ReleasePolicyQuery) GroupBy

func (rpq *ReleasePolicyQuery) GroupBy(field string, fields ...string) *ReleasePolicyGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReleasePolicy.Query().
	GroupBy(releasepolicy.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReleasePolicyQuery) IDs

func (rpq *ReleasePolicyQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of ReleasePolicy IDs.

func (*ReleasePolicyQuery) IDsX

func (rpq *ReleasePolicyQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleasePolicyQuery) Limit

func (rpq *ReleasePolicyQuery) Limit(limit int) *ReleasePolicyQuery

Limit adds a limit step to the query.

func (*ReleasePolicyQuery) Offset

func (rpq *ReleasePolicyQuery) Offset(offset int) *ReleasePolicyQuery

Offset adds an offset step to the query.

func (*ReleasePolicyQuery) Only

Only returns a single ReleasePolicy entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one ReleasePolicy entity is not found. Returns a *NotFoundError when no ReleasePolicy entities are found.

func (*ReleasePolicyQuery) OnlyID

func (rpq *ReleasePolicyQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReleasePolicy ID in the query. Returns a *NotSingularError when exactly one ReleasePolicy ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleasePolicyQuery) OnlyIDX

func (rpq *ReleasePolicyQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleasePolicyQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ReleasePolicyQuery) Order

Order adds an order step to the query.

func (*ReleasePolicyQuery) Paginate

func (rp *ReleasePolicyQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ReleasePolicyPaginateOption,
) (*ReleasePolicyConnection, error)

Paginate executes the query and returns a relay based cursor connection to ReleasePolicy.

func (*ReleasePolicyQuery) QueryOwner

func (rpq *ReleasePolicyQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*ReleasePolicyQuery) QueryProjects

func (rpq *ReleasePolicyQuery) QueryProjects() *ProjectQuery

QueryProjects chains the current query on the "projects" edge.

func (*ReleasePolicyQuery) QueryRepos

func (rpq *ReleasePolicyQuery) QueryRepos() *RepoQuery

QueryRepos chains the current query on the "repos" edge.

func (*ReleasePolicyQuery) QueryViolations

func (rpq *ReleasePolicyQuery) QueryViolations() *ReleasePolicyViolationQuery

QueryViolations chains the current query on the "violations" edge.

func (*ReleasePolicyQuery) Select

func (rpq *ReleasePolicyQuery) Select(fields ...string) *ReleasePolicySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.ReleasePolicy.Query().
	Select(releasepolicy.FieldName).
	Scan(ctx, &v)

func (*ReleasePolicyQuery) Unique

func (rpq *ReleasePolicyQuery) Unique(unique bool) *ReleasePolicyQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleasePolicyQuery) Where

Where adds a new predicate for the ReleasePolicyQuery builder.

func (*ReleasePolicyQuery) WhereInput

func (*ReleasePolicyQuery) WithOwner

func (rpq *ReleasePolicyQuery) WithOwner(opts ...func(*OrganizationQuery)) *ReleasePolicyQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleasePolicyQuery) WithProjects

func (rpq *ReleasePolicyQuery) WithProjects(opts ...func(*ProjectQuery)) *ReleasePolicyQuery

WithProjects tells the query-builder to eager-load the nodes that are connected to the "projects" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleasePolicyQuery) WithRepos

func (rpq *ReleasePolicyQuery) WithRepos(opts ...func(*RepoQuery)) *ReleasePolicyQuery

WithRepos tells the query-builder to eager-load the nodes that are connected to the "repos" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleasePolicyQuery) WithViolations

func (rpq *ReleasePolicyQuery) WithViolations(opts ...func(*ReleasePolicyViolationQuery)) *ReleasePolicyQuery

WithViolations tells the query-builder to eager-load the nodes that are connected to the "violations" edge. The optional arguments are used to configure the query builder of the edge.

type ReleasePolicySelect

type ReleasePolicySelect struct {
	*ReleasePolicyQuery
	// contains filtered or unexported fields
}

ReleasePolicySelect is the builder for selecting fields of ReleasePolicy entities.

func (*ReleasePolicySelect) Bool

func (rps *ReleasePolicySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) BoolX

func (rps *ReleasePolicySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleasePolicySelect) Bools

func (rps *ReleasePolicySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) BoolsX

func (rps *ReleasePolicySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleasePolicySelect) Float64

func (rps *ReleasePolicySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) Float64X

func (rps *ReleasePolicySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleasePolicySelect) Float64s

func (rps *ReleasePolicySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) Float64sX

func (rps *ReleasePolicySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleasePolicySelect) Int

func (rps *ReleasePolicySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) IntX

func (rps *ReleasePolicySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleasePolicySelect) Ints

func (rps *ReleasePolicySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) IntsX

func (rps *ReleasePolicySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleasePolicySelect) Scan

func (rps *ReleasePolicySelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleasePolicySelect) ScanX

func (rps *ReleasePolicySelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleasePolicySelect) String

func (rps *ReleasePolicySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) StringX

func (rps *ReleasePolicySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleasePolicySelect) Strings

func (rps *ReleasePolicySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleasePolicySelect) StringsX

func (rps *ReleasePolicySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleasePolicyUpdate

type ReleasePolicyUpdate struct {
	// contains filtered or unexported fields
}

ReleasePolicyUpdate is the builder for updating ReleasePolicy entities.

func (*ReleasePolicyUpdate) AddProjectIDs

func (rpu *ReleasePolicyUpdate) AddProjectIDs(ids ...int) *ReleasePolicyUpdate

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*ReleasePolicyUpdate) AddProjects

func (rpu *ReleasePolicyUpdate) AddProjects(p ...*Project) *ReleasePolicyUpdate

AddProjects adds the "projects" edges to the Project entity.

func (*ReleasePolicyUpdate) AddRepoIDs

func (rpu *ReleasePolicyUpdate) AddRepoIDs(ids ...int) *ReleasePolicyUpdate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*ReleasePolicyUpdate) AddRepos

func (rpu *ReleasePolicyUpdate) AddRepos(r ...*Repo) *ReleasePolicyUpdate

AddRepos adds the "repos" edges to the Repo entity.

func (*ReleasePolicyUpdate) AddViolationIDs

func (rpu *ReleasePolicyUpdate) AddViolationIDs(ids ...int) *ReleasePolicyUpdate

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleasePolicyUpdate) AddViolations

AddViolations adds the "violations" edges to the ReleasePolicyViolation entity.

func (*ReleasePolicyUpdate) ClearOwner

func (rpu *ReleasePolicyUpdate) ClearOwner() *ReleasePolicyUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*ReleasePolicyUpdate) ClearProjects

func (rpu *ReleasePolicyUpdate) ClearProjects() *ReleasePolicyUpdate

ClearProjects clears all "projects" edges to the Project entity.

func (*ReleasePolicyUpdate) ClearRepos

func (rpu *ReleasePolicyUpdate) ClearRepos() *ReleasePolicyUpdate

ClearRepos clears all "repos" edges to the Repo entity.

func (*ReleasePolicyUpdate) ClearViolations

func (rpu *ReleasePolicyUpdate) ClearViolations() *ReleasePolicyUpdate

ClearViolations clears all "violations" edges to the ReleasePolicyViolation entity.

func (*ReleasePolicyUpdate) Exec

func (rpu *ReleasePolicyUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleasePolicyUpdate) ExecX

func (rpu *ReleasePolicyUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyUpdate) Mutation

func (rpu *ReleasePolicyUpdate) Mutation() *ReleasePolicyMutation

Mutation returns the ReleasePolicyMutation object of the builder.

func (*ReleasePolicyUpdate) RemoveProjectIDs

func (rpu *ReleasePolicyUpdate) RemoveProjectIDs(ids ...int) *ReleasePolicyUpdate

RemoveProjectIDs removes the "projects" edge to Project entities by IDs.

func (*ReleasePolicyUpdate) RemoveProjects

func (rpu *ReleasePolicyUpdate) RemoveProjects(p ...*Project) *ReleasePolicyUpdate

RemoveProjects removes "projects" edges to Project entities.

func (*ReleasePolicyUpdate) RemoveRepoIDs

func (rpu *ReleasePolicyUpdate) RemoveRepoIDs(ids ...int) *ReleasePolicyUpdate

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*ReleasePolicyUpdate) RemoveRepos

func (rpu *ReleasePolicyUpdate) RemoveRepos(r ...*Repo) *ReleasePolicyUpdate

RemoveRepos removes "repos" edges to Repo entities.

func (*ReleasePolicyUpdate) RemoveViolationIDs

func (rpu *ReleasePolicyUpdate) RemoveViolationIDs(ids ...int) *ReleasePolicyUpdate

RemoveViolationIDs removes the "violations" edge to ReleasePolicyViolation entities by IDs.

func (*ReleasePolicyUpdate) RemoveViolations

func (rpu *ReleasePolicyUpdate) RemoveViolations(r ...*ReleasePolicyViolation) *ReleasePolicyUpdate

RemoveViolations removes "violations" edges to ReleasePolicyViolation entities.

func (*ReleasePolicyUpdate) Save

func (rpu *ReleasePolicyUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleasePolicyUpdate) SaveX

func (rpu *ReleasePolicyUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReleasePolicyUpdate) SetModule

func (rpu *ReleasePolicyUpdate) SetModule(s string) *ReleasePolicyUpdate

SetModule sets the "module" field.

func (*ReleasePolicyUpdate) SetName

SetName sets the "name" field.

func (*ReleasePolicyUpdate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*ReleasePolicyUpdate) SetOwnerID

func (rpu *ReleasePolicyUpdate) SetOwnerID(id int) *ReleasePolicyUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*ReleasePolicyUpdate) Where

Where appends a list predicates to the ReleasePolicyUpdate builder.

type ReleasePolicyUpdateOne

type ReleasePolicyUpdateOne struct {
	// contains filtered or unexported fields
}

ReleasePolicyUpdateOne is the builder for updating a single ReleasePolicy entity.

func (*ReleasePolicyUpdateOne) AddProjectIDs

func (rpuo *ReleasePolicyUpdateOne) AddProjectIDs(ids ...int) *ReleasePolicyUpdateOne

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*ReleasePolicyUpdateOne) AddProjects

func (rpuo *ReleasePolicyUpdateOne) AddProjects(p ...*Project) *ReleasePolicyUpdateOne

AddProjects adds the "projects" edges to the Project entity.

func (*ReleasePolicyUpdateOne) AddRepoIDs

func (rpuo *ReleasePolicyUpdateOne) AddRepoIDs(ids ...int) *ReleasePolicyUpdateOne

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*ReleasePolicyUpdateOne) AddRepos

func (rpuo *ReleasePolicyUpdateOne) AddRepos(r ...*Repo) *ReleasePolicyUpdateOne

AddRepos adds the "repos" edges to the Repo entity.

func (*ReleasePolicyUpdateOne) AddViolationIDs

func (rpuo *ReleasePolicyUpdateOne) AddViolationIDs(ids ...int) *ReleasePolicyUpdateOne

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleasePolicyUpdateOne) AddViolations

AddViolations adds the "violations" edges to the ReleasePolicyViolation entity.

func (*ReleasePolicyUpdateOne) ClearOwner

func (rpuo *ReleasePolicyUpdateOne) ClearOwner() *ReleasePolicyUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*ReleasePolicyUpdateOne) ClearProjects

func (rpuo *ReleasePolicyUpdateOne) ClearProjects() *ReleasePolicyUpdateOne

ClearProjects clears all "projects" edges to the Project entity.

func (*ReleasePolicyUpdateOne) ClearRepos

func (rpuo *ReleasePolicyUpdateOne) ClearRepos() *ReleasePolicyUpdateOne

ClearRepos clears all "repos" edges to the Repo entity.

func (*ReleasePolicyUpdateOne) ClearViolations

func (rpuo *ReleasePolicyUpdateOne) ClearViolations() *ReleasePolicyUpdateOne

ClearViolations clears all "violations" edges to the ReleasePolicyViolation entity.

func (*ReleasePolicyUpdateOne) Exec

func (rpuo *ReleasePolicyUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReleasePolicyUpdateOne) ExecX

func (rpuo *ReleasePolicyUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyUpdateOne) Mutation

Mutation returns the ReleasePolicyMutation object of the builder.

func (*ReleasePolicyUpdateOne) RemoveProjectIDs

func (rpuo *ReleasePolicyUpdateOne) RemoveProjectIDs(ids ...int) *ReleasePolicyUpdateOne

RemoveProjectIDs removes the "projects" edge to Project entities by IDs.

func (*ReleasePolicyUpdateOne) RemoveProjects

func (rpuo *ReleasePolicyUpdateOne) RemoveProjects(p ...*Project) *ReleasePolicyUpdateOne

RemoveProjects removes "projects" edges to Project entities.

func (*ReleasePolicyUpdateOne) RemoveRepoIDs

func (rpuo *ReleasePolicyUpdateOne) RemoveRepoIDs(ids ...int) *ReleasePolicyUpdateOne

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*ReleasePolicyUpdateOne) RemoveRepos

func (rpuo *ReleasePolicyUpdateOne) RemoveRepos(r ...*Repo) *ReleasePolicyUpdateOne

RemoveRepos removes "repos" edges to Repo entities.

func (*ReleasePolicyUpdateOne) RemoveViolationIDs

func (rpuo *ReleasePolicyUpdateOne) RemoveViolationIDs(ids ...int) *ReleasePolicyUpdateOne

RemoveViolationIDs removes the "violations" edge to ReleasePolicyViolation entities by IDs.

func (*ReleasePolicyUpdateOne) RemoveViolations

RemoveViolations removes "violations" edges to ReleasePolicyViolation entities.

func (*ReleasePolicyUpdateOne) Save

Save executes the query and returns the updated ReleasePolicy entity.

func (*ReleasePolicyUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleasePolicyUpdateOne) Select

func (rpuo *ReleasePolicyUpdateOne) Select(field string, fields ...string) *ReleasePolicyUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleasePolicyUpdateOne) SetModelCreate

func (*ReleasePolicyUpdateOne) SetModelUpdate

func (*ReleasePolicyUpdateOne) SetModule

SetModule sets the "module" field.

func (*ReleasePolicyUpdateOne) SetName

SetName sets the "name" field.

func (*ReleasePolicyUpdateOne) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*ReleasePolicyUpdateOne) SetOwnerID

func (rpuo *ReleasePolicyUpdateOne) SetOwnerID(id int) *ReleasePolicyUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

type ReleasePolicyViolation

type ReleasePolicyViolation struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Message holds the value of the "message" field.
	Message string `json:"message,omitempty"`
	// Type holds the value of the "type" field.
	Type releasepolicyviolation.Type `json:"type,omitempty"`
	// Severity holds the value of the "severity" field.
	Severity releasepolicyviolation.Severity `json:"severity,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleasePolicyViolationQuery when eager-loading is set.
	Edges ReleasePolicyViolationEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReleasePolicyViolation is the model entity for the ReleasePolicyViolation schema.

func (*ReleasePolicyViolation) Node

func (rpv *ReleasePolicyViolation) Node(ctx context.Context) (node *Node, err error)

func (*ReleasePolicyViolation) Policy

func (*ReleasePolicyViolation) QueryPolicy

func (rpv *ReleasePolicyViolation) QueryPolicy() *ReleasePolicyQuery

QueryPolicy queries the "policy" edge of the ReleasePolicyViolation entity.

func (*ReleasePolicyViolation) QueryRelease

func (rpv *ReleasePolicyViolation) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the ReleasePolicyViolation entity.

func (*ReleasePolicyViolation) Release

func (rpv *ReleasePolicyViolation) Release(ctx context.Context) (*Release, error)

func (*ReleasePolicyViolation) String

func (rpv *ReleasePolicyViolation) String() string

String implements the fmt.Stringer.

func (*ReleasePolicyViolation) ToEdge

ToEdge converts ReleasePolicyViolation into ReleasePolicyViolationEdge.

func (*ReleasePolicyViolation) Unwrap

Unwrap unwraps the ReleasePolicyViolation entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReleasePolicyViolation) Update

Update returns a builder for updating this ReleasePolicyViolation. Note that you need to call ReleasePolicyViolation.Unwrap() before calling this method if this ReleasePolicyViolation was returned from a transaction, and the transaction was committed or rolled back.

type ReleasePolicyViolationClient

type ReleasePolicyViolationClient struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationClient is a client for the ReleasePolicyViolation schema.

func NewReleasePolicyViolationClient

func NewReleasePolicyViolationClient(c config) *ReleasePolicyViolationClient

NewReleasePolicyViolationClient returns a client for the ReleasePolicyViolation from the given config.

func (*ReleasePolicyViolationClient) Create

Create returns a create builder for ReleasePolicyViolation.

func (*ReleasePolicyViolationClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ReleasePolicyViolation entities.

func (*ReleasePolicyViolationClient) Delete

Delete returns a delete builder for ReleasePolicyViolation.

func (*ReleasePolicyViolationClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleasePolicyViolationClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*ReleasePolicyViolationClient) Get

Get returns a ReleasePolicyViolation entity by its id.

func (*ReleasePolicyViolationClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReleasePolicyViolationClient) Hooks

func (c *ReleasePolicyViolationClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleasePolicyViolationClient) Query

Query returns a query builder for ReleasePolicyViolation.

func (*ReleasePolicyViolationClient) QueryPolicy

QueryPolicy queries the policy edge of a ReleasePolicyViolation.

func (*ReleasePolicyViolationClient) QueryRelease

QueryRelease queries the release edge of a ReleasePolicyViolation.

func (*ReleasePolicyViolationClient) Update

Update returns an update builder for ReleasePolicyViolation.

func (*ReleasePolicyViolationClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleasePolicyViolationClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ReleasePolicyViolationClient) Use

func (c *ReleasePolicyViolationClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `releasepolicyviolation.Hooks(f(g(h())))`.

type ReleasePolicyViolationConnection

type ReleasePolicyViolationConnection struct {
	Edges      []*ReleasePolicyViolationEdge `json:"edges"`
	PageInfo   PageInfo                      `json:"pageInfo"`
	TotalCount int                           `json:"totalCount"`
}

ReleasePolicyViolationConnection is the connection containing edges to ReleasePolicyViolation.

type ReleasePolicyViolationCreate

type ReleasePolicyViolationCreate struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationCreate is the builder for creating a ReleasePolicyViolation entity.

func (*ReleasePolicyViolationCreate) Exec

Exec executes the query.

func (*ReleasePolicyViolationCreate) ExecX

func (rpvc *ReleasePolicyViolationCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyViolationCreate) Mutation

Mutation returns the ReleasePolicyViolationMutation object of the builder.

func (*ReleasePolicyViolationCreate) Save

Save creates the ReleasePolicyViolation in the database.

func (*ReleasePolicyViolationCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReleasePolicyViolationCreate) SetMessage

SetMessage sets the "message" field.

func (*ReleasePolicyViolationCreate) SetModelCreate

func (*ReleasePolicyViolationCreate) SetPolicy

SetPolicy sets the "policy" edge to the ReleasePolicy entity.

func (*ReleasePolicyViolationCreate) SetPolicyID

SetPolicyID sets the "policy" edge to the ReleasePolicy entity by ID.

func (*ReleasePolicyViolationCreate) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleasePolicyViolationCreate) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleasePolicyViolationCreate) SetSeverity

SetSeverity sets the "severity" field.

func (*ReleasePolicyViolationCreate) SetType

SetType sets the "type" field.

type ReleasePolicyViolationCreateBulk

type ReleasePolicyViolationCreateBulk struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationCreateBulk is the builder for creating many ReleasePolicyViolation entities in bulk.

func (*ReleasePolicyViolationCreateBulk) Exec

Exec executes the query.

func (*ReleasePolicyViolationCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyViolationCreateBulk) Save

Save creates the ReleasePolicyViolation entities in the database.

func (*ReleasePolicyViolationCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ReleasePolicyViolationDelete

type ReleasePolicyViolationDelete struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationDelete is the builder for deleting a ReleasePolicyViolation entity.

func (*ReleasePolicyViolationDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleasePolicyViolationDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyViolationDelete) Where

Where appends a list predicates to the ReleasePolicyViolationDelete builder.

type ReleasePolicyViolationDeleteOne

type ReleasePolicyViolationDeleteOne struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationDeleteOne is the builder for deleting a single ReleasePolicyViolation entity.

func (*ReleasePolicyViolationDeleteOne) Exec

Exec executes the deletion query.

func (*ReleasePolicyViolationDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

type ReleasePolicyViolationEdge

type ReleasePolicyViolationEdge struct {
	Node   *ReleasePolicyViolation `json:"node"`
	Cursor Cursor                  `json:"cursor"`
}

ReleasePolicyViolationEdge is the edge representation of ReleasePolicyViolation.

type ReleasePolicyViolationEdges

type ReleasePolicyViolationEdges struct {
	// Policy holds the value of the policy edge.
	Policy *ReleasePolicy `json:"policy,omitempty"`
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// contains filtered or unexported fields
}

ReleasePolicyViolationEdges holds the relations/edges for other nodes in the graph.

func (ReleasePolicyViolationEdges) PolicyOrErr

func (e ReleasePolicyViolationEdges) PolicyOrErr() (*ReleasePolicy, error)

PolicyOrErr returns the Policy value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleasePolicyViolationEdges) ReleaseOrErr

func (e ReleasePolicyViolationEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReleasePolicyViolationGroupBy

type ReleasePolicyViolationGroupBy struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationGroupBy is the group-by builder for ReleasePolicyViolation entities.

func (*ReleasePolicyViolationGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleasePolicyViolationGroupBy) Bool

func (rpvgb *ReleasePolicyViolationGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) BoolX

BoolX is like Bool, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Bools

func (rpvgb *ReleasePolicyViolationGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) BoolsX

func (rpvgb *ReleasePolicyViolationGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Float64

func (rpvgb *ReleasePolicyViolationGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) Float64X

Float64X is like Float64, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Float64s

func (rpvgb *ReleasePolicyViolationGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) Float64sX

func (rpvgb *ReleasePolicyViolationGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Int

func (rpvgb *ReleasePolicyViolationGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) IntX

IntX is like Int, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Ints

func (rpvgb *ReleasePolicyViolationGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) IntsX

func (rpvgb *ReleasePolicyViolationGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Scan

func (rpvgb *ReleasePolicyViolationGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleasePolicyViolationGroupBy) ScanX

func (rpvgb *ReleasePolicyViolationGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) String

func (rpvgb *ReleasePolicyViolationGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) StringX

StringX is like String, but panics if an error occurs.

func (*ReleasePolicyViolationGroupBy) Strings

func (rpvgb *ReleasePolicyViolationGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleasePolicyViolationGroupBy) StringsX

func (rpvgb *ReleasePolicyViolationGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleasePolicyViolationModelCreate

type ReleasePolicyViolationModelCreate struct {
	Message  *string                          `json:"message,omitempty" validate:"required" mapstructure:"message"`
	Type     *releasepolicyviolation.Type     `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Severity *releasepolicyviolation.Severity `json:"severity,omitempty" validate:"required" mapstructure:"severity"`
}

func NewReleasePolicyViolationModelCreate

func NewReleasePolicyViolationModelCreate() *ReleasePolicyViolationModelCreate

func (*ReleasePolicyViolationModelCreate) SetMessage

func (*ReleasePolicyViolationModelCreate) SetSeverity

func (*ReleasePolicyViolationModelCreate) SetType

type ReleasePolicyViolationModelRead

type ReleasePolicyViolationModelRead struct {
	Message  *string                          `json:"message,omitempty" validate:"required" mapstructure:"message"`
	Type     *releasepolicyviolation.Type     `json:"type,omitempty" validate:"required" mapstructure:"type"`
	Severity *releasepolicyviolation.Severity `json:"severity,omitempty" validate:"required" mapstructure:"severity"`
	ID       *int                             `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewReleasePolicyViolationModelRead

func NewReleasePolicyViolationModelRead() *ReleasePolicyViolationModelRead

func (*ReleasePolicyViolationModelRead) FromEnt

type ReleasePolicyViolationModelUpdate

type ReleasePolicyViolationModelUpdate struct {
	Message  *string                          `json:"message,omitempty"  mapstructure:"message"`
	Type     *releasepolicyviolation.Type     `json:"type,omitempty"  mapstructure:"type"`
	Severity *releasepolicyviolation.Severity `json:"severity,omitempty"  mapstructure:"severity"`
}

func NewReleasePolicyViolationModelUpdate

func NewReleasePolicyViolationModelUpdate() *ReleasePolicyViolationModelUpdate

func (*ReleasePolicyViolationModelUpdate) SetMessage

func (*ReleasePolicyViolationModelUpdate) SetSeverity

func (*ReleasePolicyViolationModelUpdate) SetType

type ReleasePolicyViolationMutation

type ReleasePolicyViolationMutation struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationMutation represents an operation that mutates the ReleasePolicyViolation nodes in the graph.

func (*ReleasePolicyViolationMutation) AddField

func (m *ReleasePolicyViolationMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleasePolicyViolationMutation) AddedEdges

func (m *ReleasePolicyViolationMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleasePolicyViolationMutation) AddedField

func (m *ReleasePolicyViolationMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleasePolicyViolationMutation) AddedFields

func (m *ReleasePolicyViolationMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleasePolicyViolationMutation) AddedIDs

func (m *ReleasePolicyViolationMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleasePolicyViolationMutation) ClearEdge

func (m *ReleasePolicyViolationMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleasePolicyViolationMutation) ClearField

func (m *ReleasePolicyViolationMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleasePolicyViolationMutation) ClearPolicy

func (m *ReleasePolicyViolationMutation) ClearPolicy()

ClearPolicy clears the "policy" edge to the ReleasePolicy entity.

func (*ReleasePolicyViolationMutation) ClearRelease

func (m *ReleasePolicyViolationMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*ReleasePolicyViolationMutation) ClearedEdges

func (m *ReleasePolicyViolationMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleasePolicyViolationMutation) ClearedFields

func (m *ReleasePolicyViolationMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleasePolicyViolationMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleasePolicyViolationMutation) EdgeCleared

func (m *ReleasePolicyViolationMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleasePolicyViolationMutation) Field

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleasePolicyViolationMutation) FieldCleared

func (m *ReleasePolicyViolationMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleasePolicyViolationMutation) Fields

func (m *ReleasePolicyViolationMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleasePolicyViolationMutation) GetType

GetType returns the value of the "type" field in the mutation.

func (*ReleasePolicyViolationMutation) ID

func (m *ReleasePolicyViolationMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleasePolicyViolationMutation) Message

func (m *ReleasePolicyViolationMutation) Message() (r string, exists bool)

Message returns the value of the "message" field in the mutation.

func (*ReleasePolicyViolationMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleasePolicyViolationMutation) OldMessage

func (m *ReleasePolicyViolationMutation) OldMessage(ctx context.Context) (v string, err error)

OldMessage returns the old "message" field's value of the ReleasePolicyViolation entity. If the ReleasePolicyViolation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleasePolicyViolationMutation) OldSeverity

OldSeverity returns the old "severity" field's value of the ReleasePolicyViolation entity. If the ReleasePolicyViolation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleasePolicyViolationMutation) OldType

OldType returns the old "type" field's value of the ReleasePolicyViolation entity. If the ReleasePolicyViolation object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*ReleasePolicyViolationMutation) Op

Op returns the operation name.

func (*ReleasePolicyViolationMutation) PolicyCleared

func (m *ReleasePolicyViolationMutation) PolicyCleared() bool

PolicyCleared reports if the "policy" edge to the ReleasePolicy entity was cleared.

func (*ReleasePolicyViolationMutation) PolicyID

func (m *ReleasePolicyViolationMutation) PolicyID() (id int, exists bool)

PolicyID returns the "policy" edge ID in the mutation.

func (*ReleasePolicyViolationMutation) PolicyIDs

func (m *ReleasePolicyViolationMutation) PolicyIDs() (ids []int)

PolicyIDs returns the "policy" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use PolicyID instead. It exists only for internal usage by the builders.

func (*ReleasePolicyViolationMutation) ReleaseCleared

func (m *ReleasePolicyViolationMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*ReleasePolicyViolationMutation) ReleaseID

func (m *ReleasePolicyViolationMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*ReleasePolicyViolationMutation) ReleaseIDs

func (m *ReleasePolicyViolationMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*ReleasePolicyViolationMutation) RemovedEdges

func (m *ReleasePolicyViolationMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleasePolicyViolationMutation) RemovedIDs

func (m *ReleasePolicyViolationMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleasePolicyViolationMutation) ResetEdge

func (m *ReleasePolicyViolationMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleasePolicyViolationMutation) ResetField

func (m *ReleasePolicyViolationMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleasePolicyViolationMutation) ResetMessage

func (m *ReleasePolicyViolationMutation) ResetMessage()

ResetMessage resets all changes to the "message" field.

func (*ReleasePolicyViolationMutation) ResetPolicy

func (m *ReleasePolicyViolationMutation) ResetPolicy()

ResetPolicy resets all changes to the "policy" edge.

func (*ReleasePolicyViolationMutation) ResetRelease

func (m *ReleasePolicyViolationMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*ReleasePolicyViolationMutation) ResetSeverity

func (m *ReleasePolicyViolationMutation) ResetSeverity()

ResetSeverity resets all changes to the "severity" field.

func (*ReleasePolicyViolationMutation) ResetType

func (m *ReleasePolicyViolationMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*ReleasePolicyViolationMutation) SetField

func (m *ReleasePolicyViolationMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleasePolicyViolationMutation) SetMessage

func (m *ReleasePolicyViolationMutation) SetMessage(s string)

SetMessage sets the "message" field.

func (*ReleasePolicyViolationMutation) SetModelCreate

func (*ReleasePolicyViolationMutation) SetModelUpdate

func (*ReleasePolicyViolationMutation) SetPolicyID

func (m *ReleasePolicyViolationMutation) SetPolicyID(id int)

SetPolicyID sets the "policy" edge to the ReleasePolicy entity by id.

func (*ReleasePolicyViolationMutation) SetReleaseID

func (m *ReleasePolicyViolationMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*ReleasePolicyViolationMutation) SetSeverity

SetSeverity sets the "severity" field.

func (*ReleasePolicyViolationMutation) SetType

SetType sets the "type" field.

func (*ReleasePolicyViolationMutation) Severity

Severity returns the value of the "severity" field in the mutation.

func (ReleasePolicyViolationMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleasePolicyViolationMutation) Type

Type returns the node type of this mutation (ReleasePolicyViolation).

func (*ReleasePolicyViolationMutation) Where

Where appends a list predicates to the ReleasePolicyViolationMutation builder.

type ReleasePolicyViolationOrder

type ReleasePolicyViolationOrder struct {
	Direction OrderDirection                    `json:"direction"`
	Field     *ReleasePolicyViolationOrderField `json:"field"`
}

ReleasePolicyViolationOrder defines the ordering of ReleasePolicyViolation.

type ReleasePolicyViolationOrderField

type ReleasePolicyViolationOrderField struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationOrderField defines the ordering field of ReleasePolicyViolation.

type ReleasePolicyViolationPaginateOption

type ReleasePolicyViolationPaginateOption func(*releasePolicyViolationPager) error

ReleasePolicyViolationPaginateOption enables pagination customization.

func WithReleasePolicyViolationFilter

WithReleasePolicyViolationFilter configures pagination filter.

func WithReleasePolicyViolationOrder

func WithReleasePolicyViolationOrder(order *ReleasePolicyViolationOrder) ReleasePolicyViolationPaginateOption

WithReleasePolicyViolationOrder configures pagination ordering.

type ReleasePolicyViolationQuery

type ReleasePolicyViolationQuery struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationQuery is the builder for querying ReleasePolicyViolation entities.

func (*ReleasePolicyViolationQuery) All

All executes the query and returns a list of ReleasePolicyViolations.

func (*ReleasePolicyViolationQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) Clone

Clone returns a duplicate of the ReleasePolicyViolationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleasePolicyViolationQuery) CollectFields

func (rpv *ReleasePolicyViolationQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleasePolicyViolationQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleasePolicyViolationQuery) Count

func (rpvq *ReleasePolicyViolationQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleasePolicyViolationQuery) CountX

func (rpvq *ReleasePolicyViolationQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) Exist

Exist returns true if the query has elements in the graph.

func (*ReleasePolicyViolationQuery) ExistX

func (rpvq *ReleasePolicyViolationQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) Filter

func (*ReleasePolicyViolationQuery) First

First returns the first ReleasePolicyViolation entity from the query. Returns a *NotFoundError when no ReleasePolicyViolation was found.

func (*ReleasePolicyViolationQuery) FirstID

func (rpvq *ReleasePolicyViolationQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReleasePolicyViolation ID from the query. Returns a *NotFoundError when no ReleasePolicyViolation ID was found.

func (*ReleasePolicyViolationQuery) FirstIDX

func (rpvq *ReleasePolicyViolationQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) GroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Message string `json:"message,omitempty"`
	Count int `json:"count,omitempty"`
}

client.ReleasePolicyViolation.Query().
	GroupBy(releasepolicyviolation.FieldMessage).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReleasePolicyViolationQuery) IDs

func (rpvq *ReleasePolicyViolationQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of ReleasePolicyViolation IDs.

func (*ReleasePolicyViolationQuery) IDsX

func (rpvq *ReleasePolicyViolationQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) Limit

Limit adds a limit step to the query.

func (*ReleasePolicyViolationQuery) Offset

Offset adds an offset step to the query.

func (*ReleasePolicyViolationQuery) Only

Only returns a single ReleasePolicyViolation entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one ReleasePolicyViolation entity is not found. Returns a *NotFoundError when no ReleasePolicyViolation entities are found.

func (*ReleasePolicyViolationQuery) OnlyID

func (rpvq *ReleasePolicyViolationQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReleasePolicyViolation ID in the query. Returns a *NotSingularError when exactly one ReleasePolicyViolation ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleasePolicyViolationQuery) OnlyIDX

func (rpvq *ReleasePolicyViolationQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ReleasePolicyViolationQuery) Order

Order adds an order step to the query.

func (*ReleasePolicyViolationQuery) Paginate

Paginate executes the query and returns a relay based cursor connection to ReleasePolicyViolation.

func (*ReleasePolicyViolationQuery) QueryPolicy

func (rpvq *ReleasePolicyViolationQuery) QueryPolicy() *ReleasePolicyQuery

QueryPolicy chains the current query on the "policy" edge.

func (*ReleasePolicyViolationQuery) QueryRelease

func (rpvq *ReleasePolicyViolationQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*ReleasePolicyViolationQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Message string `json:"message,omitempty"`
}

client.ReleasePolicyViolation.Query().
	Select(releasepolicyviolation.FieldMessage).
	Scan(ctx, &v)

func (*ReleasePolicyViolationQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleasePolicyViolationQuery) Where

Where adds a new predicate for the ReleasePolicyViolationQuery builder.

func (*ReleasePolicyViolationQuery) WhereInput

func (*ReleasePolicyViolationQuery) WithPolicy

WithPolicy tells the query-builder to eager-load the nodes that are connected to the "policy" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleasePolicyViolationQuery) WithRelease

func (rpvq *ReleasePolicyViolationQuery) WithRelease(opts ...func(*ReleaseQuery)) *ReleasePolicyViolationQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

type ReleasePolicyViolationSelect

type ReleasePolicyViolationSelect struct {
	*ReleasePolicyViolationQuery
	// contains filtered or unexported fields
}

ReleasePolicyViolationSelect is the builder for selecting fields of ReleasePolicyViolation entities.

func (*ReleasePolicyViolationSelect) Bool

func (rpvs *ReleasePolicyViolationSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) BoolX

BoolX is like Bool, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Bools

func (rpvs *ReleasePolicyViolationSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) BoolsX

func (rpvs *ReleasePolicyViolationSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Float64

func (rpvs *ReleasePolicyViolationSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) Float64X

Float64X is like Float64, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Float64s

func (rpvs *ReleasePolicyViolationSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) Float64sX

func (rpvs *ReleasePolicyViolationSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Int

func (rpvs *ReleasePolicyViolationSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) IntX

IntX is like Int, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Ints

func (rpvs *ReleasePolicyViolationSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) IntsX

func (rpvs *ReleasePolicyViolationSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Scan

func (rpvs *ReleasePolicyViolationSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleasePolicyViolationSelect) ScanX

func (rpvs *ReleasePolicyViolationSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) String

func (rpvs *ReleasePolicyViolationSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) StringX

StringX is like String, but panics if an error occurs.

func (*ReleasePolicyViolationSelect) Strings

func (rpvs *ReleasePolicyViolationSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleasePolicyViolationSelect) StringsX

func (rpvs *ReleasePolicyViolationSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleasePolicyViolationUpdate

type ReleasePolicyViolationUpdate struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationUpdate is the builder for updating ReleasePolicyViolation entities.

func (*ReleasePolicyViolationUpdate) ClearPolicy

ClearPolicy clears the "policy" edge to the ReleasePolicy entity.

func (*ReleasePolicyViolationUpdate) ClearRelease

ClearRelease clears the "release" edge to the Release entity.

func (*ReleasePolicyViolationUpdate) Exec

Exec executes the query.

func (*ReleasePolicyViolationUpdate) ExecX

func (rpvu *ReleasePolicyViolationUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyViolationUpdate) Mutation

Mutation returns the ReleasePolicyViolationMutation object of the builder.

func (*ReleasePolicyViolationUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleasePolicyViolationUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleasePolicyViolationUpdate) SetMessage

SetMessage sets the "message" field.

func (*ReleasePolicyViolationUpdate) SetPolicy

SetPolicy sets the "policy" edge to the ReleasePolicy entity.

func (*ReleasePolicyViolationUpdate) SetPolicyID

SetPolicyID sets the "policy" edge to the ReleasePolicy entity by ID.

func (*ReleasePolicyViolationUpdate) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleasePolicyViolationUpdate) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleasePolicyViolationUpdate) SetSeverity

SetSeverity sets the "severity" field.

func (*ReleasePolicyViolationUpdate) SetType

SetType sets the "type" field.

func (*ReleasePolicyViolationUpdate) Where

Where appends a list predicates to the ReleasePolicyViolationUpdate builder.

type ReleasePolicyViolationUpdateOne

type ReleasePolicyViolationUpdateOne struct {
	// contains filtered or unexported fields
}

ReleasePolicyViolationUpdateOne is the builder for updating a single ReleasePolicyViolation entity.

func (*ReleasePolicyViolationUpdateOne) ClearPolicy

ClearPolicy clears the "policy" edge to the ReleasePolicy entity.

func (*ReleasePolicyViolationUpdateOne) ClearRelease

ClearRelease clears the "release" edge to the Release entity.

func (*ReleasePolicyViolationUpdateOne) Exec

Exec executes the query on the entity.

func (*ReleasePolicyViolationUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReleasePolicyViolationUpdateOne) Mutation

Mutation returns the ReleasePolicyViolationMutation object of the builder.

func (*ReleasePolicyViolationUpdateOne) Save

Save executes the query and returns the updated ReleasePolicyViolation entity.

func (*ReleasePolicyViolationUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleasePolicyViolationUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleasePolicyViolationUpdateOne) SetMessage

SetMessage sets the "message" field.

func (*ReleasePolicyViolationUpdateOne) SetModelCreate

func (*ReleasePolicyViolationUpdateOne) SetModelUpdate

func (*ReleasePolicyViolationUpdateOne) SetPolicy

SetPolicy sets the "policy" edge to the ReleasePolicy entity.

func (*ReleasePolicyViolationUpdateOne) SetPolicyID

SetPolicyID sets the "policy" edge to the ReleasePolicy entity by ID.

func (*ReleasePolicyViolationUpdateOne) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleasePolicyViolationUpdateOne) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleasePolicyViolationUpdateOne) SetSeverity

SetSeverity sets the "severity" field.

func (*ReleasePolicyViolationUpdateOne) SetType

SetType sets the "type" field.

type ReleasePolicyViolationWhereInput

type ReleasePolicyViolationWhereInput struct {
	Not *ReleasePolicyViolationWhereInput   `json:"not,omitempty"`
	Or  []*ReleasePolicyViolationWhereInput `json:"or,omitempty"`
	And []*ReleasePolicyViolationWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "message" field predicates.
	Message             *string  `json:"message,omitempty"`
	MessageNEQ          *string  `json:"messageNEQ,omitempty"`
	MessageIn           []string `json:"messageIn,omitempty"`
	MessageNotIn        []string `json:"messageNotIn,omitempty"`
	MessageGT           *string  `json:"messageGT,omitempty"`
	MessageGTE          *string  `json:"messageGTE,omitempty"`
	MessageLT           *string  `json:"messageLT,omitempty"`
	MessageLTE          *string  `json:"messageLTE,omitempty"`
	MessageContains     *string  `json:"messageContains,omitempty"`
	MessageHasPrefix    *string  `json:"messageHasPrefix,omitempty"`
	MessageHasSuffix    *string  `json:"messageHasSuffix,omitempty"`
	MessageEqualFold    *string  `json:"messageEqualFold,omitempty"`
	MessageContainsFold *string  `json:"messageContainsFold,omitempty"`

	// "type" field predicates.
	Type      *releasepolicyviolation.Type  `json:"type,omitempty"`
	TypeNEQ   *releasepolicyviolation.Type  `json:"typeNEQ,omitempty"`
	TypeIn    []releasepolicyviolation.Type `json:"typeIn,omitempty"`
	TypeNotIn []releasepolicyviolation.Type `json:"typeNotIn,omitempty"`

	// "severity" field predicates.
	Severity      *releasepolicyviolation.Severity  `json:"severity,omitempty"`
	SeverityNEQ   *releasepolicyviolation.Severity  `json:"severityNEQ,omitempty"`
	SeverityIn    []releasepolicyviolation.Severity `json:"severityIn,omitempty"`
	SeverityNotIn []releasepolicyviolation.Severity `json:"severityNotIn,omitempty"`

	// "policy" edge predicates.
	HasPolicy     *bool                      `json:"hasPolicy,omitempty"`
	HasPolicyWith []*ReleasePolicyWhereInput `json:"hasPolicyWith,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`
}

ReleasePolicyViolationWhereInput represents a where input for filtering ReleasePolicyViolation queries.

func (*ReleasePolicyViolationWhereInput) Filter

Filter applies the ReleasePolicyViolationWhereInput filter on the ReleasePolicyViolationQuery builder.

func (*ReleasePolicyViolationWhereInput) P

P returns a predicate for filtering releasepolicyviolations. An error is returned if the input is empty or invalid.

type ReleasePolicyViolations

type ReleasePolicyViolations []*ReleasePolicyViolation

ReleasePolicyViolations is a parsable slice of ReleasePolicyViolation.

type ReleasePolicyWhereInput

type ReleasePolicyWhereInput struct {
	Not *ReleasePolicyWhereInput   `json:"not,omitempty"`
	Or  []*ReleasePolicyWhereInput `json:"or,omitempty"`
	And []*ReleasePolicyWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "module" field predicates.
	Module             *string  `json:"module,omitempty"`
	ModuleNEQ          *string  `json:"moduleNEQ,omitempty"`
	ModuleIn           []string `json:"moduleIn,omitempty"`
	ModuleNotIn        []string `json:"moduleNotIn,omitempty"`
	ModuleGT           *string  `json:"moduleGT,omitempty"`
	ModuleGTE          *string  `json:"moduleGTE,omitempty"`
	ModuleLT           *string  `json:"moduleLT,omitempty"`
	ModuleLTE          *string  `json:"moduleLTE,omitempty"`
	ModuleContains     *string  `json:"moduleContains,omitempty"`
	ModuleHasPrefix    *string  `json:"moduleHasPrefix,omitempty"`
	ModuleHasSuffix    *string  `json:"moduleHasSuffix,omitempty"`
	ModuleEqualFold    *string  `json:"moduleEqualFold,omitempty"`
	ModuleContainsFold *string  `json:"moduleContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`

	// "projects" edge predicates.
	HasProjects     *bool                `json:"hasProjects,omitempty"`
	HasProjectsWith []*ProjectWhereInput `json:"hasProjectsWith,omitempty"`

	// "repos" edge predicates.
	HasRepos     *bool             `json:"hasRepos,omitempty"`
	HasReposWith []*RepoWhereInput `json:"hasReposWith,omitempty"`

	// "violations" edge predicates.
	HasViolations     *bool                               `json:"hasViolations,omitempty"`
	HasViolationsWith []*ReleasePolicyViolationWhereInput `json:"hasViolationsWith,omitempty"`
}

ReleasePolicyWhereInput represents a where input for filtering ReleasePolicy queries.

func (*ReleasePolicyWhereInput) Filter

Filter applies the ReleasePolicyWhereInput filter on the ReleasePolicyQuery builder.

func (*ReleasePolicyWhereInput) P

P returns a predicate for filtering releasepolicies. An error is returned if the input is empty or invalid.

type ReleaseQuery

type ReleaseQuery struct {
	// contains filtered or unexported fields
}

ReleaseQuery is the builder for querying Release entities.

func (*ReleaseQuery) All

func (rq *ReleaseQuery) All(ctx context.Context) ([]*Release, error)

All executes the query and returns a list of Releases.

func (*ReleaseQuery) AllX

func (rq *ReleaseQuery) AllX(ctx context.Context) []*Release

AllX is like All, but panics if an error occurs.

func (*ReleaseQuery) Clone

func (rq *ReleaseQuery) Clone() *ReleaseQuery

Clone returns a duplicate of the ReleaseQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleaseQuery) CollectFields

func (r *ReleaseQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleaseQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleaseQuery) Count

func (rq *ReleaseQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleaseQuery) CountX

func (rq *ReleaseQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleaseQuery) Exist

func (rq *ReleaseQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReleaseQuery) ExistX

func (rq *ReleaseQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleaseQuery) Filter

func (r *ReleaseQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *ReleaseOrder, where *ReleaseWhereInput,
) ([]*Release, error)

func (*ReleaseQuery) First

func (rq *ReleaseQuery) First(ctx context.Context) (*Release, error)

First returns the first Release entity from the query. Returns a *NotFoundError when no Release was found.

func (*ReleaseQuery) FirstID

func (rq *ReleaseQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Release ID from the query. Returns a *NotFoundError when no Release ID was found.

func (*ReleaseQuery) FirstIDX

func (rq *ReleaseQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleaseQuery) FirstX

func (rq *ReleaseQuery) FirstX(ctx context.Context) *Release

FirstX is like First, but panics if an error occurs.

func (*ReleaseQuery) GroupBy

func (rq *ReleaseQuery) GroupBy(field string, fields ...string) *ReleaseGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Release.Query().
	GroupBy(release.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*ReleaseQuery) IDs

func (rq *ReleaseQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Release IDs.

func (*ReleaseQuery) IDsX

func (rq *ReleaseQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleaseQuery) Limit

func (rq *ReleaseQuery) Limit(limit int) *ReleaseQuery

Limit adds a limit step to the query.

func (*ReleaseQuery) Offset

func (rq *ReleaseQuery) Offset(offset int) *ReleaseQuery

Offset adds an offset step to the query.

func (*ReleaseQuery) Only

func (rq *ReleaseQuery) Only(ctx context.Context) (*Release, error)

Only returns a single Release entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Release entity is not found. Returns a *NotFoundError when no Release entities are found.

func (*ReleaseQuery) OnlyID

func (rq *ReleaseQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Release ID in the query. Returns a *NotSingularError when exactly one Release ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleaseQuery) OnlyIDX

func (rq *ReleaseQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleaseQuery) OnlyX

func (rq *ReleaseQuery) OnlyX(ctx context.Context) *Release

OnlyX is like Only, but panics if an error occurs.

func (*ReleaseQuery) Order

func (rq *ReleaseQuery) Order(o ...OrderFunc) *ReleaseQuery

Order adds an order step to the query.

func (*ReleaseQuery) Paginate

func (r *ReleaseQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ReleasePaginateOption,
) (*ReleaseConnection, error)

Paginate executes the query and returns a relay based cursor connection to Release.

func (*ReleaseQuery) QueryArtifacts

func (rq *ReleaseQuery) QueryArtifacts() *ArtifactQuery

QueryArtifacts chains the current query on the "artifacts" edge.

func (*ReleaseQuery) QueryCodeScans

func (rq *ReleaseQuery) QueryCodeScans() *CodeScanQuery

QueryCodeScans chains the current query on the "code_scans" edge.

func (*ReleaseQuery) QueryCommit

func (rq *ReleaseQuery) QueryCommit() *GitCommitQuery

QueryCommit chains the current query on the "commit" edge.

func (*ReleaseQuery) QueryComponents

func (rq *ReleaseQuery) QueryComponents() *ReleaseComponentQuery

QueryComponents chains the current query on the "components" edge.

func (*ReleaseQuery) QueryDependencies

func (rq *ReleaseQuery) QueryDependencies() *ReleaseQuery

QueryDependencies chains the current query on the "dependencies" edge.

func (*ReleaseQuery) QueryHeadOf

func (rq *ReleaseQuery) QueryHeadOf() *RepoQuery

QueryHeadOf chains the current query on the "head_of" edge.

func (*ReleaseQuery) QueryLicenses

func (rq *ReleaseQuery) QueryLicenses() *ReleaseLicenseQuery

QueryLicenses chains the current query on the "licenses" edge.

func (*ReleaseQuery) QueryLog

func (rq *ReleaseQuery) QueryLog() *ReleaseEntryQuery

QueryLog chains the current query on the "log" edge.

func (*ReleaseQuery) QuerySubreleases

func (rq *ReleaseQuery) QuerySubreleases() *ReleaseQuery

QuerySubreleases chains the current query on the "subreleases" edge.

func (*ReleaseQuery) QueryTestRuns

func (rq *ReleaseQuery) QueryTestRuns() *TestRunQuery

QueryTestRuns chains the current query on the "test_runs" edge.

func (*ReleaseQuery) QueryViolations

func (rq *ReleaseQuery) QueryViolations() *ReleasePolicyViolationQuery

QueryViolations chains the current query on the "violations" edge.

func (*ReleaseQuery) QueryVulnerabilities

func (rq *ReleaseQuery) QueryVulnerabilities() *ReleaseVulnerabilityQuery

QueryVulnerabilities chains the current query on the "vulnerabilities" edge.

func (*ReleaseQuery) QueryVulnerabilityReviews

func (rq *ReleaseQuery) QueryVulnerabilityReviews() *VulnerabilityReviewQuery

QueryVulnerabilityReviews chains the current query on the "vulnerability_reviews" edge.

func (*ReleaseQuery) Select

func (rq *ReleaseQuery) Select(fields ...string) *ReleaseSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Release.Query().
	Select(release.FieldName).
	Scan(ctx, &v)

func (*ReleaseQuery) Unique

func (rq *ReleaseQuery) Unique(unique bool) *ReleaseQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleaseQuery) Where

func (rq *ReleaseQuery) Where(ps ...predicate.Release) *ReleaseQuery

Where adds a new predicate for the ReleaseQuery builder.

func (*ReleaseQuery) WhereInput

func (r *ReleaseQuery) WhereInput(input *ReleaseWhereInput) *ReleaseQuery

func (*ReleaseQuery) WithArtifacts

func (rq *ReleaseQuery) WithArtifacts(opts ...func(*ArtifactQuery)) *ReleaseQuery

WithArtifacts tells the query-builder to eager-load the nodes that are connected to the "artifacts" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithCodeScans

func (rq *ReleaseQuery) WithCodeScans(opts ...func(*CodeScanQuery)) *ReleaseQuery

WithCodeScans tells the query-builder to eager-load the nodes that are connected to the "code_scans" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithCommit

func (rq *ReleaseQuery) WithCommit(opts ...func(*GitCommitQuery)) *ReleaseQuery

WithCommit tells the query-builder to eager-load the nodes that are connected to the "commit" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithComponents

func (rq *ReleaseQuery) WithComponents(opts ...func(*ReleaseComponentQuery)) *ReleaseQuery

WithComponents tells the query-builder to eager-load the nodes that are connected to the "components" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithDependencies

func (rq *ReleaseQuery) WithDependencies(opts ...func(*ReleaseQuery)) *ReleaseQuery

WithDependencies tells the query-builder to eager-load the nodes that are connected to the "dependencies" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithHeadOf

func (rq *ReleaseQuery) WithHeadOf(opts ...func(*RepoQuery)) *ReleaseQuery

WithHeadOf tells the query-builder to eager-load the nodes that are connected to the "head_of" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithLicenses

func (rq *ReleaseQuery) WithLicenses(opts ...func(*ReleaseLicenseQuery)) *ReleaseQuery

WithLicenses tells the query-builder to eager-load the nodes that are connected to the "licenses" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithLog

func (rq *ReleaseQuery) WithLog(opts ...func(*ReleaseEntryQuery)) *ReleaseQuery

WithLog tells the query-builder to eager-load the nodes that are connected to the "log" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithSubreleases

func (rq *ReleaseQuery) WithSubreleases(opts ...func(*ReleaseQuery)) *ReleaseQuery

WithSubreleases tells the query-builder to eager-load the nodes that are connected to the "subreleases" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithTestRuns

func (rq *ReleaseQuery) WithTestRuns(opts ...func(*TestRunQuery)) *ReleaseQuery

WithTestRuns tells the query-builder to eager-load the nodes that are connected to the "test_runs" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithViolations

func (rq *ReleaseQuery) WithViolations(opts ...func(*ReleasePolicyViolationQuery)) *ReleaseQuery

WithViolations tells the query-builder to eager-load the nodes that are connected to the "violations" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithVulnerabilities

func (rq *ReleaseQuery) WithVulnerabilities(opts ...func(*ReleaseVulnerabilityQuery)) *ReleaseQuery

WithVulnerabilities tells the query-builder to eager-load the nodes that are connected to the "vulnerabilities" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseQuery) WithVulnerabilityReviews

func (rq *ReleaseQuery) WithVulnerabilityReviews(opts ...func(*VulnerabilityReviewQuery)) *ReleaseQuery

WithVulnerabilityReviews tells the query-builder to eager-load the nodes that are connected to the "vulnerability_reviews" edge. The optional arguments are used to configure the query builder of the edge.

type ReleaseSelect

type ReleaseSelect struct {
	*ReleaseQuery
	// contains filtered or unexported fields
}

ReleaseSelect is the builder for selecting fields of Release entities.

func (*ReleaseSelect) Bool

func (rs *ReleaseSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) BoolX

func (rs *ReleaseSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseSelect) Bools

func (rs *ReleaseSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) BoolsX

func (rs *ReleaseSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseSelect) Float64

func (rs *ReleaseSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) Float64X

func (rs *ReleaseSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseSelect) Float64s

func (rs *ReleaseSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) Float64sX

func (rs *ReleaseSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseSelect) Int

func (rs *ReleaseSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) IntX

func (rs *ReleaseSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*ReleaseSelect) Ints

func (rs *ReleaseSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) IntsX

func (rs *ReleaseSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseSelect) Scan

func (rs *ReleaseSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleaseSelect) ScanX

func (rs *ReleaseSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseSelect) String

func (rs *ReleaseSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) StringX

func (rs *ReleaseSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*ReleaseSelect) Strings

func (rs *ReleaseSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleaseSelect) StringsX

func (rs *ReleaseSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseUpdate

type ReleaseUpdate struct {
	// contains filtered or unexported fields
}

ReleaseUpdate is the builder for updating Release entities.

func (*ReleaseUpdate) AddArtifactIDs

func (ru *ReleaseUpdate) AddArtifactIDs(ids ...int) *ReleaseUpdate

AddArtifactIDs adds the "artifacts" edge to the Artifact entity by IDs.

func (*ReleaseUpdate) AddArtifacts

func (ru *ReleaseUpdate) AddArtifacts(a ...*Artifact) *ReleaseUpdate

AddArtifacts adds the "artifacts" edges to the Artifact entity.

func (*ReleaseUpdate) AddCodeScanIDs

func (ru *ReleaseUpdate) AddCodeScanIDs(ids ...int) *ReleaseUpdate

AddCodeScanIDs adds the "code_scans" edge to the CodeScan entity by IDs.

func (*ReleaseUpdate) AddCodeScans

func (ru *ReleaseUpdate) AddCodeScans(c ...*CodeScan) *ReleaseUpdate

AddCodeScans adds the "code_scans" edges to the CodeScan entity.

func (*ReleaseUpdate) AddComponentIDs

func (ru *ReleaseUpdate) AddComponentIDs(ids ...int) *ReleaseUpdate

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by IDs.

func (*ReleaseUpdate) AddComponents

func (ru *ReleaseUpdate) AddComponents(r ...*ReleaseComponent) *ReleaseUpdate

AddComponents adds the "components" edges to the ReleaseComponent entity.

func (*ReleaseUpdate) AddDependencies

func (ru *ReleaseUpdate) AddDependencies(r ...*Release) *ReleaseUpdate

AddDependencies adds the "dependencies" edges to the Release entity.

func (*ReleaseUpdate) AddDependencyIDs

func (ru *ReleaseUpdate) AddDependencyIDs(ids ...int) *ReleaseUpdate

AddDependencyIDs adds the "dependencies" edge to the Release entity by IDs.

func (*ReleaseUpdate) AddLicenseIDs

func (ru *ReleaseUpdate) AddLicenseIDs(ids ...int) *ReleaseUpdate

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseUpdate) AddLicenses

func (ru *ReleaseUpdate) AddLicenses(r ...*ReleaseLicense) *ReleaseUpdate

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*ReleaseUpdate) AddLog

func (ru *ReleaseUpdate) AddLog(r ...*ReleaseEntry) *ReleaseUpdate

AddLog adds the "log" edges to the ReleaseEntry entity.

func (*ReleaseUpdate) AddLogIDs

func (ru *ReleaseUpdate) AddLogIDs(ids ...int) *ReleaseUpdate

AddLogIDs adds the "log" edge to the ReleaseEntry entity by IDs.

func (*ReleaseUpdate) AddSubreleaseIDs

func (ru *ReleaseUpdate) AddSubreleaseIDs(ids ...int) *ReleaseUpdate

AddSubreleaseIDs adds the "subreleases" edge to the Release entity by IDs.

func (*ReleaseUpdate) AddSubreleases

func (ru *ReleaseUpdate) AddSubreleases(r ...*Release) *ReleaseUpdate

AddSubreleases adds the "subreleases" edges to the Release entity.

func (*ReleaseUpdate) AddTestRunIDs

func (ru *ReleaseUpdate) AddTestRunIDs(ids ...int) *ReleaseUpdate

AddTestRunIDs adds the "test_runs" edge to the TestRun entity by IDs.

func (*ReleaseUpdate) AddTestRuns

func (ru *ReleaseUpdate) AddTestRuns(t ...*TestRun) *ReleaseUpdate

AddTestRuns adds the "test_runs" edges to the TestRun entity.

func (*ReleaseUpdate) AddViolationIDs

func (ru *ReleaseUpdate) AddViolationIDs(ids ...int) *ReleaseUpdate

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleaseUpdate) AddViolations

func (ru *ReleaseUpdate) AddViolations(r ...*ReleasePolicyViolation) *ReleaseUpdate

AddViolations adds the "violations" edges to the ReleasePolicyViolation entity.

func (*ReleaseUpdate) AddVulnerabilities

func (ru *ReleaseUpdate) AddVulnerabilities(r ...*ReleaseVulnerability) *ReleaseUpdate

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseUpdate) AddVulnerabilityIDs

func (ru *ReleaseUpdate) AddVulnerabilityIDs(ids ...int) *ReleaseUpdate

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseUpdate) AddVulnerabilityReviewIDs

func (ru *ReleaseUpdate) AddVulnerabilityReviewIDs(ids ...int) *ReleaseUpdate

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseUpdate) AddVulnerabilityReviews

func (ru *ReleaseUpdate) AddVulnerabilityReviews(v ...*VulnerabilityReview) *ReleaseUpdate

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ReleaseUpdate) ClearArtifacts

func (ru *ReleaseUpdate) ClearArtifacts() *ReleaseUpdate

ClearArtifacts clears all "artifacts" edges to the Artifact entity.

func (*ReleaseUpdate) ClearCodeScans

func (ru *ReleaseUpdate) ClearCodeScans() *ReleaseUpdate

ClearCodeScans clears all "code_scans" edges to the CodeScan entity.

func (*ReleaseUpdate) ClearCommit

func (ru *ReleaseUpdate) ClearCommit() *ReleaseUpdate

ClearCommit clears the "commit" edge to the GitCommit entity.

func (*ReleaseUpdate) ClearComponents

func (ru *ReleaseUpdate) ClearComponents() *ReleaseUpdate

ClearComponents clears all "components" edges to the ReleaseComponent entity.

func (*ReleaseUpdate) ClearDependencies

func (ru *ReleaseUpdate) ClearDependencies() *ReleaseUpdate

ClearDependencies clears all "dependencies" edges to the Release entity.

func (*ReleaseUpdate) ClearHeadOf

func (ru *ReleaseUpdate) ClearHeadOf() *ReleaseUpdate

ClearHeadOf clears the "head_of" edge to the Repo entity.

func (*ReleaseUpdate) ClearLabels

func (ru *ReleaseUpdate) ClearLabels() *ReleaseUpdate

ClearLabels clears the value of the "labels" field.

func (*ReleaseUpdate) ClearLicenses

func (ru *ReleaseUpdate) ClearLicenses() *ReleaseUpdate

ClearLicenses clears all "licenses" edges to the ReleaseLicense entity.

func (*ReleaseUpdate) ClearLog

func (ru *ReleaseUpdate) ClearLog() *ReleaseUpdate

ClearLog clears all "log" edges to the ReleaseEntry entity.

func (*ReleaseUpdate) ClearSubreleases

func (ru *ReleaseUpdate) ClearSubreleases() *ReleaseUpdate

ClearSubreleases clears all "subreleases" edges to the Release entity.

func (*ReleaseUpdate) ClearTestRuns

func (ru *ReleaseUpdate) ClearTestRuns() *ReleaseUpdate

ClearTestRuns clears all "test_runs" edges to the TestRun entity.

func (*ReleaseUpdate) ClearViolations

func (ru *ReleaseUpdate) ClearViolations() *ReleaseUpdate

ClearViolations clears all "violations" edges to the ReleasePolicyViolation entity.

func (*ReleaseUpdate) ClearVulnerabilities

func (ru *ReleaseUpdate) ClearVulnerabilities() *ReleaseUpdate

ClearVulnerabilities clears all "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseUpdate) ClearVulnerabilityReviews

func (ru *ReleaseUpdate) ClearVulnerabilityReviews() *ReleaseUpdate

ClearVulnerabilityReviews clears all "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ReleaseUpdate) Exec

func (ru *ReleaseUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*ReleaseUpdate) ExecX

func (ru *ReleaseUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseUpdate) Mutation

func (ru *ReleaseUpdate) Mutation() *ReleaseMutation

Mutation returns the ReleaseMutation object of the builder.

func (*ReleaseUpdate) RemoveArtifactIDs

func (ru *ReleaseUpdate) RemoveArtifactIDs(ids ...int) *ReleaseUpdate

RemoveArtifactIDs removes the "artifacts" edge to Artifact entities by IDs.

func (*ReleaseUpdate) RemoveArtifacts

func (ru *ReleaseUpdate) RemoveArtifacts(a ...*Artifact) *ReleaseUpdate

RemoveArtifacts removes "artifacts" edges to Artifact entities.

func (*ReleaseUpdate) RemoveCodeScanIDs

func (ru *ReleaseUpdate) RemoveCodeScanIDs(ids ...int) *ReleaseUpdate

RemoveCodeScanIDs removes the "code_scans" edge to CodeScan entities by IDs.

func (*ReleaseUpdate) RemoveCodeScans

func (ru *ReleaseUpdate) RemoveCodeScans(c ...*CodeScan) *ReleaseUpdate

RemoveCodeScans removes "code_scans" edges to CodeScan entities.

func (*ReleaseUpdate) RemoveComponentIDs

func (ru *ReleaseUpdate) RemoveComponentIDs(ids ...int) *ReleaseUpdate

RemoveComponentIDs removes the "components" edge to ReleaseComponent entities by IDs.

func (*ReleaseUpdate) RemoveComponents

func (ru *ReleaseUpdate) RemoveComponents(r ...*ReleaseComponent) *ReleaseUpdate

RemoveComponents removes "components" edges to ReleaseComponent entities.

func (*ReleaseUpdate) RemoveDependencies

func (ru *ReleaseUpdate) RemoveDependencies(r ...*Release) *ReleaseUpdate

RemoveDependencies removes "dependencies" edges to Release entities.

func (*ReleaseUpdate) RemoveDependencyIDs

func (ru *ReleaseUpdate) RemoveDependencyIDs(ids ...int) *ReleaseUpdate

RemoveDependencyIDs removes the "dependencies" edge to Release entities by IDs.

func (*ReleaseUpdate) RemoveLicenseIDs

func (ru *ReleaseUpdate) RemoveLicenseIDs(ids ...int) *ReleaseUpdate

RemoveLicenseIDs removes the "licenses" edge to ReleaseLicense entities by IDs.

func (*ReleaseUpdate) RemoveLicenses

func (ru *ReleaseUpdate) RemoveLicenses(r ...*ReleaseLicense) *ReleaseUpdate

RemoveLicenses removes "licenses" edges to ReleaseLicense entities.

func (*ReleaseUpdate) RemoveLog

func (ru *ReleaseUpdate) RemoveLog(r ...*ReleaseEntry) *ReleaseUpdate

RemoveLog removes "log" edges to ReleaseEntry entities.

func (*ReleaseUpdate) RemoveLogIDs

func (ru *ReleaseUpdate) RemoveLogIDs(ids ...int) *ReleaseUpdate

RemoveLogIDs removes the "log" edge to ReleaseEntry entities by IDs.

func (*ReleaseUpdate) RemoveSubreleaseIDs

func (ru *ReleaseUpdate) RemoveSubreleaseIDs(ids ...int) *ReleaseUpdate

RemoveSubreleaseIDs removes the "subreleases" edge to Release entities by IDs.

func (*ReleaseUpdate) RemoveSubreleases

func (ru *ReleaseUpdate) RemoveSubreleases(r ...*Release) *ReleaseUpdate

RemoveSubreleases removes "subreleases" edges to Release entities.

func (*ReleaseUpdate) RemoveTestRunIDs

func (ru *ReleaseUpdate) RemoveTestRunIDs(ids ...int) *ReleaseUpdate

RemoveTestRunIDs removes the "test_runs" edge to TestRun entities by IDs.

func (*ReleaseUpdate) RemoveTestRuns

func (ru *ReleaseUpdate) RemoveTestRuns(t ...*TestRun) *ReleaseUpdate

RemoveTestRuns removes "test_runs" edges to TestRun entities.

func (*ReleaseUpdate) RemoveViolationIDs

func (ru *ReleaseUpdate) RemoveViolationIDs(ids ...int) *ReleaseUpdate

RemoveViolationIDs removes the "violations" edge to ReleasePolicyViolation entities by IDs.

func (*ReleaseUpdate) RemoveViolations

func (ru *ReleaseUpdate) RemoveViolations(r ...*ReleasePolicyViolation) *ReleaseUpdate

RemoveViolations removes "violations" edges to ReleasePolicyViolation entities.

func (*ReleaseUpdate) RemoveVulnerabilities

func (ru *ReleaseUpdate) RemoveVulnerabilities(r ...*ReleaseVulnerability) *ReleaseUpdate

RemoveVulnerabilities removes "vulnerabilities" edges to ReleaseVulnerability entities.

func (*ReleaseUpdate) RemoveVulnerabilityIDs

func (ru *ReleaseUpdate) RemoveVulnerabilityIDs(ids ...int) *ReleaseUpdate

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReleaseVulnerability entities by IDs.

func (*ReleaseUpdate) RemoveVulnerabilityReviewIDs

func (ru *ReleaseUpdate) RemoveVulnerabilityReviewIDs(ids ...int) *ReleaseUpdate

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to VulnerabilityReview entities by IDs.

func (*ReleaseUpdate) RemoveVulnerabilityReviews

func (ru *ReleaseUpdate) RemoveVulnerabilityReviews(v ...*VulnerabilityReview) *ReleaseUpdate

RemoveVulnerabilityReviews removes "vulnerability_reviews" edges to VulnerabilityReview entities.

func (*ReleaseUpdate) Save

func (ru *ReleaseUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleaseUpdate) SaveX

func (ru *ReleaseUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*ReleaseUpdate) SetCommit

func (ru *ReleaseUpdate) SetCommit(g *GitCommit) *ReleaseUpdate

SetCommit sets the "commit" edge to the GitCommit entity.

func (*ReleaseUpdate) SetCommitID

func (ru *ReleaseUpdate) SetCommitID(id int) *ReleaseUpdate

SetCommitID sets the "commit" edge to the GitCommit entity by ID.

func (*ReleaseUpdate) SetHeadOf

func (ru *ReleaseUpdate) SetHeadOf(r *Repo) *ReleaseUpdate

SetHeadOf sets the "head_of" edge to the Repo entity.

func (*ReleaseUpdate) SetHeadOfID

func (ru *ReleaseUpdate) SetHeadOfID(id int) *ReleaseUpdate

SetHeadOfID sets the "head_of" edge to the Repo entity by ID.

func (*ReleaseUpdate) SetLabels

func (ru *ReleaseUpdate) SetLabels(s schema.Labels) *ReleaseUpdate

SetLabels sets the "labels" field.

func (*ReleaseUpdate) SetName

func (ru *ReleaseUpdate) SetName(s string) *ReleaseUpdate

SetName sets the "name" field.

func (*ReleaseUpdate) SetNillableHeadOfID

func (ru *ReleaseUpdate) SetNillableHeadOfID(id *int) *ReleaseUpdate

SetNillableHeadOfID sets the "head_of" edge to the Repo entity by ID if the given value is not nil.

func (*ReleaseUpdate) SetVersion

func (ru *ReleaseUpdate) SetVersion(s string) *ReleaseUpdate

SetVersion sets the "version" field.

func (*ReleaseUpdate) Where

func (ru *ReleaseUpdate) Where(ps ...predicate.Release) *ReleaseUpdate

Where appends a list predicates to the ReleaseUpdate builder.

type ReleaseUpdateOne

type ReleaseUpdateOne struct {
	// contains filtered or unexported fields
}

ReleaseUpdateOne is the builder for updating a single Release entity.

func (*ReleaseUpdateOne) AddArtifactIDs

func (ruo *ReleaseUpdateOne) AddArtifactIDs(ids ...int) *ReleaseUpdateOne

AddArtifactIDs adds the "artifacts" edge to the Artifact entity by IDs.

func (*ReleaseUpdateOne) AddArtifacts

func (ruo *ReleaseUpdateOne) AddArtifacts(a ...*Artifact) *ReleaseUpdateOne

AddArtifacts adds the "artifacts" edges to the Artifact entity.

func (*ReleaseUpdateOne) AddCodeScanIDs

func (ruo *ReleaseUpdateOne) AddCodeScanIDs(ids ...int) *ReleaseUpdateOne

AddCodeScanIDs adds the "code_scans" edge to the CodeScan entity by IDs.

func (*ReleaseUpdateOne) AddCodeScans

func (ruo *ReleaseUpdateOne) AddCodeScans(c ...*CodeScan) *ReleaseUpdateOne

AddCodeScans adds the "code_scans" edges to the CodeScan entity.

func (*ReleaseUpdateOne) AddComponentIDs

func (ruo *ReleaseUpdateOne) AddComponentIDs(ids ...int) *ReleaseUpdateOne

AddComponentIDs adds the "components" edge to the ReleaseComponent entity by IDs.

func (*ReleaseUpdateOne) AddComponents

func (ruo *ReleaseUpdateOne) AddComponents(r ...*ReleaseComponent) *ReleaseUpdateOne

AddComponents adds the "components" edges to the ReleaseComponent entity.

func (*ReleaseUpdateOne) AddDependencies

func (ruo *ReleaseUpdateOne) AddDependencies(r ...*Release) *ReleaseUpdateOne

AddDependencies adds the "dependencies" edges to the Release entity.

func (*ReleaseUpdateOne) AddDependencyIDs

func (ruo *ReleaseUpdateOne) AddDependencyIDs(ids ...int) *ReleaseUpdateOne

AddDependencyIDs adds the "dependencies" edge to the Release entity by IDs.

func (*ReleaseUpdateOne) AddLicenseIDs

func (ruo *ReleaseUpdateOne) AddLicenseIDs(ids ...int) *ReleaseUpdateOne

AddLicenseIDs adds the "licenses" edge to the ReleaseLicense entity by IDs.

func (*ReleaseUpdateOne) AddLicenses

func (ruo *ReleaseUpdateOne) AddLicenses(r ...*ReleaseLicense) *ReleaseUpdateOne

AddLicenses adds the "licenses" edges to the ReleaseLicense entity.

func (*ReleaseUpdateOne) AddLog

func (ruo *ReleaseUpdateOne) AddLog(r ...*ReleaseEntry) *ReleaseUpdateOne

AddLog adds the "log" edges to the ReleaseEntry entity.

func (*ReleaseUpdateOne) AddLogIDs

func (ruo *ReleaseUpdateOne) AddLogIDs(ids ...int) *ReleaseUpdateOne

AddLogIDs adds the "log" edge to the ReleaseEntry entity by IDs.

func (*ReleaseUpdateOne) AddSubreleaseIDs

func (ruo *ReleaseUpdateOne) AddSubreleaseIDs(ids ...int) *ReleaseUpdateOne

AddSubreleaseIDs adds the "subreleases" edge to the Release entity by IDs.

func (*ReleaseUpdateOne) AddSubreleases

func (ruo *ReleaseUpdateOne) AddSubreleases(r ...*Release) *ReleaseUpdateOne

AddSubreleases adds the "subreleases" edges to the Release entity.

func (*ReleaseUpdateOne) AddTestRunIDs

func (ruo *ReleaseUpdateOne) AddTestRunIDs(ids ...int) *ReleaseUpdateOne

AddTestRunIDs adds the "test_runs" edge to the TestRun entity by IDs.

func (*ReleaseUpdateOne) AddTestRuns

func (ruo *ReleaseUpdateOne) AddTestRuns(t ...*TestRun) *ReleaseUpdateOne

AddTestRuns adds the "test_runs" edges to the TestRun entity.

func (*ReleaseUpdateOne) AddViolationIDs

func (ruo *ReleaseUpdateOne) AddViolationIDs(ids ...int) *ReleaseUpdateOne

AddViolationIDs adds the "violations" edge to the ReleasePolicyViolation entity by IDs.

func (*ReleaseUpdateOne) AddViolations

func (ruo *ReleaseUpdateOne) AddViolations(r ...*ReleasePolicyViolation) *ReleaseUpdateOne

AddViolations adds the "violations" edges to the ReleasePolicyViolation entity.

func (*ReleaseUpdateOne) AddVulnerabilities

func (ruo *ReleaseUpdateOne) AddVulnerabilities(r ...*ReleaseVulnerability) *ReleaseUpdateOne

AddVulnerabilities adds the "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseUpdateOne) AddVulnerabilityIDs

func (ruo *ReleaseUpdateOne) AddVulnerabilityIDs(ids ...int) *ReleaseUpdateOne

AddVulnerabilityIDs adds the "vulnerabilities" edge to the ReleaseVulnerability entity by IDs.

func (*ReleaseUpdateOne) AddVulnerabilityReviewIDs

func (ruo *ReleaseUpdateOne) AddVulnerabilityReviewIDs(ids ...int) *ReleaseUpdateOne

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseUpdateOne) AddVulnerabilityReviews

func (ruo *ReleaseUpdateOne) AddVulnerabilityReviews(v ...*VulnerabilityReview) *ReleaseUpdateOne

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ReleaseUpdateOne) ClearArtifacts

func (ruo *ReleaseUpdateOne) ClearArtifacts() *ReleaseUpdateOne

ClearArtifacts clears all "artifacts" edges to the Artifact entity.

func (*ReleaseUpdateOne) ClearCodeScans

func (ruo *ReleaseUpdateOne) ClearCodeScans() *ReleaseUpdateOne

ClearCodeScans clears all "code_scans" edges to the CodeScan entity.

func (*ReleaseUpdateOne) ClearCommit

func (ruo *ReleaseUpdateOne) ClearCommit() *ReleaseUpdateOne

ClearCommit clears the "commit" edge to the GitCommit entity.

func (*ReleaseUpdateOne) ClearComponents

func (ruo *ReleaseUpdateOne) ClearComponents() *ReleaseUpdateOne

ClearComponents clears all "components" edges to the ReleaseComponent entity.

func (*ReleaseUpdateOne) ClearDependencies

func (ruo *ReleaseUpdateOne) ClearDependencies() *ReleaseUpdateOne

ClearDependencies clears all "dependencies" edges to the Release entity.

func (*ReleaseUpdateOne) ClearHeadOf

func (ruo *ReleaseUpdateOne) ClearHeadOf() *ReleaseUpdateOne

ClearHeadOf clears the "head_of" edge to the Repo entity.

func (*ReleaseUpdateOne) ClearLabels

func (ruo *ReleaseUpdateOne) ClearLabels() *ReleaseUpdateOne

ClearLabels clears the value of the "labels" field.

func (*ReleaseUpdateOne) ClearLicenses

func (ruo *ReleaseUpdateOne) ClearLicenses() *ReleaseUpdateOne

ClearLicenses clears all "licenses" edges to the ReleaseLicense entity.

func (*ReleaseUpdateOne) ClearLog

func (ruo *ReleaseUpdateOne) ClearLog() *ReleaseUpdateOne

ClearLog clears all "log" edges to the ReleaseEntry entity.

func (*ReleaseUpdateOne) ClearSubreleases

func (ruo *ReleaseUpdateOne) ClearSubreleases() *ReleaseUpdateOne

ClearSubreleases clears all "subreleases" edges to the Release entity.

func (*ReleaseUpdateOne) ClearTestRuns

func (ruo *ReleaseUpdateOne) ClearTestRuns() *ReleaseUpdateOne

ClearTestRuns clears all "test_runs" edges to the TestRun entity.

func (*ReleaseUpdateOne) ClearViolations

func (ruo *ReleaseUpdateOne) ClearViolations() *ReleaseUpdateOne

ClearViolations clears all "violations" edges to the ReleasePolicyViolation entity.

func (*ReleaseUpdateOne) ClearVulnerabilities

func (ruo *ReleaseUpdateOne) ClearVulnerabilities() *ReleaseUpdateOne

ClearVulnerabilities clears all "vulnerabilities" edges to the ReleaseVulnerability entity.

func (*ReleaseUpdateOne) ClearVulnerabilityReviews

func (ruo *ReleaseUpdateOne) ClearVulnerabilityReviews() *ReleaseUpdateOne

ClearVulnerabilityReviews clears all "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*ReleaseUpdateOne) Exec

func (ruo *ReleaseUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*ReleaseUpdateOne) ExecX

func (ruo *ReleaseUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseUpdateOne) Mutation

func (ruo *ReleaseUpdateOne) Mutation() *ReleaseMutation

Mutation returns the ReleaseMutation object of the builder.

func (*ReleaseUpdateOne) RemoveArtifactIDs

func (ruo *ReleaseUpdateOne) RemoveArtifactIDs(ids ...int) *ReleaseUpdateOne

RemoveArtifactIDs removes the "artifacts" edge to Artifact entities by IDs.

func (*ReleaseUpdateOne) RemoveArtifacts

func (ruo *ReleaseUpdateOne) RemoveArtifacts(a ...*Artifact) *ReleaseUpdateOne

RemoveArtifacts removes "artifacts" edges to Artifact entities.

func (*ReleaseUpdateOne) RemoveCodeScanIDs

func (ruo *ReleaseUpdateOne) RemoveCodeScanIDs(ids ...int) *ReleaseUpdateOne

RemoveCodeScanIDs removes the "code_scans" edge to CodeScan entities by IDs.

func (*ReleaseUpdateOne) RemoveCodeScans

func (ruo *ReleaseUpdateOne) RemoveCodeScans(c ...*CodeScan) *ReleaseUpdateOne

RemoveCodeScans removes "code_scans" edges to CodeScan entities.

func (*ReleaseUpdateOne) RemoveComponentIDs

func (ruo *ReleaseUpdateOne) RemoveComponentIDs(ids ...int) *ReleaseUpdateOne

RemoveComponentIDs removes the "components" edge to ReleaseComponent entities by IDs.

func (*ReleaseUpdateOne) RemoveComponents

func (ruo *ReleaseUpdateOne) RemoveComponents(r ...*ReleaseComponent) *ReleaseUpdateOne

RemoveComponents removes "components" edges to ReleaseComponent entities.

func (*ReleaseUpdateOne) RemoveDependencies

func (ruo *ReleaseUpdateOne) RemoveDependencies(r ...*Release) *ReleaseUpdateOne

RemoveDependencies removes "dependencies" edges to Release entities.

func (*ReleaseUpdateOne) RemoveDependencyIDs

func (ruo *ReleaseUpdateOne) RemoveDependencyIDs(ids ...int) *ReleaseUpdateOne

RemoveDependencyIDs removes the "dependencies" edge to Release entities by IDs.

func (*ReleaseUpdateOne) RemoveLicenseIDs

func (ruo *ReleaseUpdateOne) RemoveLicenseIDs(ids ...int) *ReleaseUpdateOne

RemoveLicenseIDs removes the "licenses" edge to ReleaseLicense entities by IDs.

func (*ReleaseUpdateOne) RemoveLicenses

func (ruo *ReleaseUpdateOne) RemoveLicenses(r ...*ReleaseLicense) *ReleaseUpdateOne

RemoveLicenses removes "licenses" edges to ReleaseLicense entities.

func (*ReleaseUpdateOne) RemoveLog

func (ruo *ReleaseUpdateOne) RemoveLog(r ...*ReleaseEntry) *ReleaseUpdateOne

RemoveLog removes "log" edges to ReleaseEntry entities.

func (*ReleaseUpdateOne) RemoveLogIDs

func (ruo *ReleaseUpdateOne) RemoveLogIDs(ids ...int) *ReleaseUpdateOne

RemoveLogIDs removes the "log" edge to ReleaseEntry entities by IDs.

func (*ReleaseUpdateOne) RemoveSubreleaseIDs

func (ruo *ReleaseUpdateOne) RemoveSubreleaseIDs(ids ...int) *ReleaseUpdateOne

RemoveSubreleaseIDs removes the "subreleases" edge to Release entities by IDs.

func (*ReleaseUpdateOne) RemoveSubreleases

func (ruo *ReleaseUpdateOne) RemoveSubreleases(r ...*Release) *ReleaseUpdateOne

RemoveSubreleases removes "subreleases" edges to Release entities.

func (*ReleaseUpdateOne) RemoveTestRunIDs

func (ruo *ReleaseUpdateOne) RemoveTestRunIDs(ids ...int) *ReleaseUpdateOne

RemoveTestRunIDs removes the "test_runs" edge to TestRun entities by IDs.

func (*ReleaseUpdateOne) RemoveTestRuns

func (ruo *ReleaseUpdateOne) RemoveTestRuns(t ...*TestRun) *ReleaseUpdateOne

RemoveTestRuns removes "test_runs" edges to TestRun entities.

func (*ReleaseUpdateOne) RemoveViolationIDs

func (ruo *ReleaseUpdateOne) RemoveViolationIDs(ids ...int) *ReleaseUpdateOne

RemoveViolationIDs removes the "violations" edge to ReleasePolicyViolation entities by IDs.

func (*ReleaseUpdateOne) RemoveViolations

func (ruo *ReleaseUpdateOne) RemoveViolations(r ...*ReleasePolicyViolation) *ReleaseUpdateOne

RemoveViolations removes "violations" edges to ReleasePolicyViolation entities.

func (*ReleaseUpdateOne) RemoveVulnerabilities

func (ruo *ReleaseUpdateOne) RemoveVulnerabilities(r ...*ReleaseVulnerability) *ReleaseUpdateOne

RemoveVulnerabilities removes "vulnerabilities" edges to ReleaseVulnerability entities.

func (*ReleaseUpdateOne) RemoveVulnerabilityIDs

func (ruo *ReleaseUpdateOne) RemoveVulnerabilityIDs(ids ...int) *ReleaseUpdateOne

RemoveVulnerabilityIDs removes the "vulnerabilities" edge to ReleaseVulnerability entities by IDs.

func (*ReleaseUpdateOne) RemoveVulnerabilityReviewIDs

func (ruo *ReleaseUpdateOne) RemoveVulnerabilityReviewIDs(ids ...int) *ReleaseUpdateOne

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to VulnerabilityReview entities by IDs.

func (*ReleaseUpdateOne) RemoveVulnerabilityReviews

func (ruo *ReleaseUpdateOne) RemoveVulnerabilityReviews(v ...*VulnerabilityReview) *ReleaseUpdateOne

RemoveVulnerabilityReviews removes "vulnerability_reviews" edges to VulnerabilityReview entities.

func (*ReleaseUpdateOne) Save

func (ruo *ReleaseUpdateOne) Save(ctx context.Context) (*Release, error)

Save executes the query and returns the updated Release entity.

func (*ReleaseUpdateOne) SaveX

func (ruo *ReleaseUpdateOne) SaveX(ctx context.Context) *Release

SaveX is like Save, but panics if an error occurs.

func (*ReleaseUpdateOne) Select

func (ruo *ReleaseUpdateOne) Select(field string, fields ...string) *ReleaseUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleaseUpdateOne) SetCommit

func (ruo *ReleaseUpdateOne) SetCommit(g *GitCommit) *ReleaseUpdateOne

SetCommit sets the "commit" edge to the GitCommit entity.

func (*ReleaseUpdateOne) SetCommitID

func (ruo *ReleaseUpdateOne) SetCommitID(id int) *ReleaseUpdateOne

SetCommitID sets the "commit" edge to the GitCommit entity by ID.

func (*ReleaseUpdateOne) SetHeadOf

func (ruo *ReleaseUpdateOne) SetHeadOf(r *Repo) *ReleaseUpdateOne

SetHeadOf sets the "head_of" edge to the Repo entity.

func (*ReleaseUpdateOne) SetHeadOfID

func (ruo *ReleaseUpdateOne) SetHeadOfID(id int) *ReleaseUpdateOne

SetHeadOfID sets the "head_of" edge to the Repo entity by ID.

func (*ReleaseUpdateOne) SetLabels

func (ruo *ReleaseUpdateOne) SetLabels(s schema.Labels) *ReleaseUpdateOne

SetLabels sets the "labels" field.

func (*ReleaseUpdateOne) SetModelCreate

func (r *ReleaseUpdateOne) SetModelCreate(model *ReleaseModelCreate) *ReleaseUpdateOne

func (*ReleaseUpdateOne) SetModelUpdate

func (r *ReleaseUpdateOne) SetModelUpdate(model *ReleaseModelUpdate) *ReleaseUpdateOne

func (*ReleaseUpdateOne) SetName

func (ruo *ReleaseUpdateOne) SetName(s string) *ReleaseUpdateOne

SetName sets the "name" field.

func (*ReleaseUpdateOne) SetNillableHeadOfID

func (ruo *ReleaseUpdateOne) SetNillableHeadOfID(id *int) *ReleaseUpdateOne

SetNillableHeadOfID sets the "head_of" edge to the Repo entity by ID if the given value is not nil.

func (*ReleaseUpdateOne) SetVersion

func (ruo *ReleaseUpdateOne) SetVersion(s string) *ReleaseUpdateOne

SetVersion sets the "version" field.

type ReleaseVulnerabilities

type ReleaseVulnerabilities []*ReleaseVulnerability

ReleaseVulnerabilities is a parsable slice of ReleaseVulnerability.

type ReleaseVulnerability

type ReleaseVulnerability struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the ReleaseVulnerabilityQuery when eager-loading is set.
	Edges ReleaseVulnerabilityEdges `json:"edges"`
	// contains filtered or unexported fields
}

ReleaseVulnerability is the model entity for the ReleaseVulnerability schema.

func (*ReleaseVulnerability) Component

func (*ReleaseVulnerability) Node

func (rv *ReleaseVulnerability) Node(ctx context.Context) (node *Node, err error)

func (*ReleaseVulnerability) QueryComponent

func (rv *ReleaseVulnerability) QueryComponent() *ReleaseComponentQuery

QueryComponent queries the "component" edge of the ReleaseVulnerability entity.

func (*ReleaseVulnerability) QueryRelease

func (rv *ReleaseVulnerability) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the ReleaseVulnerability entity.

func (*ReleaseVulnerability) QueryReviews

func (rv *ReleaseVulnerability) QueryReviews() *VulnerabilityReviewQuery

QueryReviews queries the "reviews" edge of the ReleaseVulnerability entity.

func (*ReleaseVulnerability) QueryScan

func (rv *ReleaseVulnerability) QueryScan() *CodeScanQuery

QueryScan queries the "scan" edge of the ReleaseVulnerability entity.

func (*ReleaseVulnerability) QueryVulnerability

func (rv *ReleaseVulnerability) QueryVulnerability() *VulnerabilityQuery

QueryVulnerability queries the "vulnerability" edge of the ReleaseVulnerability entity.

func (*ReleaseVulnerability) Release

func (rv *ReleaseVulnerability) Release(ctx context.Context) (*Release, error)

func (*ReleaseVulnerability) Reviews

func (*ReleaseVulnerability) Scan

func (*ReleaseVulnerability) String

func (rv *ReleaseVulnerability) String() string

String implements the fmt.Stringer.

func (*ReleaseVulnerability) ToEdge

ToEdge converts ReleaseVulnerability into ReleaseVulnerabilityEdge.

func (*ReleaseVulnerability) Unwrap

Unwrap unwraps the ReleaseVulnerability entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*ReleaseVulnerability) Update

Update returns a builder for updating this ReleaseVulnerability. Note that you need to call ReleaseVulnerability.Unwrap() before calling this method if this ReleaseVulnerability was returned from a transaction, and the transaction was committed or rolled back.

func (*ReleaseVulnerability) Vulnerability

func (rv *ReleaseVulnerability) Vulnerability(ctx context.Context) (*Vulnerability, error)

type ReleaseVulnerabilityClient

type ReleaseVulnerabilityClient struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityClient is a client for the ReleaseVulnerability schema.

func NewReleaseVulnerabilityClient

func NewReleaseVulnerabilityClient(c config) *ReleaseVulnerabilityClient

NewReleaseVulnerabilityClient returns a client for the ReleaseVulnerability from the given config.

func (*ReleaseVulnerabilityClient) Create

Create returns a create builder for ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) CreateBulk

CreateBulk returns a builder for creating a bulk of ReleaseVulnerability entities.

func (*ReleaseVulnerabilityClient) Delete

Delete returns a delete builder for ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*ReleaseVulnerabilityClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*ReleaseVulnerabilityClient) Get

Get returns a ReleaseVulnerability entity by its id.

func (*ReleaseVulnerabilityClient) GetX

GetX is like Get, but panics if an error occurs.

func (*ReleaseVulnerabilityClient) Hooks

func (c *ReleaseVulnerabilityClient) Hooks() []Hook

Hooks returns the client hooks.

func (*ReleaseVulnerabilityClient) Query

Query returns a query builder for ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) QueryComponent

QueryComponent queries the component edge of a ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) QueryRelease

QueryRelease queries the release edge of a ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) QueryReviews

QueryReviews queries the reviews edge of a ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) QueryScan

QueryScan queries the scan edge of a ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) QueryVulnerability

QueryVulnerability queries the vulnerability edge of a ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) Update

Update returns an update builder for ReleaseVulnerability.

func (*ReleaseVulnerabilityClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*ReleaseVulnerabilityClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*ReleaseVulnerabilityClient) Use

func (c *ReleaseVulnerabilityClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `releasevulnerability.Hooks(f(g(h())))`.

type ReleaseVulnerabilityConnection

type ReleaseVulnerabilityConnection struct {
	Edges      []*ReleaseVulnerabilityEdge `json:"edges"`
	PageInfo   PageInfo                    `json:"pageInfo"`
	TotalCount int                         `json:"totalCount"`
}

ReleaseVulnerabilityConnection is the connection containing edges to ReleaseVulnerability.

type ReleaseVulnerabilityCreate

type ReleaseVulnerabilityCreate struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityCreate is the builder for creating a ReleaseVulnerability entity.

func (*ReleaseVulnerabilityCreate) AddReviewIDs

func (rvc *ReleaseVulnerabilityCreate) AddReviewIDs(ids ...int) *ReleaseVulnerabilityCreate

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseVulnerabilityCreate) AddReviews

AddReviews adds the "reviews" edges to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityCreate) Exec

Exec executes the query.

func (*ReleaseVulnerabilityCreate) ExecX

func (rvc *ReleaseVulnerabilityCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseVulnerabilityCreate) Mutation

Mutation returns the ReleaseVulnerabilityMutation object of the builder.

func (*ReleaseVulnerabilityCreate) Save

Save creates the ReleaseVulnerability in the database.

func (*ReleaseVulnerabilityCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*ReleaseVulnerabilityCreate) SetComponent

SetComponent sets the "component" edge to the ReleaseComponent entity.

func (*ReleaseVulnerabilityCreate) SetComponentID

SetComponentID sets the "component" edge to the ReleaseComponent entity by ID.

func (*ReleaseVulnerabilityCreate) SetNillableComponentID

func (rvc *ReleaseVulnerabilityCreate) SetNillableComponentID(id *int) *ReleaseVulnerabilityCreate

SetNillableComponentID sets the "component" edge to the ReleaseComponent entity by ID if the given value is not nil.

func (*ReleaseVulnerabilityCreate) SetNillableScanID

func (rvc *ReleaseVulnerabilityCreate) SetNillableScanID(id *int) *ReleaseVulnerabilityCreate

SetNillableScanID sets the "scan" edge to the CodeScan entity by ID if the given value is not nil.

func (*ReleaseVulnerabilityCreate) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseVulnerabilityCreate) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseVulnerabilityCreate) SetScan

SetScan sets the "scan" edge to the CodeScan entity.

func (*ReleaseVulnerabilityCreate) SetScanID

SetScanID sets the "scan" edge to the CodeScan entity by ID.

func (*ReleaseVulnerabilityCreate) SetVulnerability

SetVulnerability sets the "vulnerability" edge to the Vulnerability entity.

func (*ReleaseVulnerabilityCreate) SetVulnerabilityID

func (rvc *ReleaseVulnerabilityCreate) SetVulnerabilityID(id int) *ReleaseVulnerabilityCreate

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by ID.

type ReleaseVulnerabilityCreateBulk

type ReleaseVulnerabilityCreateBulk struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityCreateBulk is the builder for creating many ReleaseVulnerability entities in bulk.

func (*ReleaseVulnerabilityCreateBulk) Exec

Exec executes the query.

func (*ReleaseVulnerabilityCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseVulnerabilityCreateBulk) Save

Save creates the ReleaseVulnerability entities in the database.

func (*ReleaseVulnerabilityCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type ReleaseVulnerabilityDelete

type ReleaseVulnerabilityDelete struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityDelete is the builder for deleting a ReleaseVulnerability entity.

func (*ReleaseVulnerabilityDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*ReleaseVulnerabilityDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseVulnerabilityDelete) Where

Where appends a list predicates to the ReleaseVulnerabilityDelete builder.

type ReleaseVulnerabilityDeleteOne

type ReleaseVulnerabilityDeleteOne struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityDeleteOne is the builder for deleting a single ReleaseVulnerability entity.

func (*ReleaseVulnerabilityDeleteOne) Exec

Exec executes the deletion query.

func (*ReleaseVulnerabilityDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

type ReleaseVulnerabilityEdge

type ReleaseVulnerabilityEdge struct {
	Node   *ReleaseVulnerability `json:"node"`
	Cursor Cursor                `json:"cursor"`
}

ReleaseVulnerabilityEdge is the edge representation of ReleaseVulnerability.

type ReleaseVulnerabilityEdges

type ReleaseVulnerabilityEdges struct {
	// Vulnerability holds the value of the vulnerability edge.
	Vulnerability *Vulnerability `json:"vulnerability,omitempty"`
	// Component holds the value of the component edge.
	Component *ReleaseComponent `json:"component,omitempty"`
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Reviews holds the value of the reviews edge.
	Reviews []*VulnerabilityReview `json:"reviews,omitempty"`
	// Scan holds the value of the scan edge.
	Scan *CodeScan `json:"scan,omitempty"`
	// contains filtered or unexported fields
}

ReleaseVulnerabilityEdges holds the relations/edges for other nodes in the graph.

func (ReleaseVulnerabilityEdges) ComponentOrErr

func (e ReleaseVulnerabilityEdges) ComponentOrErr() (*ReleaseComponent, error)

ComponentOrErr returns the Component value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseVulnerabilityEdges) ReleaseOrErr

func (e ReleaseVulnerabilityEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseVulnerabilityEdges) ReviewsOrErr

func (e ReleaseVulnerabilityEdges) ReviewsOrErr() ([]*VulnerabilityReview, error)

ReviewsOrErr returns the Reviews value or an error if the edge was not loaded in eager-loading.

func (ReleaseVulnerabilityEdges) ScanOrErr

func (e ReleaseVulnerabilityEdges) ScanOrErr() (*CodeScan, error)

ScanOrErr returns the Scan value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (ReleaseVulnerabilityEdges) VulnerabilityOrErr

func (e ReleaseVulnerabilityEdges) VulnerabilityOrErr() (*Vulnerability, error)

VulnerabilityOrErr returns the Vulnerability value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type ReleaseVulnerabilityGroupBy

type ReleaseVulnerabilityGroupBy struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityGroupBy is the group-by builder for ReleaseVulnerability entities.

func (*ReleaseVulnerabilityGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*ReleaseVulnerabilityGroupBy) Bool

func (rvgb *ReleaseVulnerabilityGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) BoolX

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Bools

func (rvgb *ReleaseVulnerabilityGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) BoolsX

func (rvgb *ReleaseVulnerabilityGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Float64

func (rvgb *ReleaseVulnerabilityGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) Float64X

func (rvgb *ReleaseVulnerabilityGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Float64s

func (rvgb *ReleaseVulnerabilityGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) Float64sX

func (rvgb *ReleaseVulnerabilityGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Int

func (rvgb *ReleaseVulnerabilityGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) IntX

IntX is like Int, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Ints

func (rvgb *ReleaseVulnerabilityGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) IntsX

func (rvgb *ReleaseVulnerabilityGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Scan

func (rvgb *ReleaseVulnerabilityGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*ReleaseVulnerabilityGroupBy) ScanX

func (rvgb *ReleaseVulnerabilityGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) String

func (rvgb *ReleaseVulnerabilityGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) StringX

StringX is like String, but panics if an error occurs.

func (*ReleaseVulnerabilityGroupBy) Strings

func (rvgb *ReleaseVulnerabilityGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*ReleaseVulnerabilityGroupBy) StringsX

func (rvgb *ReleaseVulnerabilityGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseVulnerabilityMutation

type ReleaseVulnerabilityMutation struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityMutation represents an operation that mutates the ReleaseVulnerability nodes in the graph.

func (*ReleaseVulnerabilityMutation) AddField

func (m *ReleaseVulnerabilityMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseVulnerabilityMutation) AddReviewIDs

func (m *ReleaseVulnerabilityMutation) AddReviewIDs(ids ...int)

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by ids.

func (*ReleaseVulnerabilityMutation) AddedEdges

func (m *ReleaseVulnerabilityMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*ReleaseVulnerabilityMutation) AddedField

func (m *ReleaseVulnerabilityMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseVulnerabilityMutation) AddedFields

func (m *ReleaseVulnerabilityMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*ReleaseVulnerabilityMutation) AddedIDs

func (m *ReleaseVulnerabilityMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*ReleaseVulnerabilityMutation) ClearComponent

func (m *ReleaseVulnerabilityMutation) ClearComponent()

ClearComponent clears the "component" edge to the ReleaseComponent entity.

func (*ReleaseVulnerabilityMutation) ClearEdge

func (m *ReleaseVulnerabilityMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*ReleaseVulnerabilityMutation) ClearField

func (m *ReleaseVulnerabilityMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseVulnerabilityMutation) ClearRelease

func (m *ReleaseVulnerabilityMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseVulnerabilityMutation) ClearReviews

func (m *ReleaseVulnerabilityMutation) ClearReviews()

ClearReviews clears the "reviews" edge to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityMutation) ClearScan

func (m *ReleaseVulnerabilityMutation) ClearScan()

ClearScan clears the "scan" edge to the CodeScan entity.

func (*ReleaseVulnerabilityMutation) ClearVulnerability

func (m *ReleaseVulnerabilityMutation) ClearVulnerability()

ClearVulnerability clears the "vulnerability" edge to the Vulnerability entity.

func (*ReleaseVulnerabilityMutation) ClearedEdges

func (m *ReleaseVulnerabilityMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*ReleaseVulnerabilityMutation) ClearedFields

func (m *ReleaseVulnerabilityMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (ReleaseVulnerabilityMutation) Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*ReleaseVulnerabilityMutation) ComponentCleared

func (m *ReleaseVulnerabilityMutation) ComponentCleared() bool

ComponentCleared reports if the "component" edge to the ReleaseComponent entity was cleared.

func (*ReleaseVulnerabilityMutation) ComponentID

func (m *ReleaseVulnerabilityMutation) ComponentID() (id int, exists bool)

ComponentID returns the "component" edge ID in the mutation.

func (*ReleaseVulnerabilityMutation) ComponentIDs

func (m *ReleaseVulnerabilityMutation) ComponentIDs() (ids []int)

ComponentIDs returns the "component" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ComponentID instead. It exists only for internal usage by the builders.

func (*ReleaseVulnerabilityMutation) EdgeCleared

func (m *ReleaseVulnerabilityMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*ReleaseVulnerabilityMutation) Field

func (m *ReleaseVulnerabilityMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*ReleaseVulnerabilityMutation) FieldCleared

func (m *ReleaseVulnerabilityMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*ReleaseVulnerabilityMutation) Fields

func (m *ReleaseVulnerabilityMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*ReleaseVulnerabilityMutation) ID

func (m *ReleaseVulnerabilityMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*ReleaseVulnerabilityMutation) OldField

func (m *ReleaseVulnerabilityMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*ReleaseVulnerabilityMutation) Op

Op returns the operation name.

func (*ReleaseVulnerabilityMutation) ReleaseCleared

func (m *ReleaseVulnerabilityMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*ReleaseVulnerabilityMutation) ReleaseID

func (m *ReleaseVulnerabilityMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*ReleaseVulnerabilityMutation) ReleaseIDs

func (m *ReleaseVulnerabilityMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*ReleaseVulnerabilityMutation) RemoveReviewIDs

func (m *ReleaseVulnerabilityMutation) RemoveReviewIDs(ids ...int)

RemoveReviewIDs removes the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseVulnerabilityMutation) RemovedEdges

func (m *ReleaseVulnerabilityMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*ReleaseVulnerabilityMutation) RemovedIDs

func (m *ReleaseVulnerabilityMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*ReleaseVulnerabilityMutation) RemovedReviewsIDs

func (m *ReleaseVulnerabilityMutation) RemovedReviewsIDs() (ids []int)

RemovedReviews returns the removed IDs of the "reviews" edge to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityMutation) ResetComponent

func (m *ReleaseVulnerabilityMutation) ResetComponent()

ResetComponent resets all changes to the "component" edge.

func (*ReleaseVulnerabilityMutation) ResetEdge

func (m *ReleaseVulnerabilityMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*ReleaseVulnerabilityMutation) ResetField

func (m *ReleaseVulnerabilityMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*ReleaseVulnerabilityMutation) ResetRelease

func (m *ReleaseVulnerabilityMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*ReleaseVulnerabilityMutation) ResetReviews

func (m *ReleaseVulnerabilityMutation) ResetReviews()

ResetReviews resets all changes to the "reviews" edge.

func (*ReleaseVulnerabilityMutation) ResetScan

func (m *ReleaseVulnerabilityMutation) ResetScan()

ResetScan resets all changes to the "scan" edge.

func (*ReleaseVulnerabilityMutation) ResetVulnerability

func (m *ReleaseVulnerabilityMutation) ResetVulnerability()

ResetVulnerability resets all changes to the "vulnerability" edge.

func (*ReleaseVulnerabilityMutation) ReviewsCleared

func (m *ReleaseVulnerabilityMutation) ReviewsCleared() bool

ReviewsCleared reports if the "reviews" edge to the VulnerabilityReview entity was cleared.

func (*ReleaseVulnerabilityMutation) ReviewsIDs

func (m *ReleaseVulnerabilityMutation) ReviewsIDs() (ids []int)

ReviewsIDs returns the "reviews" edge IDs in the mutation.

func (*ReleaseVulnerabilityMutation) ScanCleared

func (m *ReleaseVulnerabilityMutation) ScanCleared() bool

ScanCleared reports if the "scan" edge to the CodeScan entity was cleared.

func (*ReleaseVulnerabilityMutation) ScanID

func (m *ReleaseVulnerabilityMutation) ScanID() (id int, exists bool)

ScanID returns the "scan" edge ID in the mutation.

func (*ReleaseVulnerabilityMutation) ScanIDs

func (m *ReleaseVulnerabilityMutation) ScanIDs() (ids []int)

ScanIDs returns the "scan" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ScanID instead. It exists only for internal usage by the builders.

func (*ReleaseVulnerabilityMutation) SetComponentID

func (m *ReleaseVulnerabilityMutation) SetComponentID(id int)

SetComponentID sets the "component" edge to the ReleaseComponent entity by id.

func (*ReleaseVulnerabilityMutation) SetField

func (m *ReleaseVulnerabilityMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*ReleaseVulnerabilityMutation) SetReleaseID

func (m *ReleaseVulnerabilityMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*ReleaseVulnerabilityMutation) SetScanID

func (m *ReleaseVulnerabilityMutation) SetScanID(id int)

SetScanID sets the "scan" edge to the CodeScan entity by id.

func (*ReleaseVulnerabilityMutation) SetVulnerabilityID

func (m *ReleaseVulnerabilityMutation) SetVulnerabilityID(id int)

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by id.

func (ReleaseVulnerabilityMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*ReleaseVulnerabilityMutation) Type

Type returns the node type of this mutation (ReleaseVulnerability).

func (*ReleaseVulnerabilityMutation) VulnerabilityCleared

func (m *ReleaseVulnerabilityMutation) VulnerabilityCleared() bool

VulnerabilityCleared reports if the "vulnerability" edge to the Vulnerability entity was cleared.

func (*ReleaseVulnerabilityMutation) VulnerabilityID

func (m *ReleaseVulnerabilityMutation) VulnerabilityID() (id int, exists bool)

VulnerabilityID returns the "vulnerability" edge ID in the mutation.

func (*ReleaseVulnerabilityMutation) VulnerabilityIDs

func (m *ReleaseVulnerabilityMutation) VulnerabilityIDs() (ids []int)

VulnerabilityIDs returns the "vulnerability" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use VulnerabilityID instead. It exists only for internal usage by the builders.

func (*ReleaseVulnerabilityMutation) Where

Where appends a list predicates to the ReleaseVulnerabilityMutation builder.

type ReleaseVulnerabilityOrder

type ReleaseVulnerabilityOrder struct {
	Direction OrderDirection                  `json:"direction"`
	Field     *ReleaseVulnerabilityOrderField `json:"field"`
}

ReleaseVulnerabilityOrder defines the ordering of ReleaseVulnerability.

type ReleaseVulnerabilityOrderField

type ReleaseVulnerabilityOrderField struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityOrderField defines the ordering field of ReleaseVulnerability.

type ReleaseVulnerabilityPaginateOption

type ReleaseVulnerabilityPaginateOption func(*releaseVulnerabilityPager) error

ReleaseVulnerabilityPaginateOption enables pagination customization.

func WithReleaseVulnerabilityFilter

func WithReleaseVulnerabilityFilter(filter func(*ReleaseVulnerabilityQuery) (*ReleaseVulnerabilityQuery, error)) ReleaseVulnerabilityPaginateOption

WithReleaseVulnerabilityFilter configures pagination filter.

func WithReleaseVulnerabilityOrder

func WithReleaseVulnerabilityOrder(order *ReleaseVulnerabilityOrder) ReleaseVulnerabilityPaginateOption

WithReleaseVulnerabilityOrder configures pagination ordering.

type ReleaseVulnerabilityQuery

type ReleaseVulnerabilityQuery struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityQuery is the builder for querying ReleaseVulnerability entities.

func (*ReleaseVulnerabilityQuery) All

All executes the query and returns a list of ReleaseVulnerabilities.

func (*ReleaseVulnerabilityQuery) AllX

AllX is like All, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) Clone

Clone returns a duplicate of the ReleaseVulnerabilityQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*ReleaseVulnerabilityQuery) CollectFields

func (rv *ReleaseVulnerabilityQuery) CollectFields(ctx context.Context, satisfies ...string) *ReleaseVulnerabilityQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*ReleaseVulnerabilityQuery) Count

func (rvq *ReleaseVulnerabilityQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*ReleaseVulnerabilityQuery) CountX

func (rvq *ReleaseVulnerabilityQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) Exist

func (rvq *ReleaseVulnerabilityQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*ReleaseVulnerabilityQuery) ExistX

func (rvq *ReleaseVulnerabilityQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) Filter

func (*ReleaseVulnerabilityQuery) First

First returns the first ReleaseVulnerability entity from the query. Returns a *NotFoundError when no ReleaseVulnerability was found.

func (*ReleaseVulnerabilityQuery) FirstID

func (rvq *ReleaseVulnerabilityQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first ReleaseVulnerability ID from the query. Returns a *NotFoundError when no ReleaseVulnerability ID was found.

func (*ReleaseVulnerabilityQuery) FirstIDX

func (rvq *ReleaseVulnerabilityQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) GroupBy

func (rvq *ReleaseVulnerabilityQuery) GroupBy(field string, fields ...string) *ReleaseVulnerabilityGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

func (*ReleaseVulnerabilityQuery) IDs

func (rvq *ReleaseVulnerabilityQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of ReleaseVulnerability IDs.

func (*ReleaseVulnerabilityQuery) IDsX

func (rvq *ReleaseVulnerabilityQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) Limit

Limit adds a limit step to the query.

func (*ReleaseVulnerabilityQuery) Offset

Offset adds an offset step to the query.

func (*ReleaseVulnerabilityQuery) Only

Only returns a single ReleaseVulnerability entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one ReleaseVulnerability entity is not found. Returns a *NotFoundError when no ReleaseVulnerability entities are found.

func (*ReleaseVulnerabilityQuery) OnlyID

func (rvq *ReleaseVulnerabilityQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only ReleaseVulnerability ID in the query. Returns a *NotSingularError when exactly one ReleaseVulnerability ID is not found. Returns a *NotFoundError when no entities are found.

func (*ReleaseVulnerabilityQuery) OnlyIDX

func (rvq *ReleaseVulnerabilityQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*ReleaseVulnerabilityQuery) Order

Order adds an order step to the query.

func (*ReleaseVulnerabilityQuery) Paginate

func (rv *ReleaseVulnerabilityQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...ReleaseVulnerabilityPaginateOption,
) (*ReleaseVulnerabilityConnection, error)

Paginate executes the query and returns a relay based cursor connection to ReleaseVulnerability.

func (*ReleaseVulnerabilityQuery) QueryComponent

func (rvq *ReleaseVulnerabilityQuery) QueryComponent() *ReleaseComponentQuery

QueryComponent chains the current query on the "component" edge.

func (*ReleaseVulnerabilityQuery) QueryRelease

func (rvq *ReleaseVulnerabilityQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*ReleaseVulnerabilityQuery) QueryReviews

QueryReviews chains the current query on the "reviews" edge.

func (*ReleaseVulnerabilityQuery) QueryScan

func (rvq *ReleaseVulnerabilityQuery) QueryScan() *CodeScanQuery

QueryScan chains the current query on the "scan" edge.

func (*ReleaseVulnerabilityQuery) QueryVulnerability

func (rvq *ReleaseVulnerabilityQuery) QueryVulnerability() *VulnerabilityQuery

QueryVulnerability chains the current query on the "vulnerability" edge.

func (*ReleaseVulnerabilityQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

func (*ReleaseVulnerabilityQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*ReleaseVulnerabilityQuery) Where

Where adds a new predicate for the ReleaseVulnerabilityQuery builder.

func (*ReleaseVulnerabilityQuery) WhereInput

func (*ReleaseVulnerabilityQuery) WithComponent

WithComponent tells the query-builder to eager-load the nodes that are connected to the "component" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseVulnerabilityQuery) WithRelease

func (rvq *ReleaseVulnerabilityQuery) WithRelease(opts ...func(*ReleaseQuery)) *ReleaseVulnerabilityQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseVulnerabilityQuery) WithReviews

WithReviews tells the query-builder to eager-load the nodes that are connected to the "reviews" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseVulnerabilityQuery) WithScan

func (rvq *ReleaseVulnerabilityQuery) WithScan(opts ...func(*CodeScanQuery)) *ReleaseVulnerabilityQuery

WithScan tells the query-builder to eager-load the nodes that are connected to the "scan" edge. The optional arguments are used to configure the query builder of the edge.

func (*ReleaseVulnerabilityQuery) WithVulnerability

func (rvq *ReleaseVulnerabilityQuery) WithVulnerability(opts ...func(*VulnerabilityQuery)) *ReleaseVulnerabilityQuery

WithVulnerability tells the query-builder to eager-load the nodes that are connected to the "vulnerability" edge. The optional arguments are used to configure the query builder of the edge.

type ReleaseVulnerabilitySelect

type ReleaseVulnerabilitySelect struct {
	*ReleaseVulnerabilityQuery
	// contains filtered or unexported fields
}

ReleaseVulnerabilitySelect is the builder for selecting fields of ReleaseVulnerability entities.

func (*ReleaseVulnerabilitySelect) Bool

func (rvs *ReleaseVulnerabilitySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) BoolX

BoolX is like Bool, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Bools

func (rvs *ReleaseVulnerabilitySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) BoolsX

func (rvs *ReleaseVulnerabilitySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Float64

func (rvs *ReleaseVulnerabilitySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) Float64X

Float64X is like Float64, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Float64s

func (rvs *ReleaseVulnerabilitySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) Float64sX

func (rvs *ReleaseVulnerabilitySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Int

func (rvs *ReleaseVulnerabilitySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) IntX

IntX is like Int, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Ints

func (rvs *ReleaseVulnerabilitySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) IntsX

func (rvs *ReleaseVulnerabilitySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Scan

func (rvs *ReleaseVulnerabilitySelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*ReleaseVulnerabilitySelect) ScanX

func (rvs *ReleaseVulnerabilitySelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) String

func (rvs *ReleaseVulnerabilitySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) StringX

StringX is like String, but panics if an error occurs.

func (*ReleaseVulnerabilitySelect) Strings

func (rvs *ReleaseVulnerabilitySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*ReleaseVulnerabilitySelect) StringsX

func (rvs *ReleaseVulnerabilitySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type ReleaseVulnerabilityUpdate

type ReleaseVulnerabilityUpdate struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityUpdate is the builder for updating ReleaseVulnerability entities.

func (*ReleaseVulnerabilityUpdate) AddReviewIDs

func (rvu *ReleaseVulnerabilityUpdate) AddReviewIDs(ids ...int) *ReleaseVulnerabilityUpdate

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseVulnerabilityUpdate) AddReviews

AddReviews adds the "reviews" edges to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityUpdate) ClearComponent

ClearComponent clears the "component" edge to the ReleaseComponent entity.

func (*ReleaseVulnerabilityUpdate) ClearRelease

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseVulnerabilityUpdate) ClearReviews

ClearReviews clears all "reviews" edges to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityUpdate) ClearScan

ClearScan clears the "scan" edge to the CodeScan entity.

func (*ReleaseVulnerabilityUpdate) ClearVulnerability

func (rvu *ReleaseVulnerabilityUpdate) ClearVulnerability() *ReleaseVulnerabilityUpdate

ClearVulnerability clears the "vulnerability" edge to the Vulnerability entity.

func (*ReleaseVulnerabilityUpdate) Exec

Exec executes the query.

func (*ReleaseVulnerabilityUpdate) ExecX

func (rvu *ReleaseVulnerabilityUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseVulnerabilityUpdate) Mutation

Mutation returns the ReleaseVulnerabilityMutation object of the builder.

func (*ReleaseVulnerabilityUpdate) RemoveReviewIDs

func (rvu *ReleaseVulnerabilityUpdate) RemoveReviewIDs(ids ...int) *ReleaseVulnerabilityUpdate

RemoveReviewIDs removes the "reviews" edge to VulnerabilityReview entities by IDs.

func (*ReleaseVulnerabilityUpdate) RemoveReviews

RemoveReviews removes "reviews" edges to VulnerabilityReview entities.

func (*ReleaseVulnerabilityUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*ReleaseVulnerabilityUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleaseVulnerabilityUpdate) SetComponent

SetComponent sets the "component" edge to the ReleaseComponent entity.

func (*ReleaseVulnerabilityUpdate) SetComponentID

SetComponentID sets the "component" edge to the ReleaseComponent entity by ID.

func (*ReleaseVulnerabilityUpdate) SetNillableComponentID

func (rvu *ReleaseVulnerabilityUpdate) SetNillableComponentID(id *int) *ReleaseVulnerabilityUpdate

SetNillableComponentID sets the "component" edge to the ReleaseComponent entity by ID if the given value is not nil.

func (*ReleaseVulnerabilityUpdate) SetNillableScanID

func (rvu *ReleaseVulnerabilityUpdate) SetNillableScanID(id *int) *ReleaseVulnerabilityUpdate

SetNillableScanID sets the "scan" edge to the CodeScan entity by ID if the given value is not nil.

func (*ReleaseVulnerabilityUpdate) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseVulnerabilityUpdate) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseVulnerabilityUpdate) SetScan

SetScan sets the "scan" edge to the CodeScan entity.

func (*ReleaseVulnerabilityUpdate) SetScanID

SetScanID sets the "scan" edge to the CodeScan entity by ID.

func (*ReleaseVulnerabilityUpdate) SetVulnerability

SetVulnerability sets the "vulnerability" edge to the Vulnerability entity.

func (*ReleaseVulnerabilityUpdate) SetVulnerabilityID

func (rvu *ReleaseVulnerabilityUpdate) SetVulnerabilityID(id int) *ReleaseVulnerabilityUpdate

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by ID.

func (*ReleaseVulnerabilityUpdate) Where

Where appends a list predicates to the ReleaseVulnerabilityUpdate builder.

type ReleaseVulnerabilityUpdateOne

type ReleaseVulnerabilityUpdateOne struct {
	// contains filtered or unexported fields
}

ReleaseVulnerabilityUpdateOne is the builder for updating a single ReleaseVulnerability entity.

func (*ReleaseVulnerabilityUpdateOne) AddReviewIDs

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*ReleaseVulnerabilityUpdateOne) AddReviews

AddReviews adds the "reviews" edges to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityUpdateOne) ClearComponent

ClearComponent clears the "component" edge to the ReleaseComponent entity.

func (*ReleaseVulnerabilityUpdateOne) ClearRelease

ClearRelease clears the "release" edge to the Release entity.

func (*ReleaseVulnerabilityUpdateOne) ClearReviews

ClearReviews clears all "reviews" edges to the VulnerabilityReview entity.

func (*ReleaseVulnerabilityUpdateOne) ClearScan

ClearScan clears the "scan" edge to the CodeScan entity.

func (*ReleaseVulnerabilityUpdateOne) ClearVulnerability

ClearVulnerability clears the "vulnerability" edge to the Vulnerability entity.

func (*ReleaseVulnerabilityUpdateOne) Exec

Exec executes the query on the entity.

func (*ReleaseVulnerabilityUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*ReleaseVulnerabilityUpdateOne) Mutation

Mutation returns the ReleaseVulnerabilityMutation object of the builder.

func (*ReleaseVulnerabilityUpdateOne) RemoveReviewIDs

func (rvuo *ReleaseVulnerabilityUpdateOne) RemoveReviewIDs(ids ...int) *ReleaseVulnerabilityUpdateOne

RemoveReviewIDs removes the "reviews" edge to VulnerabilityReview entities by IDs.

func (*ReleaseVulnerabilityUpdateOne) RemoveReviews

RemoveReviews removes "reviews" edges to VulnerabilityReview entities.

func (*ReleaseVulnerabilityUpdateOne) Save

Save executes the query and returns the updated ReleaseVulnerability entity.

func (*ReleaseVulnerabilityUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*ReleaseVulnerabilityUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*ReleaseVulnerabilityUpdateOne) SetComponent

SetComponent sets the "component" edge to the ReleaseComponent entity.

func (*ReleaseVulnerabilityUpdateOne) SetComponentID

SetComponentID sets the "component" edge to the ReleaseComponent entity by ID.

func (*ReleaseVulnerabilityUpdateOne) SetNillableComponentID

func (rvuo *ReleaseVulnerabilityUpdateOne) SetNillableComponentID(id *int) *ReleaseVulnerabilityUpdateOne

SetNillableComponentID sets the "component" edge to the ReleaseComponent entity by ID if the given value is not nil.

func (*ReleaseVulnerabilityUpdateOne) SetNillableScanID

func (rvuo *ReleaseVulnerabilityUpdateOne) SetNillableScanID(id *int) *ReleaseVulnerabilityUpdateOne

SetNillableScanID sets the "scan" edge to the CodeScan entity by ID if the given value is not nil.

func (*ReleaseVulnerabilityUpdateOne) SetRelease

SetRelease sets the "release" edge to the Release entity.

func (*ReleaseVulnerabilityUpdateOne) SetReleaseID

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*ReleaseVulnerabilityUpdateOne) SetScan

SetScan sets the "scan" edge to the CodeScan entity.

func (*ReleaseVulnerabilityUpdateOne) SetScanID

SetScanID sets the "scan" edge to the CodeScan entity by ID.

func (*ReleaseVulnerabilityUpdateOne) SetVulnerability

SetVulnerability sets the "vulnerability" edge to the Vulnerability entity.

func (*ReleaseVulnerabilityUpdateOne) SetVulnerabilityID

func (rvuo *ReleaseVulnerabilityUpdateOne) SetVulnerabilityID(id int) *ReleaseVulnerabilityUpdateOne

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by ID.

type ReleaseVulnerabilityWhereInput

type ReleaseVulnerabilityWhereInput struct {
	Not *ReleaseVulnerabilityWhereInput   `json:"not,omitempty"`
	Or  []*ReleaseVulnerabilityWhereInput `json:"or,omitempty"`
	And []*ReleaseVulnerabilityWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "vulnerability" edge predicates.
	HasVulnerability     *bool                      `json:"hasVulnerability,omitempty"`
	HasVulnerabilityWith []*VulnerabilityWhereInput `json:"hasVulnerabilityWith,omitempty"`

	// "component" edge predicates.
	HasComponent     *bool                         `json:"hasComponent,omitempty"`
	HasComponentWith []*ReleaseComponentWhereInput `json:"hasComponentWith,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "reviews" edge predicates.
	HasReviews     *bool                            `json:"hasReviews,omitempty"`
	HasReviewsWith []*VulnerabilityReviewWhereInput `json:"hasReviewsWith,omitempty"`

	// "scan" edge predicates.
	HasScan     *bool                 `json:"hasScan,omitempty"`
	HasScanWith []*CodeScanWhereInput `json:"hasScanWith,omitempty"`
}

ReleaseVulnerabilityWhereInput represents a where input for filtering ReleaseVulnerability queries.

func (*ReleaseVulnerabilityWhereInput) Filter

Filter applies the ReleaseVulnerabilityWhereInput filter on the ReleaseVulnerabilityQuery builder.

func (*ReleaseVulnerabilityWhereInput) P

P returns a predicate for filtering releasevulnerabilities. An error is returned if the input is empty or invalid.

type ReleaseWhereInput

type ReleaseWhereInput struct {
	Not *ReleaseWhereInput   `json:"not,omitempty"`
	Or  []*ReleaseWhereInput `json:"or,omitempty"`
	And []*ReleaseWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "version" field predicates.
	Version             *string  `json:"version,omitempty"`
	VersionNEQ          *string  `json:"versionNEQ,omitempty"`
	VersionIn           []string `json:"versionIn,omitempty"`
	VersionNotIn        []string `json:"versionNotIn,omitempty"`
	VersionGT           *string  `json:"versionGT,omitempty"`
	VersionGTE          *string  `json:"versionGTE,omitempty"`
	VersionLT           *string  `json:"versionLT,omitempty"`
	VersionLTE          *string  `json:"versionLTE,omitempty"`
	VersionContains     *string  `json:"versionContains,omitempty"`
	VersionHasPrefix    *string  `json:"versionHasPrefix,omitempty"`
	VersionHasSuffix    *string  `json:"versionHasSuffix,omitempty"`
	VersionEqualFold    *string  `json:"versionEqualFold,omitempty"`
	VersionContainsFold *string  `json:"versionContainsFold,omitempty"`

	// "subreleases" edge predicates.
	HasSubreleases     *bool                `json:"hasSubreleases,omitempty"`
	HasSubreleasesWith []*ReleaseWhereInput `json:"hasSubreleasesWith,omitempty"`

	// "dependencies" edge predicates.
	HasDependencies     *bool                `json:"hasDependencies,omitempty"`
	HasDependenciesWith []*ReleaseWhereInput `json:"hasDependenciesWith,omitempty"`

	// "commit" edge predicates.
	HasCommit     *bool                  `json:"hasCommit,omitempty"`
	HasCommitWith []*GitCommitWhereInput `json:"hasCommitWith,omitempty"`

	// "head_of" edge predicates.
	HasHeadOf     *bool             `json:"hasHeadOf,omitempty"`
	HasHeadOfWith []*RepoWhereInput `json:"hasHeadOfWith,omitempty"`

	// "log" edge predicates.
	HasLog     *bool                     `json:"hasLog,omitempty"`
	HasLogWith []*ReleaseEntryWhereInput `json:"hasLogWith,omitempty"`

	// "violations" edge predicates.
	HasViolations     *bool                               `json:"hasViolations,omitempty"`
	HasViolationsWith []*ReleasePolicyViolationWhereInput `json:"hasViolationsWith,omitempty"`

	// "artifacts" edge predicates.
	HasArtifacts     *bool                 `json:"hasArtifacts,omitempty"`
	HasArtifactsWith []*ArtifactWhereInput `json:"hasArtifactsWith,omitempty"`

	// "components" edge predicates.
	HasComponents     *bool                         `json:"hasComponents,omitempty"`
	HasComponentsWith []*ReleaseComponentWhereInput `json:"hasComponentsWith,omitempty"`

	// "vulnerabilities" edge predicates.
	HasVulnerabilities     *bool                             `json:"hasVulnerabilities,omitempty"`
	HasVulnerabilitiesWith []*ReleaseVulnerabilityWhereInput `json:"hasVulnerabilitiesWith,omitempty"`

	// "licenses" edge predicates.
	HasLicenses     *bool                       `json:"hasLicenses,omitempty"`
	HasLicensesWith []*ReleaseLicenseWhereInput `json:"hasLicensesWith,omitempty"`

	// "code_scans" edge predicates.
	HasCodeScans     *bool                 `json:"hasCodeScans,omitempty"`
	HasCodeScansWith []*CodeScanWhereInput `json:"hasCodeScansWith,omitempty"`

	// "test_runs" edge predicates.
	HasTestRuns     *bool                `json:"hasTestRuns,omitempty"`
	HasTestRunsWith []*TestRunWhereInput `json:"hasTestRunsWith,omitempty"`

	// "vulnerability_reviews" edge predicates.
	HasVulnerabilityReviews     *bool                            `json:"hasVulnerabilityReviews,omitempty"`
	HasVulnerabilityReviewsWith []*VulnerabilityReviewWhereInput `json:"hasVulnerabilityReviewsWith,omitempty"`
}

ReleaseWhereInput represents a where input for filtering Release queries.

func (*ReleaseWhereInput) Filter

Filter applies the ReleaseWhereInput filter on the ReleaseQuery builder.

func (*ReleaseWhereInput) P

P returns a predicate for filtering releases. An error is returned if the input is empty or invalid.

type Releases

type Releases []*Release

Releases is a parsable slice of Release.

type Repo

type Repo struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// DefaultBranch holds the value of the "default_branch" field.
	DefaultBranch string `json:"default_branch,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RepoQuery when eager-loading is set.
	Edges RepoEdges `json:"edges"`
	// contains filtered or unexported fields
}

Repo is the model entity for the Repo schema.

func (*Repo) Commits

func (r *Repo) Commits(ctx context.Context) ([]*GitCommit, error)

func (*Repo) Head

func (r *Repo) Head(ctx context.Context) (*Release, error)

func (*Repo) Node

func (r *Repo) Node(ctx context.Context) (node *Node, err error)

func (*Repo) Owner

func (r *Repo) Owner(ctx context.Context) (*Organization, error)

func (*Repo) Policies

func (r *Repo) Policies(ctx context.Context) ([]*ReleasePolicy, error)

func (*Repo) Project

func (r *Repo) Project(ctx context.Context) (*Project, error)

func (*Repo) QueryCommits

func (r *Repo) QueryCommits() *GitCommitQuery

QueryCommits queries the "commits" edge of the Repo entity.

func (*Repo) QueryHead

func (r *Repo) QueryHead() *ReleaseQuery

QueryHead queries the "head" edge of the Repo entity.

func (*Repo) QueryOwner

func (r *Repo) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Repo entity.

func (*Repo) QueryPolicies

func (r *Repo) QueryPolicies() *ReleasePolicyQuery

QueryPolicies queries the "policies" edge of the Repo entity.

func (*Repo) QueryProject

func (r *Repo) QueryProject() *ProjectQuery

QueryProject queries the "project" edge of the Repo entity.

func (*Repo) QueryVulnerabilityReviews

func (r *Repo) QueryVulnerabilityReviews() *VulnerabilityReviewQuery

QueryVulnerabilityReviews queries the "vulnerability_reviews" edge of the Repo entity.

func (*Repo) String

func (r *Repo) String() string

String implements the fmt.Stringer.

func (*Repo) ToEdge

func (r *Repo) ToEdge(order *RepoOrder) *RepoEdge

ToEdge converts Repo into RepoEdge.

func (*Repo) Unwrap

func (r *Repo) Unwrap() *Repo

Unwrap unwraps the Repo entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Repo) Update

func (r *Repo) Update() *RepoUpdateOne

Update returns a builder for updating this Repo. Note that you need to call Repo.Unwrap() before calling this method if this Repo was returned from a transaction, and the transaction was committed or rolled back.

func (*Repo) VulnerabilityReviews

func (r *Repo) VulnerabilityReviews(ctx context.Context) ([]*VulnerabilityReview, error)

type RepoClient

type RepoClient struct {
	// contains filtered or unexported fields
}

RepoClient is a client for the Repo schema.

func NewRepoClient

func NewRepoClient(c config) *RepoClient

NewRepoClient returns a client for the Repo from the given config.

func (*RepoClient) Create

func (c *RepoClient) Create() *RepoCreate

Create returns a create builder for Repo.

func (*RepoClient) CreateBulk

func (c *RepoClient) CreateBulk(builders ...*RepoCreate) *RepoCreateBulk

CreateBulk returns a builder for creating a bulk of Repo entities.

func (*RepoClient) Delete

func (c *RepoClient) Delete() *RepoDelete

Delete returns a delete builder for Repo.

func (*RepoClient) DeleteOne

func (c *RepoClient) DeleteOne(r *Repo) *RepoDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*RepoClient) DeleteOneID

func (c *RepoClient) DeleteOneID(id int) *RepoDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*RepoClient) Get

func (c *RepoClient) Get(ctx context.Context, id int) (*Repo, error)

Get returns a Repo entity by its id.

func (*RepoClient) GetX

func (c *RepoClient) GetX(ctx context.Context, id int) *Repo

GetX is like Get, but panics if an error occurs.

func (*RepoClient) Hooks

func (c *RepoClient) Hooks() []Hook

Hooks returns the client hooks.

func (*RepoClient) Query

func (c *RepoClient) Query() *RepoQuery

Query returns a query builder for Repo.

func (*RepoClient) QueryCommits

func (c *RepoClient) QueryCommits(r *Repo) *GitCommitQuery

QueryCommits queries the commits edge of a Repo.

func (*RepoClient) QueryHead

func (c *RepoClient) QueryHead(r *Repo) *ReleaseQuery

QueryHead queries the head edge of a Repo.

func (*RepoClient) QueryOwner

func (c *RepoClient) QueryOwner(r *Repo) *OrganizationQuery

QueryOwner queries the owner edge of a Repo.

func (*RepoClient) QueryPolicies

func (c *RepoClient) QueryPolicies(r *Repo) *ReleasePolicyQuery

QueryPolicies queries the policies edge of a Repo.

func (*RepoClient) QueryProject

func (c *RepoClient) QueryProject(r *Repo) *ProjectQuery

QueryProject queries the project edge of a Repo.

func (*RepoClient) QueryVulnerabilityReviews

func (c *RepoClient) QueryVulnerabilityReviews(r *Repo) *VulnerabilityReviewQuery

QueryVulnerabilityReviews queries the vulnerability_reviews edge of a Repo.

func (*RepoClient) Update

func (c *RepoClient) Update() *RepoUpdate

Update returns an update builder for Repo.

func (*RepoClient) UpdateOne

func (c *RepoClient) UpdateOne(r *Repo) *RepoUpdateOne

UpdateOne returns an update builder for the given entity.

func (*RepoClient) UpdateOneID

func (c *RepoClient) UpdateOneID(id int) *RepoUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RepoClient) Use

func (c *RepoClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `repo.Hooks(f(g(h())))`.

type RepoConnection

type RepoConnection struct {
	Edges      []*RepoEdge `json:"edges"`
	PageInfo   PageInfo    `json:"pageInfo"`
	TotalCount int         `json:"totalCount"`
}

RepoConnection is the connection containing edges to Repo.

type RepoCreate

type RepoCreate struct {
	// contains filtered or unexported fields
}

RepoCreate is the builder for creating a Repo entity.

func (*RepoCreate) AddCommitIDs

func (rc *RepoCreate) AddCommitIDs(ids ...int) *RepoCreate

AddCommitIDs adds the "commits" edge to the GitCommit entity by IDs.

func (*RepoCreate) AddCommits

func (rc *RepoCreate) AddCommits(g ...*GitCommit) *RepoCreate

AddCommits adds the "commits" edges to the GitCommit entity.

func (*RepoCreate) AddPolicies

func (rc *RepoCreate) AddPolicies(r ...*ReleasePolicy) *RepoCreate

AddPolicies adds the "policies" edges to the ReleasePolicy entity.

func (*RepoCreate) AddPolicyIDs

func (rc *RepoCreate) AddPolicyIDs(ids ...int) *RepoCreate

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by IDs.

func (*RepoCreate) AddVulnerabilityReviewIDs

func (rc *RepoCreate) AddVulnerabilityReviewIDs(ids ...int) *RepoCreate

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*RepoCreate) AddVulnerabilityReviews

func (rc *RepoCreate) AddVulnerabilityReviews(v ...*VulnerabilityReview) *RepoCreate

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*RepoCreate) Exec

func (rc *RepoCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*RepoCreate) ExecX

func (rc *RepoCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RepoCreate) Mutation

func (rc *RepoCreate) Mutation() *RepoMutation

Mutation returns the RepoMutation object of the builder.

func (*RepoCreate) Save

func (rc *RepoCreate) Save(ctx context.Context) (*Repo, error)

Save creates the Repo in the database.

func (*RepoCreate) SaveX

func (rc *RepoCreate) SaveX(ctx context.Context) *Repo

SaveX calls Save and panics if Save returns an error.

func (*RepoCreate) SetDefaultBranch

func (rc *RepoCreate) SetDefaultBranch(s string) *RepoCreate

SetDefaultBranch sets the "default_branch" field.

func (*RepoCreate) SetHead

func (rc *RepoCreate) SetHead(r *Release) *RepoCreate

SetHead sets the "head" edge to the Release entity.

func (*RepoCreate) SetHeadID

func (rc *RepoCreate) SetHeadID(id int) *RepoCreate

SetHeadID sets the "head" edge to the Release entity by ID.

func (*RepoCreate) SetModelCreate

func (r *RepoCreate) SetModelCreate(model *RepoModelCreate) *RepoCreate

func (*RepoCreate) SetName

func (rc *RepoCreate) SetName(s string) *RepoCreate

SetName sets the "name" field.

func (*RepoCreate) SetNillableDefaultBranch

func (rc *RepoCreate) SetNillableDefaultBranch(s *string) *RepoCreate

SetNillableDefaultBranch sets the "default_branch" field if the given value is not nil.

func (*RepoCreate) SetNillableHeadID

func (rc *RepoCreate) SetNillableHeadID(id *int) *RepoCreate

SetNillableHeadID sets the "head" edge to the Release entity by ID if the given value is not nil.

func (*RepoCreate) SetOwner

func (rc *RepoCreate) SetOwner(o *Organization) *RepoCreate

SetOwner sets the "owner" edge to the Organization entity.

func (*RepoCreate) SetOwnerID

func (rc *RepoCreate) SetOwnerID(id int) *RepoCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*RepoCreate) SetProject

func (rc *RepoCreate) SetProject(p *Project) *RepoCreate

SetProject sets the "project" edge to the Project entity.

func (*RepoCreate) SetProjectID

func (rc *RepoCreate) SetProjectID(id int) *RepoCreate

SetProjectID sets the "project" edge to the Project entity by ID.

type RepoCreateBulk

type RepoCreateBulk struct {
	// contains filtered or unexported fields
}

RepoCreateBulk is the builder for creating many Repo entities in bulk.

func (*RepoCreateBulk) Exec

func (rcb *RepoCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*RepoCreateBulk) ExecX

func (rcb *RepoCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RepoCreateBulk) Save

func (rcb *RepoCreateBulk) Save(ctx context.Context) ([]*Repo, error)

Save creates the Repo entities in the database.

func (*RepoCreateBulk) SaveX

func (rcb *RepoCreateBulk) SaveX(ctx context.Context) []*Repo

SaveX is like Save, but panics if an error occurs.

type RepoDelete

type RepoDelete struct {
	// contains filtered or unexported fields
}

RepoDelete is the builder for deleting a Repo entity.

func (*RepoDelete) Exec

func (rd *RepoDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*RepoDelete) ExecX

func (rd *RepoDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*RepoDelete) Where

func (rd *RepoDelete) Where(ps ...predicate.Repo) *RepoDelete

Where appends a list predicates to the RepoDelete builder.

type RepoDeleteOne

type RepoDeleteOne struct {
	// contains filtered or unexported fields
}

RepoDeleteOne is the builder for deleting a single Repo entity.

func (*RepoDeleteOne) Exec

func (rdo *RepoDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*RepoDeleteOne) ExecX

func (rdo *RepoDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type RepoEdge

type RepoEdge struct {
	Node   *Repo  `json:"node"`
	Cursor Cursor `json:"cursor"`
}

RepoEdge is the edge representation of Repo.

type RepoEdges

type RepoEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// Project holds the value of the project edge.
	Project *Project `json:"project,omitempty"`
	// Head holds the value of the head edge.
	Head *Release `json:"head,omitempty"`
	// Commits holds the value of the commits edge.
	Commits []*GitCommit `json:"commits,omitempty"`
	// VulnerabilityReviews holds the value of the vulnerability_reviews edge.
	VulnerabilityReviews []*VulnerabilityReview `json:"vulnerability_reviews,omitempty"`
	// Policies holds the value of the policies edge.
	Policies []*ReleasePolicy `json:"policies,omitempty"`
	// contains filtered or unexported fields
}

RepoEdges holds the relations/edges for other nodes in the graph.

func (RepoEdges) CommitsOrErr

func (e RepoEdges) CommitsOrErr() ([]*GitCommit, error)

CommitsOrErr returns the Commits value or an error if the edge was not loaded in eager-loading.

func (RepoEdges) HeadOrErr

func (e RepoEdges) HeadOrErr() (*Release, error)

HeadOrErr returns the Head value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (RepoEdges) OwnerOrErr

func (e RepoEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (RepoEdges) PoliciesOrErr

func (e RepoEdges) PoliciesOrErr() ([]*ReleasePolicy, error)

PoliciesOrErr returns the Policies value or an error if the edge was not loaded in eager-loading.

func (RepoEdges) ProjectOrErr

func (e RepoEdges) ProjectOrErr() (*Project, error)

ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (RepoEdges) VulnerabilityReviewsOrErr

func (e RepoEdges) VulnerabilityReviewsOrErr() ([]*VulnerabilityReview, error)

VulnerabilityReviewsOrErr returns the VulnerabilityReviews value or an error if the edge was not loaded in eager-loading.

type RepoGroupBy

type RepoGroupBy struct {
	// contains filtered or unexported fields
}

RepoGroupBy is the group-by builder for Repo entities.

func (*RepoGroupBy) Aggregate

func (rgb *RepoGroupBy) Aggregate(fns ...AggregateFunc) *RepoGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*RepoGroupBy) Bool

func (rgb *RepoGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) BoolX

func (rgb *RepoGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RepoGroupBy) Bools

func (rgb *RepoGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) BoolsX

func (rgb *RepoGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RepoGroupBy) Float64

func (rgb *RepoGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) Float64X

func (rgb *RepoGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RepoGroupBy) Float64s

func (rgb *RepoGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) Float64sX

func (rgb *RepoGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RepoGroupBy) Int

func (rgb *RepoGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) IntX

func (rgb *RepoGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RepoGroupBy) Ints

func (rgb *RepoGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) IntsX

func (rgb *RepoGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RepoGroupBy) Scan

func (rgb *RepoGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*RepoGroupBy) ScanX

func (rgb *RepoGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RepoGroupBy) String

func (rgb *RepoGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) StringX

func (rgb *RepoGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RepoGroupBy) Strings

func (rgb *RepoGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*RepoGroupBy) StringsX

func (rgb *RepoGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RepoModelCreate

type RepoModelCreate struct {
	Name          *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	DefaultBranch *string `json:"default_branch,omitempty"  mapstructure:"default_branch"`
}

func NewRepoModelCreate

func NewRepoModelCreate() *RepoModelCreate

func (*RepoModelCreate) SetDefaultBranch

func (r *RepoModelCreate) SetDefaultBranch(value string) *RepoModelCreate

func (*RepoModelCreate) SetName

func (r *RepoModelCreate) SetName(value string) *RepoModelCreate

type RepoModelRead

type RepoModelRead struct {
	Name          *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	DefaultBranch *string `json:"default_branch,omitempty"  mapstructure:"default_branch"`
	ID            *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewRepoModelRead

func NewRepoModelRead() *RepoModelRead

func (*RepoModelRead) FromEnt

func (r *RepoModelRead) FromEnt(value *Repo) *RepoModelRead

type RepoModelUpdate

type RepoModelUpdate struct {
	Name          *string `json:"name,omitempty"  mapstructure:"name"`
	DefaultBranch *string `json:"default_branch,omitempty"  mapstructure:"default_branch"`
}

func NewRepoModelUpdate

func NewRepoModelUpdate() *RepoModelUpdate

func (*RepoModelUpdate) SetDefaultBranch

func (r *RepoModelUpdate) SetDefaultBranch(value string) *RepoModelUpdate

func (*RepoModelUpdate) SetName

func (r *RepoModelUpdate) SetName(value string) *RepoModelUpdate

type RepoMutation

type RepoMutation struct {
	// contains filtered or unexported fields
}

RepoMutation represents an operation that mutates the Repo nodes in the graph.

func (*RepoMutation) AddCommitIDs

func (m *RepoMutation) AddCommitIDs(ids ...int)

AddCommitIDs adds the "commits" edge to the GitCommit entity by ids.

func (*RepoMutation) AddField

func (m *RepoMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*RepoMutation) AddPolicyIDs

func (m *RepoMutation) AddPolicyIDs(ids ...int)

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by ids.

func (*RepoMutation) AddVulnerabilityReviewIDs

func (m *RepoMutation) AddVulnerabilityReviewIDs(ids ...int)

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by ids.

func (*RepoMutation) AddedEdges

func (m *RepoMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*RepoMutation) AddedField

func (m *RepoMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*RepoMutation) AddedFields

func (m *RepoMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*RepoMutation) AddedIDs

func (m *RepoMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*RepoMutation) ClearCommits

func (m *RepoMutation) ClearCommits()

ClearCommits clears the "commits" edge to the GitCommit entity.

func (*RepoMutation) ClearEdge

func (m *RepoMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*RepoMutation) ClearField

func (m *RepoMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*RepoMutation) ClearHead

func (m *RepoMutation) ClearHead()

ClearHead clears the "head" edge to the Release entity.

func (*RepoMutation) ClearOwner

func (m *RepoMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*RepoMutation) ClearPolicies

func (m *RepoMutation) ClearPolicies()

ClearPolicies clears the "policies" edge to the ReleasePolicy entity.

func (*RepoMutation) ClearProject

func (m *RepoMutation) ClearProject()

ClearProject clears the "project" edge to the Project entity.

func (*RepoMutation) ClearVulnerabilityReviews

func (m *RepoMutation) ClearVulnerabilityReviews()

ClearVulnerabilityReviews clears the "vulnerability_reviews" edge to the VulnerabilityReview entity.

func (*RepoMutation) ClearedEdges

func (m *RepoMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*RepoMutation) ClearedFields

func (m *RepoMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (RepoMutation) Client

func (m RepoMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*RepoMutation) CommitsCleared

func (m *RepoMutation) CommitsCleared() bool

CommitsCleared reports if the "commits" edge to the GitCommit entity was cleared.

func (*RepoMutation) CommitsIDs

func (m *RepoMutation) CommitsIDs() (ids []int)

CommitsIDs returns the "commits" edge IDs in the mutation.

func (*RepoMutation) DefaultBranch

func (m *RepoMutation) DefaultBranch() (r string, exists bool)

DefaultBranch returns the value of the "default_branch" field in the mutation.

func (*RepoMutation) EdgeCleared

func (m *RepoMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*RepoMutation) Field

func (m *RepoMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*RepoMutation) FieldCleared

func (m *RepoMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*RepoMutation) Fields

func (m *RepoMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*RepoMutation) HeadCleared

func (m *RepoMutation) HeadCleared() bool

HeadCleared reports if the "head" edge to the Release entity was cleared.

func (*RepoMutation) HeadID

func (m *RepoMutation) HeadID() (id int, exists bool)

HeadID returns the "head" edge ID in the mutation.

func (*RepoMutation) HeadIDs

func (m *RepoMutation) HeadIDs() (ids []int)

HeadIDs returns the "head" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use HeadID instead. It exists only for internal usage by the builders.

func (*RepoMutation) ID

func (m *RepoMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*RepoMutation) Name

func (m *RepoMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*RepoMutation) OldDefaultBranch

func (m *RepoMutation) OldDefaultBranch(ctx context.Context) (v string, err error)

OldDefaultBranch returns the old "default_branch" field's value of the Repo entity. If the Repo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*RepoMutation) OldField

func (m *RepoMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*RepoMutation) OldName

func (m *RepoMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Repo entity. If the Repo object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*RepoMutation) Op

func (m *RepoMutation) Op() Op

Op returns the operation name.

func (*RepoMutation) OwnerCleared

func (m *RepoMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*RepoMutation) OwnerID

func (m *RepoMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*RepoMutation) OwnerIDs

func (m *RepoMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*RepoMutation) PoliciesCleared

func (m *RepoMutation) PoliciesCleared() bool

PoliciesCleared reports if the "policies" edge to the ReleasePolicy entity was cleared.

func (*RepoMutation) PoliciesIDs

func (m *RepoMutation) PoliciesIDs() (ids []int)

PoliciesIDs returns the "policies" edge IDs in the mutation.

func (*RepoMutation) ProjectCleared

func (m *RepoMutation) ProjectCleared() bool

ProjectCleared reports if the "project" edge to the Project entity was cleared.

func (*RepoMutation) ProjectID

func (m *RepoMutation) ProjectID() (id int, exists bool)

ProjectID returns the "project" edge ID in the mutation.

func (*RepoMutation) ProjectIDs

func (m *RepoMutation) ProjectIDs() (ids []int)

ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.

func (*RepoMutation) RemoveCommitIDs

func (m *RepoMutation) RemoveCommitIDs(ids ...int)

RemoveCommitIDs removes the "commits" edge to the GitCommit entity by IDs.

func (*RepoMutation) RemovePolicyIDs

func (m *RepoMutation) RemovePolicyIDs(ids ...int)

RemovePolicyIDs removes the "policies" edge to the ReleasePolicy entity by IDs.

func (*RepoMutation) RemoveVulnerabilityReviewIDs

func (m *RepoMutation) RemoveVulnerabilityReviewIDs(ids ...int)

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*RepoMutation) RemovedCommitsIDs

func (m *RepoMutation) RemovedCommitsIDs() (ids []int)

RemovedCommits returns the removed IDs of the "commits" edge to the GitCommit entity.

func (*RepoMutation) RemovedEdges

func (m *RepoMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*RepoMutation) RemovedIDs

func (m *RepoMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*RepoMutation) RemovedPoliciesIDs

func (m *RepoMutation) RemovedPoliciesIDs() (ids []int)

RemovedPolicies returns the removed IDs of the "policies" edge to the ReleasePolicy entity.

func (*RepoMutation) RemovedVulnerabilityReviewsIDs

func (m *RepoMutation) RemovedVulnerabilityReviewsIDs() (ids []int)

RemovedVulnerabilityReviews returns the removed IDs of the "vulnerability_reviews" edge to the VulnerabilityReview entity.

func (*RepoMutation) ResetCommits

func (m *RepoMutation) ResetCommits()

ResetCommits resets all changes to the "commits" edge.

func (*RepoMutation) ResetDefaultBranch

func (m *RepoMutation) ResetDefaultBranch()

ResetDefaultBranch resets all changes to the "default_branch" field.

func (*RepoMutation) ResetEdge

func (m *RepoMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*RepoMutation) ResetField

func (m *RepoMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*RepoMutation) ResetHead

func (m *RepoMutation) ResetHead()

ResetHead resets all changes to the "head" edge.

func (*RepoMutation) ResetName

func (m *RepoMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*RepoMutation) ResetOwner

func (m *RepoMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*RepoMutation) ResetPolicies

func (m *RepoMutation) ResetPolicies()

ResetPolicies resets all changes to the "policies" edge.

func (*RepoMutation) ResetProject

func (m *RepoMutation) ResetProject()

ResetProject resets all changes to the "project" edge.

func (*RepoMutation) ResetVulnerabilityReviews

func (m *RepoMutation) ResetVulnerabilityReviews()

ResetVulnerabilityReviews resets all changes to the "vulnerability_reviews" edge.

func (*RepoMutation) SetDefaultBranch

func (m *RepoMutation) SetDefaultBranch(s string)

SetDefaultBranch sets the "default_branch" field.

func (*RepoMutation) SetField

func (m *RepoMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*RepoMutation) SetHeadID

func (m *RepoMutation) SetHeadID(id int)

SetHeadID sets the "head" edge to the Release entity by id.

func (*RepoMutation) SetModelCreate

func (r *RepoMutation) SetModelCreate(model *RepoModelCreate) *RepoMutation

func (*RepoMutation) SetModelUpdate

func (r *RepoMutation) SetModelUpdate(model *RepoModelUpdate) *RepoMutation

func (*RepoMutation) SetName

func (m *RepoMutation) SetName(s string)

SetName sets the "name" field.

func (*RepoMutation) SetOwnerID

func (m *RepoMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*RepoMutation) SetProjectID

func (m *RepoMutation) SetProjectID(id int)

SetProjectID sets the "project" edge to the Project entity by id.

func (RepoMutation) Tx

func (m RepoMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*RepoMutation) Type

func (m *RepoMutation) Type() string

Type returns the node type of this mutation (Repo).

func (*RepoMutation) VulnerabilityReviewsCleared

func (m *RepoMutation) VulnerabilityReviewsCleared() bool

VulnerabilityReviewsCleared reports if the "vulnerability_reviews" edge to the VulnerabilityReview entity was cleared.

func (*RepoMutation) VulnerabilityReviewsIDs

func (m *RepoMutation) VulnerabilityReviewsIDs() (ids []int)

VulnerabilityReviewsIDs returns the "vulnerability_reviews" edge IDs in the mutation.

func (*RepoMutation) Where

func (m *RepoMutation) Where(ps ...predicate.Repo)

Where appends a list predicates to the RepoMutation builder.

type RepoOrder

type RepoOrder struct {
	Direction OrderDirection  `json:"direction"`
	Field     *RepoOrderField `json:"field"`
}

RepoOrder defines the ordering of Repo.

type RepoOrderField

type RepoOrderField struct {
	// contains filtered or unexported fields
}

RepoOrderField defines the ordering field of Repo.

func (RepoOrderField) MarshalGQL

func (f RepoOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (RepoOrderField) String

func (f RepoOrderField) String() string

String implement fmt.Stringer interface.

func (*RepoOrderField) UnmarshalGQL

func (f *RepoOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type RepoPaginateOption

type RepoPaginateOption func(*repoPager) error

RepoPaginateOption enables pagination customization.

func WithRepoFilter

func WithRepoFilter(filter func(*RepoQuery) (*RepoQuery, error)) RepoPaginateOption

WithRepoFilter configures pagination filter.

func WithRepoOrder

func WithRepoOrder(order *RepoOrder) RepoPaginateOption

WithRepoOrder configures pagination ordering.

type RepoQuery

type RepoQuery struct {
	// contains filtered or unexported fields
}

RepoQuery is the builder for querying Repo entities.

func (*RepoQuery) All

func (rq *RepoQuery) All(ctx context.Context) ([]*Repo, error)

All executes the query and returns a list of Repos.

func (*RepoQuery) AllX

func (rq *RepoQuery) AllX(ctx context.Context) []*Repo

AllX is like All, but panics if an error occurs.

func (*RepoQuery) Clone

func (rq *RepoQuery) Clone() *RepoQuery

Clone returns a duplicate of the RepoQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*RepoQuery) CollectFields

func (r *RepoQuery) CollectFields(ctx context.Context, satisfies ...string) *RepoQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*RepoQuery) Count

func (rq *RepoQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RepoQuery) CountX

func (rq *RepoQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*RepoQuery) Exist

func (rq *RepoQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*RepoQuery) ExistX

func (rq *RepoQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*RepoQuery) Filter

func (r *RepoQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *RepoOrder, where *RepoWhereInput,
) ([]*Repo, error)

func (*RepoQuery) First

func (rq *RepoQuery) First(ctx context.Context) (*Repo, error)

First returns the first Repo entity from the query. Returns a *NotFoundError when no Repo was found.

func (*RepoQuery) FirstID

func (rq *RepoQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Repo ID from the query. Returns a *NotFoundError when no Repo ID was found.

func (*RepoQuery) FirstIDX

func (rq *RepoQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*RepoQuery) FirstX

func (rq *RepoQuery) FirstX(ctx context.Context) *Repo

FirstX is like First, but panics if an error occurs.

func (*RepoQuery) GroupBy

func (rq *RepoQuery) GroupBy(field string, fields ...string) *RepoGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Repo.Query().
	GroupBy(repo.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*RepoQuery) IDs

func (rq *RepoQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Repo IDs.

func (*RepoQuery) IDsX

func (rq *RepoQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*RepoQuery) Limit

func (rq *RepoQuery) Limit(limit int) *RepoQuery

Limit adds a limit step to the query.

func (*RepoQuery) Offset

func (rq *RepoQuery) Offset(offset int) *RepoQuery

Offset adds an offset step to the query.

func (*RepoQuery) Only

func (rq *RepoQuery) Only(ctx context.Context) (*Repo, error)

Only returns a single Repo entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Repo entity is not found. Returns a *NotFoundError when no Repo entities are found.

func (*RepoQuery) OnlyID

func (rq *RepoQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Repo ID in the query. Returns a *NotSingularError when exactly one Repo ID is not found. Returns a *NotFoundError when no entities are found.

func (*RepoQuery) OnlyIDX

func (rq *RepoQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*RepoQuery) OnlyX

func (rq *RepoQuery) OnlyX(ctx context.Context) *Repo

OnlyX is like Only, but panics if an error occurs.

func (*RepoQuery) Order

func (rq *RepoQuery) Order(o ...OrderFunc) *RepoQuery

Order adds an order step to the query.

func (*RepoQuery) Paginate

func (r *RepoQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...RepoPaginateOption,
) (*RepoConnection, error)

Paginate executes the query and returns a relay based cursor connection to Repo.

func (*RepoQuery) QueryCommits

func (rq *RepoQuery) QueryCommits() *GitCommitQuery

QueryCommits chains the current query on the "commits" edge.

func (*RepoQuery) QueryHead

func (rq *RepoQuery) QueryHead() *ReleaseQuery

QueryHead chains the current query on the "head" edge.

func (*RepoQuery) QueryOwner

func (rq *RepoQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*RepoQuery) QueryPolicies

func (rq *RepoQuery) QueryPolicies() *ReleasePolicyQuery

QueryPolicies chains the current query on the "policies" edge.

func (*RepoQuery) QueryProject

func (rq *RepoQuery) QueryProject() *ProjectQuery

QueryProject chains the current query on the "project" edge.

func (*RepoQuery) QueryVulnerabilityReviews

func (rq *RepoQuery) QueryVulnerabilityReviews() *VulnerabilityReviewQuery

QueryVulnerabilityReviews chains the current query on the "vulnerability_reviews" edge.

func (*RepoQuery) Select

func (rq *RepoQuery) Select(fields ...string) *RepoSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.Repo.Query().
	Select(repo.FieldName).
	Scan(ctx, &v)

func (*RepoQuery) Unique

func (rq *RepoQuery) Unique(unique bool) *RepoQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*RepoQuery) Where

func (rq *RepoQuery) Where(ps ...predicate.Repo) *RepoQuery

Where adds a new predicate for the RepoQuery builder.

func (*RepoQuery) WhereInput

func (r *RepoQuery) WhereInput(input *RepoWhereInput) *RepoQuery

func (*RepoQuery) WithCommits

func (rq *RepoQuery) WithCommits(opts ...func(*GitCommitQuery)) *RepoQuery

WithCommits tells the query-builder to eager-load the nodes that are connected to the "commits" edge. The optional arguments are used to configure the query builder of the edge.

func (*RepoQuery) WithHead

func (rq *RepoQuery) WithHead(opts ...func(*ReleaseQuery)) *RepoQuery

WithHead tells the query-builder to eager-load the nodes that are connected to the "head" edge. The optional arguments are used to configure the query builder of the edge.

func (*RepoQuery) WithOwner

func (rq *RepoQuery) WithOwner(opts ...func(*OrganizationQuery)) *RepoQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*RepoQuery) WithPolicies

func (rq *RepoQuery) WithPolicies(opts ...func(*ReleasePolicyQuery)) *RepoQuery

WithPolicies tells the query-builder to eager-load the nodes that are connected to the "policies" edge. The optional arguments are used to configure the query builder of the edge.

func (*RepoQuery) WithProject

func (rq *RepoQuery) WithProject(opts ...func(*ProjectQuery)) *RepoQuery

WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.

func (*RepoQuery) WithVulnerabilityReviews

func (rq *RepoQuery) WithVulnerabilityReviews(opts ...func(*VulnerabilityReviewQuery)) *RepoQuery

WithVulnerabilityReviews tells the query-builder to eager-load the nodes that are connected to the "vulnerability_reviews" edge. The optional arguments are used to configure the query builder of the edge.

type RepoSelect

type RepoSelect struct {
	*RepoQuery
	// contains filtered or unexported fields
}

RepoSelect is the builder for selecting fields of Repo entities.

func (*RepoSelect) Bool

func (rs *RepoSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*RepoSelect) BoolX

func (rs *RepoSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*RepoSelect) Bools

func (rs *RepoSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*RepoSelect) BoolsX

func (rs *RepoSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*RepoSelect) Float64

func (rs *RepoSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*RepoSelect) Float64X

func (rs *RepoSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*RepoSelect) Float64s

func (rs *RepoSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*RepoSelect) Float64sX

func (rs *RepoSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*RepoSelect) Int

func (rs *RepoSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*RepoSelect) IntX

func (rs *RepoSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*RepoSelect) Ints

func (rs *RepoSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*RepoSelect) IntsX

func (rs *RepoSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*RepoSelect) Scan

func (rs *RepoSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*RepoSelect) ScanX

func (rs *RepoSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*RepoSelect) String

func (rs *RepoSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*RepoSelect) StringX

func (rs *RepoSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*RepoSelect) Strings

func (rs *RepoSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*RepoSelect) StringsX

func (rs *RepoSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type RepoUpdate

type RepoUpdate struct {
	// contains filtered or unexported fields
}

RepoUpdate is the builder for updating Repo entities.

func (*RepoUpdate) AddCommitIDs

func (ru *RepoUpdate) AddCommitIDs(ids ...int) *RepoUpdate

AddCommitIDs adds the "commits" edge to the GitCommit entity by IDs.

func (*RepoUpdate) AddCommits

func (ru *RepoUpdate) AddCommits(g ...*GitCommit) *RepoUpdate

AddCommits adds the "commits" edges to the GitCommit entity.

func (*RepoUpdate) AddPolicies

func (ru *RepoUpdate) AddPolicies(r ...*ReleasePolicy) *RepoUpdate

AddPolicies adds the "policies" edges to the ReleasePolicy entity.

func (*RepoUpdate) AddPolicyIDs

func (ru *RepoUpdate) AddPolicyIDs(ids ...int) *RepoUpdate

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by IDs.

func (*RepoUpdate) AddVulnerabilityReviewIDs

func (ru *RepoUpdate) AddVulnerabilityReviewIDs(ids ...int) *RepoUpdate

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*RepoUpdate) AddVulnerabilityReviews

func (ru *RepoUpdate) AddVulnerabilityReviews(v ...*VulnerabilityReview) *RepoUpdate

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*RepoUpdate) ClearCommits

func (ru *RepoUpdate) ClearCommits() *RepoUpdate

ClearCommits clears all "commits" edges to the GitCommit entity.

func (*RepoUpdate) ClearHead

func (ru *RepoUpdate) ClearHead() *RepoUpdate

ClearHead clears the "head" edge to the Release entity.

func (*RepoUpdate) ClearOwner

func (ru *RepoUpdate) ClearOwner() *RepoUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*RepoUpdate) ClearPolicies

func (ru *RepoUpdate) ClearPolicies() *RepoUpdate

ClearPolicies clears all "policies" edges to the ReleasePolicy entity.

func (*RepoUpdate) ClearProject

func (ru *RepoUpdate) ClearProject() *RepoUpdate

ClearProject clears the "project" edge to the Project entity.

func (*RepoUpdate) ClearVulnerabilityReviews

func (ru *RepoUpdate) ClearVulnerabilityReviews() *RepoUpdate

ClearVulnerabilityReviews clears all "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*RepoUpdate) Exec

func (ru *RepoUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RepoUpdate) ExecX

func (ru *RepoUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RepoUpdate) Mutation

func (ru *RepoUpdate) Mutation() *RepoMutation

Mutation returns the RepoMutation object of the builder.

func (*RepoUpdate) RemoveCommitIDs

func (ru *RepoUpdate) RemoveCommitIDs(ids ...int) *RepoUpdate

RemoveCommitIDs removes the "commits" edge to GitCommit entities by IDs.

func (*RepoUpdate) RemoveCommits

func (ru *RepoUpdate) RemoveCommits(g ...*GitCommit) *RepoUpdate

RemoveCommits removes "commits" edges to GitCommit entities.

func (*RepoUpdate) RemovePolicies

func (ru *RepoUpdate) RemovePolicies(r ...*ReleasePolicy) *RepoUpdate

RemovePolicies removes "policies" edges to ReleasePolicy entities.

func (*RepoUpdate) RemovePolicyIDs

func (ru *RepoUpdate) RemovePolicyIDs(ids ...int) *RepoUpdate

RemovePolicyIDs removes the "policies" edge to ReleasePolicy entities by IDs.

func (*RepoUpdate) RemoveVulnerabilityReviewIDs

func (ru *RepoUpdate) RemoveVulnerabilityReviewIDs(ids ...int) *RepoUpdate

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to VulnerabilityReview entities by IDs.

func (*RepoUpdate) RemoveVulnerabilityReviews

func (ru *RepoUpdate) RemoveVulnerabilityReviews(v ...*VulnerabilityReview) *RepoUpdate

RemoveVulnerabilityReviews removes "vulnerability_reviews" edges to VulnerabilityReview entities.

func (*RepoUpdate) Save

func (ru *RepoUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*RepoUpdate) SaveX

func (ru *RepoUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*RepoUpdate) SetDefaultBranch

func (ru *RepoUpdate) SetDefaultBranch(s string) *RepoUpdate

SetDefaultBranch sets the "default_branch" field.

func (*RepoUpdate) SetHead

func (ru *RepoUpdate) SetHead(r *Release) *RepoUpdate

SetHead sets the "head" edge to the Release entity.

func (*RepoUpdate) SetHeadID

func (ru *RepoUpdate) SetHeadID(id int) *RepoUpdate

SetHeadID sets the "head" edge to the Release entity by ID.

func (*RepoUpdate) SetName

func (ru *RepoUpdate) SetName(s string) *RepoUpdate

SetName sets the "name" field.

func (*RepoUpdate) SetNillableDefaultBranch

func (ru *RepoUpdate) SetNillableDefaultBranch(s *string) *RepoUpdate

SetNillableDefaultBranch sets the "default_branch" field if the given value is not nil.

func (*RepoUpdate) SetNillableHeadID

func (ru *RepoUpdate) SetNillableHeadID(id *int) *RepoUpdate

SetNillableHeadID sets the "head" edge to the Release entity by ID if the given value is not nil.

func (*RepoUpdate) SetOwner

func (ru *RepoUpdate) SetOwner(o *Organization) *RepoUpdate

SetOwner sets the "owner" edge to the Organization entity.

func (*RepoUpdate) SetOwnerID

func (ru *RepoUpdate) SetOwnerID(id int) *RepoUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*RepoUpdate) SetProject

func (ru *RepoUpdate) SetProject(p *Project) *RepoUpdate

SetProject sets the "project" edge to the Project entity.

func (*RepoUpdate) SetProjectID

func (ru *RepoUpdate) SetProjectID(id int) *RepoUpdate

SetProjectID sets the "project" edge to the Project entity by ID.

func (*RepoUpdate) Where

func (ru *RepoUpdate) Where(ps ...predicate.Repo) *RepoUpdate

Where appends a list predicates to the RepoUpdate builder.

type RepoUpdateOne

type RepoUpdateOne struct {
	// contains filtered or unexported fields
}

RepoUpdateOne is the builder for updating a single Repo entity.

func (*RepoUpdateOne) AddCommitIDs

func (ruo *RepoUpdateOne) AddCommitIDs(ids ...int) *RepoUpdateOne

AddCommitIDs adds the "commits" edge to the GitCommit entity by IDs.

func (*RepoUpdateOne) AddCommits

func (ruo *RepoUpdateOne) AddCommits(g ...*GitCommit) *RepoUpdateOne

AddCommits adds the "commits" edges to the GitCommit entity.

func (*RepoUpdateOne) AddPolicies

func (ruo *RepoUpdateOne) AddPolicies(r ...*ReleasePolicy) *RepoUpdateOne

AddPolicies adds the "policies" edges to the ReleasePolicy entity.

func (*RepoUpdateOne) AddPolicyIDs

func (ruo *RepoUpdateOne) AddPolicyIDs(ids ...int) *RepoUpdateOne

AddPolicyIDs adds the "policies" edge to the ReleasePolicy entity by IDs.

func (*RepoUpdateOne) AddVulnerabilityReviewIDs

func (ruo *RepoUpdateOne) AddVulnerabilityReviewIDs(ids ...int) *RepoUpdateOne

AddVulnerabilityReviewIDs adds the "vulnerability_reviews" edge to the VulnerabilityReview entity by IDs.

func (*RepoUpdateOne) AddVulnerabilityReviews

func (ruo *RepoUpdateOne) AddVulnerabilityReviews(v ...*VulnerabilityReview) *RepoUpdateOne

AddVulnerabilityReviews adds the "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*RepoUpdateOne) ClearCommits

func (ruo *RepoUpdateOne) ClearCommits() *RepoUpdateOne

ClearCommits clears all "commits" edges to the GitCommit entity.

func (*RepoUpdateOne) ClearHead

func (ruo *RepoUpdateOne) ClearHead() *RepoUpdateOne

ClearHead clears the "head" edge to the Release entity.

func (*RepoUpdateOne) ClearOwner

func (ruo *RepoUpdateOne) ClearOwner() *RepoUpdateOne

ClearOwner clears the "owner" edge to the Organization entity.

func (*RepoUpdateOne) ClearPolicies

func (ruo *RepoUpdateOne) ClearPolicies() *RepoUpdateOne

ClearPolicies clears all "policies" edges to the ReleasePolicy entity.

func (*RepoUpdateOne) ClearProject

func (ruo *RepoUpdateOne) ClearProject() *RepoUpdateOne

ClearProject clears the "project" edge to the Project entity.

func (*RepoUpdateOne) ClearVulnerabilityReviews

func (ruo *RepoUpdateOne) ClearVulnerabilityReviews() *RepoUpdateOne

ClearVulnerabilityReviews clears all "vulnerability_reviews" edges to the VulnerabilityReview entity.

func (*RepoUpdateOne) Exec

func (ruo *RepoUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RepoUpdateOne) ExecX

func (ruo *RepoUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*RepoUpdateOne) Mutation

func (ruo *RepoUpdateOne) Mutation() *RepoMutation

Mutation returns the RepoMutation object of the builder.

func (*RepoUpdateOne) RemoveCommitIDs

func (ruo *RepoUpdateOne) RemoveCommitIDs(ids ...int) *RepoUpdateOne

RemoveCommitIDs removes the "commits" edge to GitCommit entities by IDs.

func (*RepoUpdateOne) RemoveCommits

func (ruo *RepoUpdateOne) RemoveCommits(g ...*GitCommit) *RepoUpdateOne

RemoveCommits removes "commits" edges to GitCommit entities.

func (*RepoUpdateOne) RemovePolicies

func (ruo *RepoUpdateOne) RemovePolicies(r ...*ReleasePolicy) *RepoUpdateOne

RemovePolicies removes "policies" edges to ReleasePolicy entities.

func (*RepoUpdateOne) RemovePolicyIDs

func (ruo *RepoUpdateOne) RemovePolicyIDs(ids ...int) *RepoUpdateOne

RemovePolicyIDs removes the "policies" edge to ReleasePolicy entities by IDs.

func (*RepoUpdateOne) RemoveVulnerabilityReviewIDs

func (ruo *RepoUpdateOne) RemoveVulnerabilityReviewIDs(ids ...int) *RepoUpdateOne

RemoveVulnerabilityReviewIDs removes the "vulnerability_reviews" edge to VulnerabilityReview entities by IDs.

func (*RepoUpdateOne) RemoveVulnerabilityReviews

func (ruo *RepoUpdateOne) RemoveVulnerabilityReviews(v ...*VulnerabilityReview) *RepoUpdateOne

RemoveVulnerabilityReviews removes "vulnerability_reviews" edges to VulnerabilityReview entities.

func (*RepoUpdateOne) Save

func (ruo *RepoUpdateOne) Save(ctx context.Context) (*Repo, error)

Save executes the query and returns the updated Repo entity.

func (*RepoUpdateOne) SaveX

func (ruo *RepoUpdateOne) SaveX(ctx context.Context) *Repo

SaveX is like Save, but panics if an error occurs.

func (*RepoUpdateOne) Select

func (ruo *RepoUpdateOne) Select(field string, fields ...string) *RepoUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*RepoUpdateOne) SetDefaultBranch

func (ruo *RepoUpdateOne) SetDefaultBranch(s string) *RepoUpdateOne

SetDefaultBranch sets the "default_branch" field.

func (*RepoUpdateOne) SetHead

func (ruo *RepoUpdateOne) SetHead(r *Release) *RepoUpdateOne

SetHead sets the "head" edge to the Release entity.

func (*RepoUpdateOne) SetHeadID

func (ruo *RepoUpdateOne) SetHeadID(id int) *RepoUpdateOne

SetHeadID sets the "head" edge to the Release entity by ID.

func (*RepoUpdateOne) SetModelCreate

func (r *RepoUpdateOne) SetModelCreate(model *RepoModelCreate) *RepoUpdateOne

func (*RepoUpdateOne) SetModelUpdate

func (r *RepoUpdateOne) SetModelUpdate(model *RepoModelUpdate) *RepoUpdateOne

func (*RepoUpdateOne) SetName

func (ruo *RepoUpdateOne) SetName(s string) *RepoUpdateOne

SetName sets the "name" field.

func (*RepoUpdateOne) SetNillableDefaultBranch

func (ruo *RepoUpdateOne) SetNillableDefaultBranch(s *string) *RepoUpdateOne

SetNillableDefaultBranch sets the "default_branch" field if the given value is not nil.

func (*RepoUpdateOne) SetNillableHeadID

func (ruo *RepoUpdateOne) SetNillableHeadID(id *int) *RepoUpdateOne

SetNillableHeadID sets the "head" edge to the Release entity by ID if the given value is not nil.

func (*RepoUpdateOne) SetOwner

func (ruo *RepoUpdateOne) SetOwner(o *Organization) *RepoUpdateOne

SetOwner sets the "owner" edge to the Organization entity.

func (*RepoUpdateOne) SetOwnerID

func (ruo *RepoUpdateOne) SetOwnerID(id int) *RepoUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*RepoUpdateOne) SetProject

func (ruo *RepoUpdateOne) SetProject(p *Project) *RepoUpdateOne

SetProject sets the "project" edge to the Project entity.

func (*RepoUpdateOne) SetProjectID

func (ruo *RepoUpdateOne) SetProjectID(id int) *RepoUpdateOne

SetProjectID sets the "project" edge to the Project entity by ID.

type RepoWhereInput

type RepoWhereInput struct {
	Not *RepoWhereInput   `json:"not,omitempty"`
	Or  []*RepoWhereInput `json:"or,omitempty"`
	And []*RepoWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "default_branch" field predicates.
	DefaultBranch             *string  `json:"defaultBranch,omitempty"`
	DefaultBranchNEQ          *string  `json:"defaultBranchNEQ,omitempty"`
	DefaultBranchIn           []string `json:"defaultBranchIn,omitempty"`
	DefaultBranchNotIn        []string `json:"defaultBranchNotIn,omitempty"`
	DefaultBranchGT           *string  `json:"defaultBranchGT,omitempty"`
	DefaultBranchGTE          *string  `json:"defaultBranchGTE,omitempty"`
	DefaultBranchLT           *string  `json:"defaultBranchLT,omitempty"`
	DefaultBranchLTE          *string  `json:"defaultBranchLTE,omitempty"`
	DefaultBranchContains     *string  `json:"defaultBranchContains,omitempty"`
	DefaultBranchHasPrefix    *string  `json:"defaultBranchHasPrefix,omitempty"`
	DefaultBranchHasSuffix    *string  `json:"defaultBranchHasSuffix,omitempty"`
	DefaultBranchEqualFold    *string  `json:"defaultBranchEqualFold,omitempty"`
	DefaultBranchContainsFold *string  `json:"defaultBranchContainsFold,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`

	// "project" edge predicates.
	HasProject     *bool                `json:"hasProject,omitempty"`
	HasProjectWith []*ProjectWhereInput `json:"hasProjectWith,omitempty"`

	// "head" edge predicates.
	HasHead     *bool                `json:"hasHead,omitempty"`
	HasHeadWith []*ReleaseWhereInput `json:"hasHeadWith,omitempty"`

	// "commits" edge predicates.
	HasCommits     *bool                  `json:"hasCommits,omitempty"`
	HasCommitsWith []*GitCommitWhereInput `json:"hasCommitsWith,omitempty"`

	// "vulnerability_reviews" edge predicates.
	HasVulnerabilityReviews     *bool                            `json:"hasVulnerabilityReviews,omitempty"`
	HasVulnerabilityReviewsWith []*VulnerabilityReviewWhereInput `json:"hasVulnerabilityReviewsWith,omitempty"`

	// "policies" edge predicates.
	HasPolicies     *bool                      `json:"hasPolicies,omitempty"`
	HasPoliciesWith []*ReleasePolicyWhereInput `json:"hasPoliciesWith,omitempty"`
}

RepoWhereInput represents a where input for filtering Repo queries.

func (*RepoWhereInput) Filter

func (i *RepoWhereInput) Filter(q *RepoQuery) (*RepoQuery, error)

Filter applies the RepoWhereInput filter on the RepoQuery builder.

func (*RepoWhereInput) P

func (i *RepoWhereInput) P() (predicate.Repo, error)

P returns a predicate for filtering repos. An error is returned if the input is empty or invalid.

type Repos

type Repos []*Repo

Repos is a parsable slice of Repo.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

type RollbackHook

type RollbackHook func(Rollbacker) Rollbacker

RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:

hook := func(next ent.Rollbacker) ent.Rollbacker {
	return ent.RollbackFunc(func(context.Context, tx *ent.Tx) error {
		// Do some stuff before.
		if err := next.Rollback(ctx, tx); err != nil {
			return err
		}
		// Do some stuff after.
		return nil
	})
}

type Rollbacker

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollbacker method.

type SPDXLicense

type SPDXLicense struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// LicenseID holds the value of the "license_id" field.
	LicenseID string `json:"license_id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Reference holds the value of the "reference" field.
	Reference string `json:"reference,omitempty"`
	// DetailsURL holds the value of the "details_url" field.
	DetailsURL string `json:"details_url,omitempty"`
	// IsOsiApproved holds the value of the "is_osi_approved" field.
	IsOsiApproved bool `json:"is_osi_approved,omitempty"`
	// contains filtered or unexported fields
}

SPDXLicense is the model entity for the SPDXLicense schema.

func (*SPDXLicense) Node

func (sl *SPDXLicense) Node(ctx context.Context) (node *Node, err error)

func (*SPDXLicense) String

func (sl *SPDXLicense) String() string

String implements the fmt.Stringer.

func (*SPDXLicense) ToEdge

func (sl *SPDXLicense) ToEdge(order *SPDXLicenseOrder) *SPDXLicenseEdge

ToEdge converts SPDXLicense into SPDXLicenseEdge.

func (*SPDXLicense) Unwrap

func (sl *SPDXLicense) Unwrap() *SPDXLicense

Unwrap unwraps the SPDXLicense entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*SPDXLicense) Update

func (sl *SPDXLicense) Update() *SPDXLicenseUpdateOne

Update returns a builder for updating this SPDXLicense. Note that you need to call SPDXLicense.Unwrap() before calling this method if this SPDXLicense was returned from a transaction, and the transaction was committed or rolled back.

type SPDXLicenseClient

type SPDXLicenseClient struct {
	// contains filtered or unexported fields
}

SPDXLicenseClient is a client for the SPDXLicense schema.

func NewSPDXLicenseClient

func NewSPDXLicenseClient(c config) *SPDXLicenseClient

NewSPDXLicenseClient returns a client for the SPDXLicense from the given config.

func (*SPDXLicenseClient) Create

func (c *SPDXLicenseClient) Create() *SPDXLicenseCreate

Create returns a create builder for SPDXLicense.

func (*SPDXLicenseClient) CreateBulk

func (c *SPDXLicenseClient) CreateBulk(builders ...*SPDXLicenseCreate) *SPDXLicenseCreateBulk

CreateBulk returns a builder for creating a bulk of SPDXLicense entities.

func (*SPDXLicenseClient) Delete

func (c *SPDXLicenseClient) Delete() *SPDXLicenseDelete

Delete returns a delete builder for SPDXLicense.

func (*SPDXLicenseClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*SPDXLicenseClient) DeleteOneID

func (c *SPDXLicenseClient) DeleteOneID(id int) *SPDXLicenseDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*SPDXLicenseClient) Get

func (c *SPDXLicenseClient) Get(ctx context.Context, id int) (*SPDXLicense, error)

Get returns a SPDXLicense entity by its id.

func (*SPDXLicenseClient) GetX

func (c *SPDXLicenseClient) GetX(ctx context.Context, id int) *SPDXLicense

GetX is like Get, but panics if an error occurs.

func (*SPDXLicenseClient) Hooks

func (c *SPDXLicenseClient) Hooks() []Hook

Hooks returns the client hooks.

func (*SPDXLicenseClient) Query

func (c *SPDXLicenseClient) Query() *SPDXLicenseQuery

Query returns a query builder for SPDXLicense.

func (*SPDXLicenseClient) Update

func (c *SPDXLicenseClient) Update() *SPDXLicenseUpdate

Update returns an update builder for SPDXLicense.

func (*SPDXLicenseClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*SPDXLicenseClient) UpdateOneID

func (c *SPDXLicenseClient) UpdateOneID(id int) *SPDXLicenseUpdateOne

UpdateOneID returns an update builder for the given id.

func (*SPDXLicenseClient) Use

func (c *SPDXLicenseClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `spdxlicense.Hooks(f(g(h())))`.

type SPDXLicenseConnection

type SPDXLicenseConnection struct {
	Edges      []*SPDXLicenseEdge `json:"edges"`
	PageInfo   PageInfo           `json:"pageInfo"`
	TotalCount int                `json:"totalCount"`
}

SPDXLicenseConnection is the connection containing edges to SPDXLicense.

type SPDXLicenseCreate

type SPDXLicenseCreate struct {
	// contains filtered or unexported fields
}

SPDXLicenseCreate is the builder for creating a SPDXLicense entity.

func (*SPDXLicenseCreate) Exec

func (slc *SPDXLicenseCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*SPDXLicenseCreate) ExecX

func (slc *SPDXLicenseCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SPDXLicenseCreate) Mutation

func (slc *SPDXLicenseCreate) Mutation() *SPDXLicenseMutation

Mutation returns the SPDXLicenseMutation object of the builder.

func (*SPDXLicenseCreate) Save

func (slc *SPDXLicenseCreate) Save(ctx context.Context) (*SPDXLicense, error)

Save creates the SPDXLicense in the database.

func (*SPDXLicenseCreate) SaveX

func (slc *SPDXLicenseCreate) SaveX(ctx context.Context) *SPDXLicense

SaveX calls Save and panics if Save returns an error.

func (*SPDXLicenseCreate) SetDetailsURL

func (slc *SPDXLicenseCreate) SetDetailsURL(s string) *SPDXLicenseCreate

SetDetailsURL sets the "details_url" field.

func (*SPDXLicenseCreate) SetIsOsiApproved

func (slc *SPDXLicenseCreate) SetIsOsiApproved(b bool) *SPDXLicenseCreate

SetIsOsiApproved sets the "is_osi_approved" field.

func (*SPDXLicenseCreate) SetLicenseID

func (slc *SPDXLicenseCreate) SetLicenseID(s string) *SPDXLicenseCreate

SetLicenseID sets the "license_id" field.

func (*SPDXLicenseCreate) SetModelCreate

func (sl *SPDXLicenseCreate) SetModelCreate(model *SPDXLicenseModelCreate) *SPDXLicenseCreate

func (*SPDXLicenseCreate) SetName

func (slc *SPDXLicenseCreate) SetName(s string) *SPDXLicenseCreate

SetName sets the "name" field.

func (*SPDXLicenseCreate) SetNillableDetailsURL

func (slc *SPDXLicenseCreate) SetNillableDetailsURL(s *string) *SPDXLicenseCreate

SetNillableDetailsURL sets the "details_url" field if the given value is not nil.

func (*SPDXLicenseCreate) SetNillableIsOsiApproved

func (slc *SPDXLicenseCreate) SetNillableIsOsiApproved(b *bool) *SPDXLicenseCreate

SetNillableIsOsiApproved sets the "is_osi_approved" field if the given value is not nil.

func (*SPDXLicenseCreate) SetNillableReference

func (slc *SPDXLicenseCreate) SetNillableReference(s *string) *SPDXLicenseCreate

SetNillableReference sets the "reference" field if the given value is not nil.

func (*SPDXLicenseCreate) SetReference

func (slc *SPDXLicenseCreate) SetReference(s string) *SPDXLicenseCreate

SetReference sets the "reference" field.

type SPDXLicenseCreateBulk

type SPDXLicenseCreateBulk struct {
	// contains filtered or unexported fields
}

SPDXLicenseCreateBulk is the builder for creating many SPDXLicense entities in bulk.

func (*SPDXLicenseCreateBulk) Exec

func (slcb *SPDXLicenseCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*SPDXLicenseCreateBulk) ExecX

func (slcb *SPDXLicenseCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SPDXLicenseCreateBulk) Save

func (slcb *SPDXLicenseCreateBulk) Save(ctx context.Context) ([]*SPDXLicense, error)

Save creates the SPDXLicense entities in the database.

func (*SPDXLicenseCreateBulk) SaveX

func (slcb *SPDXLicenseCreateBulk) SaveX(ctx context.Context) []*SPDXLicense

SaveX is like Save, but panics if an error occurs.

type SPDXLicenseDelete

type SPDXLicenseDelete struct {
	// contains filtered or unexported fields
}

SPDXLicenseDelete is the builder for deleting a SPDXLicense entity.

func (*SPDXLicenseDelete) Exec

func (sld *SPDXLicenseDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*SPDXLicenseDelete) ExecX

func (sld *SPDXLicenseDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*SPDXLicenseDelete) Where

Where appends a list predicates to the SPDXLicenseDelete builder.

type SPDXLicenseDeleteOne

type SPDXLicenseDeleteOne struct {
	// contains filtered or unexported fields
}

SPDXLicenseDeleteOne is the builder for deleting a single SPDXLicense entity.

func (*SPDXLicenseDeleteOne) Exec

func (sldo *SPDXLicenseDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*SPDXLicenseDeleteOne) ExecX

func (sldo *SPDXLicenseDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type SPDXLicenseEdge

type SPDXLicenseEdge struct {
	Node   *SPDXLicense `json:"node"`
	Cursor Cursor       `json:"cursor"`
}

SPDXLicenseEdge is the edge representation of SPDXLicense.

type SPDXLicenseGroupBy

type SPDXLicenseGroupBy struct {
	// contains filtered or unexported fields
}

SPDXLicenseGroupBy is the group-by builder for SPDXLicense entities.

func (*SPDXLicenseGroupBy) Aggregate

func (slgb *SPDXLicenseGroupBy) Aggregate(fns ...AggregateFunc) *SPDXLicenseGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*SPDXLicenseGroupBy) Bool

func (slgb *SPDXLicenseGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) BoolX

func (slgb *SPDXLicenseGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Bools

func (slgb *SPDXLicenseGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) BoolsX

func (slgb *SPDXLicenseGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Float64

func (slgb *SPDXLicenseGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) Float64X

func (slgb *SPDXLicenseGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Float64s

func (slgb *SPDXLicenseGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) Float64sX

func (slgb *SPDXLicenseGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Int

func (slgb *SPDXLicenseGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) IntX

func (slgb *SPDXLicenseGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Ints

func (slgb *SPDXLicenseGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) IntsX

func (slgb *SPDXLicenseGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Scan

func (slgb *SPDXLicenseGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*SPDXLicenseGroupBy) ScanX

func (slgb *SPDXLicenseGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*SPDXLicenseGroupBy) String

func (slgb *SPDXLicenseGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) StringX

func (slgb *SPDXLicenseGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SPDXLicenseGroupBy) Strings

func (slgb *SPDXLicenseGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*SPDXLicenseGroupBy) StringsX

func (slgb *SPDXLicenseGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SPDXLicenseModelCreate

type SPDXLicenseModelCreate struct {
	LicenseID     *string `json:"license_id,omitempty" validate:"required" mapstructure:"license_id"`
	Name          *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Reference     *string `json:"reference,omitempty"  mapstructure:"reference"`
	DetailsURL    *string `json:"details_url,omitempty"  mapstructure:"details_url"`
	IsOsiApproved *bool   `json:"is_osi_approved,omitempty"  mapstructure:"is_osi_approved"`
}

func NewSPDXLicenseModelCreate

func NewSPDXLicenseModelCreate() *SPDXLicenseModelCreate

func (*SPDXLicenseModelCreate) SetDetailsURL

func (sl *SPDXLicenseModelCreate) SetDetailsURL(value string) *SPDXLicenseModelCreate

func (*SPDXLicenseModelCreate) SetIsOsiApproved

func (sl *SPDXLicenseModelCreate) SetIsOsiApproved(value bool) *SPDXLicenseModelCreate

func (*SPDXLicenseModelCreate) SetLicenseID

func (sl *SPDXLicenseModelCreate) SetLicenseID(value string) *SPDXLicenseModelCreate

func (*SPDXLicenseModelCreate) SetName

func (*SPDXLicenseModelCreate) SetReference

func (sl *SPDXLicenseModelCreate) SetReference(value string) *SPDXLicenseModelCreate

type SPDXLicenseModelRead

type SPDXLicenseModelRead struct {
	LicenseID     *string `json:"license_id,omitempty" validate:"required" mapstructure:"license_id"`
	Name          *string `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Reference     *string `json:"reference,omitempty"  mapstructure:"reference"`
	DetailsURL    *string `json:"details_url,omitempty"  mapstructure:"details_url"`
	IsOsiApproved *bool   `json:"is_osi_approved,omitempty"  mapstructure:"is_osi_approved"`
	ID            *int    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewSPDXLicenseModelRead

func NewSPDXLicenseModelRead() *SPDXLicenseModelRead

func (*SPDXLicenseModelRead) FromEnt

type SPDXLicenseModelUpdate

type SPDXLicenseModelUpdate struct {
	LicenseID     *string `json:"license_id,omitempty"  mapstructure:"license_id"`
	Name          *string `json:"name,omitempty"  mapstructure:"name"`
	Reference     *string `json:"reference,omitempty"  mapstructure:"reference"`
	DetailsURL    *string `json:"details_url,omitempty"  mapstructure:"details_url"`
	IsOsiApproved *bool   `json:"is_osi_approved,omitempty"  mapstructure:"is_osi_approved"`
}

func NewSPDXLicenseModelUpdate

func NewSPDXLicenseModelUpdate() *SPDXLicenseModelUpdate

func (*SPDXLicenseModelUpdate) SetDetailsURL

func (sl *SPDXLicenseModelUpdate) SetDetailsURL(value string) *SPDXLicenseModelUpdate

func (*SPDXLicenseModelUpdate) SetIsOsiApproved

func (sl *SPDXLicenseModelUpdate) SetIsOsiApproved(value bool) *SPDXLicenseModelUpdate

func (*SPDXLicenseModelUpdate) SetLicenseID

func (sl *SPDXLicenseModelUpdate) SetLicenseID(value string) *SPDXLicenseModelUpdate

func (*SPDXLicenseModelUpdate) SetName

func (*SPDXLicenseModelUpdate) SetReference

func (sl *SPDXLicenseModelUpdate) SetReference(value string) *SPDXLicenseModelUpdate

type SPDXLicenseMutation

type SPDXLicenseMutation struct {
	// contains filtered or unexported fields
}

SPDXLicenseMutation represents an operation that mutates the SPDXLicense nodes in the graph.

func (*SPDXLicenseMutation) AddField

func (m *SPDXLicenseMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SPDXLicenseMutation) AddedEdges

func (m *SPDXLicenseMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*SPDXLicenseMutation) AddedField

func (m *SPDXLicenseMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SPDXLicenseMutation) AddedFields

func (m *SPDXLicenseMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*SPDXLicenseMutation) AddedIDs

func (m *SPDXLicenseMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*SPDXLicenseMutation) ClearDetailsURL

func (m *SPDXLicenseMutation) ClearDetailsURL()

ClearDetailsURL clears the value of the "details_url" field.

func (*SPDXLicenseMutation) ClearEdge

func (m *SPDXLicenseMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*SPDXLicenseMutation) ClearField

func (m *SPDXLicenseMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*SPDXLicenseMutation) ClearReference

func (m *SPDXLicenseMutation) ClearReference()

ClearReference clears the value of the "reference" field.

func (*SPDXLicenseMutation) ClearedEdges

func (m *SPDXLicenseMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*SPDXLicenseMutation) ClearedFields

func (m *SPDXLicenseMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (SPDXLicenseMutation) Client

func (m SPDXLicenseMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*SPDXLicenseMutation) DetailsURL

func (m *SPDXLicenseMutation) DetailsURL() (r string, exists bool)

DetailsURL returns the value of the "details_url" field in the mutation.

func (*SPDXLicenseMutation) DetailsURLCleared

func (m *SPDXLicenseMutation) DetailsURLCleared() bool

DetailsURLCleared returns if the "details_url" field was cleared in this mutation.

func (*SPDXLicenseMutation) EdgeCleared

func (m *SPDXLicenseMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*SPDXLicenseMutation) Field

func (m *SPDXLicenseMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*SPDXLicenseMutation) FieldCleared

func (m *SPDXLicenseMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*SPDXLicenseMutation) Fields

func (m *SPDXLicenseMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*SPDXLicenseMutation) ID

func (m *SPDXLicenseMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*SPDXLicenseMutation) IsOsiApproved

func (m *SPDXLicenseMutation) IsOsiApproved() (r bool, exists bool)

IsOsiApproved returns the value of the "is_osi_approved" field in the mutation.

func (*SPDXLicenseMutation) LicenseID

func (m *SPDXLicenseMutation) LicenseID() (r string, exists bool)

LicenseID returns the value of the "license_id" field in the mutation.

func (*SPDXLicenseMutation) Name

func (m *SPDXLicenseMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*SPDXLicenseMutation) OldDetailsURL

func (m *SPDXLicenseMutation) OldDetailsURL(ctx context.Context) (v string, err error)

OldDetailsURL returns the old "details_url" field's value of the SPDXLicense entity. If the SPDXLicense object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SPDXLicenseMutation) OldField

func (m *SPDXLicenseMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*SPDXLicenseMutation) OldIsOsiApproved

func (m *SPDXLicenseMutation) OldIsOsiApproved(ctx context.Context) (v bool, err error)

OldIsOsiApproved returns the old "is_osi_approved" field's value of the SPDXLicense entity. If the SPDXLicense object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SPDXLicenseMutation) OldLicenseID

func (m *SPDXLicenseMutation) OldLicenseID(ctx context.Context) (v string, err error)

OldLicenseID returns the old "license_id" field's value of the SPDXLicense entity. If the SPDXLicense object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SPDXLicenseMutation) OldName

func (m *SPDXLicenseMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the SPDXLicense entity. If the SPDXLicense object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SPDXLicenseMutation) OldReference

func (m *SPDXLicenseMutation) OldReference(ctx context.Context) (v string, err error)

OldReference returns the old "reference" field's value of the SPDXLicense entity. If the SPDXLicense object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*SPDXLicenseMutation) Op

func (m *SPDXLicenseMutation) Op() Op

Op returns the operation name.

func (*SPDXLicenseMutation) Reference

func (m *SPDXLicenseMutation) Reference() (r string, exists bool)

Reference returns the value of the "reference" field in the mutation.

func (*SPDXLicenseMutation) ReferenceCleared

func (m *SPDXLicenseMutation) ReferenceCleared() bool

ReferenceCleared returns if the "reference" field was cleared in this mutation.

func (*SPDXLicenseMutation) RemovedEdges

func (m *SPDXLicenseMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*SPDXLicenseMutation) RemovedIDs

func (m *SPDXLicenseMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*SPDXLicenseMutation) ResetDetailsURL

func (m *SPDXLicenseMutation) ResetDetailsURL()

ResetDetailsURL resets all changes to the "details_url" field.

func (*SPDXLicenseMutation) ResetEdge

func (m *SPDXLicenseMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*SPDXLicenseMutation) ResetField

func (m *SPDXLicenseMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*SPDXLicenseMutation) ResetIsOsiApproved

func (m *SPDXLicenseMutation) ResetIsOsiApproved()

ResetIsOsiApproved resets all changes to the "is_osi_approved" field.

func (*SPDXLicenseMutation) ResetLicenseID

func (m *SPDXLicenseMutation) ResetLicenseID()

ResetLicenseID resets all changes to the "license_id" field.

func (*SPDXLicenseMutation) ResetName

func (m *SPDXLicenseMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*SPDXLicenseMutation) ResetReference

func (m *SPDXLicenseMutation) ResetReference()

ResetReference resets all changes to the "reference" field.

func (*SPDXLicenseMutation) SetDetailsURL

func (m *SPDXLicenseMutation) SetDetailsURL(s string)

SetDetailsURL sets the "details_url" field.

func (*SPDXLicenseMutation) SetField

func (m *SPDXLicenseMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*SPDXLicenseMutation) SetIsOsiApproved

func (m *SPDXLicenseMutation) SetIsOsiApproved(b bool)

SetIsOsiApproved sets the "is_osi_approved" field.

func (*SPDXLicenseMutation) SetLicenseID

func (m *SPDXLicenseMutation) SetLicenseID(s string)

SetLicenseID sets the "license_id" field.

func (*SPDXLicenseMutation) SetModelCreate

func (*SPDXLicenseMutation) SetModelUpdate

func (*SPDXLicenseMutation) SetName

func (m *SPDXLicenseMutation) SetName(s string)

SetName sets the "name" field.

func (*SPDXLicenseMutation) SetReference

func (m *SPDXLicenseMutation) SetReference(s string)

SetReference sets the "reference" field.

func (SPDXLicenseMutation) Tx

func (m SPDXLicenseMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*SPDXLicenseMutation) Type

func (m *SPDXLicenseMutation) Type() string

Type returns the node type of this mutation (SPDXLicense).

func (*SPDXLicenseMutation) Where

func (m *SPDXLicenseMutation) Where(ps ...predicate.SPDXLicense)

Where appends a list predicates to the SPDXLicenseMutation builder.

type SPDXLicenseOrder

type SPDXLicenseOrder struct {
	Direction OrderDirection         `json:"direction"`
	Field     *SPDXLicenseOrderField `json:"field"`
}

SPDXLicenseOrder defines the ordering of SPDXLicense.

type SPDXLicenseOrderField

type SPDXLicenseOrderField struct {
	// contains filtered or unexported fields
}

SPDXLicenseOrderField defines the ordering field of SPDXLicense.

type SPDXLicensePaginateOption

type SPDXLicensePaginateOption func(*sPDXLicensePager) error

SPDXLicensePaginateOption enables pagination customization.

func WithSPDXLicenseFilter

func WithSPDXLicenseFilter(filter func(*SPDXLicenseQuery) (*SPDXLicenseQuery, error)) SPDXLicensePaginateOption

WithSPDXLicenseFilter configures pagination filter.

func WithSPDXLicenseOrder

func WithSPDXLicenseOrder(order *SPDXLicenseOrder) SPDXLicensePaginateOption

WithSPDXLicenseOrder configures pagination ordering.

type SPDXLicenseQuery

type SPDXLicenseQuery struct {
	// contains filtered or unexported fields
}

SPDXLicenseQuery is the builder for querying SPDXLicense entities.

func (*SPDXLicenseQuery) All

func (slq *SPDXLicenseQuery) All(ctx context.Context) ([]*SPDXLicense, error)

All executes the query and returns a list of SPDXLicenses.

func (*SPDXLicenseQuery) AllX

func (slq *SPDXLicenseQuery) AllX(ctx context.Context) []*SPDXLicense

AllX is like All, but panics if an error occurs.

func (*SPDXLicenseQuery) Clone

func (slq *SPDXLicenseQuery) Clone() *SPDXLicenseQuery

Clone returns a duplicate of the SPDXLicenseQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*SPDXLicenseQuery) CollectFields

func (sl *SPDXLicenseQuery) CollectFields(ctx context.Context, satisfies ...string) *SPDXLicenseQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*SPDXLicenseQuery) Count

func (slq *SPDXLicenseQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*SPDXLicenseQuery) CountX

func (slq *SPDXLicenseQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*SPDXLicenseQuery) Exist

func (slq *SPDXLicenseQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*SPDXLicenseQuery) ExistX

func (slq *SPDXLicenseQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*SPDXLicenseQuery) Filter

func (sl *SPDXLicenseQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *SPDXLicenseOrder, where *SPDXLicenseWhereInput,
) ([]*SPDXLicense, error)

func (*SPDXLicenseQuery) First

func (slq *SPDXLicenseQuery) First(ctx context.Context) (*SPDXLicense, error)

First returns the first SPDXLicense entity from the query. Returns a *NotFoundError when no SPDXLicense was found.

func (*SPDXLicenseQuery) FirstID

func (slq *SPDXLicenseQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first SPDXLicense ID from the query. Returns a *NotFoundError when no SPDXLicense ID was found.

func (*SPDXLicenseQuery) FirstIDX

func (slq *SPDXLicenseQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*SPDXLicenseQuery) FirstX

func (slq *SPDXLicenseQuery) FirstX(ctx context.Context) *SPDXLicense

FirstX is like First, but panics if an error occurs.

func (*SPDXLicenseQuery) GroupBy

func (slq *SPDXLicenseQuery) GroupBy(field string, fields ...string) *SPDXLicenseGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	LicenseID string `json:"license_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.SPDXLicense.Query().
	GroupBy(spdxlicense.FieldLicenseID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*SPDXLicenseQuery) IDs

func (slq *SPDXLicenseQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of SPDXLicense IDs.

func (*SPDXLicenseQuery) IDsX

func (slq *SPDXLicenseQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*SPDXLicenseQuery) Limit

func (slq *SPDXLicenseQuery) Limit(limit int) *SPDXLicenseQuery

Limit adds a limit step to the query.

func (*SPDXLicenseQuery) Offset

func (slq *SPDXLicenseQuery) Offset(offset int) *SPDXLicenseQuery

Offset adds an offset step to the query.

func (*SPDXLicenseQuery) Only

func (slq *SPDXLicenseQuery) Only(ctx context.Context) (*SPDXLicense, error)

Only returns a single SPDXLicense entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one SPDXLicense entity is not found. Returns a *NotFoundError when no SPDXLicense entities are found.

func (*SPDXLicenseQuery) OnlyID

func (slq *SPDXLicenseQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only SPDXLicense ID in the query. Returns a *NotSingularError when exactly one SPDXLicense ID is not found. Returns a *NotFoundError when no entities are found.

func (*SPDXLicenseQuery) OnlyIDX

func (slq *SPDXLicenseQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*SPDXLicenseQuery) OnlyX

func (slq *SPDXLicenseQuery) OnlyX(ctx context.Context) *SPDXLicense

OnlyX is like Only, but panics if an error occurs.

func (*SPDXLicenseQuery) Order

func (slq *SPDXLicenseQuery) Order(o ...OrderFunc) *SPDXLicenseQuery

Order adds an order step to the query.

func (*SPDXLicenseQuery) Paginate

func (sl *SPDXLicenseQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...SPDXLicensePaginateOption,
) (*SPDXLicenseConnection, error)

Paginate executes the query and returns a relay based cursor connection to SPDXLicense.

func (*SPDXLicenseQuery) Select

func (slq *SPDXLicenseQuery) Select(fields ...string) *SPDXLicenseSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	LicenseID string `json:"license_id,omitempty"`
}

client.SPDXLicense.Query().
	Select(spdxlicense.FieldLicenseID).
	Scan(ctx, &v)

func (*SPDXLicenseQuery) Unique

func (slq *SPDXLicenseQuery) Unique(unique bool) *SPDXLicenseQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*SPDXLicenseQuery) Where

Where adds a new predicate for the SPDXLicenseQuery builder.

func (*SPDXLicenseQuery) WhereInput

type SPDXLicenseSelect

type SPDXLicenseSelect struct {
	*SPDXLicenseQuery
	// contains filtered or unexported fields
}

SPDXLicenseSelect is the builder for selecting fields of SPDXLicense entities.

func (*SPDXLicenseSelect) Bool

func (sls *SPDXLicenseSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) BoolX

func (sls *SPDXLicenseSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*SPDXLicenseSelect) Bools

func (sls *SPDXLicenseSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) BoolsX

func (sls *SPDXLicenseSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*SPDXLicenseSelect) Float64

func (sls *SPDXLicenseSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) Float64X

func (sls *SPDXLicenseSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*SPDXLicenseSelect) Float64s

func (sls *SPDXLicenseSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) Float64sX

func (sls *SPDXLicenseSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*SPDXLicenseSelect) Int

func (sls *SPDXLicenseSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) IntX

func (sls *SPDXLicenseSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*SPDXLicenseSelect) Ints

func (sls *SPDXLicenseSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) IntsX

func (sls *SPDXLicenseSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*SPDXLicenseSelect) Scan

func (sls *SPDXLicenseSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*SPDXLicenseSelect) ScanX

func (sls *SPDXLicenseSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*SPDXLicenseSelect) String

func (sls *SPDXLicenseSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) StringX

func (sls *SPDXLicenseSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*SPDXLicenseSelect) Strings

func (sls *SPDXLicenseSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*SPDXLicenseSelect) StringsX

func (sls *SPDXLicenseSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type SPDXLicenseUpdate

type SPDXLicenseUpdate struct {
	// contains filtered or unexported fields
}

SPDXLicenseUpdate is the builder for updating SPDXLicense entities.

func (*SPDXLicenseUpdate) ClearDetailsURL

func (slu *SPDXLicenseUpdate) ClearDetailsURL() *SPDXLicenseUpdate

ClearDetailsURL clears the value of the "details_url" field.

func (*SPDXLicenseUpdate) ClearReference

func (slu *SPDXLicenseUpdate) ClearReference() *SPDXLicenseUpdate

ClearReference clears the value of the "reference" field.

func (*SPDXLicenseUpdate) Exec

func (slu *SPDXLicenseUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*SPDXLicenseUpdate) ExecX

func (slu *SPDXLicenseUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SPDXLicenseUpdate) Mutation

func (slu *SPDXLicenseUpdate) Mutation() *SPDXLicenseMutation

Mutation returns the SPDXLicenseMutation object of the builder.

func (*SPDXLicenseUpdate) Save

func (slu *SPDXLicenseUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*SPDXLicenseUpdate) SaveX

func (slu *SPDXLicenseUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*SPDXLicenseUpdate) SetDetailsURL

func (slu *SPDXLicenseUpdate) SetDetailsURL(s string) *SPDXLicenseUpdate

SetDetailsURL sets the "details_url" field.

func (*SPDXLicenseUpdate) SetIsOsiApproved

func (slu *SPDXLicenseUpdate) SetIsOsiApproved(b bool) *SPDXLicenseUpdate

SetIsOsiApproved sets the "is_osi_approved" field.

func (*SPDXLicenseUpdate) SetLicenseID

func (slu *SPDXLicenseUpdate) SetLicenseID(s string) *SPDXLicenseUpdate

SetLicenseID sets the "license_id" field.

func (*SPDXLicenseUpdate) SetName

func (slu *SPDXLicenseUpdate) SetName(s string) *SPDXLicenseUpdate

SetName sets the "name" field.

func (*SPDXLicenseUpdate) SetNillableDetailsURL

func (slu *SPDXLicenseUpdate) SetNillableDetailsURL(s *string) *SPDXLicenseUpdate

SetNillableDetailsURL sets the "details_url" field if the given value is not nil.

func (*SPDXLicenseUpdate) SetNillableIsOsiApproved

func (slu *SPDXLicenseUpdate) SetNillableIsOsiApproved(b *bool) *SPDXLicenseUpdate

SetNillableIsOsiApproved sets the "is_osi_approved" field if the given value is not nil.

func (*SPDXLicenseUpdate) SetNillableReference

func (slu *SPDXLicenseUpdate) SetNillableReference(s *string) *SPDXLicenseUpdate

SetNillableReference sets the "reference" field if the given value is not nil.

func (*SPDXLicenseUpdate) SetReference

func (slu *SPDXLicenseUpdate) SetReference(s string) *SPDXLicenseUpdate

SetReference sets the "reference" field.

func (*SPDXLicenseUpdate) Where

Where appends a list predicates to the SPDXLicenseUpdate builder.

type SPDXLicenseUpdateOne

type SPDXLicenseUpdateOne struct {
	// contains filtered or unexported fields
}

SPDXLicenseUpdateOne is the builder for updating a single SPDXLicense entity.

func (*SPDXLicenseUpdateOne) ClearDetailsURL

func (sluo *SPDXLicenseUpdateOne) ClearDetailsURL() *SPDXLicenseUpdateOne

ClearDetailsURL clears the value of the "details_url" field.

func (*SPDXLicenseUpdateOne) ClearReference

func (sluo *SPDXLicenseUpdateOne) ClearReference() *SPDXLicenseUpdateOne

ClearReference clears the value of the "reference" field.

func (*SPDXLicenseUpdateOne) Exec

func (sluo *SPDXLicenseUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*SPDXLicenseUpdateOne) ExecX

func (sluo *SPDXLicenseUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*SPDXLicenseUpdateOne) Mutation

func (sluo *SPDXLicenseUpdateOne) Mutation() *SPDXLicenseMutation

Mutation returns the SPDXLicenseMutation object of the builder.

func (*SPDXLicenseUpdateOne) Save

Save executes the query and returns the updated SPDXLicense entity.

func (*SPDXLicenseUpdateOne) SaveX

func (sluo *SPDXLicenseUpdateOne) SaveX(ctx context.Context) *SPDXLicense

SaveX is like Save, but panics if an error occurs.

func (*SPDXLicenseUpdateOne) Select

func (sluo *SPDXLicenseUpdateOne) Select(field string, fields ...string) *SPDXLicenseUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*SPDXLicenseUpdateOne) SetDetailsURL

func (sluo *SPDXLicenseUpdateOne) SetDetailsURL(s string) *SPDXLicenseUpdateOne

SetDetailsURL sets the "details_url" field.

func (*SPDXLicenseUpdateOne) SetIsOsiApproved

func (sluo *SPDXLicenseUpdateOne) SetIsOsiApproved(b bool) *SPDXLicenseUpdateOne

SetIsOsiApproved sets the "is_osi_approved" field.

func (*SPDXLicenseUpdateOne) SetLicenseID

func (sluo *SPDXLicenseUpdateOne) SetLicenseID(s string) *SPDXLicenseUpdateOne

SetLicenseID sets the "license_id" field.

func (*SPDXLicenseUpdateOne) SetModelCreate

func (*SPDXLicenseUpdateOne) SetModelUpdate

func (*SPDXLicenseUpdateOne) SetName

SetName sets the "name" field.

func (*SPDXLicenseUpdateOne) SetNillableDetailsURL

func (sluo *SPDXLicenseUpdateOne) SetNillableDetailsURL(s *string) *SPDXLicenseUpdateOne

SetNillableDetailsURL sets the "details_url" field if the given value is not nil.

func (*SPDXLicenseUpdateOne) SetNillableIsOsiApproved

func (sluo *SPDXLicenseUpdateOne) SetNillableIsOsiApproved(b *bool) *SPDXLicenseUpdateOne

SetNillableIsOsiApproved sets the "is_osi_approved" field if the given value is not nil.

func (*SPDXLicenseUpdateOne) SetNillableReference

func (sluo *SPDXLicenseUpdateOne) SetNillableReference(s *string) *SPDXLicenseUpdateOne

SetNillableReference sets the "reference" field if the given value is not nil.

func (*SPDXLicenseUpdateOne) SetReference

func (sluo *SPDXLicenseUpdateOne) SetReference(s string) *SPDXLicenseUpdateOne

SetReference sets the "reference" field.

type SPDXLicenseWhereInput

type SPDXLicenseWhereInput struct {
	Not *SPDXLicenseWhereInput   `json:"not,omitempty"`
	Or  []*SPDXLicenseWhereInput `json:"or,omitempty"`
	And []*SPDXLicenseWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "license_id" field predicates.
	LicenseID             *string  `json:"licenseID,omitempty"`
	LicenseIDNEQ          *string  `json:"licenseIDNEQ,omitempty"`
	LicenseIDIn           []string `json:"licenseIDIn,omitempty"`
	LicenseIDNotIn        []string `json:"licenseIDNotIn,omitempty"`
	LicenseIDGT           *string  `json:"licenseIDGT,omitempty"`
	LicenseIDGTE          *string  `json:"licenseIDGTE,omitempty"`
	LicenseIDLT           *string  `json:"licenseIDLT,omitempty"`
	LicenseIDLTE          *string  `json:"licenseIDLTE,omitempty"`
	LicenseIDContains     *string  `json:"licenseIDContains,omitempty"`
	LicenseIDHasPrefix    *string  `json:"licenseIDHasPrefix,omitempty"`
	LicenseIDHasSuffix    *string  `json:"licenseIDHasSuffix,omitempty"`
	LicenseIDEqualFold    *string  `json:"licenseIDEqualFold,omitempty"`
	LicenseIDContainsFold *string  `json:"licenseIDContainsFold,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "reference" field predicates.
	Reference             *string  `json:"reference,omitempty"`
	ReferenceNEQ          *string  `json:"referenceNEQ,omitempty"`
	ReferenceIn           []string `json:"referenceIn,omitempty"`
	ReferenceNotIn        []string `json:"referenceNotIn,omitempty"`
	ReferenceGT           *string  `json:"referenceGT,omitempty"`
	ReferenceGTE          *string  `json:"referenceGTE,omitempty"`
	ReferenceLT           *string  `json:"referenceLT,omitempty"`
	ReferenceLTE          *string  `json:"referenceLTE,omitempty"`
	ReferenceContains     *string  `json:"referenceContains,omitempty"`
	ReferenceHasPrefix    *string  `json:"referenceHasPrefix,omitempty"`
	ReferenceHasSuffix    *string  `json:"referenceHasSuffix,omitempty"`
	ReferenceIsNil        bool     `json:"referenceIsNil,omitempty"`
	ReferenceNotNil       bool     `json:"referenceNotNil,omitempty"`
	ReferenceEqualFold    *string  `json:"referenceEqualFold,omitempty"`
	ReferenceContainsFold *string  `json:"referenceContainsFold,omitempty"`

	// "details_url" field predicates.
	DetailsURL             *string  `json:"detailsURL,omitempty"`
	DetailsURLNEQ          *string  `json:"detailsURLNEQ,omitempty"`
	DetailsURLIn           []string `json:"detailsURLIn,omitempty"`
	DetailsURLNotIn        []string `json:"detailsURLNotIn,omitempty"`
	DetailsURLGT           *string  `json:"detailsURLGT,omitempty"`
	DetailsURLGTE          *string  `json:"detailsURLGTE,omitempty"`
	DetailsURLLT           *string  `json:"detailsURLLT,omitempty"`
	DetailsURLLTE          *string  `json:"detailsURLLTE,omitempty"`
	DetailsURLContains     *string  `json:"detailsURLContains,omitempty"`
	DetailsURLHasPrefix    *string  `json:"detailsURLHasPrefix,omitempty"`
	DetailsURLHasSuffix    *string  `json:"detailsURLHasSuffix,omitempty"`
	DetailsURLIsNil        bool     `json:"detailsURLIsNil,omitempty"`
	DetailsURLNotNil       bool     `json:"detailsURLNotNil,omitempty"`
	DetailsURLEqualFold    *string  `json:"detailsURLEqualFold,omitempty"`
	DetailsURLContainsFold *string  `json:"detailsURLContainsFold,omitempty"`

	// "is_osi_approved" field predicates.
	IsOsiApproved    *bool `json:"isOsiApproved,omitempty"`
	IsOsiApprovedNEQ *bool `json:"isOsiApprovedNEQ,omitempty"`
}

SPDXLicenseWhereInput represents a where input for filtering SPDXLicense queries.

func (*SPDXLicenseWhereInput) Filter

Filter applies the SPDXLicenseWhereInput filter on the SPDXLicenseQuery builder.

func (*SPDXLicenseWhereInput) P

P returns a predicate for filtering spdxlicenses. An error is returned if the input is empty or invalid.

type SPDXLicenses

type SPDXLicenses []*SPDXLicense

SPDXLicenses is a parsable slice of SPDXLicense.

type TestCase

type TestCase struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Result holds the value of the "result" field.
	Result bool `json:"result,omitempty"`
	// Message holds the value of the "message" field.
	Message string `json:"message,omitempty"`
	// Elapsed holds the value of the "elapsed" field.
	Elapsed float64 `json:"elapsed,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the TestCaseQuery when eager-loading is set.
	Edges TestCaseEdges `json:"edges"`
	// contains filtered or unexported fields
}

TestCase is the model entity for the TestCase schema.

func (*TestCase) Node

func (tc *TestCase) Node(ctx context.Context) (node *Node, err error)

func (*TestCase) QueryRun

func (tc *TestCase) QueryRun() *TestRunQuery

QueryRun queries the "run" edge of the TestCase entity.

func (*TestCase) Run

func (tc *TestCase) Run(ctx context.Context) (*TestRun, error)

func (*TestCase) String

func (tc *TestCase) String() string

String implements the fmt.Stringer.

func (*TestCase) ToEdge

func (tc *TestCase) ToEdge(order *TestCaseOrder) *TestCaseEdge

ToEdge converts TestCase into TestCaseEdge.

func (*TestCase) Unwrap

func (tc *TestCase) Unwrap() *TestCase

Unwrap unwraps the TestCase entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TestCase) Update

func (tc *TestCase) Update() *TestCaseUpdateOne

Update returns a builder for updating this TestCase. Note that you need to call TestCase.Unwrap() before calling this method if this TestCase was returned from a transaction, and the transaction was committed or rolled back.

type TestCaseClient

type TestCaseClient struct {
	// contains filtered or unexported fields
}

TestCaseClient is a client for the TestCase schema.

func NewTestCaseClient

func NewTestCaseClient(c config) *TestCaseClient

NewTestCaseClient returns a client for the TestCase from the given config.

func (*TestCaseClient) Create

func (c *TestCaseClient) Create() *TestCaseCreate

Create returns a create builder for TestCase.

func (*TestCaseClient) CreateBulk

func (c *TestCaseClient) CreateBulk(builders ...*TestCaseCreate) *TestCaseCreateBulk

CreateBulk returns a builder for creating a bulk of TestCase entities.

func (*TestCaseClient) Delete

func (c *TestCaseClient) Delete() *TestCaseDelete

Delete returns a delete builder for TestCase.

func (*TestCaseClient) DeleteOne

func (c *TestCaseClient) DeleteOne(tc *TestCase) *TestCaseDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*TestCaseClient) DeleteOneID

func (c *TestCaseClient) DeleteOneID(id int) *TestCaseDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*TestCaseClient) Get

func (c *TestCaseClient) Get(ctx context.Context, id int) (*TestCase, error)

Get returns a TestCase entity by its id.

func (*TestCaseClient) GetX

func (c *TestCaseClient) GetX(ctx context.Context, id int) *TestCase

GetX is like Get, but panics if an error occurs.

func (*TestCaseClient) Hooks

func (c *TestCaseClient) Hooks() []Hook

Hooks returns the client hooks.

func (*TestCaseClient) Query

func (c *TestCaseClient) Query() *TestCaseQuery

Query returns a query builder for TestCase.

func (*TestCaseClient) QueryRun

func (c *TestCaseClient) QueryRun(tc *TestCase) *TestRunQuery

QueryRun queries the run edge of a TestCase.

func (*TestCaseClient) Update

func (c *TestCaseClient) Update() *TestCaseUpdate

Update returns an update builder for TestCase.

func (*TestCaseClient) UpdateOne

func (c *TestCaseClient) UpdateOne(tc *TestCase) *TestCaseUpdateOne

UpdateOne returns an update builder for the given entity.

func (*TestCaseClient) UpdateOneID

func (c *TestCaseClient) UpdateOneID(id int) *TestCaseUpdateOne

UpdateOneID returns an update builder for the given id.

func (*TestCaseClient) Use

func (c *TestCaseClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `testcase.Hooks(f(g(h())))`.

type TestCaseConnection

type TestCaseConnection struct {
	Edges      []*TestCaseEdge `json:"edges"`
	PageInfo   PageInfo        `json:"pageInfo"`
	TotalCount int             `json:"totalCount"`
}

TestCaseConnection is the connection containing edges to TestCase.

type TestCaseCreate

type TestCaseCreate struct {
	// contains filtered or unexported fields
}

TestCaseCreate is the builder for creating a TestCase entity.

func (*TestCaseCreate) Exec

func (tcc *TestCaseCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*TestCaseCreate) ExecX

func (tcc *TestCaseCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestCaseCreate) Mutation

func (tcc *TestCaseCreate) Mutation() *TestCaseMutation

Mutation returns the TestCaseMutation object of the builder.

func (*TestCaseCreate) Save

func (tcc *TestCaseCreate) Save(ctx context.Context) (*TestCase, error)

Save creates the TestCase in the database.

func (*TestCaseCreate) SaveX

func (tcc *TestCaseCreate) SaveX(ctx context.Context) *TestCase

SaveX calls Save and panics if Save returns an error.

func (*TestCaseCreate) SetElapsed

func (tcc *TestCaseCreate) SetElapsed(f float64) *TestCaseCreate

SetElapsed sets the "elapsed" field.

func (*TestCaseCreate) SetMessage

func (tcc *TestCaseCreate) SetMessage(s string) *TestCaseCreate

SetMessage sets the "message" field.

func (*TestCaseCreate) SetMetadata

func (tcc *TestCaseCreate) SetMetadata(s schema.Metadata) *TestCaseCreate

SetMetadata sets the "metadata" field.

func (*TestCaseCreate) SetModelCreate

func (tc *TestCaseCreate) SetModelCreate(model *TestCaseModelCreate) *TestCaseCreate

func (*TestCaseCreate) SetName

func (tcc *TestCaseCreate) SetName(s string) *TestCaseCreate

SetName sets the "name" field.

func (*TestCaseCreate) SetNillableElapsed

func (tcc *TestCaseCreate) SetNillableElapsed(f *float64) *TestCaseCreate

SetNillableElapsed sets the "elapsed" field if the given value is not nil.

func (*TestCaseCreate) SetResult

func (tcc *TestCaseCreate) SetResult(b bool) *TestCaseCreate

SetResult sets the "result" field.

func (*TestCaseCreate) SetRun

func (tcc *TestCaseCreate) SetRun(t *TestRun) *TestCaseCreate

SetRun sets the "run" edge to the TestRun entity.

func (*TestCaseCreate) SetRunID

func (tcc *TestCaseCreate) SetRunID(id int) *TestCaseCreate

SetRunID sets the "run" edge to the TestRun entity by ID.

type TestCaseCreateBulk

type TestCaseCreateBulk struct {
	// contains filtered or unexported fields
}

TestCaseCreateBulk is the builder for creating many TestCase entities in bulk.

func (*TestCaseCreateBulk) Exec

func (tccb *TestCaseCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*TestCaseCreateBulk) ExecX

func (tccb *TestCaseCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestCaseCreateBulk) Save

func (tccb *TestCaseCreateBulk) Save(ctx context.Context) ([]*TestCase, error)

Save creates the TestCase entities in the database.

func (*TestCaseCreateBulk) SaveX

func (tccb *TestCaseCreateBulk) SaveX(ctx context.Context) []*TestCase

SaveX is like Save, but panics if an error occurs.

type TestCaseDelete

type TestCaseDelete struct {
	// contains filtered or unexported fields
}

TestCaseDelete is the builder for deleting a TestCase entity.

func (*TestCaseDelete) Exec

func (tcd *TestCaseDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*TestCaseDelete) ExecX

func (tcd *TestCaseDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*TestCaseDelete) Where

func (tcd *TestCaseDelete) Where(ps ...predicate.TestCase) *TestCaseDelete

Where appends a list predicates to the TestCaseDelete builder.

type TestCaseDeleteOne

type TestCaseDeleteOne struct {
	// contains filtered or unexported fields
}

TestCaseDeleteOne is the builder for deleting a single TestCase entity.

func (*TestCaseDeleteOne) Exec

func (tcdo *TestCaseDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*TestCaseDeleteOne) ExecX

func (tcdo *TestCaseDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type TestCaseEdge

type TestCaseEdge struct {
	Node   *TestCase `json:"node"`
	Cursor Cursor    `json:"cursor"`
}

TestCaseEdge is the edge representation of TestCase.

type TestCaseEdges

type TestCaseEdges struct {
	// Run holds the value of the run edge.
	Run *TestRun `json:"run,omitempty"`
	// contains filtered or unexported fields
}

TestCaseEdges holds the relations/edges for other nodes in the graph.

func (TestCaseEdges) RunOrErr

func (e TestCaseEdges) RunOrErr() (*TestRun, error)

RunOrErr returns the Run value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type TestCaseGroupBy

type TestCaseGroupBy struct {
	// contains filtered or unexported fields
}

TestCaseGroupBy is the group-by builder for TestCase entities.

func (*TestCaseGroupBy) Aggregate

func (tcgb *TestCaseGroupBy) Aggregate(fns ...AggregateFunc) *TestCaseGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*TestCaseGroupBy) Bool

func (tcgb *TestCaseGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) BoolX

func (tcgb *TestCaseGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TestCaseGroupBy) Bools

func (tcgb *TestCaseGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) BoolsX

func (tcgb *TestCaseGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TestCaseGroupBy) Float64

func (tcgb *TestCaseGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) Float64X

func (tcgb *TestCaseGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TestCaseGroupBy) Float64s

func (tcgb *TestCaseGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) Float64sX

func (tcgb *TestCaseGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TestCaseGroupBy) Int

func (tcgb *TestCaseGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) IntX

func (tcgb *TestCaseGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TestCaseGroupBy) Ints

func (tcgb *TestCaseGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) IntsX

func (tcgb *TestCaseGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TestCaseGroupBy) Scan

func (tcgb *TestCaseGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*TestCaseGroupBy) ScanX

func (tcgb *TestCaseGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*TestCaseGroupBy) String

func (tcgb *TestCaseGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) StringX

func (tcgb *TestCaseGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TestCaseGroupBy) Strings

func (tcgb *TestCaseGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*TestCaseGroupBy) StringsX

func (tcgb *TestCaseGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TestCaseModelCreate

type TestCaseModelCreate struct {
	Name     *string          `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Result   *bool            `json:"result,omitempty" validate:"required" mapstructure:"result"`
	Message  *string          `json:"message,omitempty" validate:"required" mapstructure:"message"`
	Elapsed  *float64         `json:"elapsed,omitempty"  mapstructure:"elapsed"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewTestCaseModelCreate

func NewTestCaseModelCreate() *TestCaseModelCreate

func (*TestCaseModelCreate) SetElapsed

func (tc *TestCaseModelCreate) SetElapsed(value float64) *TestCaseModelCreate

func (*TestCaseModelCreate) SetMessage

func (tc *TestCaseModelCreate) SetMessage(value string) *TestCaseModelCreate

func (*TestCaseModelCreate) SetMetadata

func (tc *TestCaseModelCreate) SetMetadata(value schema.Metadata) *TestCaseModelCreate

func (*TestCaseModelCreate) SetName

func (tc *TestCaseModelCreate) SetName(value string) *TestCaseModelCreate

func (*TestCaseModelCreate) SetResult

func (tc *TestCaseModelCreate) SetResult(value bool) *TestCaseModelCreate

type TestCaseModelRead

type TestCaseModelRead struct {
	Name     *string          `json:"name,omitempty" validate:"required" mapstructure:"name"`
	Result   *bool            `json:"result,omitempty" validate:"required" mapstructure:"result"`
	Message  *string          `json:"message,omitempty" validate:"required" mapstructure:"message"`
	Elapsed  *float64         `json:"elapsed,omitempty"  mapstructure:"elapsed"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	ID       *int             `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewTestCaseModelRead

func NewTestCaseModelRead() *TestCaseModelRead

func (*TestCaseModelRead) FromEnt

func (tc *TestCaseModelRead) FromEnt(value *TestCase) *TestCaseModelRead

type TestCaseModelUpdate

type TestCaseModelUpdate struct {
	Name     *string          `json:"name,omitempty"  mapstructure:"name"`
	Result   *bool            `json:"result,omitempty"  mapstructure:"result"`
	Message  *string          `json:"message,omitempty"  mapstructure:"message"`
	Elapsed  *float64         `json:"elapsed,omitempty"  mapstructure:"elapsed"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewTestCaseModelUpdate

func NewTestCaseModelUpdate() *TestCaseModelUpdate

func (*TestCaseModelUpdate) SetElapsed

func (tc *TestCaseModelUpdate) SetElapsed(value float64) *TestCaseModelUpdate

func (*TestCaseModelUpdate) SetMessage

func (tc *TestCaseModelUpdate) SetMessage(value string) *TestCaseModelUpdate

func (*TestCaseModelUpdate) SetMetadata

func (tc *TestCaseModelUpdate) SetMetadata(value schema.Metadata) *TestCaseModelUpdate

func (*TestCaseModelUpdate) SetName

func (tc *TestCaseModelUpdate) SetName(value string) *TestCaseModelUpdate

func (*TestCaseModelUpdate) SetResult

func (tc *TestCaseModelUpdate) SetResult(value bool) *TestCaseModelUpdate

type TestCaseMutation

type TestCaseMutation struct {
	// contains filtered or unexported fields
}

TestCaseMutation represents an operation that mutates the TestCase nodes in the graph.

func (*TestCaseMutation) AddElapsed

func (m *TestCaseMutation) AddElapsed(f float64)

AddElapsed adds f to the "elapsed" field.

func (*TestCaseMutation) AddField

func (m *TestCaseMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TestCaseMutation) AddedEdges

func (m *TestCaseMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TestCaseMutation) AddedElapsed

func (m *TestCaseMutation) AddedElapsed() (r float64, exists bool)

AddedElapsed returns the value that was added to the "elapsed" field in this mutation.

func (*TestCaseMutation) AddedField

func (m *TestCaseMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TestCaseMutation) AddedFields

func (m *TestCaseMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TestCaseMutation) AddedIDs

func (m *TestCaseMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TestCaseMutation) ClearEdge

func (m *TestCaseMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TestCaseMutation) ClearField

func (m *TestCaseMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TestCaseMutation) ClearMetadata

func (m *TestCaseMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*TestCaseMutation) ClearRun

func (m *TestCaseMutation) ClearRun()

ClearRun clears the "run" edge to the TestRun entity.

func (*TestCaseMutation) ClearedEdges

func (m *TestCaseMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TestCaseMutation) ClearedFields

func (m *TestCaseMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TestCaseMutation) Client

func (m TestCaseMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TestCaseMutation) EdgeCleared

func (m *TestCaseMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TestCaseMutation) Elapsed

func (m *TestCaseMutation) Elapsed() (r float64, exists bool)

Elapsed returns the value of the "elapsed" field in the mutation.

func (*TestCaseMutation) Field

func (m *TestCaseMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TestCaseMutation) FieldCleared

func (m *TestCaseMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TestCaseMutation) Fields

func (m *TestCaseMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TestCaseMutation) ID

func (m *TestCaseMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TestCaseMutation) Message

func (m *TestCaseMutation) Message() (r string, exists bool)

Message returns the value of the "message" field in the mutation.

func (*TestCaseMutation) Metadata

func (m *TestCaseMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*TestCaseMutation) MetadataCleared

func (m *TestCaseMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*TestCaseMutation) Name

func (m *TestCaseMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*TestCaseMutation) OldElapsed

func (m *TestCaseMutation) OldElapsed(ctx context.Context) (v float64, err error)

OldElapsed returns the old "elapsed" field's value of the TestCase entity. If the TestCase object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestCaseMutation) OldField

func (m *TestCaseMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TestCaseMutation) OldMessage

func (m *TestCaseMutation) OldMessage(ctx context.Context) (v string, err error)

OldMessage returns the old "message" field's value of the TestCase entity. If the TestCase object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestCaseMutation) OldMetadata

func (m *TestCaseMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the TestCase entity. If the TestCase object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestCaseMutation) OldName

func (m *TestCaseMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the TestCase entity. If the TestCase object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestCaseMutation) OldResult

func (m *TestCaseMutation) OldResult(ctx context.Context) (v bool, err error)

OldResult returns the old "result" field's value of the TestCase entity. If the TestCase object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestCaseMutation) Op

func (m *TestCaseMutation) Op() Op

Op returns the operation name.

func (*TestCaseMutation) RemovedEdges

func (m *TestCaseMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TestCaseMutation) RemovedIDs

func (m *TestCaseMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TestCaseMutation) ResetEdge

func (m *TestCaseMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TestCaseMutation) ResetElapsed

func (m *TestCaseMutation) ResetElapsed()

ResetElapsed resets all changes to the "elapsed" field.

func (*TestCaseMutation) ResetField

func (m *TestCaseMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TestCaseMutation) ResetMessage

func (m *TestCaseMutation) ResetMessage()

ResetMessage resets all changes to the "message" field.

func (*TestCaseMutation) ResetMetadata

func (m *TestCaseMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*TestCaseMutation) ResetName

func (m *TestCaseMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*TestCaseMutation) ResetResult

func (m *TestCaseMutation) ResetResult()

ResetResult resets all changes to the "result" field.

func (*TestCaseMutation) ResetRun

func (m *TestCaseMutation) ResetRun()

ResetRun resets all changes to the "run" edge.

func (*TestCaseMutation) Result

func (m *TestCaseMutation) Result() (r bool, exists bool)

Result returns the value of the "result" field in the mutation.

func (*TestCaseMutation) RunCleared

func (m *TestCaseMutation) RunCleared() bool

RunCleared reports if the "run" edge to the TestRun entity was cleared.

func (*TestCaseMutation) RunID

func (m *TestCaseMutation) RunID() (id int, exists bool)

RunID returns the "run" edge ID in the mutation.

func (*TestCaseMutation) RunIDs

func (m *TestCaseMutation) RunIDs() (ids []int)

RunIDs returns the "run" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RunID instead. It exists only for internal usage by the builders.

func (*TestCaseMutation) SetElapsed

func (m *TestCaseMutation) SetElapsed(f float64)

SetElapsed sets the "elapsed" field.

func (*TestCaseMutation) SetField

func (m *TestCaseMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TestCaseMutation) SetMessage

func (m *TestCaseMutation) SetMessage(s string)

SetMessage sets the "message" field.

func (*TestCaseMutation) SetMetadata

func (m *TestCaseMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*TestCaseMutation) SetModelCreate

func (tc *TestCaseMutation) SetModelCreate(model *TestCaseModelCreate) *TestCaseMutation

func (*TestCaseMutation) SetModelUpdate

func (tc *TestCaseMutation) SetModelUpdate(model *TestCaseModelUpdate) *TestCaseMutation

func (*TestCaseMutation) SetName

func (m *TestCaseMutation) SetName(s string)

SetName sets the "name" field.

func (*TestCaseMutation) SetResult

func (m *TestCaseMutation) SetResult(b bool)

SetResult sets the "result" field.

func (*TestCaseMutation) SetRunID

func (m *TestCaseMutation) SetRunID(id int)

SetRunID sets the "run" edge to the TestRun entity by id.

func (TestCaseMutation) Tx

func (m TestCaseMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TestCaseMutation) Type

func (m *TestCaseMutation) Type() string

Type returns the node type of this mutation (TestCase).

func (*TestCaseMutation) Where

func (m *TestCaseMutation) Where(ps ...predicate.TestCase)

Where appends a list predicates to the TestCaseMutation builder.

type TestCaseOrder

type TestCaseOrder struct {
	Direction OrderDirection      `json:"direction"`
	Field     *TestCaseOrderField `json:"field"`
}

TestCaseOrder defines the ordering of TestCase.

type TestCaseOrderField

type TestCaseOrderField struct {
	// contains filtered or unexported fields
}

TestCaseOrderField defines the ordering field of TestCase.

func (TestCaseOrderField) MarshalGQL

func (f TestCaseOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (TestCaseOrderField) String

func (f TestCaseOrderField) String() string

String implement fmt.Stringer interface.

func (*TestCaseOrderField) UnmarshalGQL

func (f *TestCaseOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type TestCasePaginateOption

type TestCasePaginateOption func(*testCasePager) error

TestCasePaginateOption enables pagination customization.

func WithTestCaseFilter

func WithTestCaseFilter(filter func(*TestCaseQuery) (*TestCaseQuery, error)) TestCasePaginateOption

WithTestCaseFilter configures pagination filter.

func WithTestCaseOrder

func WithTestCaseOrder(order *TestCaseOrder) TestCasePaginateOption

WithTestCaseOrder configures pagination ordering.

type TestCaseQuery

type TestCaseQuery struct {
	// contains filtered or unexported fields
}

TestCaseQuery is the builder for querying TestCase entities.

func (*TestCaseQuery) All

func (tcq *TestCaseQuery) All(ctx context.Context) ([]*TestCase, error)

All executes the query and returns a list of TestCases.

func (*TestCaseQuery) AllX

func (tcq *TestCaseQuery) AllX(ctx context.Context) []*TestCase

AllX is like All, but panics if an error occurs.

func (*TestCaseQuery) Clone

func (tcq *TestCaseQuery) Clone() *TestCaseQuery

Clone returns a duplicate of the TestCaseQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TestCaseQuery) CollectFields

func (tc *TestCaseQuery) CollectFields(ctx context.Context, satisfies ...string) *TestCaseQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*TestCaseQuery) Count

func (tcq *TestCaseQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*TestCaseQuery) CountX

func (tcq *TestCaseQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*TestCaseQuery) Exist

func (tcq *TestCaseQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*TestCaseQuery) ExistX

func (tcq *TestCaseQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*TestCaseQuery) Filter

func (tc *TestCaseQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *TestCaseOrder, where *TestCaseWhereInput,
) ([]*TestCase, error)

func (*TestCaseQuery) First

func (tcq *TestCaseQuery) First(ctx context.Context) (*TestCase, error)

First returns the first TestCase entity from the query. Returns a *NotFoundError when no TestCase was found.

func (*TestCaseQuery) FirstID

func (tcq *TestCaseQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first TestCase ID from the query. Returns a *NotFoundError when no TestCase ID was found.

func (*TestCaseQuery) FirstIDX

func (tcq *TestCaseQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*TestCaseQuery) FirstX

func (tcq *TestCaseQuery) FirstX(ctx context.Context) *TestCase

FirstX is like First, but panics if an error occurs.

func (*TestCaseQuery) GroupBy

func (tcq *TestCaseQuery) GroupBy(field string, fields ...string) *TestCaseGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TestCase.Query().
	GroupBy(testcase.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TestCaseQuery) IDs

func (tcq *TestCaseQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of TestCase IDs.

func (*TestCaseQuery) IDsX

func (tcq *TestCaseQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*TestCaseQuery) Limit

func (tcq *TestCaseQuery) Limit(limit int) *TestCaseQuery

Limit adds a limit step to the query.

func (*TestCaseQuery) Offset

func (tcq *TestCaseQuery) Offset(offset int) *TestCaseQuery

Offset adds an offset step to the query.

func (*TestCaseQuery) Only

func (tcq *TestCaseQuery) Only(ctx context.Context) (*TestCase, error)

Only returns a single TestCase entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one TestCase entity is not found. Returns a *NotFoundError when no TestCase entities are found.

func (*TestCaseQuery) OnlyID

func (tcq *TestCaseQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only TestCase ID in the query. Returns a *NotSingularError when exactly one TestCase ID is not found. Returns a *NotFoundError when no entities are found.

func (*TestCaseQuery) OnlyIDX

func (tcq *TestCaseQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TestCaseQuery) OnlyX

func (tcq *TestCaseQuery) OnlyX(ctx context.Context) *TestCase

OnlyX is like Only, but panics if an error occurs.

func (*TestCaseQuery) Order

func (tcq *TestCaseQuery) Order(o ...OrderFunc) *TestCaseQuery

Order adds an order step to the query.

func (*TestCaseQuery) Paginate

func (tc *TestCaseQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...TestCasePaginateOption,
) (*TestCaseConnection, error)

Paginate executes the query and returns a relay based cursor connection to TestCase.

func (*TestCaseQuery) QueryRun

func (tcq *TestCaseQuery) QueryRun() *TestRunQuery

QueryRun chains the current query on the "run" edge.

func (*TestCaseQuery) Select

func (tcq *TestCaseQuery) Select(fields ...string) *TestCaseSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Name string `json:"name,omitempty"`
}

client.TestCase.Query().
	Select(testcase.FieldName).
	Scan(ctx, &v)

func (*TestCaseQuery) Unique

func (tcq *TestCaseQuery) Unique(unique bool) *TestCaseQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TestCaseQuery) Where

func (tcq *TestCaseQuery) Where(ps ...predicate.TestCase) *TestCaseQuery

Where adds a new predicate for the TestCaseQuery builder.

func (*TestCaseQuery) WhereInput

func (tc *TestCaseQuery) WhereInput(input *TestCaseWhereInput) *TestCaseQuery

func (*TestCaseQuery) WithRun

func (tcq *TestCaseQuery) WithRun(opts ...func(*TestRunQuery)) *TestCaseQuery

WithRun tells the query-builder to eager-load the nodes that are connected to the "run" edge. The optional arguments are used to configure the query builder of the edge.

type TestCaseSelect

type TestCaseSelect struct {
	*TestCaseQuery
	// contains filtered or unexported fields
}

TestCaseSelect is the builder for selecting fields of TestCase entities.

func (*TestCaseSelect) Bool

func (tcs *TestCaseSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) BoolX

func (tcs *TestCaseSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TestCaseSelect) Bools

func (tcs *TestCaseSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) BoolsX

func (tcs *TestCaseSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TestCaseSelect) Float64

func (tcs *TestCaseSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) Float64X

func (tcs *TestCaseSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TestCaseSelect) Float64s

func (tcs *TestCaseSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) Float64sX

func (tcs *TestCaseSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TestCaseSelect) Int

func (tcs *TestCaseSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) IntX

func (tcs *TestCaseSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TestCaseSelect) Ints

func (tcs *TestCaseSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) IntsX

func (tcs *TestCaseSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TestCaseSelect) Scan

func (tcs *TestCaseSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*TestCaseSelect) ScanX

func (tcs *TestCaseSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*TestCaseSelect) String

func (tcs *TestCaseSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) StringX

func (tcs *TestCaseSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TestCaseSelect) Strings

func (tcs *TestCaseSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TestCaseSelect) StringsX

func (tcs *TestCaseSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TestCaseUpdate

type TestCaseUpdate struct {
	// contains filtered or unexported fields
}

TestCaseUpdate is the builder for updating TestCase entities.

func (*TestCaseUpdate) AddElapsed

func (tcu *TestCaseUpdate) AddElapsed(f float64) *TestCaseUpdate

AddElapsed adds f to the "elapsed" field.

func (*TestCaseUpdate) ClearMetadata

func (tcu *TestCaseUpdate) ClearMetadata() *TestCaseUpdate

ClearMetadata clears the value of the "metadata" field.

func (*TestCaseUpdate) ClearRun

func (tcu *TestCaseUpdate) ClearRun() *TestCaseUpdate

ClearRun clears the "run" edge to the TestRun entity.

func (*TestCaseUpdate) Exec

func (tcu *TestCaseUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*TestCaseUpdate) ExecX

func (tcu *TestCaseUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestCaseUpdate) Mutation

func (tcu *TestCaseUpdate) Mutation() *TestCaseMutation

Mutation returns the TestCaseMutation object of the builder.

func (*TestCaseUpdate) Save

func (tcu *TestCaseUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*TestCaseUpdate) SaveX

func (tcu *TestCaseUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*TestCaseUpdate) SetElapsed

func (tcu *TestCaseUpdate) SetElapsed(f float64) *TestCaseUpdate

SetElapsed sets the "elapsed" field.

func (*TestCaseUpdate) SetMessage

func (tcu *TestCaseUpdate) SetMessage(s string) *TestCaseUpdate

SetMessage sets the "message" field.

func (*TestCaseUpdate) SetMetadata

func (tcu *TestCaseUpdate) SetMetadata(s schema.Metadata) *TestCaseUpdate

SetMetadata sets the "metadata" field.

func (*TestCaseUpdate) SetNillableElapsed

func (tcu *TestCaseUpdate) SetNillableElapsed(f *float64) *TestCaseUpdate

SetNillableElapsed sets the "elapsed" field if the given value is not nil.

func (*TestCaseUpdate) SetResult

func (tcu *TestCaseUpdate) SetResult(b bool) *TestCaseUpdate

SetResult sets the "result" field.

func (*TestCaseUpdate) SetRun

func (tcu *TestCaseUpdate) SetRun(t *TestRun) *TestCaseUpdate

SetRun sets the "run" edge to the TestRun entity.

func (*TestCaseUpdate) SetRunID

func (tcu *TestCaseUpdate) SetRunID(id int) *TestCaseUpdate

SetRunID sets the "run" edge to the TestRun entity by ID.

func (*TestCaseUpdate) Where

func (tcu *TestCaseUpdate) Where(ps ...predicate.TestCase) *TestCaseUpdate

Where appends a list predicates to the TestCaseUpdate builder.

type TestCaseUpdateOne

type TestCaseUpdateOne struct {
	// contains filtered or unexported fields
}

TestCaseUpdateOne is the builder for updating a single TestCase entity.

func (*TestCaseUpdateOne) AddElapsed

func (tcuo *TestCaseUpdateOne) AddElapsed(f float64) *TestCaseUpdateOne

AddElapsed adds f to the "elapsed" field.

func (*TestCaseUpdateOne) ClearMetadata

func (tcuo *TestCaseUpdateOne) ClearMetadata() *TestCaseUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*TestCaseUpdateOne) ClearRun

func (tcuo *TestCaseUpdateOne) ClearRun() *TestCaseUpdateOne

ClearRun clears the "run" edge to the TestRun entity.

func (*TestCaseUpdateOne) Exec

func (tcuo *TestCaseUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*TestCaseUpdateOne) ExecX

func (tcuo *TestCaseUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestCaseUpdateOne) Mutation

func (tcuo *TestCaseUpdateOne) Mutation() *TestCaseMutation

Mutation returns the TestCaseMutation object of the builder.

func (*TestCaseUpdateOne) Save

func (tcuo *TestCaseUpdateOne) Save(ctx context.Context) (*TestCase, error)

Save executes the query and returns the updated TestCase entity.

func (*TestCaseUpdateOne) SaveX

func (tcuo *TestCaseUpdateOne) SaveX(ctx context.Context) *TestCase

SaveX is like Save, but panics if an error occurs.

func (*TestCaseUpdateOne) Select

func (tcuo *TestCaseUpdateOne) Select(field string, fields ...string) *TestCaseUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TestCaseUpdateOne) SetElapsed

func (tcuo *TestCaseUpdateOne) SetElapsed(f float64) *TestCaseUpdateOne

SetElapsed sets the "elapsed" field.

func (*TestCaseUpdateOne) SetMessage

func (tcuo *TestCaseUpdateOne) SetMessage(s string) *TestCaseUpdateOne

SetMessage sets the "message" field.

func (*TestCaseUpdateOne) SetMetadata

func (tcuo *TestCaseUpdateOne) SetMetadata(s schema.Metadata) *TestCaseUpdateOne

SetMetadata sets the "metadata" field.

func (*TestCaseUpdateOne) SetModelCreate

func (tc *TestCaseUpdateOne) SetModelCreate(model *TestCaseModelCreate) *TestCaseUpdateOne

func (*TestCaseUpdateOne) SetModelUpdate

func (tc *TestCaseUpdateOne) SetModelUpdate(model *TestCaseModelUpdate) *TestCaseUpdateOne

func (*TestCaseUpdateOne) SetNillableElapsed

func (tcuo *TestCaseUpdateOne) SetNillableElapsed(f *float64) *TestCaseUpdateOne

SetNillableElapsed sets the "elapsed" field if the given value is not nil.

func (*TestCaseUpdateOne) SetResult

func (tcuo *TestCaseUpdateOne) SetResult(b bool) *TestCaseUpdateOne

SetResult sets the "result" field.

func (*TestCaseUpdateOne) SetRun

func (tcuo *TestCaseUpdateOne) SetRun(t *TestRun) *TestCaseUpdateOne

SetRun sets the "run" edge to the TestRun entity.

func (*TestCaseUpdateOne) SetRunID

func (tcuo *TestCaseUpdateOne) SetRunID(id int) *TestCaseUpdateOne

SetRunID sets the "run" edge to the TestRun entity by ID.

type TestCaseWhereInput

type TestCaseWhereInput struct {
	Not *TestCaseWhereInput   `json:"not,omitempty"`
	Or  []*TestCaseWhereInput `json:"or,omitempty"`
	And []*TestCaseWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "name" field predicates.
	Name             *string  `json:"name,omitempty"`
	NameNEQ          *string  `json:"nameNEQ,omitempty"`
	NameIn           []string `json:"nameIn,omitempty"`
	NameNotIn        []string `json:"nameNotIn,omitempty"`
	NameGT           *string  `json:"nameGT,omitempty"`
	NameGTE          *string  `json:"nameGTE,omitempty"`
	NameLT           *string  `json:"nameLT,omitempty"`
	NameLTE          *string  `json:"nameLTE,omitempty"`
	NameContains     *string  `json:"nameContains,omitempty"`
	NameHasPrefix    *string  `json:"nameHasPrefix,omitempty"`
	NameHasSuffix    *string  `json:"nameHasSuffix,omitempty"`
	NameEqualFold    *string  `json:"nameEqualFold,omitempty"`
	NameContainsFold *string  `json:"nameContainsFold,omitempty"`

	// "result" field predicates.
	Result    *bool `json:"result,omitempty"`
	ResultNEQ *bool `json:"resultNEQ,omitempty"`

	// "message" field predicates.
	Message             *string  `json:"message,omitempty"`
	MessageNEQ          *string  `json:"messageNEQ,omitempty"`
	MessageIn           []string `json:"messageIn,omitempty"`
	MessageNotIn        []string `json:"messageNotIn,omitempty"`
	MessageGT           *string  `json:"messageGT,omitempty"`
	MessageGTE          *string  `json:"messageGTE,omitempty"`
	MessageLT           *string  `json:"messageLT,omitempty"`
	MessageLTE          *string  `json:"messageLTE,omitempty"`
	MessageContains     *string  `json:"messageContains,omitempty"`
	MessageHasPrefix    *string  `json:"messageHasPrefix,omitempty"`
	MessageHasSuffix    *string  `json:"messageHasSuffix,omitempty"`
	MessageEqualFold    *string  `json:"messageEqualFold,omitempty"`
	MessageContainsFold *string  `json:"messageContainsFold,omitempty"`

	// "elapsed" field predicates.
	Elapsed      *float64  `json:"elapsed,omitempty"`
	ElapsedNEQ   *float64  `json:"elapsedNEQ,omitempty"`
	ElapsedIn    []float64 `json:"elapsedIn,omitempty"`
	ElapsedNotIn []float64 `json:"elapsedNotIn,omitempty"`
	ElapsedGT    *float64  `json:"elapsedGT,omitempty"`
	ElapsedGTE   *float64  `json:"elapsedGTE,omitempty"`
	ElapsedLT    *float64  `json:"elapsedLT,omitempty"`
	ElapsedLTE   *float64  `json:"elapsedLTE,omitempty"`

	// "run" edge predicates.
	HasRun     *bool                `json:"hasRun,omitempty"`
	HasRunWith []*TestRunWhereInput `json:"hasRunWith,omitempty"`
}

TestCaseWhereInput represents a where input for filtering TestCase queries.

func (*TestCaseWhereInput) Filter

Filter applies the TestCaseWhereInput filter on the TestCaseQuery builder.

func (*TestCaseWhereInput) P

P returns a predicate for filtering testcases. An error is returned if the input is empty or invalid.

type TestCases

type TestCases []*TestCase

TestCases is a parsable slice of TestCase.

type TestRun

type TestRun struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Tool holds the value of the "tool" field.
	Tool string `json:"tool,omitempty"`
	// Time holds the value of the "time" field.
	Time time.Time `json:"time,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the TestRunQuery when eager-loading is set.
	Edges TestRunEdges `json:"edges"`
	// contains filtered or unexported fields
}

TestRun is the model entity for the TestRun schema.

func (*TestRun) Entry

func (tr *TestRun) Entry(ctx context.Context) (*ReleaseEntry, error)

func (*TestRun) Node

func (tr *TestRun) Node(ctx context.Context) (node *Node, err error)

func (*TestRun) QueryEntry

func (tr *TestRun) QueryEntry() *ReleaseEntryQuery

QueryEntry queries the "entry" edge of the TestRun entity.

func (*TestRun) QueryRelease

func (tr *TestRun) QueryRelease() *ReleaseQuery

QueryRelease queries the "release" edge of the TestRun entity.

func (*TestRun) QueryTests

func (tr *TestRun) QueryTests() *TestCaseQuery

QueryTests queries the "tests" edge of the TestRun entity.

func (*TestRun) Release

func (tr *TestRun) Release(ctx context.Context) (*Release, error)

func (*TestRun) String

func (tr *TestRun) String() string

String implements the fmt.Stringer.

func (*TestRun) Tests

func (tr *TestRun) Tests(ctx context.Context) ([]*TestCase, error)

func (*TestRun) ToEdge

func (tr *TestRun) ToEdge(order *TestRunOrder) *TestRunEdge

ToEdge converts TestRun into TestRunEdge.

func (*TestRun) Unwrap

func (tr *TestRun) Unwrap() *TestRun

Unwrap unwraps the TestRun entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*TestRun) Update

func (tr *TestRun) Update() *TestRunUpdateOne

Update returns a builder for updating this TestRun. Note that you need to call TestRun.Unwrap() before calling this method if this TestRun was returned from a transaction, and the transaction was committed or rolled back.

type TestRunClient

type TestRunClient struct {
	// contains filtered or unexported fields
}

TestRunClient is a client for the TestRun schema.

func NewTestRunClient

func NewTestRunClient(c config) *TestRunClient

NewTestRunClient returns a client for the TestRun from the given config.

func (*TestRunClient) Create

func (c *TestRunClient) Create() *TestRunCreate

Create returns a create builder for TestRun.

func (*TestRunClient) CreateBulk

func (c *TestRunClient) CreateBulk(builders ...*TestRunCreate) *TestRunCreateBulk

CreateBulk returns a builder for creating a bulk of TestRun entities.

func (*TestRunClient) Delete

func (c *TestRunClient) Delete() *TestRunDelete

Delete returns a delete builder for TestRun.

func (*TestRunClient) DeleteOne

func (c *TestRunClient) DeleteOne(tr *TestRun) *TestRunDeleteOne

DeleteOne returns a delete builder for the given entity.

func (*TestRunClient) DeleteOneID

func (c *TestRunClient) DeleteOneID(id int) *TestRunDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*TestRunClient) Get

func (c *TestRunClient) Get(ctx context.Context, id int) (*TestRun, error)

Get returns a TestRun entity by its id.

func (*TestRunClient) GetX

func (c *TestRunClient) GetX(ctx context.Context, id int) *TestRun

GetX is like Get, but panics if an error occurs.

func (*TestRunClient) Hooks

func (c *TestRunClient) Hooks() []Hook

Hooks returns the client hooks.

func (*TestRunClient) Query

func (c *TestRunClient) Query() *TestRunQuery

Query returns a query builder for TestRun.

func (*TestRunClient) QueryEntry

func (c *TestRunClient) QueryEntry(tr *TestRun) *ReleaseEntryQuery

QueryEntry queries the entry edge of a TestRun.

func (*TestRunClient) QueryRelease

func (c *TestRunClient) QueryRelease(tr *TestRun) *ReleaseQuery

QueryRelease queries the release edge of a TestRun.

func (*TestRunClient) QueryTests

func (c *TestRunClient) QueryTests(tr *TestRun) *TestCaseQuery

QueryTests queries the tests edge of a TestRun.

func (*TestRunClient) Update

func (c *TestRunClient) Update() *TestRunUpdate

Update returns an update builder for TestRun.

func (*TestRunClient) UpdateOne

func (c *TestRunClient) UpdateOne(tr *TestRun) *TestRunUpdateOne

UpdateOne returns an update builder for the given entity.

func (*TestRunClient) UpdateOneID

func (c *TestRunClient) UpdateOneID(id int) *TestRunUpdateOne

UpdateOneID returns an update builder for the given id.

func (*TestRunClient) Use

func (c *TestRunClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `testrun.Hooks(f(g(h())))`.

type TestRunConnection

type TestRunConnection struct {
	Edges      []*TestRunEdge `json:"edges"`
	PageInfo   PageInfo       `json:"pageInfo"`
	TotalCount int            `json:"totalCount"`
}

TestRunConnection is the connection containing edges to TestRun.

type TestRunCreate

type TestRunCreate struct {
	// contains filtered or unexported fields
}

TestRunCreate is the builder for creating a TestRun entity.

func (*TestRunCreate) AddTestIDs

func (trc *TestRunCreate) AddTestIDs(ids ...int) *TestRunCreate

AddTestIDs adds the "tests" edge to the TestCase entity by IDs.

func (*TestRunCreate) AddTests

func (trc *TestRunCreate) AddTests(t ...*TestCase) *TestRunCreate

AddTests adds the "tests" edges to the TestCase entity.

func (*TestRunCreate) Exec

func (trc *TestRunCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*TestRunCreate) ExecX

func (trc *TestRunCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestRunCreate) Mutation

func (trc *TestRunCreate) Mutation() *TestRunMutation

Mutation returns the TestRunMutation object of the builder.

func (*TestRunCreate) Save

func (trc *TestRunCreate) Save(ctx context.Context) (*TestRun, error)

Save creates the TestRun in the database.

func (*TestRunCreate) SaveX

func (trc *TestRunCreate) SaveX(ctx context.Context) *TestRun

SaveX calls Save and panics if Save returns an error.

func (*TestRunCreate) SetEntry

func (trc *TestRunCreate) SetEntry(r *ReleaseEntry) *TestRunCreate

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*TestRunCreate) SetEntryID

func (trc *TestRunCreate) SetEntryID(id int) *TestRunCreate

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*TestRunCreate) SetMetadata

func (trc *TestRunCreate) SetMetadata(s schema.Metadata) *TestRunCreate

SetMetadata sets the "metadata" field.

func (*TestRunCreate) SetModelCreate

func (tr *TestRunCreate) SetModelCreate(model *TestRunModelCreate) *TestRunCreate

func (*TestRunCreate) SetNillableEntryID

func (trc *TestRunCreate) SetNillableEntryID(id *int) *TestRunCreate

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*TestRunCreate) SetNillableTime

func (trc *TestRunCreate) SetNillableTime(t *time.Time) *TestRunCreate

SetNillableTime sets the "time" field if the given value is not nil.

func (*TestRunCreate) SetRelease

func (trc *TestRunCreate) SetRelease(r *Release) *TestRunCreate

SetRelease sets the "release" edge to the Release entity.

func (*TestRunCreate) SetReleaseID

func (trc *TestRunCreate) SetReleaseID(id int) *TestRunCreate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*TestRunCreate) SetTime

func (trc *TestRunCreate) SetTime(t time.Time) *TestRunCreate

SetTime sets the "time" field.

func (*TestRunCreate) SetTool

func (trc *TestRunCreate) SetTool(s string) *TestRunCreate

SetTool sets the "tool" field.

type TestRunCreateBulk

type TestRunCreateBulk struct {
	// contains filtered or unexported fields
}

TestRunCreateBulk is the builder for creating many TestRun entities in bulk.

func (*TestRunCreateBulk) Exec

func (trcb *TestRunCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*TestRunCreateBulk) ExecX

func (trcb *TestRunCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestRunCreateBulk) Save

func (trcb *TestRunCreateBulk) Save(ctx context.Context) ([]*TestRun, error)

Save creates the TestRun entities in the database.

func (*TestRunCreateBulk) SaveX

func (trcb *TestRunCreateBulk) SaveX(ctx context.Context) []*TestRun

SaveX is like Save, but panics if an error occurs.

type TestRunDelete

type TestRunDelete struct {
	// contains filtered or unexported fields
}

TestRunDelete is the builder for deleting a TestRun entity.

func (*TestRunDelete) Exec

func (trd *TestRunDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*TestRunDelete) ExecX

func (trd *TestRunDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*TestRunDelete) Where

func (trd *TestRunDelete) Where(ps ...predicate.TestRun) *TestRunDelete

Where appends a list predicates to the TestRunDelete builder.

type TestRunDeleteOne

type TestRunDeleteOne struct {
	// contains filtered or unexported fields
}

TestRunDeleteOne is the builder for deleting a single TestRun entity.

func (*TestRunDeleteOne) Exec

func (trdo *TestRunDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*TestRunDeleteOne) ExecX

func (trdo *TestRunDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type TestRunEdge

type TestRunEdge struct {
	Node   *TestRun `json:"node"`
	Cursor Cursor   `json:"cursor"`
}

TestRunEdge is the edge representation of TestRun.

type TestRunEdges

type TestRunEdges struct {
	// Release holds the value of the release edge.
	Release *Release `json:"release,omitempty"`
	// Entry holds the value of the entry edge.
	Entry *ReleaseEntry `json:"entry,omitempty"`
	// Tests holds the value of the tests edge.
	Tests []*TestCase `json:"tests,omitempty"`
	// contains filtered or unexported fields
}

TestRunEdges holds the relations/edges for other nodes in the graph.

func (TestRunEdges) EntryOrErr

func (e TestRunEdges) EntryOrErr() (*ReleaseEntry, error)

EntryOrErr returns the Entry value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (TestRunEdges) ReleaseOrErr

func (e TestRunEdges) ReleaseOrErr() (*Release, error)

ReleaseOrErr returns the Release value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (TestRunEdges) TestsOrErr

func (e TestRunEdges) TestsOrErr() ([]*TestCase, error)

TestsOrErr returns the Tests value or an error if the edge was not loaded in eager-loading.

type TestRunGroupBy

type TestRunGroupBy struct {
	// contains filtered or unexported fields
}

TestRunGroupBy is the group-by builder for TestRun entities.

func (*TestRunGroupBy) Aggregate

func (trgb *TestRunGroupBy) Aggregate(fns ...AggregateFunc) *TestRunGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*TestRunGroupBy) Bool

func (trgb *TestRunGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) BoolX

func (trgb *TestRunGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TestRunGroupBy) Bools

func (trgb *TestRunGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) BoolsX

func (trgb *TestRunGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TestRunGroupBy) Float64

func (trgb *TestRunGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) Float64X

func (trgb *TestRunGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TestRunGroupBy) Float64s

func (trgb *TestRunGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) Float64sX

func (trgb *TestRunGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TestRunGroupBy) Int

func (trgb *TestRunGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) IntX

func (trgb *TestRunGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TestRunGroupBy) Ints

func (trgb *TestRunGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) IntsX

func (trgb *TestRunGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TestRunGroupBy) Scan

func (trgb *TestRunGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*TestRunGroupBy) ScanX

func (trgb *TestRunGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*TestRunGroupBy) String

func (trgb *TestRunGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) StringX

func (trgb *TestRunGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TestRunGroupBy) Strings

func (trgb *TestRunGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*TestRunGroupBy) StringsX

func (trgb *TestRunGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TestRunModelCreate

type TestRunModelCreate struct {
	Tool     *string          `json:"tool,omitempty" validate:"required" mapstructure:"tool"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewTestRunModelCreate

func NewTestRunModelCreate() *TestRunModelCreate

func (*TestRunModelCreate) SetMetadata

func (tr *TestRunModelCreate) SetMetadata(value schema.Metadata) *TestRunModelCreate

func (*TestRunModelCreate) SetTime

func (tr *TestRunModelCreate) SetTime(value time.Time) *TestRunModelCreate

func (*TestRunModelCreate) SetTool

func (tr *TestRunModelCreate) SetTool(value string) *TestRunModelCreate

type TestRunModelRead

type TestRunModelRead struct {
	Tool     *string          `json:"tool,omitempty" validate:"required" mapstructure:"tool"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
	ID       *int             `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewTestRunModelRead

func NewTestRunModelRead() *TestRunModelRead

func (*TestRunModelRead) FromEnt

func (tr *TestRunModelRead) FromEnt(value *TestRun) *TestRunModelRead

type TestRunModelUpdate

type TestRunModelUpdate struct {
	Tool     *string          `json:"tool,omitempty"  mapstructure:"tool"`
	Time     *time.Time       `json:"time,omitempty"  mapstructure:"time"`
	Metadata *schema.Metadata `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewTestRunModelUpdate

func NewTestRunModelUpdate() *TestRunModelUpdate

func (*TestRunModelUpdate) SetMetadata

func (tr *TestRunModelUpdate) SetMetadata(value schema.Metadata) *TestRunModelUpdate

func (*TestRunModelUpdate) SetTime

func (tr *TestRunModelUpdate) SetTime(value time.Time) *TestRunModelUpdate

func (*TestRunModelUpdate) SetTool

func (tr *TestRunModelUpdate) SetTool(value string) *TestRunModelUpdate

type TestRunMutation

type TestRunMutation struct {
	// contains filtered or unexported fields
}

TestRunMutation represents an operation that mutates the TestRun nodes in the graph.

func (*TestRunMutation) AddField

func (m *TestRunMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TestRunMutation) AddTestIDs

func (m *TestRunMutation) AddTestIDs(ids ...int)

AddTestIDs adds the "tests" edge to the TestCase entity by ids.

func (*TestRunMutation) AddedEdges

func (m *TestRunMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*TestRunMutation) AddedField

func (m *TestRunMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TestRunMutation) AddedFields

func (m *TestRunMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*TestRunMutation) AddedIDs

func (m *TestRunMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*TestRunMutation) ClearEdge

func (m *TestRunMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*TestRunMutation) ClearEntry

func (m *TestRunMutation) ClearEntry()

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*TestRunMutation) ClearField

func (m *TestRunMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*TestRunMutation) ClearMetadata

func (m *TestRunMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*TestRunMutation) ClearRelease

func (m *TestRunMutation) ClearRelease()

ClearRelease clears the "release" edge to the Release entity.

func (*TestRunMutation) ClearTests

func (m *TestRunMutation) ClearTests()

ClearTests clears the "tests" edge to the TestCase entity.

func (*TestRunMutation) ClearedEdges

func (m *TestRunMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*TestRunMutation) ClearedFields

func (m *TestRunMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (TestRunMutation) Client

func (m TestRunMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*TestRunMutation) EdgeCleared

func (m *TestRunMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*TestRunMutation) EntryCleared

func (m *TestRunMutation) EntryCleared() bool

EntryCleared reports if the "entry" edge to the ReleaseEntry entity was cleared.

func (*TestRunMutation) EntryID

func (m *TestRunMutation) EntryID() (id int, exists bool)

EntryID returns the "entry" edge ID in the mutation.

func (*TestRunMutation) EntryIDs

func (m *TestRunMutation) EntryIDs() (ids []int)

EntryIDs returns the "entry" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use EntryID instead. It exists only for internal usage by the builders.

func (*TestRunMutation) Field

func (m *TestRunMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*TestRunMutation) FieldCleared

func (m *TestRunMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*TestRunMutation) Fields

func (m *TestRunMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*TestRunMutation) ID

func (m *TestRunMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*TestRunMutation) Metadata

func (m *TestRunMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*TestRunMutation) MetadataCleared

func (m *TestRunMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*TestRunMutation) OldField

func (m *TestRunMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*TestRunMutation) OldMetadata

func (m *TestRunMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the TestRun entity. If the TestRun object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestRunMutation) OldTime

func (m *TestRunMutation) OldTime(ctx context.Context) (v time.Time, err error)

OldTime returns the old "time" field's value of the TestRun entity. If the TestRun object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestRunMutation) OldTool

func (m *TestRunMutation) OldTool(ctx context.Context) (v string, err error)

OldTool returns the old "tool" field's value of the TestRun entity. If the TestRun object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*TestRunMutation) Op

func (m *TestRunMutation) Op() Op

Op returns the operation name.

func (*TestRunMutation) ReleaseCleared

func (m *TestRunMutation) ReleaseCleared() bool

ReleaseCleared reports if the "release" edge to the Release entity was cleared.

func (*TestRunMutation) ReleaseID

func (m *TestRunMutation) ReleaseID() (id int, exists bool)

ReleaseID returns the "release" edge ID in the mutation.

func (*TestRunMutation) ReleaseIDs

func (m *TestRunMutation) ReleaseIDs() (ids []int)

ReleaseIDs returns the "release" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ReleaseID instead. It exists only for internal usage by the builders.

func (*TestRunMutation) RemoveTestIDs

func (m *TestRunMutation) RemoveTestIDs(ids ...int)

RemoveTestIDs removes the "tests" edge to the TestCase entity by IDs.

func (*TestRunMutation) RemovedEdges

func (m *TestRunMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*TestRunMutation) RemovedIDs

func (m *TestRunMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*TestRunMutation) RemovedTestsIDs

func (m *TestRunMutation) RemovedTestsIDs() (ids []int)

RemovedTests returns the removed IDs of the "tests" edge to the TestCase entity.

func (*TestRunMutation) ResetEdge

func (m *TestRunMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*TestRunMutation) ResetEntry

func (m *TestRunMutation) ResetEntry()

ResetEntry resets all changes to the "entry" edge.

func (*TestRunMutation) ResetField

func (m *TestRunMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*TestRunMutation) ResetMetadata

func (m *TestRunMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*TestRunMutation) ResetRelease

func (m *TestRunMutation) ResetRelease()

ResetRelease resets all changes to the "release" edge.

func (*TestRunMutation) ResetTests

func (m *TestRunMutation) ResetTests()

ResetTests resets all changes to the "tests" edge.

func (*TestRunMutation) ResetTime

func (m *TestRunMutation) ResetTime()

ResetTime resets all changes to the "time" field.

func (*TestRunMutation) ResetTool

func (m *TestRunMutation) ResetTool()

ResetTool resets all changes to the "tool" field.

func (*TestRunMutation) SetEntryID

func (m *TestRunMutation) SetEntryID(id int)

SetEntryID sets the "entry" edge to the ReleaseEntry entity by id.

func (*TestRunMutation) SetField

func (m *TestRunMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*TestRunMutation) SetMetadata

func (m *TestRunMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*TestRunMutation) SetModelCreate

func (tr *TestRunMutation) SetModelCreate(model *TestRunModelCreate) *TestRunMutation

func (*TestRunMutation) SetModelUpdate

func (tr *TestRunMutation) SetModelUpdate(model *TestRunModelUpdate) *TestRunMutation

func (*TestRunMutation) SetReleaseID

func (m *TestRunMutation) SetReleaseID(id int)

SetReleaseID sets the "release" edge to the Release entity by id.

func (*TestRunMutation) SetTime

func (m *TestRunMutation) SetTime(t time.Time)

SetTime sets the "time" field.

func (*TestRunMutation) SetTool

func (m *TestRunMutation) SetTool(s string)

SetTool sets the "tool" field.

func (*TestRunMutation) TestsCleared

func (m *TestRunMutation) TestsCleared() bool

TestsCleared reports if the "tests" edge to the TestCase entity was cleared.

func (*TestRunMutation) TestsIDs

func (m *TestRunMutation) TestsIDs() (ids []int)

TestsIDs returns the "tests" edge IDs in the mutation.

func (*TestRunMutation) Time

func (m *TestRunMutation) Time() (r time.Time, exists bool)

Time returns the value of the "time" field in the mutation.

func (*TestRunMutation) Tool

func (m *TestRunMutation) Tool() (r string, exists bool)

Tool returns the value of the "tool" field in the mutation.

func (TestRunMutation) Tx

func (m TestRunMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*TestRunMutation) Type

func (m *TestRunMutation) Type() string

Type returns the node type of this mutation (TestRun).

func (*TestRunMutation) Where

func (m *TestRunMutation) Where(ps ...predicate.TestRun)

Where appends a list predicates to the TestRunMutation builder.

type TestRunOrder

type TestRunOrder struct {
	Direction OrderDirection     `json:"direction"`
	Field     *TestRunOrderField `json:"field"`
}

TestRunOrder defines the ordering of TestRun.

type TestRunOrderField

type TestRunOrderField struct {
	// contains filtered or unexported fields
}

TestRunOrderField defines the ordering field of TestRun.

func (TestRunOrderField) MarshalGQL

func (f TestRunOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (TestRunOrderField) String

func (f TestRunOrderField) String() string

String implement fmt.Stringer interface.

func (*TestRunOrderField) UnmarshalGQL

func (f *TestRunOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type TestRunPaginateOption

type TestRunPaginateOption func(*testRunPager) error

TestRunPaginateOption enables pagination customization.

func WithTestRunFilter

func WithTestRunFilter(filter func(*TestRunQuery) (*TestRunQuery, error)) TestRunPaginateOption

WithTestRunFilter configures pagination filter.

func WithTestRunOrder

func WithTestRunOrder(order *TestRunOrder) TestRunPaginateOption

WithTestRunOrder configures pagination ordering.

type TestRunQuery

type TestRunQuery struct {
	// contains filtered or unexported fields
}

TestRunQuery is the builder for querying TestRun entities.

func (*TestRunQuery) All

func (trq *TestRunQuery) All(ctx context.Context) ([]*TestRun, error)

All executes the query and returns a list of TestRuns.

func (*TestRunQuery) AllX

func (trq *TestRunQuery) AllX(ctx context.Context) []*TestRun

AllX is like All, but panics if an error occurs.

func (*TestRunQuery) Clone

func (trq *TestRunQuery) Clone() *TestRunQuery

Clone returns a duplicate of the TestRunQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*TestRunQuery) CollectFields

func (tr *TestRunQuery) CollectFields(ctx context.Context, satisfies ...string) *TestRunQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*TestRunQuery) Count

func (trq *TestRunQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*TestRunQuery) CountX

func (trq *TestRunQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*TestRunQuery) Exist

func (trq *TestRunQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*TestRunQuery) ExistX

func (trq *TestRunQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*TestRunQuery) Filter

func (tr *TestRunQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *TestRunOrder, where *TestRunWhereInput,
) ([]*TestRun, error)

func (*TestRunQuery) First

func (trq *TestRunQuery) First(ctx context.Context) (*TestRun, error)

First returns the first TestRun entity from the query. Returns a *NotFoundError when no TestRun was found.

func (*TestRunQuery) FirstID

func (trq *TestRunQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first TestRun ID from the query. Returns a *NotFoundError when no TestRun ID was found.

func (*TestRunQuery) FirstIDX

func (trq *TestRunQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*TestRunQuery) FirstX

func (trq *TestRunQuery) FirstX(ctx context.Context) *TestRun

FirstX is like First, but panics if an error occurs.

func (*TestRunQuery) GroupBy

func (trq *TestRunQuery) GroupBy(field string, fields ...string) *TestRunGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Tool string `json:"tool,omitempty"`
	Count int `json:"count,omitempty"`
}

client.TestRun.Query().
	GroupBy(testrun.FieldTool).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*TestRunQuery) IDs

func (trq *TestRunQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of TestRun IDs.

func (*TestRunQuery) IDsX

func (trq *TestRunQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*TestRunQuery) Limit

func (trq *TestRunQuery) Limit(limit int) *TestRunQuery

Limit adds a limit step to the query.

func (*TestRunQuery) Offset

func (trq *TestRunQuery) Offset(offset int) *TestRunQuery

Offset adds an offset step to the query.

func (*TestRunQuery) Only

func (trq *TestRunQuery) Only(ctx context.Context) (*TestRun, error)

Only returns a single TestRun entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one TestRun entity is not found. Returns a *NotFoundError when no TestRun entities are found.

func (*TestRunQuery) OnlyID

func (trq *TestRunQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only TestRun ID in the query. Returns a *NotSingularError when exactly one TestRun ID is not found. Returns a *NotFoundError when no entities are found.

func (*TestRunQuery) OnlyIDX

func (trq *TestRunQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*TestRunQuery) OnlyX

func (trq *TestRunQuery) OnlyX(ctx context.Context) *TestRun

OnlyX is like Only, but panics if an error occurs.

func (*TestRunQuery) Order

func (trq *TestRunQuery) Order(o ...OrderFunc) *TestRunQuery

Order adds an order step to the query.

func (*TestRunQuery) Paginate

func (tr *TestRunQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...TestRunPaginateOption,
) (*TestRunConnection, error)

Paginate executes the query and returns a relay based cursor connection to TestRun.

func (*TestRunQuery) QueryEntry

func (trq *TestRunQuery) QueryEntry() *ReleaseEntryQuery

QueryEntry chains the current query on the "entry" edge.

func (*TestRunQuery) QueryRelease

func (trq *TestRunQuery) QueryRelease() *ReleaseQuery

QueryRelease chains the current query on the "release" edge.

func (*TestRunQuery) QueryTests

func (trq *TestRunQuery) QueryTests() *TestCaseQuery

QueryTests chains the current query on the "tests" edge.

func (*TestRunQuery) Select

func (trq *TestRunQuery) Select(fields ...string) *TestRunSelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Tool string `json:"tool,omitempty"`
}

client.TestRun.Query().
	Select(testrun.FieldTool).
	Scan(ctx, &v)

func (*TestRunQuery) Unique

func (trq *TestRunQuery) Unique(unique bool) *TestRunQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*TestRunQuery) Where

func (trq *TestRunQuery) Where(ps ...predicate.TestRun) *TestRunQuery

Where adds a new predicate for the TestRunQuery builder.

func (*TestRunQuery) WhereInput

func (tr *TestRunQuery) WhereInput(input *TestRunWhereInput) *TestRunQuery

func (*TestRunQuery) WithEntry

func (trq *TestRunQuery) WithEntry(opts ...func(*ReleaseEntryQuery)) *TestRunQuery

WithEntry tells the query-builder to eager-load the nodes that are connected to the "entry" edge. The optional arguments are used to configure the query builder of the edge.

func (*TestRunQuery) WithRelease

func (trq *TestRunQuery) WithRelease(opts ...func(*ReleaseQuery)) *TestRunQuery

WithRelease tells the query-builder to eager-load the nodes that are connected to the "release" edge. The optional arguments are used to configure the query builder of the edge.

func (*TestRunQuery) WithTests

func (trq *TestRunQuery) WithTests(opts ...func(*TestCaseQuery)) *TestRunQuery

WithTests tells the query-builder to eager-load the nodes that are connected to the "tests" edge. The optional arguments are used to configure the query builder of the edge.

type TestRunSelect

type TestRunSelect struct {
	*TestRunQuery
	// contains filtered or unexported fields
}

TestRunSelect is the builder for selecting fields of TestRun entities.

func (*TestRunSelect) Bool

func (trs *TestRunSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) BoolX

func (trs *TestRunSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*TestRunSelect) Bools

func (trs *TestRunSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) BoolsX

func (trs *TestRunSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*TestRunSelect) Float64

func (trs *TestRunSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) Float64X

func (trs *TestRunSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*TestRunSelect) Float64s

func (trs *TestRunSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) Float64sX

func (trs *TestRunSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*TestRunSelect) Int

func (trs *TestRunSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) IntX

func (trs *TestRunSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*TestRunSelect) Ints

func (trs *TestRunSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) IntsX

func (trs *TestRunSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*TestRunSelect) Scan

func (trs *TestRunSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*TestRunSelect) ScanX

func (trs *TestRunSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*TestRunSelect) String

func (trs *TestRunSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) StringX

func (trs *TestRunSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*TestRunSelect) Strings

func (trs *TestRunSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*TestRunSelect) StringsX

func (trs *TestRunSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type TestRunUpdate

type TestRunUpdate struct {
	// contains filtered or unexported fields
}

TestRunUpdate is the builder for updating TestRun entities.

func (*TestRunUpdate) AddTestIDs

func (tru *TestRunUpdate) AddTestIDs(ids ...int) *TestRunUpdate

AddTestIDs adds the "tests" edge to the TestCase entity by IDs.

func (*TestRunUpdate) AddTests

func (tru *TestRunUpdate) AddTests(t ...*TestCase) *TestRunUpdate

AddTests adds the "tests" edges to the TestCase entity.

func (*TestRunUpdate) ClearEntry

func (tru *TestRunUpdate) ClearEntry() *TestRunUpdate

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*TestRunUpdate) ClearMetadata

func (tru *TestRunUpdate) ClearMetadata() *TestRunUpdate

ClearMetadata clears the value of the "metadata" field.

func (*TestRunUpdate) ClearRelease

func (tru *TestRunUpdate) ClearRelease() *TestRunUpdate

ClearRelease clears the "release" edge to the Release entity.

func (*TestRunUpdate) ClearTests

func (tru *TestRunUpdate) ClearTests() *TestRunUpdate

ClearTests clears all "tests" edges to the TestCase entity.

func (*TestRunUpdate) Exec

func (tru *TestRunUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*TestRunUpdate) ExecX

func (tru *TestRunUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestRunUpdate) Mutation

func (tru *TestRunUpdate) Mutation() *TestRunMutation

Mutation returns the TestRunMutation object of the builder.

func (*TestRunUpdate) RemoveTestIDs

func (tru *TestRunUpdate) RemoveTestIDs(ids ...int) *TestRunUpdate

RemoveTestIDs removes the "tests" edge to TestCase entities by IDs.

func (*TestRunUpdate) RemoveTests

func (tru *TestRunUpdate) RemoveTests(t ...*TestCase) *TestRunUpdate

RemoveTests removes "tests" edges to TestCase entities.

func (*TestRunUpdate) Save

func (tru *TestRunUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*TestRunUpdate) SaveX

func (tru *TestRunUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*TestRunUpdate) SetEntry

func (tru *TestRunUpdate) SetEntry(r *ReleaseEntry) *TestRunUpdate

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*TestRunUpdate) SetEntryID

func (tru *TestRunUpdate) SetEntryID(id int) *TestRunUpdate

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*TestRunUpdate) SetMetadata

func (tru *TestRunUpdate) SetMetadata(s schema.Metadata) *TestRunUpdate

SetMetadata sets the "metadata" field.

func (*TestRunUpdate) SetNillableEntryID

func (tru *TestRunUpdate) SetNillableEntryID(id *int) *TestRunUpdate

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*TestRunUpdate) SetRelease

func (tru *TestRunUpdate) SetRelease(r *Release) *TestRunUpdate

SetRelease sets the "release" edge to the Release entity.

func (*TestRunUpdate) SetReleaseID

func (tru *TestRunUpdate) SetReleaseID(id int) *TestRunUpdate

SetReleaseID sets the "release" edge to the Release entity by ID.

func (*TestRunUpdate) Where

func (tru *TestRunUpdate) Where(ps ...predicate.TestRun) *TestRunUpdate

Where appends a list predicates to the TestRunUpdate builder.

type TestRunUpdateOne

type TestRunUpdateOne struct {
	// contains filtered or unexported fields
}

TestRunUpdateOne is the builder for updating a single TestRun entity.

func (*TestRunUpdateOne) AddTestIDs

func (truo *TestRunUpdateOne) AddTestIDs(ids ...int) *TestRunUpdateOne

AddTestIDs adds the "tests" edge to the TestCase entity by IDs.

func (*TestRunUpdateOne) AddTests

func (truo *TestRunUpdateOne) AddTests(t ...*TestCase) *TestRunUpdateOne

AddTests adds the "tests" edges to the TestCase entity.

func (*TestRunUpdateOne) ClearEntry

func (truo *TestRunUpdateOne) ClearEntry() *TestRunUpdateOne

ClearEntry clears the "entry" edge to the ReleaseEntry entity.

func (*TestRunUpdateOne) ClearMetadata

func (truo *TestRunUpdateOne) ClearMetadata() *TestRunUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*TestRunUpdateOne) ClearRelease

func (truo *TestRunUpdateOne) ClearRelease() *TestRunUpdateOne

ClearRelease clears the "release" edge to the Release entity.

func (*TestRunUpdateOne) ClearTests

func (truo *TestRunUpdateOne) ClearTests() *TestRunUpdateOne

ClearTests clears all "tests" edges to the TestCase entity.

func (*TestRunUpdateOne) Exec

func (truo *TestRunUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*TestRunUpdateOne) ExecX

func (truo *TestRunUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*TestRunUpdateOne) Mutation

func (truo *TestRunUpdateOne) Mutation() *TestRunMutation

Mutation returns the TestRunMutation object of the builder.

func (*TestRunUpdateOne) RemoveTestIDs

func (truo *TestRunUpdateOne) RemoveTestIDs(ids ...int) *TestRunUpdateOne

RemoveTestIDs removes the "tests" edge to TestCase entities by IDs.

func (*TestRunUpdateOne) RemoveTests

func (truo *TestRunUpdateOne) RemoveTests(t ...*TestCase) *TestRunUpdateOne

RemoveTests removes "tests" edges to TestCase entities.

func (*TestRunUpdateOne) Save

func (truo *TestRunUpdateOne) Save(ctx context.Context) (*TestRun, error)

Save executes the query and returns the updated TestRun entity.

func (*TestRunUpdateOne) SaveX

func (truo *TestRunUpdateOne) SaveX(ctx context.Context) *TestRun

SaveX is like Save, but panics if an error occurs.

func (*TestRunUpdateOne) Select

func (truo *TestRunUpdateOne) Select(field string, fields ...string) *TestRunUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*TestRunUpdateOne) SetEntry

func (truo *TestRunUpdateOne) SetEntry(r *ReleaseEntry) *TestRunUpdateOne

SetEntry sets the "entry" edge to the ReleaseEntry entity.

func (*TestRunUpdateOne) SetEntryID

func (truo *TestRunUpdateOne) SetEntryID(id int) *TestRunUpdateOne

SetEntryID sets the "entry" edge to the ReleaseEntry entity by ID.

func (*TestRunUpdateOne) SetMetadata

func (truo *TestRunUpdateOne) SetMetadata(s schema.Metadata) *TestRunUpdateOne

SetMetadata sets the "metadata" field.

func (*TestRunUpdateOne) SetModelCreate

func (tr *TestRunUpdateOne) SetModelCreate(model *TestRunModelCreate) *TestRunUpdateOne

func (*TestRunUpdateOne) SetModelUpdate

func (tr *TestRunUpdateOne) SetModelUpdate(model *TestRunModelUpdate) *TestRunUpdateOne

func (*TestRunUpdateOne) SetNillableEntryID

func (truo *TestRunUpdateOne) SetNillableEntryID(id *int) *TestRunUpdateOne

SetNillableEntryID sets the "entry" edge to the ReleaseEntry entity by ID if the given value is not nil.

func (*TestRunUpdateOne) SetRelease

func (truo *TestRunUpdateOne) SetRelease(r *Release) *TestRunUpdateOne

SetRelease sets the "release" edge to the Release entity.

func (*TestRunUpdateOne) SetReleaseID

func (truo *TestRunUpdateOne) SetReleaseID(id int) *TestRunUpdateOne

SetReleaseID sets the "release" edge to the Release entity by ID.

type TestRunWhereInput

type TestRunWhereInput struct {
	Not *TestRunWhereInput   `json:"not,omitempty"`
	Or  []*TestRunWhereInput `json:"or,omitempty"`
	And []*TestRunWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "tool" field predicates.
	Tool             *string  `json:"tool,omitempty"`
	ToolNEQ          *string  `json:"toolNEQ,omitempty"`
	ToolIn           []string `json:"toolIn,omitempty"`
	ToolNotIn        []string `json:"toolNotIn,omitempty"`
	ToolGT           *string  `json:"toolGT,omitempty"`
	ToolGTE          *string  `json:"toolGTE,omitempty"`
	ToolLT           *string  `json:"toolLT,omitempty"`
	ToolLTE          *string  `json:"toolLTE,omitempty"`
	ToolContains     *string  `json:"toolContains,omitempty"`
	ToolHasPrefix    *string  `json:"toolHasPrefix,omitempty"`
	ToolHasSuffix    *string  `json:"toolHasSuffix,omitempty"`
	ToolEqualFold    *string  `json:"toolEqualFold,omitempty"`
	ToolContainsFold *string  `json:"toolContainsFold,omitempty"`

	// "time" field predicates.
	Time      *time.Time  `json:"time,omitempty"`
	TimeNEQ   *time.Time  `json:"timeNEQ,omitempty"`
	TimeIn    []time.Time `json:"timeIn,omitempty"`
	TimeNotIn []time.Time `json:"timeNotIn,omitempty"`
	TimeGT    *time.Time  `json:"timeGT,omitempty"`
	TimeGTE   *time.Time  `json:"timeGTE,omitempty"`
	TimeLT    *time.Time  `json:"timeLT,omitempty"`
	TimeLTE   *time.Time  `json:"timeLTE,omitempty"`

	// "release" edge predicates.
	HasRelease     *bool                `json:"hasRelease,omitempty"`
	HasReleaseWith []*ReleaseWhereInput `json:"hasReleaseWith,omitempty"`

	// "entry" edge predicates.
	HasEntry     *bool                     `json:"hasEntry,omitempty"`
	HasEntryWith []*ReleaseEntryWhereInput `json:"hasEntryWith,omitempty"`

	// "tests" edge predicates.
	HasTests     *bool                 `json:"hasTests,omitempty"`
	HasTestsWith []*TestCaseWhereInput `json:"hasTestsWith,omitempty"`
}

TestRunWhereInput represents a where input for filtering TestRun queries.

func (*TestRunWhereInput) Filter

Filter applies the TestRunWhereInput filter on the TestRunQuery builder.

func (*TestRunWhereInput) P

P returns a predicate for filtering testruns. An error is returned if the input is empty or invalid.

type TestRuns

type TestRuns []*TestRun

TestRuns is a parsable slice of TestRun.

type Tx

type Tx struct {

	// Adapter is the client for interacting with the Adapter builders.
	Adapter *AdapterClient
	// Artifact is the client for interacting with the Artifact builders.
	Artifact *ArtifactClient
	// CodeIssue is the client for interacting with the CodeIssue builders.
	CodeIssue *CodeIssueClient
	// CodeScan is the client for interacting with the CodeScan builders.
	CodeScan *CodeScanClient
	// Component is the client for interacting with the Component builders.
	Component *ComponentClient
	// Event is the client for interacting with the Event builders.
	Event *EventClient
	// GitCommit is the client for interacting with the GitCommit builders.
	GitCommit *GitCommitClient
	// License is the client for interacting with the License builders.
	License *LicenseClient
	// Organization is the client for interacting with the Organization builders.
	Organization *OrganizationClient
	// Project is the client for interacting with the Project builders.
	Project *ProjectClient
	// Release is the client for interacting with the Release builders.
	Release *ReleaseClient
	// ReleaseComponent is the client for interacting with the ReleaseComponent builders.
	ReleaseComponent *ReleaseComponentClient
	// ReleaseEntry is the client for interacting with the ReleaseEntry builders.
	ReleaseEntry *ReleaseEntryClient
	// ReleaseLicense is the client for interacting with the ReleaseLicense builders.
	ReleaseLicense *ReleaseLicenseClient
	// ReleasePolicy is the client for interacting with the ReleasePolicy builders.
	ReleasePolicy *ReleasePolicyClient
	// ReleasePolicyViolation is the client for interacting with the ReleasePolicyViolation builders.
	ReleasePolicyViolation *ReleasePolicyViolationClient
	// ReleaseVulnerability is the client for interacting with the ReleaseVulnerability builders.
	ReleaseVulnerability *ReleaseVulnerabilityClient
	// Repo is the client for interacting with the Repo builders.
	Repo *RepoClient
	// SPDXLicense is the client for interacting with the SPDXLicense builders.
	SPDXLicense *SPDXLicenseClient
	// TestCase is the client for interacting with the TestCase builders.
	TestCase *TestCaseClient
	// TestRun is the client for interacting with the TestRun builders.
	TestRun *TestRunClient
	// Vulnerability is the client for interacting with the Vulnerability builders.
	Vulnerability *VulnerabilityClient
	// VulnerabilityReview is the client for interacting with the VulnerabilityReview builders.
	VulnerabilityReview *VulnerabilityReviewClient
	// contains filtered or unexported fields
}

Tx is a transactional client that is created by calling Client.Tx().

func TxFromContext

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

type ValidationError

type ValidationError struct {
	Name string // Field or edge name.
	// contains filtered or unexported fields
}

ValidationError returns when validating a field fails.

func (*ValidationError) Error

func (e *ValidationError) Error() string

Error implements the error interface.

func (*ValidationError) Unwrap

func (e *ValidationError) Unwrap() error

Unwrap implements the errors.Wrapper interface.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

type Vulnerabilities

type Vulnerabilities []*Vulnerability

Vulnerabilities is a parsable slice of Vulnerability.

type Vulnerability

type Vulnerability struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Vid holds the value of the "vid" field.
	Vid string `json:"vid,omitempty"`
	// Summary holds the value of the "summary" field.
	Summary string `json:"summary,omitempty"`
	// Description holds the value of the "description" field.
	Description string `json:"description,omitempty"`
	// SeverityScore holds the value of the "severity_score" field.
	SeverityScore float64 `json:"severity_score,omitempty"`
	// Severity holds the value of the "severity" field.
	Severity vulnerability.Severity `json:"severity,omitempty"`
	// Published holds the value of the "published" field.
	Published time.Time `json:"published,omitempty"`
	// Modified holds the value of the "modified" field.
	Modified time.Time `json:"modified,omitempty"`
	// Metadata holds the value of the "metadata" field.
	Metadata schema.Metadata `json:"metadata,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the VulnerabilityQuery when eager-loading is set.
	Edges VulnerabilityEdges `json:"edges"`
	// contains filtered or unexported fields
}

Vulnerability is the model entity for the Vulnerability schema.

func (*Vulnerability) Components

func (v *Vulnerability) Components(ctx context.Context) ([]*Component, error)

func (*Vulnerability) Instances

func (v *Vulnerability) Instances(ctx context.Context) ([]*ReleaseVulnerability, error)

func (*Vulnerability) Node

func (v *Vulnerability) Node(ctx context.Context) (node *Node, err error)

func (*Vulnerability) Owner

func (v *Vulnerability) Owner(ctx context.Context) (*Organization, error)

func (*Vulnerability) QueryComponents

func (v *Vulnerability) QueryComponents() *ComponentQuery

QueryComponents queries the "components" edge of the Vulnerability entity.

func (*Vulnerability) QueryInstances

func (v *Vulnerability) QueryInstances() *ReleaseVulnerabilityQuery

QueryInstances queries the "instances" edge of the Vulnerability entity.

func (*Vulnerability) QueryOwner

func (v *Vulnerability) QueryOwner() *OrganizationQuery

QueryOwner queries the "owner" edge of the Vulnerability entity.

func (*Vulnerability) QueryReviews

func (v *Vulnerability) QueryReviews() *VulnerabilityReviewQuery

QueryReviews queries the "reviews" edge of the Vulnerability entity.

func (*Vulnerability) Reviews

func (v *Vulnerability) Reviews(ctx context.Context) ([]*VulnerabilityReview, error)

func (*Vulnerability) String

func (v *Vulnerability) String() string

String implements the fmt.Stringer.

func (*Vulnerability) ToEdge

ToEdge converts Vulnerability into VulnerabilityEdge.

func (*Vulnerability) Unwrap

func (v *Vulnerability) Unwrap() *Vulnerability

Unwrap unwraps the Vulnerability entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*Vulnerability) Update

Update returns a builder for updating this Vulnerability. Note that you need to call Vulnerability.Unwrap() before calling this method if this Vulnerability was returned from a transaction, and the transaction was committed or rolled back.

type VulnerabilityClient

type VulnerabilityClient struct {
	// contains filtered or unexported fields
}

VulnerabilityClient is a client for the Vulnerability schema.

func NewVulnerabilityClient

func NewVulnerabilityClient(c config) *VulnerabilityClient

NewVulnerabilityClient returns a client for the Vulnerability from the given config.

func (*VulnerabilityClient) Create

Create returns a create builder for Vulnerability.

func (*VulnerabilityClient) CreateBulk

CreateBulk returns a builder for creating a bulk of Vulnerability entities.

func (*VulnerabilityClient) Delete

Delete returns a delete builder for Vulnerability.

func (*VulnerabilityClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*VulnerabilityClient) DeleteOneID

func (c *VulnerabilityClient) DeleteOneID(id int) *VulnerabilityDeleteOne

DeleteOneID returns a delete builder for the given id.

func (*VulnerabilityClient) Get

Get returns a Vulnerability entity by its id.

func (*VulnerabilityClient) GetX

GetX is like Get, but panics if an error occurs.

func (*VulnerabilityClient) Hooks

func (c *VulnerabilityClient) Hooks() []Hook

Hooks returns the client hooks.

func (*VulnerabilityClient) Query

Query returns a query builder for Vulnerability.

func (*VulnerabilityClient) QueryComponents

func (c *VulnerabilityClient) QueryComponents(v *Vulnerability) *ComponentQuery

QueryComponents queries the components edge of a Vulnerability.

func (*VulnerabilityClient) QueryInstances

QueryInstances queries the instances edge of a Vulnerability.

func (*VulnerabilityClient) QueryOwner

QueryOwner queries the owner edge of a Vulnerability.

func (*VulnerabilityClient) QueryReviews

QueryReviews queries the reviews edge of a Vulnerability.

func (*VulnerabilityClient) Update

Update returns an update builder for Vulnerability.

func (*VulnerabilityClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*VulnerabilityClient) UpdateOneID

func (c *VulnerabilityClient) UpdateOneID(id int) *VulnerabilityUpdateOne

UpdateOneID returns an update builder for the given id.

func (*VulnerabilityClient) Use

func (c *VulnerabilityClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `vulnerability.Hooks(f(g(h())))`.

type VulnerabilityConnection

type VulnerabilityConnection struct {
	Edges      []*VulnerabilityEdge `json:"edges"`
	PageInfo   PageInfo             `json:"pageInfo"`
	TotalCount int                  `json:"totalCount"`
}

VulnerabilityConnection is the connection containing edges to Vulnerability.

type VulnerabilityCreate

type VulnerabilityCreate struct {
	// contains filtered or unexported fields
}

VulnerabilityCreate is the builder for creating a Vulnerability entity.

func (*VulnerabilityCreate) AddComponentIDs

func (vc *VulnerabilityCreate) AddComponentIDs(ids ...int) *VulnerabilityCreate

AddComponentIDs adds the "components" edge to the Component entity by IDs.

func (*VulnerabilityCreate) AddComponents

func (vc *VulnerabilityCreate) AddComponents(c ...*Component) *VulnerabilityCreate

AddComponents adds the "components" edges to the Component entity.

func (*VulnerabilityCreate) AddInstanceIDs

func (vc *VulnerabilityCreate) AddInstanceIDs(ids ...int) *VulnerabilityCreate

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityCreate) AddInstances

AddInstances adds the "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityCreate) AddReviewIDs

func (vc *VulnerabilityCreate) AddReviewIDs(ids ...int) *VulnerabilityCreate

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*VulnerabilityCreate) AddReviews

AddReviews adds the "reviews" edges to the VulnerabilityReview entity.

func (*VulnerabilityCreate) Exec

func (vc *VulnerabilityCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*VulnerabilityCreate) ExecX

func (vc *VulnerabilityCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityCreate) Mutation

Mutation returns the VulnerabilityMutation object of the builder.

func (*VulnerabilityCreate) Save

Save creates the Vulnerability in the database.

func (*VulnerabilityCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*VulnerabilityCreate) SetDescription

func (vc *VulnerabilityCreate) SetDescription(s string) *VulnerabilityCreate

SetDescription sets the "description" field.

func (*VulnerabilityCreate) SetMetadata

SetMetadata sets the "metadata" field.

func (*VulnerabilityCreate) SetModelCreate

func (*VulnerabilityCreate) SetModified

func (vc *VulnerabilityCreate) SetModified(t time.Time) *VulnerabilityCreate

SetModified sets the "modified" field.

func (*VulnerabilityCreate) SetNillableDescription

func (vc *VulnerabilityCreate) SetNillableDescription(s *string) *VulnerabilityCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*VulnerabilityCreate) SetNillableModified

func (vc *VulnerabilityCreate) SetNillableModified(t *time.Time) *VulnerabilityCreate

SetNillableModified sets the "modified" field if the given value is not nil.

func (*VulnerabilityCreate) SetNillablePublished

func (vc *VulnerabilityCreate) SetNillablePublished(t *time.Time) *VulnerabilityCreate

SetNillablePublished sets the "published" field if the given value is not nil.

func (*VulnerabilityCreate) SetNillableSeverity

func (vc *VulnerabilityCreate) SetNillableSeverity(v *vulnerability.Severity) *VulnerabilityCreate

SetNillableSeverity sets the "severity" field if the given value is not nil.

func (*VulnerabilityCreate) SetNillableSeverityScore

func (vc *VulnerabilityCreate) SetNillableSeverityScore(f *float64) *VulnerabilityCreate

SetNillableSeverityScore sets the "severity_score" field if the given value is not nil.

func (*VulnerabilityCreate) SetNillableSummary

func (vc *VulnerabilityCreate) SetNillableSummary(s *string) *VulnerabilityCreate

SetNillableSummary sets the "summary" field if the given value is not nil.

func (*VulnerabilityCreate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*VulnerabilityCreate) SetOwnerID

func (vc *VulnerabilityCreate) SetOwnerID(id int) *VulnerabilityCreate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*VulnerabilityCreate) SetPublished

func (vc *VulnerabilityCreate) SetPublished(t time.Time) *VulnerabilityCreate

SetPublished sets the "published" field.

func (*VulnerabilityCreate) SetSeverity

SetSeverity sets the "severity" field.

func (*VulnerabilityCreate) SetSeverityScore

func (vc *VulnerabilityCreate) SetSeverityScore(f float64) *VulnerabilityCreate

SetSeverityScore sets the "severity_score" field.

func (*VulnerabilityCreate) SetSummary

func (vc *VulnerabilityCreate) SetSummary(s string) *VulnerabilityCreate

SetSummary sets the "summary" field.

func (*VulnerabilityCreate) SetVid

SetVid sets the "vid" field.

type VulnerabilityCreateBulk

type VulnerabilityCreateBulk struct {
	// contains filtered or unexported fields
}

VulnerabilityCreateBulk is the builder for creating many Vulnerability entities in bulk.

func (*VulnerabilityCreateBulk) Exec

Exec executes the query.

func (*VulnerabilityCreateBulk) ExecX

func (vcb *VulnerabilityCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityCreateBulk) Save

Save creates the Vulnerability entities in the database.

func (*VulnerabilityCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type VulnerabilityDelete

type VulnerabilityDelete struct {
	// contains filtered or unexported fields
}

VulnerabilityDelete is the builder for deleting a Vulnerability entity.

func (*VulnerabilityDelete) Exec

func (vd *VulnerabilityDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*VulnerabilityDelete) ExecX

func (vd *VulnerabilityDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityDelete) Where

Where appends a list predicates to the VulnerabilityDelete builder.

type VulnerabilityDeleteOne

type VulnerabilityDeleteOne struct {
	// contains filtered or unexported fields
}

VulnerabilityDeleteOne is the builder for deleting a single Vulnerability entity.

func (*VulnerabilityDeleteOne) Exec

Exec executes the deletion query.

func (*VulnerabilityDeleteOne) ExecX

func (vdo *VulnerabilityDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type VulnerabilityEdge

type VulnerabilityEdge struct {
	Node   *Vulnerability `json:"node"`
	Cursor Cursor         `json:"cursor"`
}

VulnerabilityEdge is the edge representation of Vulnerability.

type VulnerabilityEdges

type VulnerabilityEdges struct {
	// Owner holds the value of the owner edge.
	Owner *Organization `json:"owner,omitempty"`
	// Components holds the value of the components edge.
	Components []*Component `json:"components,omitempty"`
	// Reviews holds the value of the reviews edge.
	Reviews []*VulnerabilityReview `json:"reviews,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*ReleaseVulnerability `json:"instances,omitempty"`
	// contains filtered or unexported fields
}

VulnerabilityEdges holds the relations/edges for other nodes in the graph.

func (VulnerabilityEdges) ComponentsOrErr

func (e VulnerabilityEdges) ComponentsOrErr() ([]*Component, error)

ComponentsOrErr returns the Components value or an error if the edge was not loaded in eager-loading.

func (VulnerabilityEdges) InstancesOrErr

func (e VulnerabilityEdges) InstancesOrErr() ([]*ReleaseVulnerability, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (VulnerabilityEdges) OwnerOrErr

func (e VulnerabilityEdges) OwnerOrErr() (*Organization, error)

OwnerOrErr returns the Owner value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (VulnerabilityEdges) ReviewsOrErr

func (e VulnerabilityEdges) ReviewsOrErr() ([]*VulnerabilityReview, error)

ReviewsOrErr returns the Reviews value or an error if the edge was not loaded in eager-loading.

type VulnerabilityGroupBy

type VulnerabilityGroupBy struct {
	// contains filtered or unexported fields
}

VulnerabilityGroupBy is the group-by builder for Vulnerability entities.

func (*VulnerabilityGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*VulnerabilityGroupBy) Bool

func (vgb *VulnerabilityGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) BoolX

func (vgb *VulnerabilityGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VulnerabilityGroupBy) Bools

func (vgb *VulnerabilityGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) BoolsX

func (vgb *VulnerabilityGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VulnerabilityGroupBy) Float64

func (vgb *VulnerabilityGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) Float64X

func (vgb *VulnerabilityGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VulnerabilityGroupBy) Float64s

func (vgb *VulnerabilityGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) Float64sX

func (vgb *VulnerabilityGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VulnerabilityGroupBy) Int

func (vgb *VulnerabilityGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) IntX

func (vgb *VulnerabilityGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VulnerabilityGroupBy) Ints

func (vgb *VulnerabilityGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) IntsX

func (vgb *VulnerabilityGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VulnerabilityGroupBy) Scan

func (vgb *VulnerabilityGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*VulnerabilityGroupBy) ScanX

func (vgb *VulnerabilityGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VulnerabilityGroupBy) String

func (vgb *VulnerabilityGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) StringX

func (vgb *VulnerabilityGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VulnerabilityGroupBy) Strings

func (vgb *VulnerabilityGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityGroupBy) StringsX

func (vgb *VulnerabilityGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VulnerabilityModelCreate

type VulnerabilityModelCreate struct {
	Vid           *string                 `json:"vid,omitempty" validate:"required" mapstructure:"vid"`
	Summary       *string                 `json:"summary,omitempty"  mapstructure:"summary"`
	Description   *string                 `json:"description,omitempty"  mapstructure:"description"`
	SeverityScore *float64                `json:"severity_score,omitempty"  mapstructure:"severity_score"`
	Severity      *vulnerability.Severity `json:"severity,omitempty"  mapstructure:"severity"`
	Published     *time.Time              `json:"published,omitempty"  mapstructure:"published"`
	Modified      *time.Time              `json:"modified,omitempty"  mapstructure:"modified"`
	Metadata      *schema.Metadata        `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewVulnerabilityModelCreate

func NewVulnerabilityModelCreate() *VulnerabilityModelCreate

func (*VulnerabilityModelCreate) SetDescription

func (v *VulnerabilityModelCreate) SetDescription(value string) *VulnerabilityModelCreate

func (*VulnerabilityModelCreate) SetMetadata

func (*VulnerabilityModelCreate) SetModified

func (*VulnerabilityModelCreate) SetPublished

func (*VulnerabilityModelCreate) SetSeverity

func (*VulnerabilityModelCreate) SetSeverityScore

func (v *VulnerabilityModelCreate) SetSeverityScore(value float64) *VulnerabilityModelCreate

func (*VulnerabilityModelCreate) SetSummary

func (*VulnerabilityModelCreate) SetVid

type VulnerabilityModelRead

type VulnerabilityModelRead struct {
	Vid           *string                 `json:"vid,omitempty" validate:"required" mapstructure:"vid"`
	Summary       *string                 `json:"summary,omitempty"  mapstructure:"summary"`
	Description   *string                 `json:"description,omitempty"  mapstructure:"description"`
	SeverityScore *float64                `json:"severity_score,omitempty"  mapstructure:"severity_score"`
	Severity      *vulnerability.Severity `json:"severity,omitempty"  mapstructure:"severity"`
	Published     *time.Time              `json:"published,omitempty"  mapstructure:"published"`
	Modified      *time.Time              `json:"modified,omitempty"  mapstructure:"modified"`
	Metadata      *schema.Metadata        `json:"metadata,omitempty"  mapstructure:"metadata"`
	ID            *int                    `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewVulnerabilityModelRead

func NewVulnerabilityModelRead() *VulnerabilityModelRead

func (*VulnerabilityModelRead) FromEnt

type VulnerabilityModelUpdate

type VulnerabilityModelUpdate struct {
	Vid           *string                 `json:"vid,omitempty"  mapstructure:"vid"`
	Summary       *string                 `json:"summary,omitempty"  mapstructure:"summary"`
	Description   *string                 `json:"description,omitempty"  mapstructure:"description"`
	SeverityScore *float64                `json:"severity_score,omitempty"  mapstructure:"severity_score"`
	Severity      *vulnerability.Severity `json:"severity,omitempty"  mapstructure:"severity"`
	Published     *time.Time              `json:"published,omitempty"  mapstructure:"published"`
	Modified      *time.Time              `json:"modified,omitempty"  mapstructure:"modified"`
	Metadata      *schema.Metadata        `json:"metadata,omitempty"  mapstructure:"metadata"`
}

func NewVulnerabilityModelUpdate

func NewVulnerabilityModelUpdate() *VulnerabilityModelUpdate

func (*VulnerabilityModelUpdate) SetDescription

func (v *VulnerabilityModelUpdate) SetDescription(value string) *VulnerabilityModelUpdate

func (*VulnerabilityModelUpdate) SetMetadata

func (*VulnerabilityModelUpdate) SetModified

func (*VulnerabilityModelUpdate) SetPublished

func (*VulnerabilityModelUpdate) SetSeverity

func (*VulnerabilityModelUpdate) SetSeverityScore

func (v *VulnerabilityModelUpdate) SetSeverityScore(value float64) *VulnerabilityModelUpdate

func (*VulnerabilityModelUpdate) SetSummary

func (*VulnerabilityModelUpdate) SetVid

type VulnerabilityMutation

type VulnerabilityMutation struct {
	// contains filtered or unexported fields
}

VulnerabilityMutation represents an operation that mutates the Vulnerability nodes in the graph.

func (*VulnerabilityMutation) AddComponentIDs

func (m *VulnerabilityMutation) AddComponentIDs(ids ...int)

AddComponentIDs adds the "components" edge to the Component entity by ids.

func (*VulnerabilityMutation) AddField

func (m *VulnerabilityMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*VulnerabilityMutation) AddInstanceIDs

func (m *VulnerabilityMutation) AddInstanceIDs(ids ...int)

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by ids.

func (*VulnerabilityMutation) AddReviewIDs

func (m *VulnerabilityMutation) AddReviewIDs(ids ...int)

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by ids.

func (*VulnerabilityMutation) AddSeverityScore

func (m *VulnerabilityMutation) AddSeverityScore(f float64)

AddSeverityScore adds f to the "severity_score" field.

func (*VulnerabilityMutation) AddedEdges

func (m *VulnerabilityMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*VulnerabilityMutation) AddedField

func (m *VulnerabilityMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*VulnerabilityMutation) AddedFields

func (m *VulnerabilityMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*VulnerabilityMutation) AddedIDs

func (m *VulnerabilityMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*VulnerabilityMutation) AddedSeverityScore

func (m *VulnerabilityMutation) AddedSeverityScore() (r float64, exists bool)

AddedSeverityScore returns the value that was added to the "severity_score" field in this mutation.

func (*VulnerabilityMutation) ClearComponents

func (m *VulnerabilityMutation) ClearComponents()

ClearComponents clears the "components" edge to the Component entity.

func (*VulnerabilityMutation) ClearDescription

func (m *VulnerabilityMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*VulnerabilityMutation) ClearEdge

func (m *VulnerabilityMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*VulnerabilityMutation) ClearField

func (m *VulnerabilityMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*VulnerabilityMutation) ClearInstances

func (m *VulnerabilityMutation) ClearInstances()

ClearInstances clears the "instances" edge to the ReleaseVulnerability entity.

func (*VulnerabilityMutation) ClearMetadata

func (m *VulnerabilityMutation) ClearMetadata()

ClearMetadata clears the value of the "metadata" field.

func (*VulnerabilityMutation) ClearModified

func (m *VulnerabilityMutation) ClearModified()

ClearModified clears the value of the "modified" field.

func (*VulnerabilityMutation) ClearOwner

func (m *VulnerabilityMutation) ClearOwner()

ClearOwner clears the "owner" edge to the Organization entity.

func (*VulnerabilityMutation) ClearPublished

func (m *VulnerabilityMutation) ClearPublished()

ClearPublished clears the value of the "published" field.

func (*VulnerabilityMutation) ClearReviews

func (m *VulnerabilityMutation) ClearReviews()

ClearReviews clears the "reviews" edge to the VulnerabilityReview entity.

func (*VulnerabilityMutation) ClearSummary

func (m *VulnerabilityMutation) ClearSummary()

ClearSummary clears the value of the "summary" field.

func (*VulnerabilityMutation) ClearedEdges

func (m *VulnerabilityMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*VulnerabilityMutation) ClearedFields

func (m *VulnerabilityMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (VulnerabilityMutation) Client

func (m VulnerabilityMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*VulnerabilityMutation) ComponentsCleared

func (m *VulnerabilityMutation) ComponentsCleared() bool

ComponentsCleared reports if the "components" edge to the Component entity was cleared.

func (*VulnerabilityMutation) ComponentsIDs

func (m *VulnerabilityMutation) ComponentsIDs() (ids []int)

ComponentsIDs returns the "components" edge IDs in the mutation.

func (*VulnerabilityMutation) Description

func (m *VulnerabilityMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*VulnerabilityMutation) DescriptionCleared

func (m *VulnerabilityMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*VulnerabilityMutation) EdgeCleared

func (m *VulnerabilityMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*VulnerabilityMutation) Field

func (m *VulnerabilityMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*VulnerabilityMutation) FieldCleared

func (m *VulnerabilityMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*VulnerabilityMutation) Fields

func (m *VulnerabilityMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*VulnerabilityMutation) ID

func (m *VulnerabilityMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*VulnerabilityMutation) InstancesCleared

func (m *VulnerabilityMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the ReleaseVulnerability entity was cleared.

func (*VulnerabilityMutation) InstancesIDs

func (m *VulnerabilityMutation) InstancesIDs() (ids []int)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*VulnerabilityMutation) Metadata

func (m *VulnerabilityMutation) Metadata() (r schema.Metadata, exists bool)

Metadata returns the value of the "metadata" field in the mutation.

func (*VulnerabilityMutation) MetadataCleared

func (m *VulnerabilityMutation) MetadataCleared() bool

MetadataCleared returns if the "metadata" field was cleared in this mutation.

func (*VulnerabilityMutation) Modified

func (m *VulnerabilityMutation) Modified() (r time.Time, exists bool)

Modified returns the value of the "modified" field in the mutation.

func (*VulnerabilityMutation) ModifiedCleared

func (m *VulnerabilityMutation) ModifiedCleared() bool

ModifiedCleared returns if the "modified" field was cleared in this mutation.

func (*VulnerabilityMutation) OldDescription

func (m *VulnerabilityMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldField

func (m *VulnerabilityMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*VulnerabilityMutation) OldMetadata

func (m *VulnerabilityMutation) OldMetadata(ctx context.Context) (v schema.Metadata, err error)

OldMetadata returns the old "metadata" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldModified

func (m *VulnerabilityMutation) OldModified(ctx context.Context) (v time.Time, err error)

OldModified returns the old "modified" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldPublished

func (m *VulnerabilityMutation) OldPublished(ctx context.Context) (v time.Time, err error)

OldPublished returns the old "published" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldSeverity

func (m *VulnerabilityMutation) OldSeverity(ctx context.Context) (v vulnerability.Severity, err error)

OldSeverity returns the old "severity" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldSeverityScore

func (m *VulnerabilityMutation) OldSeverityScore(ctx context.Context) (v float64, err error)

OldSeverityScore returns the old "severity_score" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldSummary

func (m *VulnerabilityMutation) OldSummary(ctx context.Context) (v string, err error)

OldSummary returns the old "summary" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) OldVid

func (m *VulnerabilityMutation) OldVid(ctx context.Context) (v string, err error)

OldVid returns the old "vid" field's value of the Vulnerability entity. If the Vulnerability object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityMutation) Op

func (m *VulnerabilityMutation) Op() Op

Op returns the operation name.

func (*VulnerabilityMutation) OwnerCleared

func (m *VulnerabilityMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the Organization entity was cleared.

func (*VulnerabilityMutation) OwnerID

func (m *VulnerabilityMutation) OwnerID() (id int, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*VulnerabilityMutation) OwnerIDs

func (m *VulnerabilityMutation) OwnerIDs() (ids []int)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*VulnerabilityMutation) Published

func (m *VulnerabilityMutation) Published() (r time.Time, exists bool)

Published returns the value of the "published" field in the mutation.

func (*VulnerabilityMutation) PublishedCleared

func (m *VulnerabilityMutation) PublishedCleared() bool

PublishedCleared returns if the "published" field was cleared in this mutation.

func (*VulnerabilityMutation) RemoveComponentIDs

func (m *VulnerabilityMutation) RemoveComponentIDs(ids ...int)

RemoveComponentIDs removes the "components" edge to the Component entity by IDs.

func (*VulnerabilityMutation) RemoveInstanceIDs

func (m *VulnerabilityMutation) RemoveInstanceIDs(ids ...int)

RemoveInstanceIDs removes the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityMutation) RemoveReviewIDs

func (m *VulnerabilityMutation) RemoveReviewIDs(ids ...int)

RemoveReviewIDs removes the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*VulnerabilityMutation) RemovedComponentsIDs

func (m *VulnerabilityMutation) RemovedComponentsIDs() (ids []int)

RemovedComponents returns the removed IDs of the "components" edge to the Component entity.

func (*VulnerabilityMutation) RemovedEdges

func (m *VulnerabilityMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*VulnerabilityMutation) RemovedIDs

func (m *VulnerabilityMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*VulnerabilityMutation) RemovedInstancesIDs

func (m *VulnerabilityMutation) RemovedInstancesIDs() (ids []int)

RemovedInstances returns the removed IDs of the "instances" edge to the ReleaseVulnerability entity.

func (*VulnerabilityMutation) RemovedReviewsIDs

func (m *VulnerabilityMutation) RemovedReviewsIDs() (ids []int)

RemovedReviews returns the removed IDs of the "reviews" edge to the VulnerabilityReview entity.

func (*VulnerabilityMutation) ResetComponents

func (m *VulnerabilityMutation) ResetComponents()

ResetComponents resets all changes to the "components" edge.

func (*VulnerabilityMutation) ResetDescription

func (m *VulnerabilityMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*VulnerabilityMutation) ResetEdge

func (m *VulnerabilityMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*VulnerabilityMutation) ResetField

func (m *VulnerabilityMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*VulnerabilityMutation) ResetInstances

func (m *VulnerabilityMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*VulnerabilityMutation) ResetMetadata

func (m *VulnerabilityMutation) ResetMetadata()

ResetMetadata resets all changes to the "metadata" field.

func (*VulnerabilityMutation) ResetModified

func (m *VulnerabilityMutation) ResetModified()

ResetModified resets all changes to the "modified" field.

func (*VulnerabilityMutation) ResetOwner

func (m *VulnerabilityMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*VulnerabilityMutation) ResetPublished

func (m *VulnerabilityMutation) ResetPublished()

ResetPublished resets all changes to the "published" field.

func (*VulnerabilityMutation) ResetReviews

func (m *VulnerabilityMutation) ResetReviews()

ResetReviews resets all changes to the "reviews" edge.

func (*VulnerabilityMutation) ResetSeverity

func (m *VulnerabilityMutation) ResetSeverity()

ResetSeverity resets all changes to the "severity" field.

func (*VulnerabilityMutation) ResetSeverityScore

func (m *VulnerabilityMutation) ResetSeverityScore()

ResetSeverityScore resets all changes to the "severity_score" field.

func (*VulnerabilityMutation) ResetSummary

func (m *VulnerabilityMutation) ResetSummary()

ResetSummary resets all changes to the "summary" field.

func (*VulnerabilityMutation) ResetVid

func (m *VulnerabilityMutation) ResetVid()

ResetVid resets all changes to the "vid" field.

func (*VulnerabilityMutation) ReviewsCleared

func (m *VulnerabilityMutation) ReviewsCleared() bool

ReviewsCleared reports if the "reviews" edge to the VulnerabilityReview entity was cleared.

func (*VulnerabilityMutation) ReviewsIDs

func (m *VulnerabilityMutation) ReviewsIDs() (ids []int)

ReviewsIDs returns the "reviews" edge IDs in the mutation.

func (*VulnerabilityMutation) SetDescription

func (m *VulnerabilityMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*VulnerabilityMutation) SetField

func (m *VulnerabilityMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*VulnerabilityMutation) SetMetadata

func (m *VulnerabilityMutation) SetMetadata(s schema.Metadata)

SetMetadata sets the "metadata" field.

func (*VulnerabilityMutation) SetModelCreate

func (*VulnerabilityMutation) SetModelUpdate

func (*VulnerabilityMutation) SetModified

func (m *VulnerabilityMutation) SetModified(t time.Time)

SetModified sets the "modified" field.

func (*VulnerabilityMutation) SetOwnerID

func (m *VulnerabilityMutation) SetOwnerID(id int)

SetOwnerID sets the "owner" edge to the Organization entity by id.

func (*VulnerabilityMutation) SetPublished

func (m *VulnerabilityMutation) SetPublished(t time.Time)

SetPublished sets the "published" field.

func (*VulnerabilityMutation) SetSeverity

func (m *VulnerabilityMutation) SetSeverity(v vulnerability.Severity)

SetSeverity sets the "severity" field.

func (*VulnerabilityMutation) SetSeverityScore

func (m *VulnerabilityMutation) SetSeverityScore(f float64)

SetSeverityScore sets the "severity_score" field.

func (*VulnerabilityMutation) SetSummary

func (m *VulnerabilityMutation) SetSummary(s string)

SetSummary sets the "summary" field.

func (*VulnerabilityMutation) SetVid

func (m *VulnerabilityMutation) SetVid(s string)

SetVid sets the "vid" field.

func (*VulnerabilityMutation) Severity

func (m *VulnerabilityMutation) Severity() (r vulnerability.Severity, exists bool)

Severity returns the value of the "severity" field in the mutation.

func (*VulnerabilityMutation) SeverityScore

func (m *VulnerabilityMutation) SeverityScore() (r float64, exists bool)

SeverityScore returns the value of the "severity_score" field in the mutation.

func (*VulnerabilityMutation) Summary

func (m *VulnerabilityMutation) Summary() (r string, exists bool)

Summary returns the value of the "summary" field in the mutation.

func (*VulnerabilityMutation) SummaryCleared

func (m *VulnerabilityMutation) SummaryCleared() bool

SummaryCleared returns if the "summary" field was cleared in this mutation.

func (VulnerabilityMutation) Tx

func (m VulnerabilityMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*VulnerabilityMutation) Type

func (m *VulnerabilityMutation) Type() string

Type returns the node type of this mutation (Vulnerability).

func (*VulnerabilityMutation) Vid

func (m *VulnerabilityMutation) Vid() (r string, exists bool)

Vid returns the value of the "vid" field in the mutation.

func (*VulnerabilityMutation) Where

Where appends a list predicates to the VulnerabilityMutation builder.

type VulnerabilityOrder

type VulnerabilityOrder struct {
	Direction OrderDirection           `json:"direction"`
	Field     *VulnerabilityOrderField `json:"field"`
}

VulnerabilityOrder defines the ordering of Vulnerability.

type VulnerabilityOrderField

type VulnerabilityOrderField struct {
	// contains filtered or unexported fields
}

VulnerabilityOrderField defines the ordering field of Vulnerability.

func (VulnerabilityOrderField) MarshalGQL

func (f VulnerabilityOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (VulnerabilityOrderField) String

func (f VulnerabilityOrderField) String() string

String implement fmt.Stringer interface.

func (*VulnerabilityOrderField) UnmarshalGQL

func (f *VulnerabilityOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type VulnerabilityPaginateOption

type VulnerabilityPaginateOption func(*vulnerabilityPager) error

VulnerabilityPaginateOption enables pagination customization.

func WithVulnerabilityFilter

func WithVulnerabilityFilter(filter func(*VulnerabilityQuery) (*VulnerabilityQuery, error)) VulnerabilityPaginateOption

WithVulnerabilityFilter configures pagination filter.

func WithVulnerabilityOrder

func WithVulnerabilityOrder(order *VulnerabilityOrder) VulnerabilityPaginateOption

WithVulnerabilityOrder configures pagination ordering.

type VulnerabilityQuery

type VulnerabilityQuery struct {
	// contains filtered or unexported fields
}

VulnerabilityQuery is the builder for querying Vulnerability entities.

func (*VulnerabilityQuery) All

All executes the query and returns a list of Vulnerabilities.

func (*VulnerabilityQuery) AllX

AllX is like All, but panics if an error occurs.

func (*VulnerabilityQuery) Clone

Clone returns a duplicate of the VulnerabilityQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*VulnerabilityQuery) CollectFields

func (v *VulnerabilityQuery) CollectFields(ctx context.Context, satisfies ...string) *VulnerabilityQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*VulnerabilityQuery) Count

func (vq *VulnerabilityQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*VulnerabilityQuery) CountX

func (vq *VulnerabilityQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*VulnerabilityQuery) Exist

func (vq *VulnerabilityQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*VulnerabilityQuery) ExistX

func (vq *VulnerabilityQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*VulnerabilityQuery) Filter

func (v *VulnerabilityQuery) Filter(
	ctx context.Context, first *int, last *int,
	orderBy *VulnerabilityOrder, where *VulnerabilityWhereInput,
) ([]*Vulnerability, error)

func (*VulnerabilityQuery) First

First returns the first Vulnerability entity from the query. Returns a *NotFoundError when no Vulnerability was found.

func (*VulnerabilityQuery) FirstID

func (vq *VulnerabilityQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Vulnerability ID from the query. Returns a *NotFoundError when no Vulnerability ID was found.

func (*VulnerabilityQuery) FirstIDX

func (vq *VulnerabilityQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*VulnerabilityQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*VulnerabilityQuery) GroupBy

func (vq *VulnerabilityQuery) GroupBy(field string, fields ...string) *VulnerabilityGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Vid string `json:"vid,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Vulnerability.Query().
	GroupBy(vulnerability.FieldVid).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*VulnerabilityQuery) IDs

func (vq *VulnerabilityQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of Vulnerability IDs.

func (*VulnerabilityQuery) IDsX

func (vq *VulnerabilityQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*VulnerabilityQuery) Limit

func (vq *VulnerabilityQuery) Limit(limit int) *VulnerabilityQuery

Limit adds a limit step to the query.

func (*VulnerabilityQuery) Offset

func (vq *VulnerabilityQuery) Offset(offset int) *VulnerabilityQuery

Offset adds an offset step to the query.

func (*VulnerabilityQuery) Only

Only returns a single Vulnerability entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one Vulnerability entity is not found. Returns a *NotFoundError when no Vulnerability entities are found.

func (*VulnerabilityQuery) OnlyID

func (vq *VulnerabilityQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Vulnerability ID in the query. Returns a *NotSingularError when exactly one Vulnerability ID is not found. Returns a *NotFoundError when no entities are found.

func (*VulnerabilityQuery) OnlyIDX

func (vq *VulnerabilityQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*VulnerabilityQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*VulnerabilityQuery) Order

Order adds an order step to the query.

func (*VulnerabilityQuery) Paginate

func (v *VulnerabilityQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...VulnerabilityPaginateOption,
) (*VulnerabilityConnection, error)

Paginate executes the query and returns a relay based cursor connection to Vulnerability.

func (*VulnerabilityQuery) QueryComponents

func (vq *VulnerabilityQuery) QueryComponents() *ComponentQuery

QueryComponents chains the current query on the "components" edge.

func (*VulnerabilityQuery) QueryInstances

func (vq *VulnerabilityQuery) QueryInstances() *ReleaseVulnerabilityQuery

QueryInstances chains the current query on the "instances" edge.

func (*VulnerabilityQuery) QueryOwner

func (vq *VulnerabilityQuery) QueryOwner() *OrganizationQuery

QueryOwner chains the current query on the "owner" edge.

func (*VulnerabilityQuery) QueryReviews

func (vq *VulnerabilityQuery) QueryReviews() *VulnerabilityReviewQuery

QueryReviews chains the current query on the "reviews" edge.

func (*VulnerabilityQuery) Select

func (vq *VulnerabilityQuery) Select(fields ...string) *VulnerabilitySelect

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Vid string `json:"vid,omitempty"`
}

client.Vulnerability.Query().
	Select(vulnerability.FieldVid).
	Scan(ctx, &v)

func (*VulnerabilityQuery) Unique

func (vq *VulnerabilityQuery) Unique(unique bool) *VulnerabilityQuery

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*VulnerabilityQuery) Where

Where adds a new predicate for the VulnerabilityQuery builder.

func (*VulnerabilityQuery) WhereInput

func (*VulnerabilityQuery) WithComponents

func (vq *VulnerabilityQuery) WithComponents(opts ...func(*ComponentQuery)) *VulnerabilityQuery

WithComponents tells the query-builder to eager-load the nodes that are connected to the "components" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityQuery) WithInstances

func (vq *VulnerabilityQuery) WithInstances(opts ...func(*ReleaseVulnerabilityQuery)) *VulnerabilityQuery

WithInstances tells the query-builder to eager-load the nodes that are connected to the "instances" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityQuery) WithOwner

func (vq *VulnerabilityQuery) WithOwner(opts ...func(*OrganizationQuery)) *VulnerabilityQuery

WithOwner tells the query-builder to eager-load the nodes that are connected to the "owner" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityQuery) WithReviews

func (vq *VulnerabilityQuery) WithReviews(opts ...func(*VulnerabilityReviewQuery)) *VulnerabilityQuery

WithReviews tells the query-builder to eager-load the nodes that are connected to the "reviews" edge. The optional arguments are used to configure the query builder of the edge.

type VulnerabilityReview

type VulnerabilityReview struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Note holds the value of the "note" field.
	Note string `json:"note,omitempty"`
	// Decision holds the value of the "decision" field.
	Decision vulnerabilityreview.Decision `json:"decision,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the VulnerabilityReviewQuery when eager-loading is set.
	Edges VulnerabilityReviewEdges `json:"edges"`
	// contains filtered or unexported fields
}

VulnerabilityReview is the model entity for the VulnerabilityReview schema.

func (*VulnerabilityReview) Instances

func (*VulnerabilityReview) Node

func (vr *VulnerabilityReview) Node(ctx context.Context) (node *Node, err error)

func (*VulnerabilityReview) Projects

func (vr *VulnerabilityReview) Projects(ctx context.Context) ([]*Project, error)

func (*VulnerabilityReview) QueryInstances

func (vr *VulnerabilityReview) QueryInstances() *ReleaseVulnerabilityQuery

QueryInstances queries the "instances" edge of the VulnerabilityReview entity.

func (*VulnerabilityReview) QueryProjects

func (vr *VulnerabilityReview) QueryProjects() *ProjectQuery

QueryProjects queries the "projects" edge of the VulnerabilityReview entity.

func (*VulnerabilityReview) QueryReleases

func (vr *VulnerabilityReview) QueryReleases() *ReleaseQuery

QueryReleases queries the "releases" edge of the VulnerabilityReview entity.

func (*VulnerabilityReview) QueryRepos

func (vr *VulnerabilityReview) QueryRepos() *RepoQuery

QueryRepos queries the "repos" edge of the VulnerabilityReview entity.

func (*VulnerabilityReview) QueryVulnerability

func (vr *VulnerabilityReview) QueryVulnerability() *VulnerabilityQuery

QueryVulnerability queries the "vulnerability" edge of the VulnerabilityReview entity.

func (*VulnerabilityReview) Releases

func (vr *VulnerabilityReview) Releases(ctx context.Context) ([]*Release, error)

func (*VulnerabilityReview) Repos

func (vr *VulnerabilityReview) Repos(ctx context.Context) ([]*Repo, error)

func (*VulnerabilityReview) String

func (vr *VulnerabilityReview) String() string

String implements the fmt.Stringer.

func (*VulnerabilityReview) ToEdge

ToEdge converts VulnerabilityReview into VulnerabilityReviewEdge.

func (*VulnerabilityReview) Unwrap

Unwrap unwraps the VulnerabilityReview entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.

func (*VulnerabilityReview) Update

Update returns a builder for updating this VulnerabilityReview. Note that you need to call VulnerabilityReview.Unwrap() before calling this method if this VulnerabilityReview was returned from a transaction, and the transaction was committed or rolled back.

func (*VulnerabilityReview) Vulnerability

func (vr *VulnerabilityReview) Vulnerability(ctx context.Context) (*Vulnerability, error)

type VulnerabilityReviewClient

type VulnerabilityReviewClient struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewClient is a client for the VulnerabilityReview schema.

func NewVulnerabilityReviewClient

func NewVulnerabilityReviewClient(c config) *VulnerabilityReviewClient

NewVulnerabilityReviewClient returns a client for the VulnerabilityReview from the given config.

func (*VulnerabilityReviewClient) Create

Create returns a create builder for VulnerabilityReview.

func (*VulnerabilityReviewClient) CreateBulk

CreateBulk returns a builder for creating a bulk of VulnerabilityReview entities.

func (*VulnerabilityReviewClient) Delete

Delete returns a delete builder for VulnerabilityReview.

func (*VulnerabilityReviewClient) DeleteOne

DeleteOne returns a delete builder for the given entity.

func (*VulnerabilityReviewClient) DeleteOneID

DeleteOneID returns a delete builder for the given id.

func (*VulnerabilityReviewClient) Get

Get returns a VulnerabilityReview entity by its id.

func (*VulnerabilityReviewClient) GetX

GetX is like Get, but panics if an error occurs.

func (*VulnerabilityReviewClient) Hooks

func (c *VulnerabilityReviewClient) Hooks() []Hook

Hooks returns the client hooks.

func (*VulnerabilityReviewClient) Query

Query returns a query builder for VulnerabilityReview.

func (*VulnerabilityReviewClient) QueryInstances

QueryInstances queries the instances edge of a VulnerabilityReview.

func (*VulnerabilityReviewClient) QueryProjects

QueryProjects queries the projects edge of a VulnerabilityReview.

func (*VulnerabilityReviewClient) QueryReleases

QueryReleases queries the releases edge of a VulnerabilityReview.

func (*VulnerabilityReviewClient) QueryRepos

QueryRepos queries the repos edge of a VulnerabilityReview.

func (*VulnerabilityReviewClient) QueryVulnerability

QueryVulnerability queries the vulnerability edge of a VulnerabilityReview.

func (*VulnerabilityReviewClient) Update

Update returns an update builder for VulnerabilityReview.

func (*VulnerabilityReviewClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*VulnerabilityReviewClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*VulnerabilityReviewClient) Use

func (c *VulnerabilityReviewClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `vulnerabilityreview.Hooks(f(g(h())))`.

type VulnerabilityReviewConnection

type VulnerabilityReviewConnection struct {
	Edges      []*VulnerabilityReviewEdge `json:"edges"`
	PageInfo   PageInfo                   `json:"pageInfo"`
	TotalCount int                        `json:"totalCount"`
}

VulnerabilityReviewConnection is the connection containing edges to VulnerabilityReview.

type VulnerabilityReviewCreate

type VulnerabilityReviewCreate struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewCreate is the builder for creating a VulnerabilityReview entity.

func (*VulnerabilityReviewCreate) AddInstanceIDs

func (vrc *VulnerabilityReviewCreate) AddInstanceIDs(ids ...int) *VulnerabilityReviewCreate

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityReviewCreate) AddInstances

AddInstances adds the "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityReviewCreate) AddProjectIDs

func (vrc *VulnerabilityReviewCreate) AddProjectIDs(ids ...int) *VulnerabilityReviewCreate

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*VulnerabilityReviewCreate) AddProjects

AddProjects adds the "projects" edges to the Project entity.

func (*VulnerabilityReviewCreate) AddReleaseIDs

func (vrc *VulnerabilityReviewCreate) AddReleaseIDs(ids ...int) *VulnerabilityReviewCreate

AddReleaseIDs adds the "releases" edge to the Release entity by IDs.

func (*VulnerabilityReviewCreate) AddReleases

AddReleases adds the "releases" edges to the Release entity.

func (*VulnerabilityReviewCreate) AddRepoIDs

func (vrc *VulnerabilityReviewCreate) AddRepoIDs(ids ...int) *VulnerabilityReviewCreate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*VulnerabilityReviewCreate) AddRepos

AddRepos adds the "repos" edges to the Repo entity.

func (*VulnerabilityReviewCreate) Exec

Exec executes the query.

func (*VulnerabilityReviewCreate) ExecX

func (vrc *VulnerabilityReviewCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityReviewCreate) Mutation

Mutation returns the VulnerabilityReviewMutation object of the builder.

func (*VulnerabilityReviewCreate) Save

Save creates the VulnerabilityReview in the database.

func (*VulnerabilityReviewCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*VulnerabilityReviewCreate) SetDecision

SetDecision sets the "decision" field.

func (*VulnerabilityReviewCreate) SetModelCreate

func (*VulnerabilityReviewCreate) SetNillableDecision

SetNillableDecision sets the "decision" field if the given value is not nil.

func (*VulnerabilityReviewCreate) SetNote

SetNote sets the "note" field.

func (*VulnerabilityReviewCreate) SetVulnerability

SetVulnerability sets the "vulnerability" edge to the Vulnerability entity.

func (*VulnerabilityReviewCreate) SetVulnerabilityID

func (vrc *VulnerabilityReviewCreate) SetVulnerabilityID(id int) *VulnerabilityReviewCreate

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by ID.

type VulnerabilityReviewCreateBulk

type VulnerabilityReviewCreateBulk struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewCreateBulk is the builder for creating many VulnerabilityReview entities in bulk.

func (*VulnerabilityReviewCreateBulk) Exec

Exec executes the query.

func (*VulnerabilityReviewCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityReviewCreateBulk) Save

Save creates the VulnerabilityReview entities in the database.

func (*VulnerabilityReviewCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type VulnerabilityReviewDelete

type VulnerabilityReviewDelete struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewDelete is the builder for deleting a VulnerabilityReview entity.

func (*VulnerabilityReviewDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*VulnerabilityReviewDelete) ExecX

func (vrd *VulnerabilityReviewDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityReviewDelete) Where

Where appends a list predicates to the VulnerabilityReviewDelete builder.

type VulnerabilityReviewDeleteOne

type VulnerabilityReviewDeleteOne struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewDeleteOne is the builder for deleting a single VulnerabilityReview entity.

func (*VulnerabilityReviewDeleteOne) Exec

Exec executes the deletion query.

func (*VulnerabilityReviewDeleteOne) ExecX

func (vrdo *VulnerabilityReviewDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

type VulnerabilityReviewEdge

type VulnerabilityReviewEdge struct {
	Node   *VulnerabilityReview `json:"node"`
	Cursor Cursor               `json:"cursor"`
}

VulnerabilityReviewEdge is the edge representation of VulnerabilityReview.

type VulnerabilityReviewEdges

type VulnerabilityReviewEdges struct {
	// Vulnerability holds the value of the vulnerability edge.
	Vulnerability *Vulnerability `json:"vulnerability,omitempty"`
	// Projects holds the value of the projects edge.
	Projects []*Project `json:"projects,omitempty"`
	// Repos holds the value of the repos edge.
	Repos []*Repo `json:"repos,omitempty"`
	// Releases holds the value of the releases edge.
	Releases []*Release `json:"releases,omitempty"`
	// Instances holds the value of the instances edge.
	Instances []*ReleaseVulnerability `json:"instances,omitempty"`
	// contains filtered or unexported fields
}

VulnerabilityReviewEdges holds the relations/edges for other nodes in the graph.

func (VulnerabilityReviewEdges) InstancesOrErr

func (e VulnerabilityReviewEdges) InstancesOrErr() ([]*ReleaseVulnerability, error)

InstancesOrErr returns the Instances value or an error if the edge was not loaded in eager-loading.

func (VulnerabilityReviewEdges) ProjectsOrErr

func (e VulnerabilityReviewEdges) ProjectsOrErr() ([]*Project, error)

ProjectsOrErr returns the Projects value or an error if the edge was not loaded in eager-loading.

func (VulnerabilityReviewEdges) ReleasesOrErr

func (e VulnerabilityReviewEdges) ReleasesOrErr() ([]*Release, error)

ReleasesOrErr returns the Releases value or an error if the edge was not loaded in eager-loading.

func (VulnerabilityReviewEdges) ReposOrErr

func (e VulnerabilityReviewEdges) ReposOrErr() ([]*Repo, error)

ReposOrErr returns the Repos value or an error if the edge was not loaded in eager-loading.

func (VulnerabilityReviewEdges) VulnerabilityOrErr

func (e VulnerabilityReviewEdges) VulnerabilityOrErr() (*Vulnerability, error)

VulnerabilityOrErr returns the Vulnerability value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type VulnerabilityReviewGroupBy

type VulnerabilityReviewGroupBy struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewGroupBy is the group-by builder for VulnerabilityReview entities.

func (*VulnerabilityReviewGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*VulnerabilityReviewGroupBy) Bool

func (vrgb *VulnerabilityReviewGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) BoolX

BoolX is like Bool, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Bools

func (vrgb *VulnerabilityReviewGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) BoolsX

func (vrgb *VulnerabilityReviewGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Float64

func (vrgb *VulnerabilityReviewGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) Float64X

func (vrgb *VulnerabilityReviewGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Float64s

func (vrgb *VulnerabilityReviewGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) Float64sX

func (vrgb *VulnerabilityReviewGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Int

func (vrgb *VulnerabilityReviewGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) IntX

IntX is like Int, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Ints

func (vrgb *VulnerabilityReviewGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) IntsX

func (vrgb *VulnerabilityReviewGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Scan

func (vrgb *VulnerabilityReviewGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*VulnerabilityReviewGroupBy) ScanX

func (vrgb *VulnerabilityReviewGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) String

func (vrgb *VulnerabilityReviewGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a group-by query. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) StringX

func (vrgb *VulnerabilityReviewGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VulnerabilityReviewGroupBy) Strings

func (vrgb *VulnerabilityReviewGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from group-by. It is only allowed when executing a group-by query with one field.

func (*VulnerabilityReviewGroupBy) StringsX

func (vrgb *VulnerabilityReviewGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VulnerabilityReviewModelCreate

type VulnerabilityReviewModelCreate struct {
	Note     *string                       `json:"note,omitempty" validate:"required" mapstructure:"note"`
	Decision *vulnerabilityreview.Decision `json:"decision,omitempty"  mapstructure:"decision"`
}

func NewVulnerabilityReviewModelCreate

func NewVulnerabilityReviewModelCreate() *VulnerabilityReviewModelCreate

func (*VulnerabilityReviewModelCreate) SetDecision

func (*VulnerabilityReviewModelCreate) SetNote

type VulnerabilityReviewModelRead

type VulnerabilityReviewModelRead struct {
	Note     *string                       `json:"note,omitempty" validate:"required" mapstructure:"note"`
	Decision *vulnerabilityreview.Decision `json:"decision,omitempty"  mapstructure:"decision"`
	ID       *int                          `json:"id,omitempty" validate:"required" mapstructure:"id"`
}

func NewVulnerabilityReviewModelRead

func NewVulnerabilityReviewModelRead() *VulnerabilityReviewModelRead

func (*VulnerabilityReviewModelRead) FromEnt

type VulnerabilityReviewModelUpdate

type VulnerabilityReviewModelUpdate struct {
	Note     *string                       `json:"note,omitempty"  mapstructure:"note"`
	Decision *vulnerabilityreview.Decision `json:"decision,omitempty"  mapstructure:"decision"`
}

func NewVulnerabilityReviewModelUpdate

func NewVulnerabilityReviewModelUpdate() *VulnerabilityReviewModelUpdate

func (*VulnerabilityReviewModelUpdate) SetDecision

func (*VulnerabilityReviewModelUpdate) SetNote

type VulnerabilityReviewMutation

type VulnerabilityReviewMutation struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewMutation represents an operation that mutates the VulnerabilityReview nodes in the graph.

func (*VulnerabilityReviewMutation) AddField

func (m *VulnerabilityReviewMutation) AddField(name string, value ent.Value) error

AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*VulnerabilityReviewMutation) AddInstanceIDs

func (m *VulnerabilityReviewMutation) AddInstanceIDs(ids ...int)

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by ids.

func (*VulnerabilityReviewMutation) AddProjectIDs

func (m *VulnerabilityReviewMutation) AddProjectIDs(ids ...int)

AddProjectIDs adds the "projects" edge to the Project entity by ids.

func (*VulnerabilityReviewMutation) AddReleaseIDs

func (m *VulnerabilityReviewMutation) AddReleaseIDs(ids ...int)

AddReleaseIDs adds the "releases" edge to the Release entity by ids.

func (*VulnerabilityReviewMutation) AddRepoIDs

func (m *VulnerabilityReviewMutation) AddRepoIDs(ids ...int)

AddRepoIDs adds the "repos" edge to the Repo entity by ids.

func (*VulnerabilityReviewMutation) AddedEdges

func (m *VulnerabilityReviewMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*VulnerabilityReviewMutation) AddedField

func (m *VulnerabilityReviewMutation) AddedField(name string) (ent.Value, bool)

AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*VulnerabilityReviewMutation) AddedFields

func (m *VulnerabilityReviewMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*VulnerabilityReviewMutation) AddedIDs

func (m *VulnerabilityReviewMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*VulnerabilityReviewMutation) ClearEdge

func (m *VulnerabilityReviewMutation) ClearEdge(name string) error

ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.

func (*VulnerabilityReviewMutation) ClearField

func (m *VulnerabilityReviewMutation) ClearField(name string) error

ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.

func (*VulnerabilityReviewMutation) ClearInstances

func (m *VulnerabilityReviewMutation) ClearInstances()

ClearInstances clears the "instances" edge to the ReleaseVulnerability entity.

func (*VulnerabilityReviewMutation) ClearProjects

func (m *VulnerabilityReviewMutation) ClearProjects()

ClearProjects clears the "projects" edge to the Project entity.

func (*VulnerabilityReviewMutation) ClearReleases

func (m *VulnerabilityReviewMutation) ClearReleases()

ClearReleases clears the "releases" edge to the Release entity.

func (*VulnerabilityReviewMutation) ClearRepos

func (m *VulnerabilityReviewMutation) ClearRepos()

ClearRepos clears the "repos" edge to the Repo entity.

func (*VulnerabilityReviewMutation) ClearVulnerability

func (m *VulnerabilityReviewMutation) ClearVulnerability()

ClearVulnerability clears the "vulnerability" edge to the Vulnerability entity.

func (*VulnerabilityReviewMutation) ClearedEdges

func (m *VulnerabilityReviewMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*VulnerabilityReviewMutation) ClearedFields

func (m *VulnerabilityReviewMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (VulnerabilityReviewMutation) Client

func (m VulnerabilityReviewMutation) Client() *Client

Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.

func (*VulnerabilityReviewMutation) Decision

Decision returns the value of the "decision" field in the mutation.

func (*VulnerabilityReviewMutation) EdgeCleared

func (m *VulnerabilityReviewMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*VulnerabilityReviewMutation) Field

func (m *VulnerabilityReviewMutation) Field(name string) (ent.Value, bool)

Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.

func (*VulnerabilityReviewMutation) FieldCleared

func (m *VulnerabilityReviewMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*VulnerabilityReviewMutation) Fields

func (m *VulnerabilityReviewMutation) Fields() []string

Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().

func (*VulnerabilityReviewMutation) ID

func (m *VulnerabilityReviewMutation) ID() (id int, exists bool)

ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.

func (*VulnerabilityReviewMutation) InstancesCleared

func (m *VulnerabilityReviewMutation) InstancesCleared() bool

InstancesCleared reports if the "instances" edge to the ReleaseVulnerability entity was cleared.

func (*VulnerabilityReviewMutation) InstancesIDs

func (m *VulnerabilityReviewMutation) InstancesIDs() (ids []int)

InstancesIDs returns the "instances" edge IDs in the mutation.

func (*VulnerabilityReviewMutation) Note

func (m *VulnerabilityReviewMutation) Note() (r string, exists bool)

Note returns the value of the "note" field in the mutation.

func (*VulnerabilityReviewMutation) OldDecision

OldDecision returns the old "decision" field's value of the VulnerabilityReview entity. If the VulnerabilityReview object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityReviewMutation) OldField

func (m *VulnerabilityReviewMutation) OldField(ctx context.Context, name string) (ent.Value, error)

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*VulnerabilityReviewMutation) OldNote

func (m *VulnerabilityReviewMutation) OldNote(ctx context.Context) (v string, err error)

OldNote returns the old "note" field's value of the VulnerabilityReview entity. If the VulnerabilityReview object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.

func (*VulnerabilityReviewMutation) Op

Op returns the operation name.

func (*VulnerabilityReviewMutation) ProjectsCleared

func (m *VulnerabilityReviewMutation) ProjectsCleared() bool

ProjectsCleared reports if the "projects" edge to the Project entity was cleared.

func (*VulnerabilityReviewMutation) ProjectsIDs

func (m *VulnerabilityReviewMutation) ProjectsIDs() (ids []int)

ProjectsIDs returns the "projects" edge IDs in the mutation.

func (*VulnerabilityReviewMutation) ReleasesCleared

func (m *VulnerabilityReviewMutation) ReleasesCleared() bool

ReleasesCleared reports if the "releases" edge to the Release entity was cleared.

func (*VulnerabilityReviewMutation) ReleasesIDs

func (m *VulnerabilityReviewMutation) ReleasesIDs() (ids []int)

ReleasesIDs returns the "releases" edge IDs in the mutation.

func (*VulnerabilityReviewMutation) RemoveInstanceIDs

func (m *VulnerabilityReviewMutation) RemoveInstanceIDs(ids ...int)

RemoveInstanceIDs removes the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityReviewMutation) RemoveProjectIDs

func (m *VulnerabilityReviewMutation) RemoveProjectIDs(ids ...int)

RemoveProjectIDs removes the "projects" edge to the Project entity by IDs.

func (*VulnerabilityReviewMutation) RemoveReleaseIDs

func (m *VulnerabilityReviewMutation) RemoveReleaseIDs(ids ...int)

RemoveReleaseIDs removes the "releases" edge to the Release entity by IDs.

func (*VulnerabilityReviewMutation) RemoveRepoIDs

func (m *VulnerabilityReviewMutation) RemoveRepoIDs(ids ...int)

RemoveRepoIDs removes the "repos" edge to the Repo entity by IDs.

func (*VulnerabilityReviewMutation) RemovedEdges

func (m *VulnerabilityReviewMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*VulnerabilityReviewMutation) RemovedIDs

func (m *VulnerabilityReviewMutation) RemovedIDs(name string) []ent.Value

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*VulnerabilityReviewMutation) RemovedInstancesIDs

func (m *VulnerabilityReviewMutation) RemovedInstancesIDs() (ids []int)

RemovedInstances returns the removed IDs of the "instances" edge to the ReleaseVulnerability entity.

func (*VulnerabilityReviewMutation) RemovedProjectsIDs

func (m *VulnerabilityReviewMutation) RemovedProjectsIDs() (ids []int)

RemovedProjects returns the removed IDs of the "projects" edge to the Project entity.

func (*VulnerabilityReviewMutation) RemovedReleasesIDs

func (m *VulnerabilityReviewMutation) RemovedReleasesIDs() (ids []int)

RemovedReleases returns the removed IDs of the "releases" edge to the Release entity.

func (*VulnerabilityReviewMutation) RemovedReposIDs

func (m *VulnerabilityReviewMutation) RemovedReposIDs() (ids []int)

RemovedRepos returns the removed IDs of the "repos" edge to the Repo entity.

func (*VulnerabilityReviewMutation) ReposCleared

func (m *VulnerabilityReviewMutation) ReposCleared() bool

ReposCleared reports if the "repos" edge to the Repo entity was cleared.

func (*VulnerabilityReviewMutation) ReposIDs

func (m *VulnerabilityReviewMutation) ReposIDs() (ids []int)

ReposIDs returns the "repos" edge IDs in the mutation.

func (*VulnerabilityReviewMutation) ResetDecision

func (m *VulnerabilityReviewMutation) ResetDecision()

ResetDecision resets all changes to the "decision" field.

func (*VulnerabilityReviewMutation) ResetEdge

func (m *VulnerabilityReviewMutation) ResetEdge(name string) error

ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.

func (*VulnerabilityReviewMutation) ResetField

func (m *VulnerabilityReviewMutation) ResetField(name string) error

ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.

func (*VulnerabilityReviewMutation) ResetInstances

func (m *VulnerabilityReviewMutation) ResetInstances()

ResetInstances resets all changes to the "instances" edge.

func (*VulnerabilityReviewMutation) ResetNote

func (m *VulnerabilityReviewMutation) ResetNote()

ResetNote resets all changes to the "note" field.

func (*VulnerabilityReviewMutation) ResetProjects

func (m *VulnerabilityReviewMutation) ResetProjects()

ResetProjects resets all changes to the "projects" edge.

func (*VulnerabilityReviewMutation) ResetReleases

func (m *VulnerabilityReviewMutation) ResetReleases()

ResetReleases resets all changes to the "releases" edge.

func (*VulnerabilityReviewMutation) ResetRepos

func (m *VulnerabilityReviewMutation) ResetRepos()

ResetRepos resets all changes to the "repos" edge.

func (*VulnerabilityReviewMutation) ResetVulnerability

func (m *VulnerabilityReviewMutation) ResetVulnerability()

ResetVulnerability resets all changes to the "vulnerability" edge.

func (*VulnerabilityReviewMutation) SetDecision

SetDecision sets the "decision" field.

func (*VulnerabilityReviewMutation) SetField

func (m *VulnerabilityReviewMutation) SetField(name string, value ent.Value) error

SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.

func (*VulnerabilityReviewMutation) SetModelCreate

func (*VulnerabilityReviewMutation) SetModelUpdate

func (*VulnerabilityReviewMutation) SetNote

func (m *VulnerabilityReviewMutation) SetNote(s string)

SetNote sets the "note" field.

func (*VulnerabilityReviewMutation) SetVulnerabilityID

func (m *VulnerabilityReviewMutation) SetVulnerabilityID(id int)

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by id.

func (VulnerabilityReviewMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*VulnerabilityReviewMutation) Type

Type returns the node type of this mutation (VulnerabilityReview).

func (*VulnerabilityReviewMutation) VulnerabilityCleared

func (m *VulnerabilityReviewMutation) VulnerabilityCleared() bool

VulnerabilityCleared reports if the "vulnerability" edge to the Vulnerability entity was cleared.

func (*VulnerabilityReviewMutation) VulnerabilityID

func (m *VulnerabilityReviewMutation) VulnerabilityID() (id int, exists bool)

VulnerabilityID returns the "vulnerability" edge ID in the mutation.

func (*VulnerabilityReviewMutation) VulnerabilityIDs

func (m *VulnerabilityReviewMutation) VulnerabilityIDs() (ids []int)

VulnerabilityIDs returns the "vulnerability" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use VulnerabilityID instead. It exists only for internal usage by the builders.

func (*VulnerabilityReviewMutation) Where

Where appends a list predicates to the VulnerabilityReviewMutation builder.

type VulnerabilityReviewOrder

type VulnerabilityReviewOrder struct {
	Direction OrderDirection                 `json:"direction"`
	Field     *VulnerabilityReviewOrderField `json:"field"`
}

VulnerabilityReviewOrder defines the ordering of VulnerabilityReview.

type VulnerabilityReviewOrderField

type VulnerabilityReviewOrderField struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewOrderField defines the ordering field of VulnerabilityReview.

func (VulnerabilityReviewOrderField) MarshalGQL

func (f VulnerabilityReviewOrderField) MarshalGQL(w io.Writer)

MarshalGQL implements graphql.Marshaler interface.

func (VulnerabilityReviewOrderField) String

String implement fmt.Stringer interface.

func (*VulnerabilityReviewOrderField) UnmarshalGQL

func (f *VulnerabilityReviewOrderField) UnmarshalGQL(v interface{}) error

UnmarshalGQL implements graphql.Unmarshaler interface.

type VulnerabilityReviewPaginateOption

type VulnerabilityReviewPaginateOption func(*vulnerabilityReviewPager) error

VulnerabilityReviewPaginateOption enables pagination customization.

func WithVulnerabilityReviewFilter

func WithVulnerabilityReviewFilter(filter func(*VulnerabilityReviewQuery) (*VulnerabilityReviewQuery, error)) VulnerabilityReviewPaginateOption

WithVulnerabilityReviewFilter configures pagination filter.

func WithVulnerabilityReviewOrder

func WithVulnerabilityReviewOrder(order *VulnerabilityReviewOrder) VulnerabilityReviewPaginateOption

WithVulnerabilityReviewOrder configures pagination ordering.

type VulnerabilityReviewQuery

type VulnerabilityReviewQuery struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewQuery is the builder for querying VulnerabilityReview entities.

func (*VulnerabilityReviewQuery) All

All executes the query and returns a list of VulnerabilityReviews.

func (*VulnerabilityReviewQuery) AllX

AllX is like All, but panics if an error occurs.

func (*VulnerabilityReviewQuery) Clone

Clone returns a duplicate of the VulnerabilityReviewQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*VulnerabilityReviewQuery) CollectFields

func (vr *VulnerabilityReviewQuery) CollectFields(ctx context.Context, satisfies ...string) *VulnerabilityReviewQuery

CollectFields tells the query-builder to eagerly load connected nodes by resolver context.

func (*VulnerabilityReviewQuery) Count

func (vrq *VulnerabilityReviewQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*VulnerabilityReviewQuery) CountX

func (vrq *VulnerabilityReviewQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*VulnerabilityReviewQuery) Exist

func (vrq *VulnerabilityReviewQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*VulnerabilityReviewQuery) ExistX

func (vrq *VulnerabilityReviewQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*VulnerabilityReviewQuery) Filter

func (*VulnerabilityReviewQuery) First

First returns the first VulnerabilityReview entity from the query. Returns a *NotFoundError when no VulnerabilityReview was found.

func (*VulnerabilityReviewQuery) FirstID

func (vrq *VulnerabilityReviewQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first VulnerabilityReview ID from the query. Returns a *NotFoundError when no VulnerabilityReview ID was found.

func (*VulnerabilityReviewQuery) FirstIDX

func (vrq *VulnerabilityReviewQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*VulnerabilityReviewQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*VulnerabilityReviewQuery) GroupBy

func (vrq *VulnerabilityReviewQuery) GroupBy(field string, fields ...string) *VulnerabilityReviewGroupBy

GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.

Example:

var v []struct {
	Note string `json:"note,omitempty"`
	Count int `json:"count,omitempty"`
}

client.VulnerabilityReview.Query().
	GroupBy(vulnerabilityreview.FieldNote).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*VulnerabilityReviewQuery) IDs

func (vrq *VulnerabilityReviewQuery) IDs(ctx context.Context) ([]int, error)

IDs executes the query and returns a list of VulnerabilityReview IDs.

func (*VulnerabilityReviewQuery) IDsX

func (vrq *VulnerabilityReviewQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*VulnerabilityReviewQuery) Limit

Limit adds a limit step to the query.

func (*VulnerabilityReviewQuery) Offset

Offset adds an offset step to the query.

func (*VulnerabilityReviewQuery) Only

Only returns a single VulnerabilityReview entity found by the query, ensuring it only returns one. Returns a *NotSingularError when exactly one VulnerabilityReview entity is not found. Returns a *NotFoundError when no VulnerabilityReview entities are found.

func (*VulnerabilityReviewQuery) OnlyID

func (vrq *VulnerabilityReviewQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only VulnerabilityReview ID in the query. Returns a *NotSingularError when exactly one VulnerabilityReview ID is not found. Returns a *NotFoundError when no entities are found.

func (*VulnerabilityReviewQuery) OnlyIDX

func (vrq *VulnerabilityReviewQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*VulnerabilityReviewQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*VulnerabilityReviewQuery) Order

Order adds an order step to the query.

func (*VulnerabilityReviewQuery) Paginate

func (vr *VulnerabilityReviewQuery) Paginate(
	ctx context.Context, after *Cursor, first *int,
	before *Cursor, last *int, opts ...VulnerabilityReviewPaginateOption,
) (*VulnerabilityReviewConnection, error)

Paginate executes the query and returns a relay based cursor connection to VulnerabilityReview.

func (*VulnerabilityReviewQuery) QueryInstances

func (vrq *VulnerabilityReviewQuery) QueryInstances() *ReleaseVulnerabilityQuery

QueryInstances chains the current query on the "instances" edge.

func (*VulnerabilityReviewQuery) QueryProjects

func (vrq *VulnerabilityReviewQuery) QueryProjects() *ProjectQuery

QueryProjects chains the current query on the "projects" edge.

func (*VulnerabilityReviewQuery) QueryReleases

func (vrq *VulnerabilityReviewQuery) QueryReleases() *ReleaseQuery

QueryReleases chains the current query on the "releases" edge.

func (*VulnerabilityReviewQuery) QueryRepos

func (vrq *VulnerabilityReviewQuery) QueryRepos() *RepoQuery

QueryRepos chains the current query on the "repos" edge.

func (*VulnerabilityReviewQuery) QueryVulnerability

func (vrq *VulnerabilityReviewQuery) QueryVulnerability() *VulnerabilityQuery

QueryVulnerability chains the current query on the "vulnerability" edge.

func (*VulnerabilityReviewQuery) Select

Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.

Example:

var v []struct {
	Note string `json:"note,omitempty"`
}

client.VulnerabilityReview.Query().
	Select(vulnerabilityreview.FieldNote).
	Scan(ctx, &v)

func (*VulnerabilityReviewQuery) Unique

Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.

func (*VulnerabilityReviewQuery) Where

Where adds a new predicate for the VulnerabilityReviewQuery builder.

func (*VulnerabilityReviewQuery) WhereInput

func (*VulnerabilityReviewQuery) WithInstances

WithInstances tells the query-builder to eager-load the nodes that are connected to the "instances" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityReviewQuery) WithProjects

func (vrq *VulnerabilityReviewQuery) WithProjects(opts ...func(*ProjectQuery)) *VulnerabilityReviewQuery

WithProjects tells the query-builder to eager-load the nodes that are connected to the "projects" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityReviewQuery) WithReleases

func (vrq *VulnerabilityReviewQuery) WithReleases(opts ...func(*ReleaseQuery)) *VulnerabilityReviewQuery

WithReleases tells the query-builder to eager-load the nodes that are connected to the "releases" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityReviewQuery) WithRepos

func (vrq *VulnerabilityReviewQuery) WithRepos(opts ...func(*RepoQuery)) *VulnerabilityReviewQuery

WithRepos tells the query-builder to eager-load the nodes that are connected to the "repos" edge. The optional arguments are used to configure the query builder of the edge.

func (*VulnerabilityReviewQuery) WithVulnerability

func (vrq *VulnerabilityReviewQuery) WithVulnerability(opts ...func(*VulnerabilityQuery)) *VulnerabilityReviewQuery

WithVulnerability tells the query-builder to eager-load the nodes that are connected to the "vulnerability" edge. The optional arguments are used to configure the query builder of the edge.

type VulnerabilityReviewSelect

type VulnerabilityReviewSelect struct {
	*VulnerabilityReviewQuery
	// contains filtered or unexported fields
}

VulnerabilityReviewSelect is the builder for selecting fields of VulnerabilityReview entities.

func (*VulnerabilityReviewSelect) Bool

func (vrs *VulnerabilityReviewSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) BoolX

BoolX is like Bool, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Bools

func (vrs *VulnerabilityReviewSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) BoolsX

func (vrs *VulnerabilityReviewSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Float64

func (vrs *VulnerabilityReviewSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) Float64X

func (vrs *VulnerabilityReviewSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Float64s

func (vrs *VulnerabilityReviewSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) Float64sX

func (vrs *VulnerabilityReviewSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Int

func (vrs *VulnerabilityReviewSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) IntX

IntX is like Int, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Ints

func (vrs *VulnerabilityReviewSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) IntsX

func (vrs *VulnerabilityReviewSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Scan

func (vrs *VulnerabilityReviewSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*VulnerabilityReviewSelect) ScanX

func (vrs *VulnerabilityReviewSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VulnerabilityReviewSelect) String

func (vrs *VulnerabilityReviewSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) StringX

func (vrs *VulnerabilityReviewSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VulnerabilityReviewSelect) Strings

func (vrs *VulnerabilityReviewSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VulnerabilityReviewSelect) StringsX

func (vrs *VulnerabilityReviewSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VulnerabilityReviewUpdate

type VulnerabilityReviewUpdate struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewUpdate is the builder for updating VulnerabilityReview entities.

func (*VulnerabilityReviewUpdate) AddInstanceIDs

func (vru *VulnerabilityReviewUpdate) AddInstanceIDs(ids ...int) *VulnerabilityReviewUpdate

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityReviewUpdate) AddInstances

AddInstances adds the "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityReviewUpdate) AddProjectIDs

func (vru *VulnerabilityReviewUpdate) AddProjectIDs(ids ...int) *VulnerabilityReviewUpdate

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*VulnerabilityReviewUpdate) AddProjects

AddProjects adds the "projects" edges to the Project entity.

func (*VulnerabilityReviewUpdate) AddReleaseIDs

func (vru *VulnerabilityReviewUpdate) AddReleaseIDs(ids ...int) *VulnerabilityReviewUpdate

AddReleaseIDs adds the "releases" edge to the Release entity by IDs.

func (*VulnerabilityReviewUpdate) AddReleases

AddReleases adds the "releases" edges to the Release entity.

func (*VulnerabilityReviewUpdate) AddRepoIDs

func (vru *VulnerabilityReviewUpdate) AddRepoIDs(ids ...int) *VulnerabilityReviewUpdate

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*VulnerabilityReviewUpdate) AddRepos

AddRepos adds the "repos" edges to the Repo entity.

func (*VulnerabilityReviewUpdate) ClearInstances

ClearInstances clears all "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityReviewUpdate) ClearProjects

ClearProjects clears all "projects" edges to the Project entity.

func (*VulnerabilityReviewUpdate) ClearReleases

ClearReleases clears all "releases" edges to the Release entity.

func (*VulnerabilityReviewUpdate) ClearRepos

ClearRepos clears all "repos" edges to the Repo entity.

func (*VulnerabilityReviewUpdate) ClearVulnerability

func (vru *VulnerabilityReviewUpdate) ClearVulnerability() *VulnerabilityReviewUpdate

ClearVulnerability clears the "vulnerability" edge to the Vulnerability entity.

func (*VulnerabilityReviewUpdate) Exec

Exec executes the query.

func (*VulnerabilityReviewUpdate) ExecX

func (vru *VulnerabilityReviewUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityReviewUpdate) Mutation

Mutation returns the VulnerabilityReviewMutation object of the builder.

func (*VulnerabilityReviewUpdate) RemoveInstanceIDs

func (vru *VulnerabilityReviewUpdate) RemoveInstanceIDs(ids ...int) *VulnerabilityReviewUpdate

RemoveInstanceIDs removes the "instances" edge to ReleaseVulnerability entities by IDs.

func (*VulnerabilityReviewUpdate) RemoveInstances

RemoveInstances removes "instances" edges to ReleaseVulnerability entities.

func (*VulnerabilityReviewUpdate) RemoveProjectIDs

func (vru *VulnerabilityReviewUpdate) RemoveProjectIDs(ids ...int) *VulnerabilityReviewUpdate

RemoveProjectIDs removes the "projects" edge to Project entities by IDs.

func (*VulnerabilityReviewUpdate) RemoveProjects

func (vru *VulnerabilityReviewUpdate) RemoveProjects(p ...*Project) *VulnerabilityReviewUpdate

RemoveProjects removes "projects" edges to Project entities.

func (*VulnerabilityReviewUpdate) RemoveReleaseIDs

func (vru *VulnerabilityReviewUpdate) RemoveReleaseIDs(ids ...int) *VulnerabilityReviewUpdate

RemoveReleaseIDs removes the "releases" edge to Release entities by IDs.

func (*VulnerabilityReviewUpdate) RemoveReleases

func (vru *VulnerabilityReviewUpdate) RemoveReleases(r ...*Release) *VulnerabilityReviewUpdate

RemoveReleases removes "releases" edges to Release entities.

func (*VulnerabilityReviewUpdate) RemoveRepoIDs

func (vru *VulnerabilityReviewUpdate) RemoveRepoIDs(ids ...int) *VulnerabilityReviewUpdate

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*VulnerabilityReviewUpdate) RemoveRepos

func (vru *VulnerabilityReviewUpdate) RemoveRepos(r ...*Repo) *VulnerabilityReviewUpdate

RemoveRepos removes "repos" edges to Repo entities.

func (*VulnerabilityReviewUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*VulnerabilityReviewUpdate) SaveX

func (vru *VulnerabilityReviewUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*VulnerabilityReviewUpdate) SetDecision

SetDecision sets the "decision" field.

func (*VulnerabilityReviewUpdate) SetNillableDecision

SetNillableDecision sets the "decision" field if the given value is not nil.

func (*VulnerabilityReviewUpdate) SetNote

SetNote sets the "note" field.

func (*VulnerabilityReviewUpdate) SetVulnerability

SetVulnerability sets the "vulnerability" edge to the Vulnerability entity.

func (*VulnerabilityReviewUpdate) SetVulnerabilityID

func (vru *VulnerabilityReviewUpdate) SetVulnerabilityID(id int) *VulnerabilityReviewUpdate

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by ID.

func (*VulnerabilityReviewUpdate) Where

Where appends a list predicates to the VulnerabilityReviewUpdate builder.

type VulnerabilityReviewUpdateOne

type VulnerabilityReviewUpdateOne struct {
	// contains filtered or unexported fields
}

VulnerabilityReviewUpdateOne is the builder for updating a single VulnerabilityReview entity.

func (*VulnerabilityReviewUpdateOne) AddInstanceIDs

func (vruo *VulnerabilityReviewUpdateOne) AddInstanceIDs(ids ...int) *VulnerabilityReviewUpdateOne

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityReviewUpdateOne) AddInstances

AddInstances adds the "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityReviewUpdateOne) AddProjectIDs

func (vruo *VulnerabilityReviewUpdateOne) AddProjectIDs(ids ...int) *VulnerabilityReviewUpdateOne

AddProjectIDs adds the "projects" edge to the Project entity by IDs.

func (*VulnerabilityReviewUpdateOne) AddProjects

AddProjects adds the "projects" edges to the Project entity.

func (*VulnerabilityReviewUpdateOne) AddReleaseIDs

func (vruo *VulnerabilityReviewUpdateOne) AddReleaseIDs(ids ...int) *VulnerabilityReviewUpdateOne

AddReleaseIDs adds the "releases" edge to the Release entity by IDs.

func (*VulnerabilityReviewUpdateOne) AddReleases

AddReleases adds the "releases" edges to the Release entity.

func (*VulnerabilityReviewUpdateOne) AddRepoIDs

AddRepoIDs adds the "repos" edge to the Repo entity by IDs.

func (*VulnerabilityReviewUpdateOne) AddRepos

AddRepos adds the "repos" edges to the Repo entity.

func (*VulnerabilityReviewUpdateOne) ClearInstances

ClearInstances clears all "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityReviewUpdateOne) ClearProjects

ClearProjects clears all "projects" edges to the Project entity.

func (*VulnerabilityReviewUpdateOne) ClearReleases

ClearReleases clears all "releases" edges to the Release entity.

func (*VulnerabilityReviewUpdateOne) ClearRepos

ClearRepos clears all "repos" edges to the Repo entity.

func (*VulnerabilityReviewUpdateOne) ClearVulnerability

func (vruo *VulnerabilityReviewUpdateOne) ClearVulnerability() *VulnerabilityReviewUpdateOne

ClearVulnerability clears the "vulnerability" edge to the Vulnerability entity.

func (*VulnerabilityReviewUpdateOne) Exec

Exec executes the query on the entity.

func (*VulnerabilityReviewUpdateOne) ExecX

func (vruo *VulnerabilityReviewUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityReviewUpdateOne) Mutation

Mutation returns the VulnerabilityReviewMutation object of the builder.

func (*VulnerabilityReviewUpdateOne) RemoveInstanceIDs

func (vruo *VulnerabilityReviewUpdateOne) RemoveInstanceIDs(ids ...int) *VulnerabilityReviewUpdateOne

RemoveInstanceIDs removes the "instances" edge to ReleaseVulnerability entities by IDs.

func (*VulnerabilityReviewUpdateOne) RemoveInstances

RemoveInstances removes "instances" edges to ReleaseVulnerability entities.

func (*VulnerabilityReviewUpdateOne) RemoveProjectIDs

func (vruo *VulnerabilityReviewUpdateOne) RemoveProjectIDs(ids ...int) *VulnerabilityReviewUpdateOne

RemoveProjectIDs removes the "projects" edge to Project entities by IDs.

func (*VulnerabilityReviewUpdateOne) RemoveProjects

RemoveProjects removes "projects" edges to Project entities.

func (*VulnerabilityReviewUpdateOne) RemoveReleaseIDs

func (vruo *VulnerabilityReviewUpdateOne) RemoveReleaseIDs(ids ...int) *VulnerabilityReviewUpdateOne

RemoveReleaseIDs removes the "releases" edge to Release entities by IDs.

func (*VulnerabilityReviewUpdateOne) RemoveReleases

RemoveReleases removes "releases" edges to Release entities.

func (*VulnerabilityReviewUpdateOne) RemoveRepoIDs

func (vruo *VulnerabilityReviewUpdateOne) RemoveRepoIDs(ids ...int) *VulnerabilityReviewUpdateOne

RemoveRepoIDs removes the "repos" edge to Repo entities by IDs.

func (*VulnerabilityReviewUpdateOne) RemoveRepos

RemoveRepos removes "repos" edges to Repo entities.

func (*VulnerabilityReviewUpdateOne) Save

Save executes the query and returns the updated VulnerabilityReview entity.

func (*VulnerabilityReviewUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*VulnerabilityReviewUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*VulnerabilityReviewUpdateOne) SetDecision

SetDecision sets the "decision" field.

func (*VulnerabilityReviewUpdateOne) SetModelCreate

func (*VulnerabilityReviewUpdateOne) SetModelUpdate

func (*VulnerabilityReviewUpdateOne) SetNillableDecision

SetNillableDecision sets the "decision" field if the given value is not nil.

func (*VulnerabilityReviewUpdateOne) SetNote

SetNote sets the "note" field.

func (*VulnerabilityReviewUpdateOne) SetVulnerability

SetVulnerability sets the "vulnerability" edge to the Vulnerability entity.

func (*VulnerabilityReviewUpdateOne) SetVulnerabilityID

func (vruo *VulnerabilityReviewUpdateOne) SetVulnerabilityID(id int) *VulnerabilityReviewUpdateOne

SetVulnerabilityID sets the "vulnerability" edge to the Vulnerability entity by ID.

type VulnerabilityReviewWhereInput

type VulnerabilityReviewWhereInput struct {
	Not *VulnerabilityReviewWhereInput   `json:"not,omitempty"`
	Or  []*VulnerabilityReviewWhereInput `json:"or,omitempty"`
	And []*VulnerabilityReviewWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "note" field predicates.
	Note             *string  `json:"note,omitempty"`
	NoteNEQ          *string  `json:"noteNEQ,omitempty"`
	NoteIn           []string `json:"noteIn,omitempty"`
	NoteNotIn        []string `json:"noteNotIn,omitempty"`
	NoteGT           *string  `json:"noteGT,omitempty"`
	NoteGTE          *string  `json:"noteGTE,omitempty"`
	NoteLT           *string  `json:"noteLT,omitempty"`
	NoteLTE          *string  `json:"noteLTE,omitempty"`
	NoteContains     *string  `json:"noteContains,omitempty"`
	NoteHasPrefix    *string  `json:"noteHasPrefix,omitempty"`
	NoteHasSuffix    *string  `json:"noteHasSuffix,omitempty"`
	NoteEqualFold    *string  `json:"noteEqualFold,omitempty"`
	NoteContainsFold *string  `json:"noteContainsFold,omitempty"`

	// "decision" field predicates.
	Decision      *vulnerabilityreview.Decision  `json:"decision,omitempty"`
	DecisionNEQ   *vulnerabilityreview.Decision  `json:"decisionNEQ,omitempty"`
	DecisionIn    []vulnerabilityreview.Decision `json:"decisionIn,omitempty"`
	DecisionNotIn []vulnerabilityreview.Decision `json:"decisionNotIn,omitempty"`

	// "vulnerability" edge predicates.
	HasVulnerability     *bool                      `json:"hasVulnerability,omitempty"`
	HasVulnerabilityWith []*VulnerabilityWhereInput `json:"hasVulnerabilityWith,omitempty"`

	// "projects" edge predicates.
	HasProjects     *bool                `json:"hasProjects,omitempty"`
	HasProjectsWith []*ProjectWhereInput `json:"hasProjectsWith,omitempty"`

	// "repos" edge predicates.
	HasRepos     *bool             `json:"hasRepos,omitempty"`
	HasReposWith []*RepoWhereInput `json:"hasReposWith,omitempty"`

	// "releases" edge predicates.
	HasReleases     *bool                `json:"hasReleases,omitempty"`
	HasReleasesWith []*ReleaseWhereInput `json:"hasReleasesWith,omitempty"`

	// "instances" edge predicates.
	HasInstances     *bool                             `json:"hasInstances,omitempty"`
	HasInstancesWith []*ReleaseVulnerabilityWhereInput `json:"hasInstancesWith,omitempty"`
}

VulnerabilityReviewWhereInput represents a where input for filtering VulnerabilityReview queries.

func (*VulnerabilityReviewWhereInput) Filter

Filter applies the VulnerabilityReviewWhereInput filter on the VulnerabilityReviewQuery builder.

func (*VulnerabilityReviewWhereInput) P

P returns a predicate for filtering vulnerabilityreviews. An error is returned if the input is empty or invalid.

type VulnerabilityReviews

type VulnerabilityReviews []*VulnerabilityReview

VulnerabilityReviews is a parsable slice of VulnerabilityReview.

type VulnerabilitySelect

type VulnerabilitySelect struct {
	*VulnerabilityQuery
	// contains filtered or unexported fields
}

VulnerabilitySelect is the builder for selecting fields of Vulnerability entities.

func (*VulnerabilitySelect) Bool

func (vs *VulnerabilitySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) BoolX

func (vs *VulnerabilitySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*VulnerabilitySelect) Bools

func (vs *VulnerabilitySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) BoolsX

func (vs *VulnerabilitySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*VulnerabilitySelect) Float64

func (vs *VulnerabilitySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) Float64X

func (vs *VulnerabilitySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*VulnerabilitySelect) Float64s

func (vs *VulnerabilitySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) Float64sX

func (vs *VulnerabilitySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*VulnerabilitySelect) Int

func (vs *VulnerabilitySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) IntX

func (vs *VulnerabilitySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*VulnerabilitySelect) Ints

func (vs *VulnerabilitySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) IntsX

func (vs *VulnerabilitySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*VulnerabilitySelect) Scan

func (vs *VulnerabilitySelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*VulnerabilitySelect) ScanX

func (vs *VulnerabilitySelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*VulnerabilitySelect) String

func (vs *VulnerabilitySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) StringX

func (vs *VulnerabilitySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*VulnerabilitySelect) Strings

func (vs *VulnerabilitySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*VulnerabilitySelect) StringsX

func (vs *VulnerabilitySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type VulnerabilityUpdate

type VulnerabilityUpdate struct {
	// contains filtered or unexported fields
}

VulnerabilityUpdate is the builder for updating Vulnerability entities.

func (*VulnerabilityUpdate) AddComponentIDs

func (vu *VulnerabilityUpdate) AddComponentIDs(ids ...int) *VulnerabilityUpdate

AddComponentIDs adds the "components" edge to the Component entity by IDs.

func (*VulnerabilityUpdate) AddComponents

func (vu *VulnerabilityUpdate) AddComponents(c ...*Component) *VulnerabilityUpdate

AddComponents adds the "components" edges to the Component entity.

func (*VulnerabilityUpdate) AddInstanceIDs

func (vu *VulnerabilityUpdate) AddInstanceIDs(ids ...int) *VulnerabilityUpdate

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityUpdate) AddInstances

AddInstances adds the "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityUpdate) AddReviewIDs

func (vu *VulnerabilityUpdate) AddReviewIDs(ids ...int) *VulnerabilityUpdate

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*VulnerabilityUpdate) AddReviews

AddReviews adds the "reviews" edges to the VulnerabilityReview entity.

func (*VulnerabilityUpdate) AddSeverityScore

func (vu *VulnerabilityUpdate) AddSeverityScore(f float64) *VulnerabilityUpdate

AddSeverityScore adds f to the "severity_score" field.

func (*VulnerabilityUpdate) ClearComponents

func (vu *VulnerabilityUpdate) ClearComponents() *VulnerabilityUpdate

ClearComponents clears all "components" edges to the Component entity.

func (*VulnerabilityUpdate) ClearDescription

func (vu *VulnerabilityUpdate) ClearDescription() *VulnerabilityUpdate

ClearDescription clears the value of the "description" field.

func (*VulnerabilityUpdate) ClearInstances

func (vu *VulnerabilityUpdate) ClearInstances() *VulnerabilityUpdate

ClearInstances clears all "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityUpdate) ClearMetadata

func (vu *VulnerabilityUpdate) ClearMetadata() *VulnerabilityUpdate

ClearMetadata clears the value of the "metadata" field.

func (*VulnerabilityUpdate) ClearModified

func (vu *VulnerabilityUpdate) ClearModified() *VulnerabilityUpdate

ClearModified clears the value of the "modified" field.

func (*VulnerabilityUpdate) ClearOwner

func (vu *VulnerabilityUpdate) ClearOwner() *VulnerabilityUpdate

ClearOwner clears the "owner" edge to the Organization entity.

func (*VulnerabilityUpdate) ClearPublished

func (vu *VulnerabilityUpdate) ClearPublished() *VulnerabilityUpdate

ClearPublished clears the value of the "published" field.

func (*VulnerabilityUpdate) ClearReviews

func (vu *VulnerabilityUpdate) ClearReviews() *VulnerabilityUpdate

ClearReviews clears all "reviews" edges to the VulnerabilityReview entity.

func (*VulnerabilityUpdate) ClearSummary

func (vu *VulnerabilityUpdate) ClearSummary() *VulnerabilityUpdate

ClearSummary clears the value of the "summary" field.

func (*VulnerabilityUpdate) Exec

func (vu *VulnerabilityUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*VulnerabilityUpdate) ExecX

func (vu *VulnerabilityUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityUpdate) Mutation

Mutation returns the VulnerabilityMutation object of the builder.

func (*VulnerabilityUpdate) RemoveComponentIDs

func (vu *VulnerabilityUpdate) RemoveComponentIDs(ids ...int) *VulnerabilityUpdate

RemoveComponentIDs removes the "components" edge to Component entities by IDs.

func (*VulnerabilityUpdate) RemoveComponents

func (vu *VulnerabilityUpdate) RemoveComponents(c ...*Component) *VulnerabilityUpdate

RemoveComponents removes "components" edges to Component entities.

func (*VulnerabilityUpdate) RemoveInstanceIDs

func (vu *VulnerabilityUpdate) RemoveInstanceIDs(ids ...int) *VulnerabilityUpdate

RemoveInstanceIDs removes the "instances" edge to ReleaseVulnerability entities by IDs.

func (*VulnerabilityUpdate) RemoveInstances

func (vu *VulnerabilityUpdate) RemoveInstances(r ...*ReleaseVulnerability) *VulnerabilityUpdate

RemoveInstances removes "instances" edges to ReleaseVulnerability entities.

func (*VulnerabilityUpdate) RemoveReviewIDs

func (vu *VulnerabilityUpdate) RemoveReviewIDs(ids ...int) *VulnerabilityUpdate

RemoveReviewIDs removes the "reviews" edge to VulnerabilityReview entities by IDs.

func (*VulnerabilityUpdate) RemoveReviews

RemoveReviews removes "reviews" edges to VulnerabilityReview entities.

func (*VulnerabilityUpdate) Save

func (vu *VulnerabilityUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*VulnerabilityUpdate) SaveX

func (vu *VulnerabilityUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*VulnerabilityUpdate) SetDescription

func (vu *VulnerabilityUpdate) SetDescription(s string) *VulnerabilityUpdate

SetDescription sets the "description" field.

func (*VulnerabilityUpdate) SetMetadata

SetMetadata sets the "metadata" field.

func (*VulnerabilityUpdate) SetModified

func (vu *VulnerabilityUpdate) SetModified(t time.Time) *VulnerabilityUpdate

SetModified sets the "modified" field.

func (*VulnerabilityUpdate) SetNillableDescription

func (vu *VulnerabilityUpdate) SetNillableDescription(s *string) *VulnerabilityUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*VulnerabilityUpdate) SetNillableModified

func (vu *VulnerabilityUpdate) SetNillableModified(t *time.Time) *VulnerabilityUpdate

SetNillableModified sets the "modified" field if the given value is not nil.

func (*VulnerabilityUpdate) SetNillablePublished

func (vu *VulnerabilityUpdate) SetNillablePublished(t *time.Time) *VulnerabilityUpdate

SetNillablePublished sets the "published" field if the given value is not nil.

func (*VulnerabilityUpdate) SetNillableSeverity

func (vu *VulnerabilityUpdate) SetNillableSeverity(v *vulnerability.Severity) *VulnerabilityUpdate

SetNillableSeverity sets the "severity" field if the given value is not nil.

func (*VulnerabilityUpdate) SetNillableSeverityScore

func (vu *VulnerabilityUpdate) SetNillableSeverityScore(f *float64) *VulnerabilityUpdate

SetNillableSeverityScore sets the "severity_score" field if the given value is not nil.

func (*VulnerabilityUpdate) SetNillableSummary

func (vu *VulnerabilityUpdate) SetNillableSummary(s *string) *VulnerabilityUpdate

SetNillableSummary sets the "summary" field if the given value is not nil.

func (*VulnerabilityUpdate) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*VulnerabilityUpdate) SetOwnerID

func (vu *VulnerabilityUpdate) SetOwnerID(id int) *VulnerabilityUpdate

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*VulnerabilityUpdate) SetPublished

func (vu *VulnerabilityUpdate) SetPublished(t time.Time) *VulnerabilityUpdate

SetPublished sets the "published" field.

func (*VulnerabilityUpdate) SetSeverity

SetSeverity sets the "severity" field.

func (*VulnerabilityUpdate) SetSeverityScore

func (vu *VulnerabilityUpdate) SetSeverityScore(f float64) *VulnerabilityUpdate

SetSeverityScore sets the "severity_score" field.

func (*VulnerabilityUpdate) SetSummary

func (vu *VulnerabilityUpdate) SetSummary(s string) *VulnerabilityUpdate

SetSummary sets the "summary" field.

func (*VulnerabilityUpdate) Where

Where appends a list predicates to the VulnerabilityUpdate builder.

type VulnerabilityUpdateOne

type VulnerabilityUpdateOne struct {
	// contains filtered or unexported fields
}

VulnerabilityUpdateOne is the builder for updating a single Vulnerability entity.

func (*VulnerabilityUpdateOne) AddComponentIDs

func (vuo *VulnerabilityUpdateOne) AddComponentIDs(ids ...int) *VulnerabilityUpdateOne

AddComponentIDs adds the "components" edge to the Component entity by IDs.

func (*VulnerabilityUpdateOne) AddComponents

func (vuo *VulnerabilityUpdateOne) AddComponents(c ...*Component) *VulnerabilityUpdateOne

AddComponents adds the "components" edges to the Component entity.

func (*VulnerabilityUpdateOne) AddInstanceIDs

func (vuo *VulnerabilityUpdateOne) AddInstanceIDs(ids ...int) *VulnerabilityUpdateOne

AddInstanceIDs adds the "instances" edge to the ReleaseVulnerability entity by IDs.

func (*VulnerabilityUpdateOne) AddInstances

AddInstances adds the "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityUpdateOne) AddReviewIDs

func (vuo *VulnerabilityUpdateOne) AddReviewIDs(ids ...int) *VulnerabilityUpdateOne

AddReviewIDs adds the "reviews" edge to the VulnerabilityReview entity by IDs.

func (*VulnerabilityUpdateOne) AddReviews

AddReviews adds the "reviews" edges to the VulnerabilityReview entity.

func (*VulnerabilityUpdateOne) AddSeverityScore

func (vuo *VulnerabilityUpdateOne) AddSeverityScore(f float64) *VulnerabilityUpdateOne

AddSeverityScore adds f to the "severity_score" field.

func (*VulnerabilityUpdateOne) ClearComponents

func (vuo *VulnerabilityUpdateOne) ClearComponents() *VulnerabilityUpdateOne

ClearComponents clears all "components" edges to the Component entity.

func (*VulnerabilityUpdateOne) ClearDescription

func (vuo *VulnerabilityUpdateOne) ClearDescription() *VulnerabilityUpdateOne

ClearDescription clears the value of the "description" field.

func (*VulnerabilityUpdateOne) ClearInstances

func (vuo *VulnerabilityUpdateOne) ClearInstances() *VulnerabilityUpdateOne

ClearInstances clears all "instances" edges to the ReleaseVulnerability entity.

func (*VulnerabilityUpdateOne) ClearMetadata

func (vuo *VulnerabilityUpdateOne) ClearMetadata() *VulnerabilityUpdateOne

ClearMetadata clears the value of the "metadata" field.

func (*VulnerabilityUpdateOne) ClearModified

func (vuo *VulnerabilityUpdateOne) ClearModified() *VulnerabilityUpdateOne

ClearModified clears the value of the "modified" field.

func (*VulnerabilityUpdateOne) ClearOwner

ClearOwner clears the "owner" edge to the Organization entity.

func (*VulnerabilityUpdateOne) ClearPublished

func (vuo *VulnerabilityUpdateOne) ClearPublished() *VulnerabilityUpdateOne

ClearPublished clears the value of the "published" field.

func (*VulnerabilityUpdateOne) ClearReviews

func (vuo *VulnerabilityUpdateOne) ClearReviews() *VulnerabilityUpdateOne

ClearReviews clears all "reviews" edges to the VulnerabilityReview entity.

func (*VulnerabilityUpdateOne) ClearSummary

func (vuo *VulnerabilityUpdateOne) ClearSummary() *VulnerabilityUpdateOne

ClearSummary clears the value of the "summary" field.

func (*VulnerabilityUpdateOne) Exec

Exec executes the query on the entity.

func (*VulnerabilityUpdateOne) ExecX

func (vuo *VulnerabilityUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*VulnerabilityUpdateOne) Mutation

Mutation returns the VulnerabilityMutation object of the builder.

func (*VulnerabilityUpdateOne) RemoveComponentIDs

func (vuo *VulnerabilityUpdateOne) RemoveComponentIDs(ids ...int) *VulnerabilityUpdateOne

RemoveComponentIDs removes the "components" edge to Component entities by IDs.

func (*VulnerabilityUpdateOne) RemoveComponents

func (vuo *VulnerabilityUpdateOne) RemoveComponents(c ...*Component) *VulnerabilityUpdateOne

RemoveComponents removes "components" edges to Component entities.

func (*VulnerabilityUpdateOne) RemoveInstanceIDs

func (vuo *VulnerabilityUpdateOne) RemoveInstanceIDs(ids ...int) *VulnerabilityUpdateOne

RemoveInstanceIDs removes the "instances" edge to ReleaseVulnerability entities by IDs.

func (*VulnerabilityUpdateOne) RemoveInstances

RemoveInstances removes "instances" edges to ReleaseVulnerability entities.

func (*VulnerabilityUpdateOne) RemoveReviewIDs

func (vuo *VulnerabilityUpdateOne) RemoveReviewIDs(ids ...int) *VulnerabilityUpdateOne

RemoveReviewIDs removes the "reviews" edge to VulnerabilityReview entities by IDs.

func (*VulnerabilityUpdateOne) RemoveReviews

RemoveReviews removes "reviews" edges to VulnerabilityReview entities.

func (*VulnerabilityUpdateOne) Save

Save executes the query and returns the updated Vulnerability entity.

func (*VulnerabilityUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*VulnerabilityUpdateOne) Select

func (vuo *VulnerabilityUpdateOne) Select(field string, fields ...string) *VulnerabilityUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*VulnerabilityUpdateOne) SetDescription

func (vuo *VulnerabilityUpdateOne) SetDescription(s string) *VulnerabilityUpdateOne

SetDescription sets the "description" field.

func (*VulnerabilityUpdateOne) SetMetadata

SetMetadata sets the "metadata" field.

func (*VulnerabilityUpdateOne) SetModelCreate

func (*VulnerabilityUpdateOne) SetModelUpdate

func (*VulnerabilityUpdateOne) SetModified

SetModified sets the "modified" field.

func (*VulnerabilityUpdateOne) SetNillableDescription

func (vuo *VulnerabilityUpdateOne) SetNillableDescription(s *string) *VulnerabilityUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*VulnerabilityUpdateOne) SetNillableModified

func (vuo *VulnerabilityUpdateOne) SetNillableModified(t *time.Time) *VulnerabilityUpdateOne

SetNillableModified sets the "modified" field if the given value is not nil.

func (*VulnerabilityUpdateOne) SetNillablePublished

func (vuo *VulnerabilityUpdateOne) SetNillablePublished(t *time.Time) *VulnerabilityUpdateOne

SetNillablePublished sets the "published" field if the given value is not nil.

func (*VulnerabilityUpdateOne) SetNillableSeverity

SetNillableSeverity sets the "severity" field if the given value is not nil.

func (*VulnerabilityUpdateOne) SetNillableSeverityScore

func (vuo *VulnerabilityUpdateOne) SetNillableSeverityScore(f *float64) *VulnerabilityUpdateOne

SetNillableSeverityScore sets the "severity_score" field if the given value is not nil.

func (*VulnerabilityUpdateOne) SetNillableSummary

func (vuo *VulnerabilityUpdateOne) SetNillableSummary(s *string) *VulnerabilityUpdateOne

SetNillableSummary sets the "summary" field if the given value is not nil.

func (*VulnerabilityUpdateOne) SetOwner

SetOwner sets the "owner" edge to the Organization entity.

func (*VulnerabilityUpdateOne) SetOwnerID

func (vuo *VulnerabilityUpdateOne) SetOwnerID(id int) *VulnerabilityUpdateOne

SetOwnerID sets the "owner" edge to the Organization entity by ID.

func (*VulnerabilityUpdateOne) SetPublished

SetPublished sets the "published" field.

func (*VulnerabilityUpdateOne) SetSeverity

SetSeverity sets the "severity" field.

func (*VulnerabilityUpdateOne) SetSeverityScore

func (vuo *VulnerabilityUpdateOne) SetSeverityScore(f float64) *VulnerabilityUpdateOne

SetSeverityScore sets the "severity_score" field.

func (*VulnerabilityUpdateOne) SetSummary

SetSummary sets the "summary" field.

type VulnerabilityWhereInput

type VulnerabilityWhereInput struct {
	Not *VulnerabilityWhereInput   `json:"not,omitempty"`
	Or  []*VulnerabilityWhereInput `json:"or,omitempty"`
	And []*VulnerabilityWhereInput `json:"and,omitempty"`

	// "id" field predicates.
	ID      *int  `json:"id,omitempty"`
	IDNEQ   *int  `json:"idNEQ,omitempty"`
	IDIn    []int `json:"idIn,omitempty"`
	IDNotIn []int `json:"idNotIn,omitempty"`
	IDGT    *int  `json:"idGT,omitempty"`
	IDGTE   *int  `json:"idGTE,omitempty"`
	IDLT    *int  `json:"idLT,omitempty"`
	IDLTE   *int  `json:"idLTE,omitempty"`

	// "vid" field predicates.
	Vid             *string  `json:"vid,omitempty"`
	VidNEQ          *string  `json:"vidNEQ,omitempty"`
	VidIn           []string `json:"vidIn,omitempty"`
	VidNotIn        []string `json:"vidNotIn,omitempty"`
	VidGT           *string  `json:"vidGT,omitempty"`
	VidGTE          *string  `json:"vidGTE,omitempty"`
	VidLT           *string  `json:"vidLT,omitempty"`
	VidLTE          *string  `json:"vidLTE,omitempty"`
	VidContains     *string  `json:"vidContains,omitempty"`
	VidHasPrefix    *string  `json:"vidHasPrefix,omitempty"`
	VidHasSuffix    *string  `json:"vidHasSuffix,omitempty"`
	VidEqualFold    *string  `json:"vidEqualFold,omitempty"`
	VidContainsFold *string  `json:"vidContainsFold,omitempty"`

	// "summary" field predicates.
	Summary             *string  `json:"summary,omitempty"`
	SummaryNEQ          *string  `json:"summaryNEQ,omitempty"`
	SummaryIn           []string `json:"summaryIn,omitempty"`
	SummaryNotIn        []string `json:"summaryNotIn,omitempty"`
	SummaryGT           *string  `json:"summaryGT,omitempty"`
	SummaryGTE          *string  `json:"summaryGTE,omitempty"`
	SummaryLT           *string  `json:"summaryLT,omitempty"`
	SummaryLTE          *string  `json:"summaryLTE,omitempty"`
	SummaryContains     *string  `json:"summaryContains,omitempty"`
	SummaryHasPrefix    *string  `json:"summaryHasPrefix,omitempty"`
	SummaryHasSuffix    *string  `json:"summaryHasSuffix,omitempty"`
	SummaryIsNil        bool     `json:"summaryIsNil,omitempty"`
	SummaryNotNil       bool     `json:"summaryNotNil,omitempty"`
	SummaryEqualFold    *string  `json:"summaryEqualFold,omitempty"`
	SummaryContainsFold *string  `json:"summaryContainsFold,omitempty"`

	// "description" field predicates.
	Description             *string  `json:"description,omitempty"`
	DescriptionNEQ          *string  `json:"descriptionNEQ,omitempty"`
	DescriptionIn           []string `json:"descriptionIn,omitempty"`
	DescriptionNotIn        []string `json:"descriptionNotIn,omitempty"`
	DescriptionGT           *string  `json:"descriptionGT,omitempty"`
	DescriptionGTE          *string  `json:"descriptionGTE,omitempty"`
	DescriptionLT           *string  `json:"descriptionLT,omitempty"`
	DescriptionLTE          *string  `json:"descriptionLTE,omitempty"`
	DescriptionContains     *string  `json:"descriptionContains,omitempty"`
	DescriptionHasPrefix    *string  `json:"descriptionHasPrefix,omitempty"`
	DescriptionHasSuffix    *string  `json:"descriptionHasSuffix,omitempty"`
	DescriptionIsNil        bool     `json:"descriptionIsNil,omitempty"`
	DescriptionNotNil       bool     `json:"descriptionNotNil,omitempty"`
	DescriptionEqualFold    *string  `json:"descriptionEqualFold,omitempty"`
	DescriptionContainsFold *string  `json:"descriptionContainsFold,omitempty"`

	// "severity_score" field predicates.
	SeverityScore      *float64  `json:"severityScore,omitempty"`
	SeverityScoreNEQ   *float64  `json:"severityScoreNEQ,omitempty"`
	SeverityScoreIn    []float64 `json:"severityScoreIn,omitempty"`
	SeverityScoreNotIn []float64 `json:"severityScoreNotIn,omitempty"`
	SeverityScoreGT    *float64  `json:"severityScoreGT,omitempty"`
	SeverityScoreGTE   *float64  `json:"severityScoreGTE,omitempty"`
	SeverityScoreLT    *float64  `json:"severityScoreLT,omitempty"`
	SeverityScoreLTE   *float64  `json:"severityScoreLTE,omitempty"`

	// "severity" field predicates.
	Severity      *vulnerability.Severity  `json:"severity,omitempty"`
	SeverityNEQ   *vulnerability.Severity  `json:"severityNEQ,omitempty"`
	SeverityIn    []vulnerability.Severity `json:"severityIn,omitempty"`
	SeverityNotIn []vulnerability.Severity `json:"severityNotIn,omitempty"`

	// "published" field predicates.
	Published       *time.Time  `json:"published,omitempty"`
	PublishedNEQ    *time.Time  `json:"publishedNEQ,omitempty"`
	PublishedIn     []time.Time `json:"publishedIn,omitempty"`
	PublishedNotIn  []time.Time `json:"publishedNotIn,omitempty"`
	PublishedGT     *time.Time  `json:"publishedGT,omitempty"`
	PublishedGTE    *time.Time  `json:"publishedGTE,omitempty"`
	PublishedLT     *time.Time  `json:"publishedLT,omitempty"`
	PublishedLTE    *time.Time  `json:"publishedLTE,omitempty"`
	PublishedIsNil  bool        `json:"publishedIsNil,omitempty"`
	PublishedNotNil bool        `json:"publishedNotNil,omitempty"`

	// "modified" field predicates.
	Modified       *time.Time  `json:"modified,omitempty"`
	ModifiedNEQ    *time.Time  `json:"modifiedNEQ,omitempty"`
	ModifiedIn     []time.Time `json:"modifiedIn,omitempty"`
	ModifiedNotIn  []time.Time `json:"modifiedNotIn,omitempty"`
	ModifiedGT     *time.Time  `json:"modifiedGT,omitempty"`
	ModifiedGTE    *time.Time  `json:"modifiedGTE,omitempty"`
	ModifiedLT     *time.Time  `json:"modifiedLT,omitempty"`
	ModifiedLTE    *time.Time  `json:"modifiedLTE,omitempty"`
	ModifiedIsNil  bool        `json:"modifiedIsNil,omitempty"`
	ModifiedNotNil bool        `json:"modifiedNotNil,omitempty"`

	// "owner" edge predicates.
	HasOwner     *bool                     `json:"hasOwner,omitempty"`
	HasOwnerWith []*OrganizationWhereInput `json:"hasOwnerWith,omitempty"`

	// "components" edge predicates.
	HasComponents     *bool                  `json:"hasComponents,omitempty"`
	HasComponentsWith []*ComponentWhereInput `json:"hasComponentsWith,omitempty"`

	// "reviews" edge predicates.
	HasReviews     *bool                            `json:"hasReviews,omitempty"`
	HasReviewsWith []*VulnerabilityReviewWhereInput `json:"hasReviewsWith,omitempty"`

	// "instances" edge predicates.
	HasInstances     *bool                             `json:"hasInstances,omitempty"`
	HasInstancesWith []*ReleaseVulnerabilityWhereInput `json:"hasInstancesWith,omitempty"`
}

VulnerabilityWhereInput represents a where input for filtering Vulnerability queries.

func (*VulnerabilityWhereInput) Filter

Filter applies the VulnerabilityWhereInput filter on the VulnerabilityQuery builder.

func (*VulnerabilityWhereInput) P

P returns a predicate for filtering vulnerabilities. An error is returned if the input is empty or invalid.

Source Files

Jump to

Keyboard shortcuts

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