Documentation
¶
Index ¶
- Constants
- type BCCSP
- type Chaincode
- type Channel
- func (c *Channel) ChaincodeConfigs() []driver.ChaincodeConfig
- func (c *Channel) CommitParallelism() int
- func (c *Channel) CommitterFinalityNumRetries() int
- func (c *Channel) CommitterFinalityUnknownTXTimeout() time.Duration
- func (c *Channel) CommitterPollingTimeout() time.Duration
- func (c *Channel) CommitterWaitForEventTimeout() time.Duration
- func (c *Channel) DeliveryBufferSize() int
- func (c *Channel) DeliverySleepAfterFailure() time.Duration
- func (c *Channel) DiscoveryDefaultTTLS() time.Duration
- func (c *Channel) DiscoveryTimeout() time.Duration
- func (c *Channel) FinalityEventQueueWorkers() int
- func (c *Channel) FinalityForPartiesWaitTimeout() time.Duration
- func (c *Channel) FinalityWaitTimeout() time.Duration
- func (c *Channel) GetNumRetries() uint
- func (c *Channel) GetRetrySleep() time.Duration
- func (c *Channel) ID() string
- func (c *Channel) Verify() error
- type Committer
- type CommitterFinality
- type ConnectionConfig
- type Delivery
- type Discovery
- type Endpoint
- type File
- type Files
- type Finality
- type KeyIDMapping
- type MSP
- type MSPOpts
- type Network
- type PKCS11
- type Resolver
- type Service
- func (s *Service) BroadcastNumRetries() int
- func (s *Service) BroadcastRetryInterval() time.Duration
- func (s *Service) Channel(name string) driver.ChannelConfig
- func (s *Service) ChannelIDs() []string
- func (s *Service) ClientConnTimeout() time.Duration
- func (s *Service) DefaultChannel() string
- func (s *Service) DefaultMSP() string
- func (s *Service) DriverName() string
- func (s *Service) GetBool(key string) bool
- func (s *Service) GetDuration(key string) time.Duration
- func (s *Service) GetPath(key string) string
- func (s *Service) GetString(key string) string
- func (s *Service) IsChannelQuiet(name string) bool
- func (s *Service) IsSet(key string) bool
- func (s *Service) KeepAliveClientInterval() time.Duration
- func (s *Service) KeepAliveClientTimeout() time.Duration
- func (s *Service) MSPCacheSize() int
- func (s *Service) MSPs() ([]MSP, error)
- func (s *Service) NetworkName() string
- func (s *Service) NewDefaultChannelConfig(name string) driver.ChannelConfig
- func (s *Service) OrdererConnectionPoolSize() int
- func (s *Service) Orderers() []*grpc.ConnectionConfig
- func (s *Service) OrderingTLSClientAuthRequired() (bool, bool)
- func (s *Service) OrderingTLSEnabled() (bool, bool)
- func (s *Service) PickOrderer() *grpc.ConnectionConfig
- func (s *Service) PickPeer(ft driver.PeerFunctionType) *grpc.ConnectionConfig
- func (s *Service) Resolvers() ([]Resolver, error)
- func (s *Service) SetConfigOrderers(orderers []*grpc.ConnectionConfig) error
- func (s *Service) TLSClientAuthRequired() bool
- func (s *Service) TLSClientCertFile() string
- func (s *Service) TLSClientKeyFile() string
- func (s *Service) TLSEnabled() bool
- func (s *Service) TLSServerHostOverride() string
- func (s *Service) TranslatePath(path string) string
- func (s *Service) UnmarshalKey(key string, rawVal interface{}) error
- func (s *Service) VaultPersistenceName() driver2.PersistenceName
- func (s *Service) VaultTXStoreCacheSize() int
- type SoftwareProvider
- type TLS
- type Vault
- type VaultOpts
- type VaultPersistence
Constants ¶
View Source
const ( DefaultConnectionTimeout = 10 * time.Second GenericDriver = "generic" )
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 Chaincode ¶
type Channel ¶
type Channel struct { Name string `yaml:"Name,omitempty"` Default bool `yaml:"Default,omitempty"` Quiet bool `yaml:"Quiet,omitempty"` NumRetries uint `yaml:"NumRetries,omitempty"` RetrySleep time.Duration `yaml:"RetrySleep,omitempty"` Finality Finality `yaml:"Finality,omitempty"` Committer Committer `yaml:"Committer,omitempty"` Delivery Delivery `yaml:"Delivery,omitempty"` Discovery Discovery `yaml:"Discovery,omitempty"` Chaincodes []*Chaincode `yaml:"Chaincodes,omitempty"` }
func (*Channel) ChaincodeConfigs ¶ added in v0.4.0
func (c *Channel) ChaincodeConfigs() []driver.ChaincodeConfig
func (*Channel) CommitParallelism ¶ added in v0.4.0
func (*Channel) CommitterFinalityNumRetries ¶ added in v0.4.0
func (*Channel) CommitterFinalityUnknownTXTimeout ¶ added in v0.4.0
func (*Channel) CommitterPollingTimeout ¶ added in v0.4.0
func (*Channel) CommitterWaitForEventTimeout ¶ added in v0.4.0
func (*Channel) DeliveryBufferSize ¶ added in v0.4.1
func (*Channel) DeliverySleepAfterFailure ¶ added in v0.4.0
func (*Channel) DiscoveryDefaultTTLS ¶ added in v0.4.0
func (*Channel) DiscoveryTimeout ¶ added in v0.4.0
func (*Channel) FinalityEventQueueWorkers ¶ added in v0.4.0
func (*Channel) FinalityForPartiesWaitTimeout ¶ added in v0.4.0
func (*Channel) FinalityWaitTimeout ¶ added in v0.4.0
func (*Channel) GetNumRetries ¶ added in v0.4.0
func (*Channel) GetRetrySleep ¶ added in v0.4.0
type CommitterFinality ¶ added in v0.4.0
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 []*grpc.ConnectionConfig `yaml:"orderers"` Peers []*grpc.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 Service ¶ added in v0.4.0
type Service struct { driver.Configuration // contains filtered or unexported fields }
func NewService ¶ added in v0.4.0
func (*Service) BroadcastNumRetries ¶ added in v0.4.0
func (*Service) BroadcastRetryInterval ¶ added in v0.4.0
func (*Service) Channel ¶ added in v0.4.0
func (s *Service) Channel(name string) driver.ChannelConfig
func (*Service) ChannelIDs ¶ added in v0.4.0
func (*Service) ClientConnTimeout ¶ added in v0.4.0
func (*Service) DefaultChannel ¶ added in v0.4.0
func (*Service) DefaultMSP ¶ added in v0.4.0
DefaultMSP returns the default MSP
func (*Service) DriverName ¶ added in v0.4.0
func (*Service) GetDuration ¶ added in v0.4.0
func (*Service) IsChannelQuiet ¶ added in v0.4.0
func (*Service) KeepAliveClientInterval ¶ added in v0.4.0
func (*Service) KeepAliveClientTimeout ¶ added in v0.4.0
func (*Service) MSPCacheSize ¶ added in v0.4.0
func (*Service) NetworkName ¶ added in v0.4.0
func (*Service) NewDefaultChannelConfig ¶ added in v0.4.0
func (s *Service) NewDefaultChannelConfig(name string) driver.ChannelConfig
func (*Service) OrdererConnectionPoolSize ¶ added in v0.4.0
func (*Service) Orderers ¶ added in v0.4.0
func (s *Service) Orderers() []*grpc.ConnectionConfig
func (*Service) OrderingTLSClientAuthRequired ¶ added in v0.4.0
func (*Service) OrderingTLSEnabled ¶ added in v0.4.0
func (*Service) PickOrderer ¶ added in v0.4.0
func (s *Service) PickOrderer() *grpc.ConnectionConfig
func (*Service) PickPeer ¶ added in v0.4.0
func (s *Service) PickPeer(ft driver.PeerFunctionType) *grpc.ConnectionConfig
func (*Service) SetConfigOrderers ¶ added in v0.4.0
func (s *Service) SetConfigOrderers(orderers []*grpc.ConnectionConfig) error
func (*Service) TLSClientAuthRequired ¶ added in v0.4.0
func (*Service) TLSClientCertFile ¶ added in v0.4.0
func (*Service) TLSClientKeyFile ¶ added in v0.4.0
func (*Service) TLSEnabled ¶ added in v0.4.0
func (*Service) TLSServerHostOverride ¶ added in v0.4.0
func (*Service) TranslatePath ¶ added in v0.4.0
TranslatePath translates the passed path relative to the path from which the configuration has been loaded
func (*Service) UnmarshalKey ¶ added in v0.4.0
func (*Service) VaultPersistenceName ¶ added in v0.4.1
func (s *Service) VaultPersistenceName() driver2.PersistenceName
func (*Service) VaultTXStoreCacheSize ¶ added in v0.4.0
type SoftwareProvider ¶
type Vault ¶
type Vault struct {
Persistence VaultPersistence `yaml:"persistence"`
}
type VaultPersistence ¶
Click to show internal directories.
Click to hide internal directories.