( ctx context.Context, deps commandDeps, client DaemonClient, originRef string, )
| 383 | } |
| 384 | |
| 385 | func requireAgentCommandIdentity( |
| 386 | ctx context.Context, |
| 387 | deps commandDeps, |
| 388 | client DaemonClient, |
| 389 | originRef string, |
| 390 | ) (agentidentity.Credentials, error) { |
| 391 | if _, err := resolveAgentCallerFromEnv(ctx, deps, client, "", originRef); err != nil { |
| 392 | return agentidentity.Credentials{}, err |
| 393 | } |
| 394 | return agentCredentialsFromEnv(deps), nil |
| 395 | } |
| 396 | |
| 397 | func agentActionCLI(action string) string { |
| 398 | return "agent." + strings.TrimSpace(action) |
no test coverage detected