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

Method GetX

app/controlplane/pkg/data/ent/client.go:799–805  ·  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

797
798// GetX is like Get, but panics if an error occurs.
799func (c *CASBackendClient) GetX(ctx context.Context, id uuid.UUID) *CASBackend {
800 obj, err := c.Get(ctx, id)
801 if err != nil {
802 panic(err)
803 }
804 return obj
805}
806
807// QueryOrganization queries the organization edge of a CASBackend.
808func (c *CASBackendClient) QueryOrganization(_m *CASBackend) *OrganizationQuery {

Callers

nothing calls this directly

Calls 1

GetMethod · 0.95

Tested by

no test coverage detected