Documentation ¶
Index ¶
- Constants
- type InvalidIdInfo
- type NoPolicyProviderInCache
- type PolicyNotFound
- type PolicyProviderNotFound
- type Rscc
- func (rscc *Rscc) CheckACL(resName string, channelID string, idinfo interface{}) error
- func (rscc *Rscc) GenerateSimulationResults(txEnv *common.Envelope, sim ledger.TxSimulator) error
- func (rscc *Rscc) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (rscc *Rscc) Invoke(stub shim.ChaincodeStubInterface) pb.Response
Constants ¶
View Source
const ( //CHANNEL name CHANNEL = "channel" //POLICY for the channel POLICY = "policy" //NOCHANNEL channel not found NOCHANNEL = "nochannel" //NOPOLICY policy not found for channel NOPOLICY = "nopolicy" //BADPOLICY bad policy BADPOLICY = "badpolicy" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidIdInfo ¶
type InvalidIdInfo string
InvalidIdInfo
func (InvalidIdInfo) Error ¶
func (e InvalidIdInfo) Error() string
type NoPolicyProviderInCache ¶
type NoPolicyProviderInCache string
NoPolicyProviderInCache in cache for channel
func (NoPolicyProviderInCache) Error ¶
func (e NoPolicyProviderInCache) Error() string
type PolicyNotFound ¶
type PolicyNotFound string
PolicyNotFound cache for resource
func (PolicyNotFound) Error ¶
func (e PolicyNotFound) Error() string
type PolicyProviderNotFound ¶
type PolicyProviderNotFound string
PolicyProviderNotFound for channel
func (PolicyProviderNotFound) Error ¶
func (e PolicyProviderNotFound) Error() string
type Rscc ¶
Rscc SCC implementing resouce->Policy mapping for the fabric
func (*Rscc) CheckACL ¶
CheckACL rscc implements AClProvider's CheckACL interface. This is the key interface
. CheckACL works off the cache . CheckACL uses two providers - the RSCC provider from channel config and default provider that implements 1.0 functions . If a resource in RSCC Provider it'll use the policy defined there. Otherwise it'll defer to default provider
func (*Rscc) GenerateSimulationResults ¶
GenerateSimulationResults 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
Click to show internal directories.
Click to hide internal directories.