{"modulePath":"github.1git.de/openshift/origin","version":"v1.2.2","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cache\n\n## Functions\n\n```go\nfunc NewReadOnlyClusterPolicyBindingCache(registry clusterbindingregistry.WatchingRegistry) *readOnlyClusterPolicyBindingCache\n```\n\n```go\nfunc NewReadOnlyClusterPolicyCache(registry clusterpolicyregistry.WatchingRegistry) *readOnlyClusterPolicyCache\n```\n\n```go\nfunc NewReadOnlyPolicyBindingCache(registry bindingregistry.WatchingRegistry) *readOnlyPolicyBindingCache\n```\n\n```go\nfunc NewReadOnlyPolicyCache(registry policyregistry.WatchingRegistry) *readOnlyPolicyCache\n```\n\n## Types\n\n```go\ntype ReadOnlyCache interface {\n\tRun()\n\tRunUntil(bindingStopChannel, policyStopChannel \u003c-chan struct{})\n}\n```\nReadOnlyCache exposes administrative methods for the readOnlyAuthorizationCache\n\n```go\nfunc NewReadOnlyCacheAndClient(bindingRegistry bindingregistry.WatchingRegistry,\n\tpolicyRegistry policyregistry.WatchingRegistry,\n\tclusterBindingRegistry clusterbindingregistry.WatchingRegistry,\n\tclusterPolicyRegistry clusterpolicyregistry.WatchingRegistry) (cache ReadOnlyCache, client client.ReadOnlyPolicyClient)\n```\nNewReadOnlyCache creates a new readOnlyAuthorizationCache.  You cannot use a normal client, because you don't want policy guarding the policy from the authorizer\n\n","path":"github.1git.de/openshift/origin/pkg/authorization/cache","name":"cache","synopsis":"","isRedistributable":true}
