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

Method authFor

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

Source from the content-addressed store, hash-verified

133}
134
135func (c *Client) authFor(ctx context.Context, endpoint Endpoint, role EndpointRole) (EndpointAuth, error) {
136 if c.auth == nil {
137 return EndpointAuth{}, nil
138 }
139 auth, err := c.auth.AuthFor(ctx, endpoint, role)
140 if err != nil {
141 return EndpointAuth{}, fmt.Errorf("resolve auth for %s: %w", role, err)
142 }
143 return auth, nil
144}
145
146func (r SyncRequest) Validate() error {
147 if r.Source.URL == "" {

Callers 2

buildProbeConfigMethod · 0.95
buildSyncConfigMethod · 0.95

Calls 1

AuthForMethod · 0.65

Tested by

no test coverage detected