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

Method GetX

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

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

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

962
963// GetX is like Get, but panics if an error occurs.
964func (c *CASMappingClient) GetX(ctx context.Context, id uuid.UUID) *CASMapping {
965 obj, err := c.Get(ctx, id)
966 if err != nil {
967 panic(err)
968 }
969 return obj
970}
971
972// QueryCasBackend queries the cas_backend edge of a CASMapping.
973func (c *CASMappingClient) QueryCasBackend(_m *CASMapping) *CASBackendQuery {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected