MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Get

Method Get

service/cluster/cluster.go:118–124  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

116}
117
118func (s *imlClusterService) Get(ctx context.Context, id string) (*Cluster, error) {
119 v, err := s.store.FirstQuery(ctx, "`uuid` = ?", []interface{}{id}, "id desc")
120 if err != nil {
121 return nil, err
122 }
123 return FromEntity(v), nil
124}
125
126func (s *imlClusterService) Create(ctx context.Context, name string, resume string, address string) (*Cluster, error) {
127 apintoInfo, err := admin.Admin(address).Info(ctx)

Callers

nothing calls this directly

Calls 1

FromEntityFunction · 0.70

Tested by

no test coverage detected