config

package
v1.0.0-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCSPConfig

func GetCSPConfig() *bccspFactory.FactoryOpts

GetCSPConfig ...

func GetCryptoConfigPath

func GetCryptoConfigPath() string

GetCryptoConfigPath ...

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 GetFabricCAID

func GetFabricCAID() string

GetFabricCAID ...

func GetFabricCAName

func GetFabricCAName() string

GetFabricCAName Read the fabric CA name

func GetFabricCATLSEnabledFlag

func GetFabricCATLSEnabledFlag() bool

GetFabricCATLSEnabledFlag Read configuration option for the fabric CA TLS flag

func GetFabricClientViper

func GetFabricClientViper() *viper.Viper

GetFabricClientViper returns the internal viper instance used by the SDK to read configuration options

func GetKeyStorePath

func GetKeyStorePath() string

GetKeyStorePath ...

func GetOrdererHost

func GetOrdererHost() string

GetOrdererHost ...

func GetOrdererPort

func GetOrdererPort() string

GetOrdererPort ...

func GetOrdererTLSCertificate

func GetOrdererTLSCertificate() string

GetOrdererTLSCertificate ...

func GetOrdererTLSServerHostOverride

func GetOrdererTLSServerHostOverride() string

GetOrdererTLSServerHostOverride ...

func GetSecurityAlgorithm

func GetSecurityAlgorithm() string

GetSecurityAlgorithm ...

func GetSecurityLevel

func GetSecurityLevel() int

GetSecurityLevel ...

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

func GetTLSCACertPool(tlsCertificate string) (*x509.CertPool, error)

GetTLSCACertPool ...

func GetTLSCACertPoolFromRoots

func GetTLSCACertPoolFromRoots(ordererRootCAs [][]byte) (*x509.CertPool, error)

GetTLSCACertPoolFromRoots ...

func InitConfig

func InitConfig(configFile string) error

InitConfig ... initConfig reads in config file

func InitConfigWithCmdRoot

func InitConfigWithCmdRoot(configFile string, cmdRootPrefix string) error

InitConfigWithCmdRoot reads in a config file and allows the environment variable prefixed to be specified

func IsSecurityEnabled

func IsSecurityEnabled() bool

IsSecurityEnabled ...

func IsTLSEnabled

func IsTLSEnabled() bool

IsTLSEnabled ...

func TcertBatchSize

func TcertBatchSize() int

TcertBatchSize ...

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL