(ctx context.Context, id string)
| 116 | } |
| 117 | |
| 118 | func (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 | |
| 126 | func (s *imlClusterService) Create(ctx context.Context, name string, resume string, address string) (*Cluster, error) { |
| 127 | apintoInfo, err := admin.Admin(address).Info(ctx) |
nothing calls this directly
no test coverage detected