Documentation ¶
Index ¶
- func AddData(filename string, connProfilePath string, networkName string, query QueryType, ...) error
- func CheckIfFileOrDirectoryExists(path string) (bool, error)
- func FabricHelper(gni GatewayNetworkInterface, channel string, contractName string, ...) (*gateway.Gateway, *gateway.Contract, *gateway.Wallet, error)
- func GenerateAccessControl(...) error
- func GenerateMembership(channel, contractName, connProfilePath, networkName, mspId, userString string) error
- func GenerateVerificationPolicy(...) error
- func GetCredentialPath() string
- func GetCurrentNetworkCredentialPath(networkId string) string
- func GetIdentityFromWallet(wallet *gateway.Wallet, userString string) (*gateway.X509Identity, error)
- func GetKeyAndCertForRemoteRequestbyUserName(wallet *gateway.Wallet, username string) (string, string, error)
- func Invoke(query QueryType, connProfilePath string, networkName string, mspId string, ...) ([]byte, error)
- func Query(query QueryType, connProfilePath string, networkName string, mspId string, ...) ([]byte, error)
- type AccessControlPolicy
- type GatewayNetworkInterface
- type Identifier
- type IdentifierAccessPolicy
- type Member
- type Membership
- type NetworkConfig
- type QueryType
- type Rule
- type VerificationPolicy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FabricHelper ¶
func GenerateAccessControl ¶
func GenerateMembership ¶
func GetCredentialPath ¶
func GetCredentialPath() string
func GetIdentityFromWallet ¶
Types ¶
type AccessControlPolicy ¶
type GatewayNetworkInterface ¶
type GatewayNetworkInterface interface {
GetNetwork(*gateway.Gateway, string) (*gateway.Network, error)
}
func NewGatewayNetworkInterface ¶
func NewGatewayNetworkInterface() GatewayNetworkInterface
type Identifier ¶
type Identifier struct { Pattern string `json:"pattern"` Policy IdentifierAccessPolicy `json:"policy"` }
type IdentifierAccessPolicy ¶
type Membership ¶
type NetworkConfig ¶
type NetworkConfig struct { RelayEndPoint string `json:"relayEndPoint"` ConnProfilePath string `json:"connProfilePath"` MspId string `json:"mspId"` ChannelName string `json:"channelName"` Chaincode string `json:"chaincode"` }
func GetNetworkConfig ¶
func GetNetworkConfig(networkId string) (NetworkConfig, error)
type VerificationPolicy ¶
type VerificationPolicy struct { SecurityDomain string `json:"securityDomain"` Identifiers []Identifier `json:"identifiers"` }
Click to show internal directories.
Click to hide internal directories.