(ctx context.Context, token string)
| 191 | } |
| 192 | |
| 193 | func ScalingoAuthClientFromToken(ctx context.Context, token string) (*scalingo.Client, error) { |
| 194 | config := C.scalingoClientBaseConfig(ClientConfigOpts{ |
| 195 | AuthOnly: true, APIToken: token, |
| 196 | }) |
| 197 | return scalingo.New(ctx, config) |
| 198 | } |
| 199 | |
| 200 | func ScalingoAuthClient(ctx context.Context) (*scalingo.Client, error) { |
| 201 | auth := &CliAuthenticator{} |
no test coverage detected