Documentation ¶
Index ¶
- func EnrollUser(params EnrollUserRequest) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
- func GetCAInfo(params GetCAInfoRequest) (*api.GetCAInfoResponse, error)
- func GetClient(ca FabricCAParams, keyStorePath string) (*msp.CAClientImpl, *msp.MemoryUserStore, map[string]mspprov.IdentityManager, ...)
- func GetUser(params GetUserRequest) (*api.IdentityResponse, error)
- func ReEnrollUser(params EnrollUserRequest) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
- func RegisterUser(params RegisterUserRequest) (string, error)
- type EnrollUserRequest
- type FabricCAParams
- type FabricConfig
- type FabricConfigCA
- type FabricConfigClient
- type FabricConfigConnection
- type FabricConfigOrg
- type FabricConfigTimeout
- type FabricConfigTimeoutParams
- type FabricConfigUser
- type FabricCredentialStore
- type FabricCryptoStore
- type FabricHttpOptions
- type FabricMultiplePem
- type FabricPem
- type FabricRegistrar
- type GetCAInfoRequest
- type GetUserRequest
- type RegisterUserRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnrollUser ¶
func EnrollUser(params EnrollUserRequest) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
func GetCAInfo ¶
func GetCAInfo(params GetCAInfoRequest) (*api.GetCAInfoResponse, error)
func GetClient ¶
func GetClient(ca FabricCAParams, keyStorePath string) (*msp.CAClientImpl, *msp.MemoryUserStore, map[string]mspprov.IdentityManager, core.CryptoSuite, error)
func GetUser ¶
func GetUser(params GetUserRequest) (*api.IdentityResponse, error)
func ReEnrollUser ¶ added in v1.3.0
func ReEnrollUser(params EnrollUserRequest) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
func RegisterUser ¶
func RegisterUser(params RegisterUserRequest) (string, error)
Types ¶
type EnrollUserRequest ¶
type FabricCAParams ¶
type FabricConfig ¶
type FabricConfig struct { Name string `yaml:"name"` Version string `yaml:"version"` Client FabricConfigClient `yaml:"client"` Organizations map[string]FabricConfigOrg `yaml:"organizations"` CertificateAuthorities map[string]FabricConfigCA `yaml:"certificateAuthorities"` }
type FabricConfigCA ¶
type FabricConfigCA struct { URL string `yaml:"url"` CaName string `yaml:"caName"` TLSCACerts FabricMultiplePem `yaml:"tlsCACerts"` Registrar FabricRegistrar `yaml:"registrar"` HTTPOptions FabricHttpOptions `yaml:"httpOptions"` }
type FabricConfigClient ¶
type FabricConfigClient struct { Organization string `yaml:"organization"` CredentialStore FabricCredentialStore `yaml:"credentialStore,omitempty"` Connection FabricConfigConnection `yaml:"connection"` }
type FabricConfigConnection ¶
type FabricConfigConnection struct {
Timeout FabricConfigTimeout `yaml:"timeout"`
}
type FabricConfigOrg ¶
type FabricConfigOrg struct { Mspid string `yaml:"mspid"` CryptoPath string `yaml:"cryptoPath"` Users map[string]FabricConfigUser `yaml:"users,omitempty"` CredentialStore FabricCredentialStore `yaml:"credentialStore,omitempty"` CertificateAuthorities []string `yaml:"certificateAuthorities"` }
type FabricConfigTimeout ¶
type FabricConfigTimeout struct {
Peer FabricConfigTimeoutParams `yaml:"peer"`
}
type FabricConfigTimeoutParams ¶
type FabricConfigTimeoutParams struct {
Endorser string `yaml:"endorser"`
}
type FabricConfigUser ¶
type FabricCredentialStore ¶
type FabricCredentialStore struct { Path string `yaml:"path"` CryptoStore FabricCryptoStore `yaml:"cryptoStore"` }
type FabricCryptoStore ¶
type FabricCryptoStore struct {
Path string `yaml:"path"`
}
type FabricHttpOptions ¶
type FabricHttpOptions struct {
Verify bool `yaml:"verify"`
}
type FabricMultiplePem ¶
type FabricMultiplePem struct {
Pem []string `yaml:"pem"`
}
type FabricRegistrar ¶
type GetCAInfoRequest ¶
type GetUserRequest ¶
Click to show internal directories.
Click to hide internal directories.