{"modulePath":"github.com/eric-erki/https-hyperledger.org","version":"v1.1.0-preview","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package rscc\n\n## Constants\n\n```go\nconst (\n\t//CHANNEL name\n\tCHANNEL = \"channel\"\n\n\t//POLICY for the channel\n\tPOLICY = \"policy\"\n\n\t//NOCHANNEL channel not found\n\tNOCHANNEL = \"nochannel\"\n\n\t//NOPOLICY policy not found for channel\n\tNOPOLICY = \"nopolicy\"\n\n\t//BADPOLICY bad policy\n\tBADPOLICY = \"badpolicy\"\n)\n```\n\n## Types\n\n```go\ntype InvalidIdInfo string\n```\nInvalidIdInfo\n\n```go\nfunc (e InvalidIdInfo) Error() string\n```\n\n```go\ntype NoPolicyProviderInCache string\n```\nNoPolicyProviderInCache in cache for channel\n\n```go\nfunc (e NoPolicyProviderInCache) 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 PolicyProviderNotFound string\n```\nPolicyProviderNotFound for channel\n\n```go\nfunc (e PolicyProviderNotFound) Error() string\n```\n\n```go\ntype Rscc struct {\n\tsync.RWMutex\n\t// contains filtered or unexported fields\n}\n```\nRscc SCC implementing resouce-\u003ePolicy mapping for the fabric\n\n```go\nfunc NewRscc() *Rscc\n```\nNewRscc get an initialzed new Rscc\n\n```go\nfunc (rscc *Rscc) CheckACL(resName string, channelID string, idinfo interface{}) error\n```\nCheckACL rscc implements AClProvider's CheckACL interface. This is the key interface\n\n\t. CheckACL works off the cache\n\t. CheckACL uses two providers - the RSCC provider from channel config and default provider\n\t  that implements 1.0 functions\n\t. If a resource in RSCC Provider it'll use the policy defined there. Otherwise it'll defer\n\t  to default provider\n\n```go\nfunc (rscc *Rscc) GenerateSimulationResults(txEnv *common.Envelope, sim ledger.TxSimulator) error\n```\nGenerateSimulationResults called to add config state. Currently only handles \"join\" requests. Note that this is just a ledger hook and does not modify RSCC data structures\n\n```go\nfunc (rscc *Rscc) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit RSCC - Init is just used to initialize policy assuming it is found in the channel ledger. Don't return error and get out. For example, we might still serve Invokes to set policy\n\n```go\nfunc (rscc *Rscc) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke - update policies\n\n","path":"github.com/eric-erki/https-hyperledger.org/core/scc/rscc","name":"rscc","synopsis":"","isRedistributable":true}
