Documentation ¶
Index ¶
- Variables
- type AdminOrg
- type AnchorPeer
- type ApplicationParams
- type CA
- type ChannelConfig
- type ChannelParams
- type Consenter
- type DC
- type DCClient
- type ETCDRaft
- type ETCDRaftOptions
- type GatewayParams
- type HLFChannelManagerConfig
- type Orderer
- type OrdererOrg
- type OrdererParams
- type Peer
- type PeerOrg
- type PoliciesParams
- type Policy
- type Provider
Constants ¶
This section is empty.
Variables ¶
View Source
var ContractCtxKey = &contextKey{"contract"}
View Source
var GatewayCtxKey = &contextKey{"gateway"}
Functions ¶
This section is empty.
Types ¶
type AnchorPeer ¶ added in v0.0.3
type ApplicationParams ¶
type ApplicationParams struct { Capabilities []string `yaml:"capabilities"` Policies *PoliciesParams `yaml:"policies"` }
type ChannelConfig ¶
type ChannelConfig struct { Name string `yaml:"name"` Consenters []Consenter `yaml:"consenters"` PeerOrgs []PeerOrg `yaml:"peerOrgs"` OrdererOrgs []OrdererOrg `yaml:"ordererOrgs"` PeerAdminOrgs []AdminOrg `yaml:"peerAdminOrgs"` OrdererAdminOrgs []AdminOrg `yaml:"ordererAdminOrgs"` Params *ChannelParams `yaml:"params"` }
type ChannelParams ¶
type ChannelParams struct { Orderer *OrdererParams `yaml:"orderer"` Application *ApplicationParams `yaml:"application"` }
type DCClient ¶ added in v0.0.3
type DCClient struct { HLFClient *operatorv1.Clientset KubeClient *kubernetes.Clientset KubeConfig *rest.Config }
type ETCDRaft ¶
type ETCDRaft struct {
Options *ETCDRaftOptions `yaml:"options"`
}
type ETCDRaftOptions ¶
type GatewayParams ¶
type HLFChannelManagerConfig ¶
type HLFChannelManagerConfig struct {
DCs []DC `yaml:"dcs"`
}
type OrdererOrg ¶
type OrdererParams ¶
type OrdererParams struct { Capabilities []string `yaml:"capabilities"` // BatchSize: orderer.BatchSize{ // MaxMessageCount: 100, // AbsoluteMaxBytes: 1024 * 1024, // PreferredMaxBytes: 512 * 1024, // }, // BatchTimeout: 2 * time.Second, // State: "STATE_NORMAL", BatchTimeout *time.Duration `yaml:"batchTimeout"` //BatchSize time.Duration `yaml:"batchTimeout"` ETCDRaft *ETCDRaft `yaml:"etcdRaft"` }
type PeerOrg ¶
type PeerOrg struct { MSPID string `yaml:"mspid"` CA CA `yaml:"ca"` SignCA string `yaml:"signCA"` Peers []Peer `yaml:"peers"` AnchorPeers []AnchorPeer `yaml:"anchorPeers"` }
type PoliciesParams ¶
type Policy ¶
type Policy struct { Type string `yaml:"Type"` Rule string `yaml:"Rule"` ModPolicy string `yaml:"ModPolicy"` }
Policy is an expression used to define rules for access to channels, chaincodes, etc.
type Provider ¶
type Provider interface { ConfigFileUsed() string Get(key string) interface{} GetBool(key string) bool GetDuration(key string) time.Duration GetFloat64(key string) float64 GetInt(key string) int GetInt64(key string) int64 GetSizeInBytes(key string) uint GetString(key string) string GetStringMap(key string) map[string]interface{} GetStringMapString(key string) map[string]string GetStringMapStringSlice(key string) map[string][]string GetStringSlice(key string) []string GetTime(key string) time.Time InConfig(key string) bool IsSet(key string) bool }
Provider defines a set of read-only methods for accessing the application configuration params as defined in one of the config files.
func LoadConfigProvider ¶
LoadConfigProvider returns a configured viper instance
Click to show internal directories.
Click to hide internal directories.