Documentation ¶
Index ¶
- Constants
- type BCCSP
- type Chaincode
- type Channel
- type Config
- func (c *Config) BroadcastNumRetries() int
- func (c *Config) BroadcastRetryInterval() time.Duration
- func (c *Config) Channels() ([]*Channel, error)
- func (c *Config) ClientConnTimeout() time.Duration
- func (c *Config) DefaultMSP() string
- func (c *Config) GetBool(key string) bool
- func (c *Config) GetDuration(key string) time.Duration
- func (c *Config) GetPath(key string) string
- func (c *Config) GetString(key string) string
- func (c *Config) IsSet(key string) bool
- func (c *Config) KeepAliveClientInterval() time.Duration
- func (c *Config) KeepAliveClientTimeout() time.Duration
- func (c *Config) MSPCacheSize() int
- func (c *Config) MSPs() ([]MSP, error)
- func (c *Config) Name() string
- func (c *Config) OrdererConnectionPoolSize() int
- func (c *Config) Orderers() ([]*grpc.ConnectionConfig, error)
- func (c *Config) Peers() (map[driver.PeerFunctionType][]*grpc.ConnectionConfig, error)
- func (c *Config) Resolvers() ([]Resolver, error)
- func (c *Config) TLSClientAuthRequired() bool
- func (c *Config) TLSClientCertFile() string
- func (c *Config) TLSClientKeyFile() string
- func (c *Config) TLSEnabled() bool
- func (c *Config) TLSServerHostOverride() string
- func (c *Config) TranslatePath(path string) string
- func (c *Config) UnmarshalKey(key string, rawVal interface{}) error
- func (c *Config) VaultPersistencePrefix() string
- func (c *Config) VaultPersistenceType() string
- func (c *Config) VaultTXStoreCacheSize(defaultCacheSize int) int
- type ConnectionConfig
- type Endpoint
- type File
- type Files
- type KeyIDMapping
- type MSP
- type MSPOpts
- type Network
- type PKCS11
- type Resolver
- type SoftwareProvider
- type TLS
- type Vault
- type VaultOpts
- type VaultPersistence
Constants ¶
View Source
const ( DefaultMSPCacheSize = 3 DefaultBroadcastNumRetries = 3 VaultPersistenceOptsKey = "vault.persistence.opts" DefaultOrderingConnectionPoolSize = 10 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCCSP ¶
type BCCSP struct { Default string `yaml:"Default,omitempty"` SW *SoftwareProvider `yaml:"SW,omitempty"` PKCS11 *PKCS11 `yaml:"PKCS11,omitempty"` }
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) BroadcastNumRetries ¶
func (*Config) BroadcastRetryInterval ¶
func (*Config) ClientConnTimeout ¶
func (*Config) KeepAliveClientInterval ¶
func (*Config) KeepAliveClientTimeout ¶
func (*Config) MSPCacheSize ¶
func (*Config) OrdererConnectionPoolSize ¶ added in v0.3.0
func (*Config) Peers ¶
func (c *Config) Peers() (map[driver.PeerFunctionType][]*grpc.ConnectionConfig, error)
func (*Config) TLSClientAuthRequired ¶
func (*Config) TLSClientCertFile ¶
func (*Config) TLSClientKeyFile ¶
func (*Config) TLSEnabled ¶
func (*Config) TLSServerHostOverride ¶
func (*Config) TranslatePath ¶
TranslatePath translates the passed path relative to the path from which the configuration has been loaded
func (*Config) UnmarshalKey ¶
func (*Config) VaultPersistencePrefix ¶
func (*Config) VaultPersistenceType ¶
func (*Config) VaultTXStoreCacheSize ¶
type ConnectionConfig ¶
type ConnectionConfig struct { Address string `yaml:"address,omitempty"` ConnectionTimeout time.Duration `yaml:"connectionTimeout,omitempty"` TLSEnabled bool `yaml:"tlsEnabled,omitempty"` TLSRootCertFile string `yaml:"tlsRootCertFile,omitempty"` TLSRootCertBytes [][]byte `yaml:"tlsRootCertBytes,omitempty"` ServerNameOverride string `yaml:"serverNameOverride,omitempty"` }
type KeyIDMapping ¶
type Network ¶
type Network struct { Default bool `yaml:"default,omitempty"` DefaultMSP string `yaml:"defaultMSP"` MSPs []*MSP `yaml:"msps"` TLS TLS `yaml:"tls"` Orderers []*ConnectionConfig `yaml:"orderers"` Peers []*ConnectionConfig `yaml:"peers"` Channels []*Channel `yaml:"channels"` Vault Vault `yaml:"vault"` Endpoint *Endpoint `yaml:"endpoint,omitempty"` }
type PKCS11 ¶
type PKCS11 struct { // Default algorithms when not specified (Deprecated?) Security int `yaml:"Security"` Hash string `yaml:"Hash"` // PKCS11 options Library string `yaml:"Library"` Label string `yaml:"Label"` Pin string `yaml:"Pin"` SoftwareVerify bool `yaml:"SoftwareVerify,omitempty"` Immutable bool `yaml:"Immutable,omitempty"` AltID string `yaml:"AltId,omitempty"` KeyIDs []KeyIDMapping `yaml:"KeyIds,omitempty" mapstructure:"KeyIds"` }
type Resolver ¶
type Resolver struct { // Name of the resolver Name string `yaml:"name,omitempty"` // Domain is option Domain string `yaml:"domain,omitempty"` // Identity specifies an MSP Identity Identity MSP `yaml:"identity,omitempty"` // Addresses where to reach this identity Addresses map[string]string `yaml:"addresses,omitempty"` // Aliases is a list of alias for this resolver Aliases []string `yaml:"aliases,omitempty"` }
Resolver models a Fabric identity resolver
type SoftwareProvider ¶
type Vault ¶
type Vault struct {
Persistence VaultPersistence `yaml:"persistence"`
}
type VaultPersistence ¶
Click to show internal directories.
Click to hide internal directories.