{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.4.4","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package aclmgmt\n\n## Constants\n\n```go\nconst (\n\tCHANNELREADERS = policies.ChannelApplicationReaders\n\tCHANNELWRITERS = policies.ChannelApplicationWriters\n)\n```\n\n## Types\n\n```go\ntype ACLProvider interface {\n\t//CheckACL checks the ACL for the resource for the channel using the\n\t//idinfo. idinfo is an object such as SignedProposal from which an\n\t//id can be extracted for testing against a policy\n\tCheckACL(resName string, channelID string, idinfo interface{}) error\n}\n```\n\n```go\nfunc NewACLProvider(rg ResourceGetter) ACLProvider\n```\nACLProvider consists of two providers, supplied one and a default one (1.0 ACL management using ChannelReaders and ChannelWriters). If supplied provider is nil, a resource based ACL provider is created.\n\n```go\nfunc NewDefaultACLProvider() ACLProvider\n```\n\n```go\ntype InvalidIdInfo string\n```\nInvalidIdInfo\n\n```go\nfunc (e InvalidIdInfo) Error() string\n```\n\n```go\ntype PolicyNotFound string\n```\nPolicyNotFound cache for resource\n\n```go\nfunc (e PolicyNotFound) Error() string\n```\n\n```go\ntype ResourceGetter func(channelID string) channelconfig.Resources\n```\nresource getter gets channelconfig.Resources given channel ID\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/aclmgmt","name":"aclmgmt","synopsis":"","isRedistributable":true}
