Documentation ¶
Index ¶
- func GetCSPConfig() *bccspFactory.FactoryOpts
- func GetCryptoConfigPath() string
- func GetFabricCAClientCertFile() string
- func GetFabricCAClientKeyFile() string
- func GetFabricCAID() string
- func GetFabricCAName() string
- func GetFabricCATLSEnabledFlag() bool
- func GetFabricClientViper() *viper.Viper
- func GetKeyStorePath() string
- func GetOrdererHost() string
- func GetOrdererPort() string
- func GetOrdererTLSCertificate() string
- func GetOrdererTLSServerHostOverride() string
- func GetSecurityAlgorithm() string
- func GetSecurityLevel() int
- func GetServerCertFiles() []string
- func GetServerURL() string
- func GetTLSCACertPool(tlsCertificate string) (*x509.CertPool, error)
- func GetTLSCACertPoolFromRoots(ordererRootCAs [][]byte) (*x509.CertPool, error)
- func InitConfig(configFile string) error
- func InitConfigWithCmdRoot(configFile string, cmdRootPrefix string) error
- func IsSecurityEnabled() bool
- func IsTLSEnabled() bool
- func TcertBatchSize() int
- type PeerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFabricCAClientCertFile ¶
func GetFabricCAClientCertFile() string
GetFabricCAClientCertFile Read configuration option for the fabric CA client cert file
func GetFabricCAClientKeyFile ¶
func GetFabricCAClientKeyFile() string
GetFabricCAClientKeyFile Read configuration option for the fabric CA client key file
func GetFabricCATLSEnabledFlag ¶
func GetFabricCATLSEnabledFlag() bool
GetFabricCATLSEnabledFlag Read configuration option for the fabric CA TLS flag
func GetFabricClientViper ¶
GetFabricClientViper returns the internal viper instance used by the SDK to read configuration options
func GetOrdererTLSServerHostOverride ¶
func GetOrdererTLSServerHostOverride() string
GetOrdererTLSServerHostOverride ...
func GetServerCertFiles ¶
func GetServerCertFiles() []string
GetServerCertFiles Read configuration option for the server certificate files
func GetServerURL ¶
func GetServerURL() string
GetServerURL Read configuration option for the fabric CA server URL
func GetTLSCACertPool ¶
GetTLSCACertPool ...
func GetTLSCACertPoolFromRoots ¶
GetTLSCACertPoolFromRoots ...
func InitConfig ¶
InitConfig ... initConfig reads in config file
func InitConfigWithCmdRoot ¶
InitConfigWithCmdRoot reads in a config file and allows the environment variable prefixed to be specified
Types ¶
type PeerConfig ¶
type PeerConfig struct { Host string Port int EventHost string EventPort int Primary bool TLS struct { Certificate string ServerHostOverride string } }
PeerConfig A set of configurations required to connect to a Fabric peer
func GetPeersConfig ¶
func GetPeersConfig() ([]PeerConfig, error)
GetPeersConfig Retrieves the fabric peers from the config file provided