Versions in this module Expand all Collapse all v1 v1.1.0 Apr 12, 2019 Changes in this version + func FromFile(name string, opts ...Option) apiconfig.ConfigProvider + func FromRaw(configBytes []byte, configType string, opts ...Option) apiconfig.ConfigProvider + func FromReader(in io.Reader, configType string, opts ...Option) apiconfig.ConfigProvider + type Config struct + func (c *Config) CAClientCertPath(org string) (string, error) + func (c *Config) CAClientCertPem(org string) (string, error) + func (c *Config) CAClientKeyPath(org string) (string, error) + func (c *Config) CAClientKeyPem(org string) (string, error) + func (c *Config) CAConfig(org string) (*apiconfig.CAConfig, error) + func (c *Config) CAKeyStorePath() string + func (c *Config) CAServerCertPaths(org string) ([]string, error) + func (c *Config) CAServerCertPems(org string) ([]string, error) + func (c *Config) ChannelConfig(name string) (*apiconfig.ChannelConfig, error) + func (c *Config) ChannelOrderers(name string) ([]apiconfig.OrdererConfig, error) + func (c *Config) ChannelPeers(name string) ([]apiconfig.ChannelPeer, error) + func (c *Config) Client() (*apiconfig.ClientConfig, error) + func (c *Config) CryptoConfigPath() string + func (c *Config) Ephemeral() bool + func (c *Config) IsSecurityEnabled() bool + func (c *Config) KeyStorePath() string + func (c *Config) MspID(org string) (string, error) + func (c *Config) NetworkConfig() (*apiconfig.NetworkConfig, error) + func (c *Config) NetworkPeers() ([]apiconfig.NetworkPeer, error) + func (c *Config) OrdererConfig(name string) (*apiconfig.OrdererConfig, error) + func (c *Config) OrderersConfig() ([]apiconfig.OrdererConfig, error) + func (c *Config) PeerConfig(org string, name string) (*apiconfig.PeerConfig, error) + func (c *Config) PeerMspID(name string) (string, error) + func (c *Config) PeersConfig(org string) ([]apiconfig.PeerConfig, error) + func (c *Config) RandomOrdererConfig() (*apiconfig.OrdererConfig, error) + func (c *Config) SecurityAlgorithm() string + func (c *Config) SecurityLevel() int + func (c *Config) SecurityProvider() string + func (c *Config) SecurityProviderLabel() string + func (c *Config) SecurityProviderLibPath() string + func (c *Config) SecurityProviderPin() string + func (c *Config) SetTLSCACertPool(certPool *sm2.CertPool) + func (c *Config) SoftVerify() bool + func (c *Config) TLSCACertPool(certs ...*sm2.Certificate) (*sm2.CertPool, error) + func (c *Config) TLSClientCerts() ([]tls.Certificate, error) + func (c *Config) TimeoutOrDefault(conn apiconfig.TimeoutType) time.Duration + type Option func(opts *options) error + func WithEnvPrefix(prefix string) Option