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

Method Get

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

Get returns a CASBackend entity by its id.

(ctx context.Context, id uuid.UUID)

Source from the content-addressed store, hash-verified

792
793// Get returns a CASBackend entity by its id.
794func (c *CASBackendClient) Get(ctx context.Context, id uuid.UUID) (*CASBackend, error) {
795 return c.Query().Where(casbackend.ID(id)).Only(ctx)
796}
797
798// GetX is like Get, but panics if an error occurs.
799func (c *CASBackendClient) GetX(ctx context.Context, id uuid.UUID) *CASBackend {

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