MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / Get

Method Get

app/controlplane/pkg/data/ent/client.go:3541–3543  ·  view source on GitHub ↗

Get returns a WorkflowContract entity by its id.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

3539
3540// Get returns a WorkflowContract entity by its id.
3541func (c *WorkflowContractClient) Get(ctx context.Context, id uuid.UUID) (*WorkflowContract, error) {
3542 return c.Query().Where(workflowcontract.ID(id)).Only(ctx)
3543}
3544
3545// GetX is like Get, but panics if an error occurs.
3546func (c *WorkflowContractClient) GetX(ctx context.Context, id uuid.UUID) *WorkflowContract {

Callers 1

GetXMethod · 0.95

Calls 4

QueryMethod · 0.95
IDFunction · 0.92
OnlyMethod · 0.45
WhereMethod · 0.45

Tested by

no test coverage detected