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

Struct StaticAuthProvider

types.go:64–67  ·  view source on GitHub ↗

StaticAuthProvider returns fixed source and target auth values.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected