StaticAuthProvider returns fixed source and target auth values.
| 62 | |
| 63 | // StaticAuthProvider returns fixed source and target auth values. |
| 64 | type StaticAuthProvider struct { |
| 65 | Source EndpointAuth `json:"source"` |
| 66 | Target EndpointAuth `json:"target"` |
| 67 | } |
| 68 | |
| 69 | // AuthFor implements AuthProvider. |
| 70 | func (p StaticAuthProvider) AuthFor(_ context.Context, _ Endpoint, role EndpointRole) (EndpointAuth, error) { //nolint:unparam // implements AuthProvider interface |
nothing calls this directly
no outgoing calls
no test coverage detected