Documentation
¶
Index ¶
- func EnrollUser(params EnrollUserRequest) (*x509.Certificate, *ecdsa.PrivateKey, *x509.Certificate, error)
- func GetCAInfo(params GetCAInfoRequest) (*lib.GetCAInfoResponse, error)
- func GetClient(ca FabricCAParams) (*lib.Client, error)
- func ReenrollUser(params ReenrollUserRequest, certPem string, ecdsaKey *ecdsa.PrivateKey) (*x509.Certificate, *x509.Certificate, error)
- func RegisterUser(params RegisterUserRequest) (string, error)
- func RevokeUser(params RevokeUserRequest) 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 ReenrollUserRequest
- type RegisterUserRequest
- type RevokeUserRequest
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) (*lib.GetCAInfoResponse, error)
func ReenrollUser ¶ added in v1.9.0
func ReenrollUser(params ReenrollUserRequest, certPem string, ecdsaKey *ecdsa.PrivateKey) (*x509.Certificate, *x509.Certificate, error)
func RegisterUser ¶
func RegisterUser(params RegisterUserRequest) (string, error)
func RevokeUser ¶ added in v1.11.0
func RevokeUser(params RevokeUserRequest) 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 ¶
type ReenrollUserRequest ¶ added in v1.9.0
type RegisterUserRequest ¶
type RevokeUserRequest ¶ added in v1.11.0
Click to show internal directories.
Click to hide internal directories.