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

Method Get

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

Get returns a CASMapping entity by its id.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

957
958// Get returns a CASMapping entity by its id.
959func (c *CASMappingClient) Get(ctx context.Context, id uuid.UUID) (*CASMapping, error) {
960 return c.Query().Where(casmapping.ID(id)).Only(ctx)
961}
962
963// GetX is like Get, but panics if an error occurs.
964func (c *CASMappingClient) GetX(ctx context.Context, id uuid.UUID) *CASMapping {

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