MCPcopy Create free account
hub / github.com/entireio/git-sync / AuthFor

Method AuthFor

types.go:60–60  ·  view source on GitHub ↗
(ctx context.Context, endpoint Endpoint, role EndpointRole)

Source from the content-addressed store, hash-verified

58// AuthProvider resolves auth for a request endpoint.
59type AuthProvider interface {
60 AuthFor(ctx context.Context, endpoint Endpoint, role EndpointRole) (EndpointAuth, error)
61}
62
63// StaticAuthProvider returns fixed source and target auth values.

Callers 2

authForMethod · 0.65
authForMethod · 0.65

Implementers 2

errAuthProviderclient_test.go

Calls

no outgoing calls

Tested by

no test coverage detected