MCPcopy
hub / github.com/openpubkey/opkssh / Source

Interface Source

policy/policy.go:142–146  ·  view source on GitHub ↗

Source declares the minimal interface to describe the source of a fetched opkssh policy (i.e. where the policy is retrieved from)

Source from the content-addressed store, hash-verified

140// Source declares the minimal interface to describe the source of a fetched
141// opkssh policy (i.e. where the policy is retrieved from)
142type Source interface {
143 // Source returns a string describing the source of an opkssh policy. The
144 // returned value is empty if there is no information about its source
145 Source() string
146}
147
148var _ Source = &EmptySource{}
149

Callers 2

TestLoadFunction · 0.65
CheckPolicyMethod · 0.65

Implementers 2

MockSourcepolicy/enforcer_test.go
EmptySourcepolicy/policy.go

Calls

no outgoing calls

Tested by

no test coverage detected